/* =========================================================
   ACADEMIE ABD ALKABIR
   MAIN DESIGN
   ========================================================= */

:root {

    --brown-dark: #3b2110;
    --brown: #5b3215;
    --brown-medium: #70421f;
    --brown-light: #8b5a2b;

    --gold-dark: #b37d18;
    --gold: #d39a25;
    --gold-light: #e8c46b;

    --cream: #f7f0e4;
    --cream-light: #fbf8f2;

    --white: #ffffff;

    --text-dark: #33251b;
    --text-medium: #65584d;

    --border: #e4d7c6;

    --shadow:
        0 8px 30px rgba(59, 33, 16, 0.10);

    --shadow-hover:
        0 14px 35px rgba(59, 33, 16, 0.17);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    direction: rtl;

    margin: 0;

    font-family:
        Arial,
        "Tahoma",
        sans-serif;

    color: var(--text-dark);

    background:
        var(--cream-light);

    line-height: 1.8;

    overflow-x: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.98);

    border-bottom:
        2px solid var(--gold);

    box-shadow:
        0 3px 18px rgba(59, 33, 16, 0.10);
}


.header-inner {

    width: 100%;

    max-width: 1450px;

    margin: 0 auto;

    text-align: center;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-link {

    display: block;

    text-decoration: none;

    padding:
        12px 20px 10px;
}


.academy-logo {

    display: block;

    width: 520px;

    max-width: 92%;

    height: auto;

    margin: 0 auto;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {

    display: flex;

    justify-content: center;

    align-items: stretch;

    flex-wrap: wrap;

    gap: 0;

    border-top:
        1px solid rgba(211, 154, 37, 0.30);
}


.nav-link {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 60px;

    padding:
        0 25px;

    color:
        var(--brown-dark);

    text-decoration: none;

    font-size: 17px;

    font-weight: bold;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.nav-link::after {

    content: "";

    position: absolute;

    bottom: 0;

    right: 25%;

    left: 25%;

    height: 3px;

    background:
        var(--gold);

    transform:
        scaleX(0);

    transition:
        transform 0.25s ease;
}


.nav-link:hover {

    color:
        var(--white);

    background:
        var(--brown);
}


.nav-link:hover::after,
.nav-link.active::after {

    transform:
        scaleX(1);
}


.nav-link.active {

    color:
        var(--white);

    background:
        var(--brown);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {

    display: none;

    width: 48px;

    height: 44px;

    margin:
        5px auto 10px;

    border:
        1px solid var(--gold);

    border-radius:
        8px;

    background:
        var(--brown);

    cursor:
        pointer;
}


.mobile-menu-button span {

    display: block;

    width: 24px;

    height: 2px;

    margin:
        5px auto;

    background:
        var(--white);
}


/* =========================================================
   MAIN
   ========================================================= */

main {

    width: 100%;

    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {

    position: relative;

    min-height: 430px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 82% 50%,
            rgba(255, 255, 255, 0.92) 0,
            rgba(247, 240, 228, 0.92) 35%,
            rgba(247, 240, 228, 1) 65%
        ),

        linear-gradient(
            135deg,
            #f8f0e2,
            #e6d2b0
        );
}


/*
   If you later receive an official hero photograph,
   replace the background of .hero-section with:

   background-image:
       linear-gradient(...),
       url("images/hero.jpg");

*/


.hero-section::before {

    content: "";

    position: absolute;

    width: 550px;

    height: 550px;

    left: -220px;

    bottom: -280px;

    border-radius: 50%;

    border:
        3px solid rgba(211, 154, 37, 0.30);

    box-shadow:
        0 0 0 20px rgba(211, 154, 37, 0.06),
        0 0 0 40px rgba(211, 154, 37, 0.04);
}


.hero-section::after {

    content: "";

    position: absolute;

    width: 320px;

    height: 320px;

    right: -160px;

    top: -160px;

    border-radius: 50%;

    border:
        2px solid rgba(211, 154, 37, 0.18);
}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.00),
            rgba(255,255,255,0.12)
        );
}


.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 820px;

    padding:
        65px 25px;

    text-align: center;
}


.hero-small-title {

    color:
        var(--brown-medium);

    font-size:
        18px;

    font-weight:
        bold;

    margin-bottom:
        12px;
}


