/* ====================================================
   AFRIK'ACADEMY DESIGN SYSTEM — TYPOGRAPHY
   ==================================================== */

:root {
    --font-main: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --h1-size: clamp(2rem, 4.5vw, 3.2rem);
    --h2-size: clamp(1.8rem, 4vw, 2.5rem);
    --h3-size: 1.3rem;
    --body-size: 1rem;
    --line-height-body: 1.9;
    --line-height-title: 1.2;
    --color-text-main: #444;
    --color-text-dark: #1a1a1a;
    --color-primary: #f05a28;
    --color-secondary: #00A651;
}

body {
    font-family: var(--font-main) !important;
    font-size: var(--body-size);
    line-height: var(--line-height-body);
    color: var(--color-text-main);
}

h1, .h1 {
    font-family: var(--font-main) !important;
    font-weight: 900;
    line-height: var(--line-height-title);
    color: var(--color-text-dark);
}

h2, .h2 {
    font-family: var(--font-main) !important;
    font-weight: 900;
    line-height: var(--line-height-title);
    color: var(--color-text-dark);
}

h3, .h3 {
    font-family: var(--font-main) !important;
    font-weight: 900;
    color: var(--color-text-dark);
}

p {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: var(--line-height-body);
}

/* Titles with Underline (Standard) */
.section-title-underline {
    margin-bottom: 2rem;
}

.section-title-underline span {
    font-weight: 900 !important;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 5px;
}

.standard-hero-title {
    font-size: var(--h1-size) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    color: #fff !important;
}

.landing-hero-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    color: var(--color-text-dark) !important;
}

h3.landing-hero-title {
    font-size: clamp(0.85rem, 1.8vw, 1.05rem) !important;
    font-weight: 400 !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.6 !important;
}

.landing-hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    font-weight: 400 !important;
    max-width: 800px;
}

.standard-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 300 !important;
    max-width: 700px;
    margin: 0 auto !important;
}

/* Navbar Components (Standardized) */
.nav-btn-donate a {
    background: var(--color-primary) !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.3s;
}

.nav-btn-donate a:hover {
    background: #d14d1f !important;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid #ccc;
    background: transparent;
}

.lang-toggle span {
    padding: 5px 9px;
    color: #333;
    transition: background .2s, color .2s;
}

.lang-toggle span.active-lang {
    background: var(--color-primary);
    color: #000;
}

.footer-white-text {
    color: #fff !important;
}

