body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
}
header {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.4s;
}
.header-left a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.header-left a:hover {
    color: var(--red);
}
.header-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}
.hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.35), rgba(15, 20, 32, 0.55)), url('/img/blog/blog-hero.jpg') center/cover;
    display: flex;
    align-items: flex-end;
    color: white;
    padding: 3rem;
    margin-bottom: 3rem;
}
.hero-content h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    opacity: 0.95;
}
.hero-cta {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s;
}
.hero-cta:hover {
    background: #9E1822;
}
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    justify-content: center;
}
.filter-pill {
    background: white;
    border: 2px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: var(--text);
}
.filter-pill:hover, .filter-pill.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.article-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.article-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.article-card { cursor: pointer; }
.article-card a { text-decoration: none; color: inherit; display: block; }

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(196,30,42,0.1);
}
.article-card.large {
    grid-row: span 2;
}
.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
div.article-image {
    object-fit: unset;
}
.article-card.large .article-image {
    height: 400px;
}
.article-body {
    padding: 1.5rem;
}
.article-category {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.article-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    line-height: 1.3;
}
.article-card.large .article-title {
    font-size: 2rem;
}
.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}
.news-section {
    background: linear-gradient(135deg, #34608B 0%, #3D6D9A 50%, #4A7DAB 100%);
    color: white;
    padding: 3rem 2rem 4rem;
    margin: 4rem 0 0 0;
}
.news-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.news-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.news-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem;
    border-radius: 14px;
    flex: 0 0 350px;
    backdrop-filter: blur(10px);
}
.news-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.news-card h4 {
    font-family: 'DM Serif Display', serif;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
.news-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}
.news-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
    footer > div:first-child { grid-template-columns: 1fr !important; }
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal.active {
    display: block;
}
.modal-content {
    background: white;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 14px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    position: sticky;
    top: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 1001;
}
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--red);
}
.modal-body {
    padding: 2rem;
}
.article-card {
    cursor: pointer;
}
.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.modal-body th,
.modal-body td {
    padding: 0.8rem;
    border: 1px solid var(--border);
    text-align: left;
}
.modal-body th {
    background: var(--cream);
}
.article-full h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
.article-full .article-meta {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.article-full p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}
.article-full h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
}
.article-full h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--dark);
}
.article-full ul, .article-full ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}
.article-full li {
    margin-bottom: 0.5rem;
}
.article-cta {
    background: var(--cream);
    border: 2px solid var(--red);
    padding: 2rem;
    border-radius: 14px;
    margin: 2rem 0;
    text-align: center;
}
.article-cta h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.article-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.article-cta a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}
.article-cta a:first-of-type {
    background: var(--red);
    color: white;
}
.article-cta a:first-of-type:hover {
    background: #9E1822;
}
.article-cta a:last-of-type {
    background: white;
    color: var(--red);
    border: 2px solid var(--red);
}
.article-cta a:last-of-type:hover {
    background: var(--red);
    color: white;
}
.related-articles {
    border-top: 2px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}
.related-articles h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.related-card {
    background: var(--cream);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.related-card:hover {
    background: var(--border);
}
.related-card .article-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.related-card .article-category {
    margin-bottom: 0.3rem;
}
.lang-btn:hover { opacity: 0.85; filter: grayscale(0%); border-color: #E8E3DB; transform: scale(1.1); }
.lang-btn.active { opacity: 1; filter: grayscale(0%); border-color: #C41E2A; box-shadow: 0 0 0 2px rgba(196,30,42,0.2); transform: scale(1.1); }

/* ===================== BLOG NAV (LISTING) ===================== */
.blog-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 2rem;
    transition: box-shadow 0.4s;
}
.blog-nav__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.blog-nav__logo-link { display: flex; align-items: center; text-decoration: none; }
.blog-nav__logo { height: 40px; }
.blog-nav__links {
    display: flex; list-style: none; gap: 1.8rem; align-items: center;
    margin: 0; padding: 0;
}
.blog-nav__link {
    text-decoration: none; color: var(--dark);
    font-size: 0.92rem; font-weight: 500;
    transition: color 0.2s;
}
.blog-nav__link--current { color: var(--red); font-weight: 600; }
.blog-nav-cta {
    display: inline-block;
    background: var(--red); color: #fff;
    padding: 10px 22px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}
.lang-switcher {
    display: flex; gap: 0.4rem; align-items: center; margin-left: 0.5rem;
}
.lang-btn {
    background: transparent; border: 2px solid transparent;
    padding: 2px; border-radius: 50%; cursor: pointer;
    transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; overflow: hidden;
    opacity: 0.55; filter: grayscale(30%);
}
.lang-flag {
    width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
}
.blog-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.blog-hamburger span {
    width: 24px; height: 2px; background: var(--dark); border-radius: 2px;
}

/* ===================== BLOG FOOTER ===================== */
.blog-footer {
    background: linear-gradient(135deg, #34608B 0%, #3D6D9A 50%, #4A7DAB 100%);
    padding: 4rem 2.5rem 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
}
.blog-footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.blog-footer__logo {
    height: 42px; margin-bottom: 1rem;
    filter: brightness(0) invert(0.85);
}
.blog-footer-brand-desc { max-width: 360px; line-height: 1.7; }
.blog-footer__social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.blog-footer__social-link {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.blog-footer__social-icon {
    width: 18px; height: 18px; fill: currentColor;
}
.blog-footer-nav-label,
.blog-footer-legal-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
}
.blog-footer__link {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}
.blog-footer__bottom {
    max-width: 1200px; margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; flex-wrap: wrap; gap: 1rem;
}

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr 1fr;
    }
    .article-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero {
        height: 45vh;
        padding: 2rem;
    }
    .news-card {
        flex: 0 0 280px;
    }
    .blog-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .article-card.large .article-image {
        height: 250px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero {
        height: 40vh;
        padding: 1.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    header {
        flex-direction: column;
        gap: 1rem;
    }
    .filters {
        padding: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .filters::-webkit-scrollbar { display: none; }
    .filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .modal-content {
        margin: 20px;
        border-radius: 14px;
    }
    .news-title {
        font-size: 1.8rem;
    }
    .news-card {
        flex: 0 0 260px;
    }
    .blog-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero {
        height: 35vh;
        padding: 1rem;
    }
    .article-body {
        padding: 1rem;
    }
    .article-title {
        font-size: 1.1rem;
    }
    .article-card.large .article-title {
        font-size: 1.5rem;
    }
    .articles-container {
        padding: 0 1rem;
    }
    .news-section {
        padding: 2rem 1rem;
    }
    .news-title {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
}
@media (max-width: 768px) {
    #blogNavLinks { display: none !important; }
    #blogHamburger { display: flex !important; }
    #blogNavLinks.open {
        display: flex !important; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #FAF8F4; padding: 2rem; gap: 1.5rem;
        border-bottom: 1px solid #E8E3DB;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        z-index: 200;
    }
}