.hero-content h1 {

    color:
        var(--brown-dark);

    font-size:
        48px;

    line-height:
        1.35;

    margin-bottom:
        18px;

    font-weight:
        800;
}


/* =========================================================
   HERO DECORATION
   ========================================================= */

.hero-decoration {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin:
        5px auto 25px;
}


.decoration-line {

    width: 155px;

    max-width: 25vw;

    height: 3px;

    background:
        var(--gold);
}


.decoration-star {

    color:
        var(--gold);

    font-size:
        22px;
}


.hero-description {

    max-width:
        720px;

    margin:
        0 auto 30px;

    color:
        var(--text-medium);

    font-size:
        19px;

    line-height:
        2;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.hero-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-width: 215px;

    padding:
        13px 28px;

    color:
        var(--white);

    background:
        var(--brown);

    border:
        2px solid var(--gold);

    border-radius:
        11px;

    text-decoration:
        none;

    font-size:
        18px;

    font-weight:
        bold;

    box-shadow:
        0 8px 20px rgba(59, 33, 16, 0.20);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.hero-button:hover {

    background:
        var(--brown-dark);

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px rgba(59, 33, 16, 0.27);
}


.button-icon {

    font-size:
        22px;

    color:
        var(--gold-light);
}


/* =========================================================
   SECTION CONTAINER
   ========================================================= */

.section-container {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    padding:
        0 25px;
}


/* =========================================================
   VALUES SECTION
   ========================================================= */

.values-section {

    position: relative;

    z-index: 5;

    margin-top:
        0;

    padding:
        20px 20px 70px;

    background:
        var(--cream-light);
}


.values-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap:
        25px;

    max-width:
        1250px;

    margin:
        0 auto;
}


/* =========================================================
   VALUE CARDS
   ========================================================= */

.value-card {

    min-height:
        230px;

    padding:
        22px 18px;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid var(--border);

    border-radius:
        15px;

    box-shadow:
        var(--shadow);

    text-align:
        center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.value-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-hover);
}


.value-icon {

    width:
        58px;

    height:
        58px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 10px;

    border-radius:
        50%;

    color:
        var(--white);

    background:
        var(--brown);

    font-size:
        29px;

    box-shadow:
        0 4px 12px rgba(59, 33, 16, 0.18);
}


.value-card h3 {

    color:
        var(--brown-dark);

    font-size:
        22px;

    margin-bottom:
        5px;
}


.card-line {

    width:
        42px;

    height:
        3px;

    margin:
        0 auto 12px;

    background:
        var(--gold);
}


.value-card p {

    color:
        var(--text-medium);

    font-size:
        15px;

    line-height:
        1.8;
}


/* =========================================================
   GENERAL CONTENT SECTIONS
   ========================================================= */

.content-section {

    padding:
        90px 0;

    text-align:
        center;
}


.content-section:nth-of-type(even) {

    background:
        #fffdf9;
}


.section-label {

    display:
        inline-block;

    margin-bottom:
        7px;

    color:
        var(--gold-dark);

    font-size:
        15px;

    font-weight:
        bold;
}


.content-section h2,
.information-box h2 {

    color:
        var(--brown-dark);

    font-size:
        39px;

    line-height:
        1.4;

    margin-bottom:
        10px;
}


.title-decoration {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    margin:
        0 auto 25px;
}


.title-decoration span {

    width:
        90px;

    height:
        2px;

    background:
        var(--gold);
}


.title-decoration b {

    color:
        var(--gold);

    font-size:
        18px;
}


.section-intro {

    max-width:
        820px;

    margin:
        0 auto 45px;

    color:
        var(--text-medium);

    font-size:
        18px;

    line-height:
        2;
}


.placeholder-text {

    color:
        #8a7b6e;

    font-size:
        16px;

    font-style:
        italic;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {

    background:
        var(--cream);
}


.services-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        22px;

    max-width:
        1100px;

    margin:
        0 auto;
}


.service-card {

    min-height:
        230px;

    padding:
        28px 20px;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-top:
        4px solid var(--gold);

    border-radius:
        14px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.service-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow-hover);
}


.service-icon {

    font-size:
        38px;

    margin-bottom:
        10px;
}