/* About Hero Section */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 65vh;
    max-height: 700px;
    background-image: url('../images/hero-slider/slid-1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

/* News Hero Section */
.news-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 50vh;
    max-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&q=80&w=1920&h=1080') !important;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Contact Hero Section */
.contact-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: 55vh;
    max-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1758874572253-d1b630214a86?q=80&w=1032&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

/* Courses Hero Section (Education Theme) */
.courses-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 65vh;
    max-height: 700px;
    background-image: url('https://images.unsplash.com/photo-1531482615713-2afd69097998?q=80&w=1470&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.courses-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.courses-hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 900px;
}

.courses-hero-content {
    position: relative;
    z-index: 10;
}

/* Footer Visibility */
.footer-white-text {
    color: #fff !important;
}

/* ====================================================
   LEGACY STYLES & OVERRIDES (Cleanup In Progress)
   ==================================================== */

.image-section {
    background-image: url('../images/tache.png');
    background-size: cover;
    height: 400px;
}

/* Media query pour responsive */
@media (max-width: 768px) {
    .image-section {
        order: -1;
        /* Met l'image en haut sur mobile */
        height: 250px;
        /* Ajuste la hauteur pour mobile si nécessaire */
    }

    .image-section img {
        max-width: 100%;
        height: auto;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mobile-main-header-text {
        display: block;
    }

    /* Cache le h1 sur mobile */
    .main-header-text {
        display: none;
    }
}

/* Presentation Section - Apple Inspired Style */
.presentation-section {
    background-color: #fbfbfd;
    /* Fond gris très clair style Apple */
    font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 60px;
    /* Espace avant la vidéo */
}

.presentation-section .section-title-underline.style-2,
.mvv-section .section-title-underline.style-2,
.coverflow-section .section-title-underline.style-2 {
    color: #000;
}

/* Le titre est maintenant géré par .section-title-underline, on supprime le style custom .section-title */

.presentation-section .section-desc {
    font-size: 1.1rem;
    /* Taille matchant 'Nos Cours récents' */
    color: #000;
    margin: 0 auto 40px;
    /* Ajuste la marge après la description */
    line-height: 1.7;
    /* Standard de la page */
    font-weight: 300;
    /* Standard de la page */
    text-align: justify;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    /* Assure le centrage du contenu */
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.mission-icon.icon-orange {
    color: #f05a28;
}

.mission-icon.icon-blue {
    color: #00A651;
}

.mission-icon.icon-salmon {
    color: #ff9800;
}

.mission-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.mission-card p {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.5;
}

/* Responsive pour Mission Section */
@media (max-width: 991px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-section .section-title {
        font-size: 2.5rem;
    }

    .mission-section .section-desc {
        font-size: 1.2rem;
        padding: 0 20px;
    }
}

/* Navbar Custom Styling */
.social-wrap a {
    color: #00A651 !important;
    font-size: 1.2rem;
    padding-left: 15px;
    transition: .3s all ease;
}

.social-wrap a:hover {
    color: #f05a28 !important;
}

.site-navbar .site-navigation .site-menu {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.site-navbar .site-navigation .site-menu>li {
    display: flex;
    align-items: center;
}

.site-navbar .site-navigation .site-menu>li>a {
    padding: 10px 15px;
}

@media (max-width: 991.98px) {
    .site-navbar .container>.d-flex {
        justify-content: space-between !important;
        width: 100% !important;
    }

    .site-logo {
        flex: 0 0 auto;
    }

    .social-wrap {
        flex: 0 0 auto;
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .site-mobile-menu .site-nav-wrap {
        display: block !important;
        padding-top: 20px;
    }

    .site-mobile-menu .site-nav-wrap ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .site-mobile-menu .site-nav-wrap li {
        display: block !important;
    }

    .site-mobile-menu .site-nav-wrap li a {
        padding: 10px 20px !important;
        display: block !important;
        color: #000 !important;
        font-size: 1rem !important;
    }
}

/* Scrolled Navbar Styles */
.site-navbar.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.site-navbar.scrolled .site-menu > li > a {
    color: #000 !important;
}

/* Retire le background des boutons connexion et inscription */
a[href="login.html"],
.btn-primary {
    background-color: transparent !important;
    border: none !important;
    color: #000 !important;
}

a[href="login.html"]:hover,
.btn-primary:hover {
    background-color: transparent !important;
    color: #f05a28 !important;
}

/* Contact Page Redesign - Merged Layout */
.contact-main-wrap {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.contact-form-wrap {
    background: #fff;
    padding: 3rem;
    border-radius: 20px 0 0 20px;
    /* Only outer-left borders after column swap */
    height: 100%;
}

.contact-form-wrap .form-group label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.contact-form-wrap .form-control {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fbfbfd;
    height: auto;
}

.contact-form-wrap .form-control:focus {
    border-color: #f05a28;
    background: #fff;
    box-shadow: 0 5px 15px rgba(240, 90, 40, 0.1);
    outline: none;
}

.contact-form-wrap .btn-submit {
    background: #f05a28 !important;
    color: #000 !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none !important;
    display: inline-block;
    cursor: pointer;
}

.contact-form-wrap .btn-submit:hover {
    background: #000 !important;
    color: #f05a28 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.map-container {
    height: 100%;
    min-height: 500px;
    border-radius: 0;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Newsletter Section - Afrik'Academy Style */
.newsletter-section {
    padding: 120px 0;
    /* Increase padding for separation */
    background: #f8f9fa;
    /* Light background to separate from white content */
    border-top: 1px solid #eee;
}

.newsletter-section .section-title-underline {
    margin-bottom: 30px;
}

.newsletter-section .section-title-underline span {
    color: #1a1a1a;
}

.newsletter-section .section-desc {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 1rem;
    /* Further reduced from 2rem */
    line-height: 1.7;
}

.newsletter-form-row {
    display: flex;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    /* More modern pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.newsletter-form-row .form-control {
    flex: 1;
    height: 55px;
    border: none;
    padding: 0 30px;
    font-size: 1rem;
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.newsletter-form-row .form-control:focus {
    outline: none;
    box-shadow: none;
}

.newsletter-form-row .btn-subscribe {
    background: #f05a28;
    /* Brand yellow */
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form-row .btn-subscribe:hover {
    background: #000;
    color: #f05a28;
    transform: translateX(3px);
}

.privacy-text {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .contact-form-wrap {
        border-radius: 0;
    }

    .contact-main-wrap {
        border-radius: 0;
    }

    .newsletter-form-row {
        flex-direction: column;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .newsletter-form-row .form-control {
        background: #fff;
        border-radius: 10px;
        margin-bottom: 10px;
        height: 60px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
    }

    .newsletter-form-row .btn-subscribe {
        height: 60px;
        border-radius: 10px;
    }
}

/* News Section Styling */
.news-section {
    padding: 80px 0;
}

.news-item {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.news-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 30px;
}

.news-images {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* Grid layout based on number of images */
.news-images.images-1 {
    grid-template-columns: 1fr;
}

.news-images.images-2 {
    grid-template-columns: repeat(2, 1fr);
}

.news-images.images-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .news-images.images-2,
    .news-images.images-3 {
        grid-template-columns: 1fr;
    }
}

.news-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-img-wrap:hover img {
    transform: scale(1.05);
}

.news-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-img-wrap:hover .news-img-overlay {
    opacity: 1;
}

.news-img-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* ============================
   TEAM CARDS — Modern Grid
   ============================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-card-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 54, 97, 0.8) 0%, rgba(24, 54, 97, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-card-plus {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f05a28;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

.team-card:hover .team-card-plus {
    transform: scale(1);
}

.team-card-info {
    padding: 18px 20px;
    text-align: center;
}

.team-card-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-family: "Muli", sans-serif;
}

.team-card-info span {
    color: #f05a28;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================
   TEAM POPUP — Biography Modal
   ============================ */
.team-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.team-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.team-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 580px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.team-popup-overlay.active .team-popup {
    transform: translateY(0) scale(1);
}

.team-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s ease;
}

.team-popup-close:hover {
    color: #f05a28;
}

.team-popup-content {
    padding: 35px;
}

.team-popup-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.team-popup-header img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #f05a28;
}

.team-popup-header-info h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-family: "Muli", sans-serif;
}

.team-popup-header-info span {
    color: #f05a28;
    font-weight: 700;
    font-size: 0.95rem;
}

.team-popup-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
    text-align: justify;
}

/* ============================
   TEAM — Responsive
   ============================ */
@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team-card-img {
        height: 240px;
    }

    .team-popup-content {
        padding: 25px;
    }

    .team-popup-header {
        flex-direction: column;
        text-align: center;
    }

    .team-popup-header img {
        width: 80px;
        height: 80px;
    }
}

/* ============================
   AMAZON INSPIRED NEWS GRID - REFINED
   ============================ */
.news-search-wrap {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.news-search-input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-search-input:focus {
    outline: none;
    border-color: #f05a28;
    box-shadow: 0 8px 25px rgba(240, 90, 40, 0.15);
}

.news-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0 60px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    border-bottom: 4px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #f05a28;
}

.news-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Slightly different ratio for Amazon look */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    font-weight: 500;
}

.news-card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #555;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    margin-top: auto; /* Push to bottom */
    align-self: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-search-wrap {
        padding: 0 15px;
    }
}

/* ============================
   BLOG SIDEBAR & DETAIL REFINEMENTS
   ============================ */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f05a28;
    display: inline-block;
}

/* Recent Posts widget */
.sidebar-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none !important;
}

.sidebar-post-img {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info {
    flex: 1;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Subscribe widget */
.subscribe-widget {
    background: #1a1a1a;
    color: #fff;
}

.subscribe-widget .widget-title {
    color: #fff;
}

.subscribe-widget p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
}

.sidebar-subscribe-form .form-control {
    background: #333 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    border-radius: 8px;
    margin-bottom: 15px;
    height: 50px;
}

.sidebar-subscribe-form .btn {
    width: 100%;
    font-weight: 800;
    padding: 12px;
}

/* Global Scroll Navbar */
.site-navbar.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-navbar.scrolled .site-logo a,
.site-navbar.scrolled .site-navigation .site-menu > li > a {
    color: #000 !important;
}

.site-navbar.scrolled .site-navigation .site-menu > li.active > a {
    color: var(--color-primary) !important;
}

.site-navbar.scrolled .lang-toggle {
    border-color: #ccc !important;
}

.site-navbar.scrolled .lang-toggle span {
    color: #333 !important;
}

.site-navbar.scrolled .social-icons a,
.site-navbar.scrolled .social-wrap a {
    background: var(--color-primary) !important;
    color: #fff !important;
}

/* Responsive sidebar */
@media (max-width: 991px) {
    .sidebar-column {
        margin-top: 50px;
    }
}