/* ===== RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: white;
    color: #31b2cc;
    overflow-x: hidden;
    padding-top: 104px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    font-weight: 800;
    color: #31b2cc;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== HEADER SECTION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    /* must be > overlay (1050) so the drawer inside stays clickable */
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo img {
    height: 70px;
    width: auto;
    display: block;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus {
    color: #31b2cc;
}

.nav a.current-page {
    color: #31b2cc;
}

.nav a.current-page::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #31b2cc;
}

/* ===== HAMBURGER BUTTON ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
}

.nav-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px;
    transition: transform 0.35s ease, opacity 0.35s ease, background 0.3s ease;
}

/* Animated X when open */
.nav-toggle.is-open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== RIGHT-SIDE SLIDING DRAWER (mobile) ===== */
@media (max-width: 880px) {
    .nav-toggle {
        display: flex;
    }

    /* The nav becomes a full-height drawer sliding in from the right */
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        /* starts off-screen */
        width: 260px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        z-index: 1060;
        /* ABOVE the overlay (1050) */
        padding-top: 90px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        pointer-events: auto;
    }

    /* When JS adds .nav-open the drawer slides in */
    .main-nav.nav-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 0 2rem 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .main-nav ul li:first-child {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        color: #1a1a1a;
        font-weight: 600;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .main-nav a:hover,
    .main-nav a:focus {
        background: #f0fafd;
        color: #31b2cc;
    }
}

/* ===== OVERLAY behind the drawer ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    /* below drawer (1060) but above page */
    opacity: 0;
    transition: opacity 0.35s ease;
    /* NO backdrop-filter – it would blur the drawer too */
}

.nav-overlay.overlay-active {
    display: block;
    opacity: 1;
}


/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: #31b2cc;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TOP IMAGES SECTION ===== */
.top-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.4;
    width: 90%;
}

.image-row {
    width: 100%;
    overflow: hidden;
}

.track {
    display: flex;
    width: max-content;
}

.images {
    display: flex;
    gap: 0;
}

.images img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(70%);
    border-radius: 0;
}

/* Animations for image rows */
.left .track {
    animation: scroll-left 30s linear infinite;
}

.right .track {
    animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===== ADS SECTION (ACHIEVEMENTS) ===== */
.ads-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.ads-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #31b2cc, #02b6ed, transparent);
}

.ads-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #31b2cc, #02b6ed, transparent);
}

.ads-section .section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.8px;
}

.ads-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #31b2cc, #02b6ed, #31b2cc);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(49, 178, 204, 0.3);
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1300px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    perspective: 1000px;
}

.ad-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(49, 178, 204, 0.08);
}

.ad-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(49, 178, 204, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.ad-card:hover::before {
    opacity: 1;
}

.ad-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(49, 178, 204, 0.2),
        0 0 0 1px rgba(49, 178, 204, 0.15);
}

.ad-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #31b2cc, #02b6ed, #31b2cc);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 2;
}

.ad-card:hover::after {
    transform: scaleX(1);
}

.ad-main-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1),
        filter 0.6s ease;
    position: relative;
    z-index: 1;
}

.ad-card:hover .ad-main-image {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(1.15) contrast(1.05);
}

.ad-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #31b2cc;
    letter-spacing: -0.4px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.ad-card p {
    margin: 0.5rem 1.5rem 1.5rem;
    font-size: 1rem;
    color: #555;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    line-height: 1.6;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    padding: 4rem 2rem;
    background: #f9fafc;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

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

.comment-card {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateX(0);
    transition: transform 1.5s ease, opacity 1.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.comment-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.comment-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.from-left {
    transform: translateX(-100vw);
}

.from-right {
    transform: translateX(100vw);
}

/* ===== TEAM SECTION ===== */
.team-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.team-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #31b2cc;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.5px;
}

.team-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #31b2cc, #02b6ed);
    border-radius: 2px;
}

.team-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.team-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    scrollbar-width: none;
    flex: 1;
}

.team-track::-webkit-scrollbar {
    display: none;
}

.team-member {
    flex: 0 0 auto;
}