.service-card h3 {

    color:
        var(--brown);

    font-size:
        21px;

    margin-bottom:
        10px;
}


.service-card p {

    color:
        var(--text-medium);

    font-size:
        15px;

    line-height:
        1.8;
}


/* =========================================================
   ACTIVITIES
   ========================================================= */

.activities-section {

    background:
        #fffdf9;
}


.activities-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        25px;

    max-width:
        1050px;

    margin:
        0 auto 45px;
}


.activity-card {

    padding:
        30px 22px;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-right:
        4px solid var(--gold);

    border-radius:
        14px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.activity-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow-hover);
}


.activity-icon {

    font-size:
        40px;

    margin-bottom:
        10px;
}


.activity-card h3 {

    color:
        var(--brown);

    font-size:
        21px;

    margin-bottom:
        10px;
}


.activity-card p {

    color:
        var(--text-medium);

    font-size:
        15px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-container {

    max-width:
        1100px;

    margin:
        0 auto;
}


.activity-gallery {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        20px;

    width:
        100%;
}


.gallery-item {

    position:
        relative;

    overflow:
        hidden;

    aspect-ratio:
        4 / 3;

    background:
        var(--cream);

    border:
        1px solid var(--border);

    border-radius:
        14px;

    box-shadow:
        var(--shadow);

    cursor:
        pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.gallery-item:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-hover);
}


.gallery-item img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 0.35s ease;
}


.gallery-item:hover img {

    transform:
        scale(1.05);
}


/* =========================================================
   LECTURES
   ========================================================= */

.lectures-section {

    background:
        var(--cream);
}


.lectures-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        28px;

    max-width:
        900px;

    margin:
        0 auto;
}
.lecture-video-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 900px;
    justify-self: center;
}

.lecture-card {

    position:
        relative;

    padding:
        38px 28px;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-top:
        5px solid var(--gold);

    border-radius:
        15px;

    box-shadow:
        var(--shadow);
}


.lecture-icon {

    width:
        65px;

    height:
        65px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 15px;

    border-radius:
        50%;

    color:
        var(--white);

    background:
        var(--brown);

    font-size:
        25px;
}


.lecture-card h3 {

    color:
        var(--brown);

    font-size:
        25px;

    margin-bottom:
        10px;
}


.lecture-card p {

    color:
        var(--text-medium);

    font-size:
        16px;

    margin-bottom:
        20px;
}


