/* Enhanced GPA Calculator Styles - Modern Design with Better UX */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.15s;
}

.logo a:hover h1 {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.15s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.calculator-section {
    padding: 3rem 0;
}

.calculator-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.calculator-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.scale-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scale-selector label {
    font-weight: 600;
    color: var(--text-secondary);
}

.scale-selector select {
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.scale-selector select:hover {
    border-color: var(--border-hover);
}

.scale-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.course-entry {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto;
    gap: 1rem;
    align-items: end;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 2px solid transparent;
}

.course-entry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.15s;
    background: var(--bg-white);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--border-hover);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.remove-course {
    padding: 0.75rem 1rem;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.15s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-course:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

.remove-course:focus {
    outline: 2px solid var(--error-color);
    outline-offset: 2px;
}

.calculator-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.advanced-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 2px dashed var(--border-color);
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:not(:disabled):hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:not(:disabled):hover {
    background-color: var(--secondary-dark);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
}

.btn-accent:not(:disabled):hover {
    background: linear-gradient(135deg, var(--accent-dark), #b45309);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:not(:disabled):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.btn-secondary-outline {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-secondary-outline:not(:disabled):hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background-color: rgba(16, 185, 129, 0.05);
}

.full-width {
    width: 100%;
    justify-content: center;
}

.result-section {
    margin-top: 2.5rem;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.result-card h4 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.gpa-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gpa-label {
    font-size: 1.5rem;
    font-weight: 500;
}

.gpa-value {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.honor-badge {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.honor-label {
    font-size: 1rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
}

.honor-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.detail-item span:first-child {
    font-size: 0.875rem;
    opacity: 0.9;
}

.detail-item span:last-child {
    font-size: 2rem;
    font-weight: 700;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.info-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}

.close-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.target-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    animation: slideInUp 0.4s ease;
}

.target-result.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
}

.target-result.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error-color);
}

.target-result h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.target-result p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.target-result .suggestion {
    margin-top: 1rem;
    font-style: italic;
    font-weight: 500;
}

.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.notification {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--info-color);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.notification button:hover {
    color: var(--text-primary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.content-section {
    padding: 3rem 0;
    background: var(--bg-white);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-block ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.content-block li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.content-block strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.content-block a:hover {
    border-bottom-color: var(--primary-color);
}

footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.blog-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.blog-card a:hover {
    text-decoration: underline;
}

.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.blog-article h1 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.blog-article h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.blog-article h3 {
    font-size: 1.625rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.blog-article p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.blog-article ul, .blog-article ol {
    margin: 1.25rem 0 1.25rem 2rem;
    color: var(--text-secondary);
}

.blog-article li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.contact-section {
    padding: 3rem 0;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.15s;
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-item .icon {
    font-size: 2.5rem;
}

.contact-item-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-item-content p {
    color: var(--text-secondary);
}

.contact-item-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item-content a:hover {
    text-decoration: underline;
}

.about-section {
    padding: 3rem 0;
}

.about-content {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.about-content h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.about-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content ul {
    margin: 1.25rem 0 1.25rem 2rem;
    color: var(--text-secondary);
}

.about-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

@media print {
    header, footer, .nav-menu, .advanced-actions, .back-to-top,
    .notification-container, .info-cards, .content-section {
        display: none !important;
    }

    body {
        background: white;
    }

    .calculator-card {
        box-shadow: none;
        border: 1px solid #000;
    }

    .result-card {
        background: white;
        color: black;
        border: 2px solid #000;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .calculator-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-entry {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .remove-course {
        width: 100%;
    }

    .calculator-actions,
    .advanced-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .gpa-value {
        font-size: 3rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article h1 {
        font-size: 2rem;
    }

    .blog-article h2 {
        font-size: 1.625rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .notification-container {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .calculator-card,
    .contact-card,
    .about-content {
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .gpa-value {
        font-size: 2.5rem;
    }

    .calculator-header h3 {
        font-size: 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

/* Latest Articles Section */
.latest-articles-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.latest-articles-section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.latest-article-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.25s;
}

.latest-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.latest-article-card .article-date {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.latest-article-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
}

.latest-article-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.latest-article-card h3 a:hover {
    color: var(--primary-color);
}

.latest-article-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.latest-article-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s;
}

.latest-article-card .read-more:hover {
    text-decoration: underline;
}

.view-all-articles {
    text-align: center;
    margin-top: 2rem;
}

/* Blog Date Tag for Blog Index */
.blog-date-tag {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Blog Post Date */
.blog-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .latest-articles-section {
        padding: 3rem 0;
    }

    .latest-articles-section h2 {
        font-size: 1.75rem;
    }

    .latest-articles-grid {
        grid-template-columns: 1fr;
    }
}