.member-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.member-card {
    width: 280px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(49, 178, 204, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(49, 178, 204, 0.15),
        0 0 0 1px rgba(49, 178, 204, 0.1);
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 178, 204, 0) 0%, rgba(49, 178, 204, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.member-card img {
    width: 100%;
    height: 300px;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    display: block;
}

.member-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.member-text {
    padding: 1.5rem 1rem;
    background: white;
    position: relative;
    z-index: 2;
}

.member-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.member-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #31b2cc;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.member-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #31b2cc, #02b6ed, #31b2cc);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.member-card:hover::after {
    transform: scaleX(1);
}

.team-arrow {
    background: linear-gradient(135deg, #31b2cc, #02b6ed);
    color: white;
    border: none;
    font-size: 1.8rem;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(49, 178, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    min-height: 45px;
}

.team-arrow:hover {
    background: linear-gradient(135deg, #02b6ed, #31b2cc);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 15px 35px rgba(49, 178, 204, 0.3);
}

.team-arrow:active {
    transform: scale(0.95);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .team-section {
        padding: 2rem 1rem;
    }

    .team-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .team-container {
        gap: 0.8rem;
    }

    .member-card {
        width: 200px;
    }

    .member-card img {
        height: 220px;
    }

    .member-text {
        padding: 1rem 0.8rem;
    }

    .member-text h3 {
        font-size: 0.95rem;
    }

    .member-text p {
        font-size: 0.75rem;
    }

    .team-arrow {
        font-size: 1.4rem;
        padding: 0.6rem;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .team-container {
        gap: 0.5rem;
    }

    .member-card {
        width: 150px;
    }

    .member-card img {
        height: 160px;
    }

    .team-arrow {
        font-size: 1.2rem;
        padding: 0.5rem;
        min-width: 35px;
        min-height: 35px;
    }
}

/* ===== ASSOCIATION SECTION ===== */
.association-section {
    padding: 1.5rem 1rem;
    background: linear-gradient(to bottom, #ffffff, #ffffff);
    border-radius: 20px;
    max-width: 1100px;
    margin: 2rem auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.question-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem 0.8rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
    overflow: hidden;
    position: relative;
}

.question-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    background: #f9faff;
}

.question {
    font-weight: 700;
    font-size: 1.05rem;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cairo', sans-serif;
}

.arrow {
    color: rgb(2, 182, 237);
    font-size: 1.1rem;
    transition: transform 0.35s ease;
}

.question-card.active .arrow {
    transform: rotate(180deg);
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 0.5rem;
    color: #333;
}

.question-card.active .answer {
    max-height: 450px;
    margin-top: 0.5rem;
}

.section-spacer {
    height: 30px;
}

.question::first-letter {
    color: #31b2cc;
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    background: #31b2cc;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #02b6ed;
    transform: scale(1.05);
}

/* ===== BOTTOM SLIDER (DISCOUNTS) ===== */
.bottom-slider {
    padding: 2rem 0;
    background: white;
    overflow: hidden;
    width: 100%;
}

.slider-container {
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 10px;
    width: max-content;
}

.slider-item {
    min-width: 100px;
    height: 80px;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #31b2cc;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.slider-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.slider-item img {
    display: block;
    cursor: pointer;
}

/* ===== DISCOUNT POPUP ===== */
.discount-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #31b2cc;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
    width: 250px;
    max-width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.discount-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.discount-popup img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.discount-popup .ticket-box {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    font-weight: bold;
    direction: rtl;
    unicode-bidi: plaintext;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    /* ===== RESPONSIVE ACHIEVEMENTS SECTION ===== */
    @media (max-width: 768px) {
        .ads-section {
            padding: 4rem 0;
        }

        .ads-section .section-title {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .ads-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            padding: 0 1.5rem;
        }

        .ad-main-image {
            height: 220px;
        }

        .ad-card h3 {
            font-size: 1.2rem;
            margin: 1.2rem 1.2rem 0.4rem;
        }

        .ad-card p {
            font-size: 0.95rem;
            margin: 0.4rem 1.2rem 1.2rem;
        }

        .ad-card:hover {
            transform: translateY(-15px) rotateX(3deg);
        }
    }

    @media (max-width: 480px) {
        .ads-section {
            padding: 2.5rem 0;
        }

        .ads-section .section-title {
            font-size: 1.6rem;
            margin-bottom: 0.5rem;
        }

        .ads-section .section-title::after {
            width: 80px;
            height: 3px;
            bottom: -15px;
        }

        .ads-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            padding: 0 1rem;
        }

        .ad-main-image {
            height: 200px;
            border-radius: 16px 16px 0 0;
        }

        .ad-card {
            border-radius: 16px;
        }

        .ad-card h3 {
            font-size: 1.1rem;
            margin: 1rem 1rem 0.3rem;
            padding: 0;
        }

        .ad-card p {
            font-size: 0.9rem;
            margin: 0.3rem 1rem 1rem;
            padding: 0;
        }

        .ad-card:hover {
            transform: translateY(-12px) rotateX(2deg);
        }
    }

    .team-arrow {
        margin: 0 1rem;
        padding: 0 0.5rem;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .question-card {
        padding: 0.8rem 0.6rem;
    }

    .questions-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .member-card {
        width: 200px;
    }

    .member-card img {
        height: 200px;
    }
}

/* ===== FOOTER SECTION ===== */
.site-footer {
    background: #121f3c;
    color: #e5e7eb;
    margin-top: auto;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
}

.footer-brand .logo img {
    height: 100px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 1.1rem;
}

.footer-brand .footer-copyright {
    margin-top: 8px;
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    padding-top: 25px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 25px;
}

.footer-meta .meta-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    font-size: 1rem;
    flex-wrap: wrap;
}

.footer-meta .meta-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta .meta-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-meta p {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.95rem;
}

.footer-meta a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 880px) {
    .site-footer .container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-meta {
        text-align: left;
        align-items: flex-start;
    }

    .footer-meta .meta-links {
        justify-content: flex-start;
    }

    .footer-nav ul {
        flex-wrap: wrap;
    }
}

/* =========================================
   1. حركة الـ Scroll Reveal
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    /* يبدأ من الأسفل قليلاً */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* =========================================
   RESPONSIVE DESIGN - ALL BREAKPOINTS
   ========================================= */

/* ── Tablet (≤1024px) ─────────────────── */
@media (max-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ── Mobile (≤768px) ──────────────────── */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    /* Scrolling image strip */
    .images img {
        width: 130px;
        height: 95px;
    }

    /* Achievements */
    .ads-section {
        padding: 3rem 0;
    }

    .ads-section .section-title {
        font-size: 1.8rem;
    }

    .ads-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .ad-main-image {
        height: 200px;
    }

    /* Comments */
    .comments-section {
        padding: 2.5rem 1rem;
    }

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

    /* Team */
    .team-track {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
    }

    .team-member {
        min-width: 180px;
    }

    /* FAQ */
    .questions-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem !important;
        text-align: center;
    }

    /* Footer */
    .site-footer .container {
        padding: 40px 20px;
    }
}

/* ── Small Mobile (≤480px) ────────────── */
@media (max-width: 480px) {
    body {
        padding-top: 72px;
    }

    .site-header .logo img {
        height: 52px;
    }

    .images img {
        width: 100px;
        height: 75px;
    }

    /* Slow down the scrolling strip to save battery */
    .track {
        animation-duration: 20s !important;
    }

    .ads-grid {
        padding: 0 10px;
        gap: 1rem;
    }

    .ad-main-image {
        height: 180px;
    }

    .member-card {
        width: 150px;
    }

    .member-card img {
        height: 160px;
    }

    .association-section {
        margin: 1rem 10px;
        padding: 1rem 0.75rem;
    }

    .bottom-slider {
        padding: 1rem 0;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-meta {
        text-align: center;
        align-items: center;
    }

    .footer-meta .meta-links {
        justify-content: center;
    }

    .footer-brand {
        align-items: center;
    }
}
/* ===== HEADER BANNER===== */
.header-banner{
  background-image: url("components/AdBoard10.png"); /* مسار الصورة */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  width: 100%;
  height: 500px;
  min-height: 500px;

  display:flex;
    justify-content: center; 
   

}

.banner-text{
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.banner-text h1{
  font-size: 48px;
  margin-bottom: 10px;
}

.banner-text p{
  font-size: 18px;
  color: #555;
}
/* ===== BANNER MOBILE RESPONSIVE ===== */
@media (max-width:768px){

  .header-banner{
     height: auto;
     min-height: 0;
     aspect-ratio: 16/9
  }

  .banner-text h1{
    font-size: 32px;
  }

  .banner-text p{
    font-size: 16px;
  }

}