.coming-soon {

    display:
        inline-block;

    padding:
        5px 16px;

    color:
        var(--brown);

    background:
        var(--gold-light);

    border-radius:
        20px;

    font-size:
        14px;

    font-weight:
        bold;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.information-section {

    padding:
        90px 20px;

    background:
        linear-gradient(
            135deg,
            var(--brown-dark),
            var(--brown)
        );

    text-align:
        center;
}


.information-box {

    max-width:
        850px;

    margin:
        0 auto;

    padding:
        60px 30px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(232, 196, 107, 0.35);

    border-radius:
        18px;
}


.information-box .section-label {

    color:
        var(--gold-light);
}


.information-box h2 {

    color:
        var(--white);
}


.information-box .title-decoration span {

    background:
        var(--gold-light);
}


.information-box .title-decoration b {

    color:
        var(--gold-light);
}


.information-box p {

    color:
        #eee4d7;

    font-size:
        18px;

    margin-bottom:
        30px;
}


.primary-button {

    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;



    display:
        inline-block;

    padding:
        13px 30px;

    color:
        var(--brown-dark);

    background:
        var(--gold-light);

    border:
        2px solid var(--gold);

    border-radius:
        9px;

    text-decoration:
        none;

    font-weight:
        bold;

    font-size:
        17px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.primary-button:hover {

    background:
        var(--white);

    transform:
        translateY(-3px);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {

    background:
        var(--cream-light);
}


.contact-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        20px;

    max-width:
        1100px;

    margin:
        0 auto;
}


.contact-card {

    padding:
        30px 20px;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-bottom:
        4px solid var(--gold);

    border-radius:
        14px;

    box-shadow:
        var(--shadow);
}


.contact-icon {

    font-size:
        38px;

    color:
        var(--brown);

    margin-bottom:
        10px;
}


.contact-card h3 {

    color:
        var(--brown);

    font-size:
        21px;

    margin-bottom:
        10px;
}


.contact-card p {

    color:
        var(--text-medium);

    font-size:
        15px;
}
.contact-link {
    display: inline-block;
    color: var(--brown);
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    background:
        var(--brown-dark);

    color:
        var(--white);

    padding:
        55px 25px 20px;
}


.footer-content {

    max-width:
        1100px;

    margin:
        0 auto;

    display:
        grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap:
        50px;

    text-align:
        center;
}


.footer-column {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;
}


.footer-logo {

    width:
        280px;

    max-width:
        90%;

    height:
        auto;

    margin-bottom:
        15px;
}


.footer-column h3 {

    color:
        var(--gold-light);

    font-size:
        21px;

    margin-bottom:
        15px;
}


.footer-column p {

    max-width:
        320px;

    color:
        #e4d9cd;

    font-size:
        15px;
}


.footer-column a {

    color:
        #e4d9cd;

    text-decoration:
        none;

    font-size:
        15px;

    margin:
        3px 0;

    transition:
        color 0.2s ease;
}


.footer-column a:hover {

    color:
        var(--gold-light);
}


.footer-bottom {

    max-width:
        1100px;

    margin:
        40px auto 0;

    padding-top:
        20px;

    border-top:
        1px solid rgba(255,255,255,0.18);

    text-align:
        center;
}


.footer-bottom p {

    color:
        #cfc1b3;

    font-size:
        14px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .academy-logo {

        width:
            450px;
    }


    .nav-link {

        padding:
            0 15px;

        font-size:
            15px;
    }


    .values-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .services-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .contact-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* HEADER */

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .logo-link {
        padding: 10px 10px 5px;
    }

    .academy-logo {
        width: 390px;
        max-width: 96%;
        height: auto;
    }


    /* MOBILE MENU */

    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        min-height: 48px;
        padding: 8px 15px;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

    .nav-link::after {
        right: 35%;
        left: 35%;
    }


    /* HERO */

    .hero-section {
        min-height: 540px;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        padding: 55px 20px;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .hero-small-title {
        font-size: 16px;
        line-height: 1.8;
        color: var(--brown-medium);
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.5;
        color: var(--brown-dark);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.9;
        color: var(--text-medium);
    }

    .decoration-line {
        width: 75px;
        max-width: 25vw;
    }

    .hero-button {
        max-width: 260px;
    }


    /* VALUES */

    .values-section {
        padding: 15px 15px 55px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .value-card {
        min-height: auto;
        padding: 25px 20px;
    }


    /* GENERAL */

    .content-section {
        padding: 65px 0;
    }

    .section-container {
        padding: 0 18px;
    }

    .content-section h2,
    .information-box h2 {
        font-size: 31px;
        line-height: 1.5;
    }

    .section-intro {
        font-size: 17px;
        line-height: 1.9;
    }

    .title-decoration span {
        width: 60px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    /* ACTIVITIES */

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    /* LECTURES */

    .lectures-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* INFORMATION */

    .information-section {
        padding: 65px 18px;
    }

    .information-box {
        padding: 45px 20px;
    }
    .information-box img,
.information-box video {
    width: 100%;
    max-width: 100%;
    height: auto;
}


    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    /* FOOTER */

    footer {
        padding: 45px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-logo {
        width: 300px;
        max-width: 100%;
        height: auto;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .academy-logo {
        width: 340px;
        max-width: 94%;
        height: auto;
    }


    /* HERO */

    .hero-section {
        min-height: 540px;
    }

    .hero-content {
        padding: 45px 18px;
    }

    .hero-small-title {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.5;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.9;
    }

    .hero-button {
        width: 100%;
        max-width: 260px;
    }


    /* GENERAL */

    .content-section h2,
    .information-box h2 {
        font-size: 28px;
        line-height: 1.5;
    }

}
/* =========================================================
   ANNOUNCEMENT PHOTO 2 - DESKTOP SIZE
   ========================================================= */

@media (min-width: 769px) {

    img[src*="annonce-2.jpeg"] {
        display: block;
        width: 100%;
        max-width: 900px;
        height: auto;
        margin: 25px auto;
    }

}
/* Size of the lecture video */
.lectures-section video {
    display: block;
    width: 85%;
    max-width: 700px;
    height: auto;
    margin: 20px auto;
}
.identity-text {
    text-align: center;
    margin-top: 25px;
}

.identity-text strong {
    display: block;
    margin-bottom: 10px;
}

.identity-values {
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.identity-text .dot {
    font-size: 1.3em;
    font-weight: bold;
}
.about-details .section-intro {
    text-align: center;
    font-weight: bold;
}

.about-details p {
    text-align: right;
    font-weight: bold;
}
/* =========================================================
   PREMIUM DESIGN SYSTEM — STEP 1
   Global visual refinement + homepage hero
   ========================================================= */

/* ---------- Global foundation ---------- */

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.section-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.content-section,
.values-section,
.information-section {
    position: relative;
}

.content-section {
    padding-top: 95px;
    padding-bottom: 95px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.35;
}


/* ---------- Header refinement ---------- */

.site-header {
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    padding-inline: 24px;
}

.academy-logo {
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.logo-link:hover .academy-logo {
    transform: scale(1.03);
}

.nav-link {
    position: relative;
    transition:
        color 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -7px;
    width: 0;
    height: 2px;
    transform: translateX(50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 65%;
}


/* ---------- Hero ---------- */

.hero-section {
    position: relative;
    min-height: min(760px, calc(100vh - 82px));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    transition: opacity 0.4s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100% - 40px));
    margin-inline: auto;
    padding: 110px 20px 100px;
    text-align: center;

    animation: heroContentReveal 1s ease both;
}

.hero-small-title {
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: heroItemReveal 0.8s ease 0.1s both;
}

.hero-content h1 {
    max-width: 850px;
    margin-inline: auto;
    margin-bottom: 28px;

    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;

    animation: heroItemReveal 0.8s ease 0.2s both;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 28px;

    animation: heroItemReveal 0.8s ease 0.3s both;
}

.hero-decoration .decoration-line {
    width: clamp(45px, 8vw, 90px);
    height: 1px;
    opacity: 0.7;
}

.hero-decoration .decoration-star {
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-1px);
}

.hero-description {
    max-width: 720px;
    margin-inline: auto;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 2;
    animation: heroItemReveal 0.8s ease 0.4s both;
}


/* ---------- Buttons ---------- */

.primary-button,
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 50px;
    padding: 12px 26px;

    border-radius: 999px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.primary-button:hover,
.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.primary-button:active,
.hero-button:active {
    transform: translateY(-1px);
}


/* ---------- Premium card behavior ---------- */

.value-card,
.service-card,
.activity-card,
.lecture-card,
.contact-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.value-card:hover,
.service-card:hover,
.activity-card:hover,
.lecture-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
}

.value-icon,
.service-icon,
.activity-icon,
.lecture-icon,
.contact-icon {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.value-card:hover .value-icon,
.service-card:hover .service-icon,
.activity-card:hover .activity-icon,
.lecture-card:hover .lecture-icon,
.contact-card:hover .contact-icon {
    transform: translateY(-3px) scale(1.04);
}


/* ---------- Images ---------- */

img {
    max-width: 100%;
}

.activity-gallery img,
.announcements-media img {
    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.activity-gallery img:hover,
.announcements-media img:hover {
    transform: scale(1.02);
}


/* ---------- Section rhythm ---------- */

.section-label {
    letter-spacing: 0.04em;
}

.title-decoration {
    margin-top: 18px;
    margin-bottom: 28px;
}

.section-intro {
    max-width: 760px;
    margin-inline: auto;
    line-height: 2;
}


/* ---------- Accessibility ---------- */

.nav-link:focus-visible,
.primary-button:focus-visible,
.hero-button:focus-visible,
.contact-link:focus-visible,
.mobile-menu-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* ---------- Subtle animations ---------- */

@keyframes heroContentReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroItemReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .section-container {
        width: min(100% - 28px, 680px);
    }

    .content-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .header-inner {
        min-height: 72px;
        padding-inline: 16px;
    }

    .hero-section {
        min-height: calc(100vh - 72px);
    }

    .hero-content {
        width: calc(100% - 28px);
        padding: 80px 10px 75px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3.2rem);
        line-height: 1.3;
        margin-bottom: 22px;
    }

    .hero-small-title {
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.9;
    }

    .hero-decoration {
        gap: 10px;
        margin-bottom: 22px;
    }

    .hero-decoration .decoration-line {
        width: 38px;
    }

    .primary-button,
    .hero-button {
        min-height: 48px;
        padding: 11px 22px;
    }
}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =================================================
   ARTICLES - PREMIUM DESIGN
   ================================================= */

.articles-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 45px;
    direction: rtl;
}

.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 28px 26px 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(128, 92, 55, 0.14);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(70, 45, 30, 0.08);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #6d3f72,
        #9a7048,
        #c9a66b
    );
}

.article-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(70, 45, 30, 0.14);
    border-color: rgba(154, 112, 72, 0.28);
}


/* TOP */

.article-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 30px;
    background: rgba(109, 63, 114, 0.08);
    color: #6d3f72;
    font-size: 13px;
    font-weight: 700;
}

.article-number {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b08a5b;
}


/* ICON */

.article-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 17px;
    background: linear-gradient(
        135deg,
        rgba(109, 63, 114, 0.10),
        rgba(201, 166, 107, 0.16)
    );
    font-size: 27px;
}


/* TITLE */

.article-card h3 {
    margin: 0 0 14px;
    color: #3f2b25;
    font-size: 21px;
    line-height: 1.65;
    font-weight: 800;
}


/* EXCERPT */

.article-excerpt {
    margin: 0;
    color: #6e625d;
    font-size: 15px;
    line-height: 2;
    flex: 1;
}


/* READ MORE */

.article-read-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: #6d3f72;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.article-read-more:hover {
    background: #59325e;
    transform: translateX(-3px);
    box-shadow: 0 8px 20px rgba(109, 63, 114, 0.22);
}

.article-read-more span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.article-read-more:hover span {
    transform: translateX(-4px);
}


/* =================================================
   ARTICLE MODAL
   ================================================= */

.article-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.article-modal.active {
    display: flex;
}

.article-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 25, 22, 0.72);
    backdrop-filter: blur(6px);
}

.article-modal-content {
    position: relative;
    z-index: 2;
    width: min(850px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 45px 45px 40px;
    background: #fffdf9;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    direction: rtl;
    animation: articleModalIn 0.3s ease;
}

@keyframes articleModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* CLOSE BUTTON */

.article-modal-close {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(109, 63, 114, 0.08);
    color: #6d3f72;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.article-modal-close:hover {
    background: #6d3f72;
    color: #ffffff;
    transform: rotate(90deg);
}


/* MODAL CATEGORY */

.article-modal-category {
    display: inline-block;
    margin-bottom: 15px;
    padding: 7px 14px;
    border-radius: 30px;
    background: rgba(109, 63, 114, 0.09);
    color: #6d3f72;
    font-size: 13px;
    font-weight: 700;
}


/* MODAL TITLE */

.article-modal-content h2 {
    margin: 0 0 18px;
    color: #3f2b25;
    font-size: 30px;
    line-height: 1.6;
    font-weight: 800;
}


/* AUTHOR */

.article-modal-author {
    margin-bottom: 25px;
    color: #9a7048;
    font-size: 14px;
    font-weight: 700;
}


/* ARTICLE TEXT */

.article-modal-text {
    color: #514742;
    font-size: 17px;
    line-height: 2.25;
    white-space: pre-line;
}

.article-modal-text p {
    margin: 0 0 18px;
}


/* =================================================
   RESPONSIVE
   ================================================= */

@media (max-width: 1000px) {

    .articles-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .articles-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 30px;
    }

    .article-card {
        min-height: auto;
        padding: 24px 21px 22px;
    }

    .article-card h3 {
        font-size: 19px;
    }

    .article-excerpt {
        font-size: 14px;
    }

    .article-modal {
        padding: 12px;
    }

    .article-modal-content {
        max-height: 92vh;
        padding: 40px 23px 28px;
        border-radius: 20px;
    }

    .article-modal-content h2 {
        font-size: 23px;
    }

    .article-modal-text {
        font-size: 16px;
        line-height: 2.1;
    }

}
