@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
    --primary-blue: #102548;
    --secondary-blue: #183563;
    --accent-yellow: #B49651;
    --accent-red: #B29450;
    --dark-blue: #0a1730;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(16, 37, 72, 0.08);
    --shadow-md: 0 8px 24px rgba(16, 37, 72, 0.12);
    --shadow-lg: 0 16px 40px rgba(44, 62, 125, 0.16);
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    padding:unset !important;
}

::selection {
    background: #102548;
    color: var(--white);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ================= HEADER / NAVBAR ================= */
.main-header {
    background-color: transparent;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, position 0s;
}

    .main-header.scrolled, .main-header.menu-open {
        position: fixed;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .main-header .navbar {
        padding: 1rem 0;
        background: #ffffffff;
    }

    .main-header .navbar-brand {
        display: flex;
        align-items: center;
    }

        .main-header .navbar-brand img {
            height: 80px;
        }

        .main-header .navbar-brand .logo-scrolled {
            display: none;
        }

    .main-header.scrolled .navbar-brand .logo-default,
    .main-header.menu-open .navbar-brand .logo-default {
        display: none;
    }

    .main-header.scrolled .navbar-brand .logo-scrolled,
    .main-header.menu-open .navbar-brand .logo-scrolled {
        display: inline-block;
    }

    .main-header .navbar-toggler {
        border: none;
        color: white;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        position: relative;
        cursor: pointer;
    }

        .main-header .navbar-toggler span {
            display: block;
            width: 25px;
            height: 2px;
            background: black;
            margin: 5px 0;
            transition: all 0.3s ease;
        }

    .main-header .nav-link {
        color: #333 !important;
        padding: 0.5rem 1rem;
        font-size: 15.5px;
        font-weight: 600;
        margin: 0 0.3rem;
    }

        .main-header .nav-link:hover {
            color: #102548 !important;
        }

        .main-header .nav-link.dropdown-toggle::after {
            margin-left: 0.3rem;
            font-size: 0.7rem;
        }

    .main-header .dropdown-menu {
        background-color: white;
        border: none;
        border-radius: 4px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

        .main-header .dropdown-menu .dropdown-item {
            color: #333;
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
        }

            .main-header .dropdown-menu .dropdown-item:hover {
                background-color: rgba(44, 62, 125, 0.05);
                color: #102548;
            }

@media (min-width: 992px) {
    .main-header .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.main-header .btn-login {
    background-color: transparent;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.4rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .main-header .btn-login i {
        display: none;
    }

    .main-header .btn-login:hover {
        background-color: rgba(44, 62, 125, 0.05);
        color: #102548;
        border-color: #102548;
    }

.main-header .nav-icons {
    display: inline-flex !important;
    align-items: center;
}

    .main-header .nav-icons a {
        color: #333;
        margin-left: 0.5rem;
    }

        .main-header .nav-icons a:hover {
            color: #102548;
        }

.main-header .fa-globe, .main-header .fa-user {
    font-size: 19px;
/*    padding: 5px !important;
*/}

/* ================= HOME PAGE SHARED ================= */
.home-page .section-header {
    margin-bottom: 2.5rem;
}

.home-page .section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
}

.home-page .section-title {
    color: #102548;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.home-page .section-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), #102548);
    border-radius: 2px;
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf4 0%, #d4dae8 100%);
    border: 2px dashed rgba(44, 62, 125, 0.25);
    color: rgba(44, 62, 125, 0.4);
    border-radius: var(--radius-lg);
}

.img-placeholder-sm {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

/* ================= HERO SECTION (ZA Style + API Slider) ================= */
.home-page .hero-section {
    position: relative;
    height: 100vh;
    min-height: clamp(500px, 85vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(46, 68, 112, 0.75) 0%, rgba(26, 40, 69, 0.8) 100%);
    padding: 0;
    color: var(--white);
    text-align: center;
}

.home-page .hero-swiper,
.home-page .hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-page .hero-swiper .swiper-wrapper {
    height: 100%;
}

.home-page .hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-page .hero-slide-bg,
.inner-site .hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.55;
    z-index: 0;
}

.home-page .hero-slide-overlay,
.inner-site .hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(29, 57, 136, 0.52) 20%, transparent 50%);
    z-index: 1;
}

.home-page .hero-slide-content,
.inner-site .hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 120px 1rem 80px;
}

.home-page .hero-slide-text,
.inner-site .hero-slide-text {
    animation: heroTextFade 0.6s ease-out;
}

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

.home-page .geometric-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.home-page .hero-section .shape {
    position: absolute;
    opacity: 0.1;
    animation: heroFloat 20s infinite ease-in-out;
}

.home-page .hero-section .shape-1 {
    width: 300px;
    height: 300px;
    border: 3px solid #D4AF37;
    border-radius: 50%;
    top: 10%;
    left: 5%;
}

.home-page .hero-section .shape-2 {
    width: 200px;
    height: 200px;
    border: 3px solid #D4AF37;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(45deg);
}

.home-page .hero-section .shape-3 {
    width: 150px;
    height: 150px;
    border: 3px solid #D4AF37;
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.home-page .hero-section .shape-4 {
    width: 250px;
    height: 250px;
    border: 3px solid #D4AF37;
    top: 30%;
    right: 20%;
    animation-delay: 3s;
    transform: rotate(30deg);
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.home-page .hero-section .hero-title {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: var(--white);
    text-align:start;
}

.home-page .hero-section .hero-title-link,
.home-page .hero-section .hero-title-link:hover {
    color: inherit;
    text-decoration: none;
}

.home-page .hero-section .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.home-page .hero-inner {
    position: relative;
    z-index: 3;
    height: 100%;
}

.home-page .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(to bottom, rgba(10, 23, 48, 0.95) 0%, rgba(10, 23, 48, 0) 30%),
        linear-gradient(to top, rgba(180, 150, 81, 0.85) 0%, rgba(180, 150, 81, 0) 40%);
    pointer-events: none;
}

.home-page .hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    z-index: 4;
    pointer-events: none;
}

.home-page .hero-section .hero-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Swiper Pagination */
.home-page .hero-swiper .hero-swiper-pagination {
    z-index: 10;
    bottom: 80px !important;
}

.home-page .hero-swiper .hero-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    opacity: 1;
    transition: all 0.3s ease;
}

.home-page .hero-swiper .hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--white);
    border-color: var(--white);
}

/* Swiper Navigation Arrows */
.home-page .hero-swiper .hero-swiper-prev,
.home-page .hero-swiper .hero-swiper-next {
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.home-page .hero-swiper .hero-swiper-prev::after,
.home-page .hero-swiper .hero-swiper-next::after {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.home-page .hero-swiper .hero-swiper-prev:hover,
.home-page .hero-swiper .hero-swiper-next:hover {
    background: rgba(255, 255, 255, 0.9);
}

.home-page .hero-swiper .hero-swiper-prev:hover::after,
.home-page .hero-swiper .hero-swiper-next:hover::after {
    color: #102548;
}

/* ================= NEWS SECTION (Home) ================= */
.news-section {
    background-image: url('../userfiles/legacy0000.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 0 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

    .news-section .news-overlay {
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.72);
        pointer-events: none;
    }

    .news-section .NewsBgRadius {
        position: relative;
        z-index: 2;
        width: 100%;
        background-color: #102548;
        border-radius: 0 0 280px 280px;
        padding: 1.5rem 1.25rem 1.75rem;
        margin-bottom: 0.5rem;
    }

    .news-section .NewsBgRadius h2,
    .home-page .core-values-section .NewsBgRadius h2 {
        text-align: center;
        margin-bottom: 0;
        font-weight: 700;
        font-size: clamp(1.35rem, 2.5vw, 1.85rem);
        color: var(--white);
    }

    .news-section > .container {
        z-index: 2;
        position: relative;
        padding-left: clamp(1rem, 5vw, 5rem);
        padding-right: clamp(1rem, 5vw, 5rem);
    }

    .news-section .news-header-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(0.95rem, 1.8vw, 1.15rem);
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.5px;
    }

    .news-section .news-cards-row {
        margin-top: 1.75rem;
    }

    .news-section .news-card {
        background: white;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
    }

        .news-section .news-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
        }

    .news-section .news-card-img-wrap {
        overflow: hidden;
        height: 210px;
        flex-shrink: 0;
        background: #e8ecf4;
    }

        .news-section .news-card-img-wrap .news-card-img,
        .news-section .news-card img {
            width: 100%;
            height: 210px;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }

        .news-section .news-card:hover .news-card-img,
        .news-section .news-card:hover img {
            transform: scale(1.04);
        }

    .news-section .news-card-body {
        padding: 1.25rem 1.5rem 1.5rem;
        color: #333;
        position: relative;
        min-height: 210px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

        .news-section .news-card-body .news-card-title,
        .news-section .news-card-body h5 {
            color: #000;
            font-weight: 700;
            margin-bottom: 0.65rem;
            font-size: 1rem;
            line-height: 1.35;
        }

        .news-section .news-card-body .news-excerpt,
        .news-section .news-card-body p.news-excerpt {
            font-size: 0.92rem;
            margin-bottom: 1rem;
            text-align: justify;
            flex-grow: 1;
            color: #333;
            line-height: 1.65;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

    .news-section .cardSmallDate {
        margin-top: auto;
        padding-top: 0.5rem;
        color: #888;
        font-weight: 400;
        text-align: left;
    }

    [dir="rtl"] .news-section .cardSmallDate {
        text-align: right;
    }

    .news-section .news-empty {
        color: var(--text-muted);
        font-size: 1.05rem;
    }

    .news-section .read-more-btn {
        background-color: var(--accent-yellow);
        color: #333;
        border: none;
        padding: 1rem 5rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: inline-block;
        margin-top: 2rem;
    }

        .news-section .read-more-btn:hover {
            background-color: #ffed4e;
            transform: scale(1.05);
            color: #333;
        }

    .news-section .btn-center {
        text-align: center;
        margin-top: 0.5rem;
    }

    .news-section .dynamic-sections {
        margin-top: 0.5rem;
    }

    .news-section .category-section {
        margin-bottom: 2rem;
    }

        .news-section .category-section:last-child {
            margin-bottom: 0;
        }

    .news-section .dynamic-category-header {
        margin: 2.5rem 0 1.5rem;
    }

.news-section .dynamic-category-title {
    color: #102548;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    margin-bottom: 0.75rem;
}

    .news-section .news-card-img-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #e8ecf4, #d4dae8);
        color: rgba(44, 62, 125, 0.35);
        font-size: 2rem;
    }

/* ================= ABOUT SECTION ================= */
.about-section {
    padding: 5rem 0;
    background-color: #fff;
}

    .about-section .about-content {
        padding-left: 2rem;
    }

        .about-section .about-content h2 {
            color: var(--text-dark);
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            position: relative;
            display: inline-block;
        }

        .about-section .about-content .highlight-text .text-highlight {
            color: #102548;
        }

        .about-section .about-content .about-red-line {
            width: 250px;
            height: 2px;
            background-color: var(--accent-yellow);
        }

        .about-section .about-content p {
            line-height: 1.8;
            font-size: 0.9rem;
        }

/* ================= FEATURES SECTION (New) ================= */
.features-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background-color: white;
}

    .features-section h3 {
        text-align: center;
        margin-bottom: 0.5rem;
        color: var(--text-dark);
        font-weight: 700;
        font-size: clamp(1.1rem, 2vw, 1.35rem);
    }

    .features-section.dynamic-sections {
        background-color: var(--light-bg);
    }

    .features-section .feature-card {
        text-align: start;
        padding: 2rem 1.75rem;
        transition: transform var(--transition), box-shadow var(--transition);
        background: var(--white);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(44, 62, 125, 0.08);
        box-shadow: var(--shadow-sm);
    }

        .features-section .feature-card.dynamic-card {
            text-align: center;
        }

        .features-section .feature-card p,
        .features-section .feature-card .description {
            text-align: justify;
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 0;
        }

        .features-section .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-md);
        }

    .features-section .feature-divider {
        width: 70px;
        opacity: 1;
        border: none;
        height: 3px;
        margin: 0 0 1.25rem;
        border-radius: 2px;
    }

    .features-section .feature-divider-red { background: var(--accent-red); }
    .features-section .feature-divider-yellow { background: var(--accent-yellow); }
    .features-section .feature-divider-blue { background: #0d6efd; }
    .features-section .feature-divider-primary {
        background: #102548;
    }

    .features-section .feature-icon {
        width: 72px;
        height: 72px;
        margin: 0 0 1.5rem;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        color: white;
        transition: transform var(--transition);
    }

    .features-section .feature-card:hover .feature-icon {
        transform: scale(1.08) rotate(-3deg);
    }

        .features-section .feature-icon.red {
            background: linear-gradient(135deg, #e74c3c, var(--accent-red));
        }

        .features-section .feature-icon.yellow {
            background: linear-gradient(135deg, #ffe033, var(--accent-yellow));
        }

        .features-section .feature-icon.blue {
            background: linear-gradient(135deg, #3d8bfd, #0d6efd);
        }

    .features-section .feature-card h4,
    .features-section .feature-card .title {
        color: #102548;
        font-weight: 600;
        margin-bottom: 0.75rem;
        font-size: 1.15rem;
    }

    .features-section .dynamic-post-img {
        max-height: 80px;
        object-fit: contain;
    }

/* ================= CORE VALUES SECTION ================= */
.home-page .core-values-section {
    padding: 0 0 clamp(3rem, 8vw, 5rem);
    background-color: var(--white);
}

    .home-page .core-values-section .NewsBgRadius {
        width: 100%;
        background-color: #102548;
        border-radius: 0 0 280px 280px;
        padding: 1.5rem 1.25rem 1.75rem;
        margin-bottom: clamp(2rem, 5vw, 3rem);
    }

.home-page .core-values-body {
    padding: 0 clamp(1rem, 5vw, 5rem);
}

.home-page .core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home-page .core-value-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-page .core-value-icon-circle {
    width: 110px;
    height: 110px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: border-color var(--transition);
}

    .home-page .core-value-icon-circle i {
        font-size: 2.25rem;
        color: #102548;
    }

.home-page .core-value-item:hover .core-value-icon-circle {
    border-color: #B8941F;
}

.home-page .core-value-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #102548;
    margin-bottom: 0.75rem;
}

.home-page .core-value-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #102548;
    font-weight: 400;
    max-width: 280px;
    margin: 0;
    text-align: center;
}

.home-page .core-value-desc p {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .home-page .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
}

@media (max-width: 575px) {
    .home-page .core-values-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-page .core-value-icon-circle {
        width: 95px;
        height: 95px;
    }

    .home-page .core-value-icon-circle i {
        font-size: 1.85rem;
    }
}

/* ================= PROGRAMS / NEWS SECTION ================= */
.programs-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
    background: linear-gradient(rgba(255, 255, 255, 0.685), rgba(255, 255, 255, 0.63)), url('../legacy-imgs/hero.png') center/cover;
    background-attachment: fixed;
}

    .programs-section .NewsBgRadius {
        background-color: #102548;
        border-radius: 0px 0px 280px 280px;
        padding: 20px;
        margin-bottom: 40px;
    }

        .programs-section .NewsBgRadius h2 {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 0;
            color: white;
            text-align: center;
        }

    .programs-section .nav-tabs {
        border-bottom: 2px solid rgba(255,255,255,0.2);
        margin-bottom: 2rem;
        gap: 0;
        justify-content: center;
    }

        .programs-section .nav-tabs .nav-link {
            border: none;
            color: rgba(255,255,255,0.7);
            padding: 0.75rem 1.25rem;
            font-size: 0.95rem;
            font-weight: 500;
            position: relative;
            background: transparent;
            border-radius: 0;
        }

            .programs-section .nav-tabs .nav-link.active {
                color: white;
                background: transparent;
                font-weight: 600;
            }

                .programs-section .nav-tabs .nav-link.active::after {
                    content: "";
                    position: absolute;
                    bottom: -2px;
                    left: 0;
                    right: 0;
                    height: 3px;
                    background-color: var(--accent-yellow);
                }

            .programs-section .nav-tabs .nav-link:hover:not(.active) {
                color: white;
                background: transparent;
            }

    .programs-section .program-card {
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        margin-top: 10px;
        margin-bottom: 20px;
    }

        .programs-section .program-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .programs-section .program-card .program-card-img-container {
            height: 200px;
            overflow: hidden;
        }

            .programs-section .program-card .program-card-img-container img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.4s ease;
            }

        .programs-section .program-card:hover .program-card-img-container img {
            transform: scale(1.08);
        }

        .programs-section .program-card .card-body {
            padding: 1.5rem;
        }

            .programs-section .program-card .card-body h5 {
                font-size: 1.1rem;
                font-weight: 600;
                color: black;
                margin-bottom: 0.5rem;
            }

            .programs-section .program-card .card-body p {
                font-size: 1rem;
                color: #333;
                line-height: 1.6;
                margin-bottom: 0.75rem;
                text-align: justify;
            }

            .programs-section .program-card .card-body .date {
                font-size: 0.85rem;
                color: #102548;
                font-weight: 600;
            }

    .programs-section .read-more-btn {
        background-color: var(--accent-yellow);
        color: #333;
        border: none;
        padding: 0.5rem 2rem;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s;
        display: inline-block;
        margin-top: 1rem;
        font-size: 0.85rem;
    }

        .programs-section .read-more-btn:hover {
            background-color: #ffed4e;
            transform: scale(1.05);
        }

/* ================= TESTIMONIALS SECTION ================= */
.testimonial-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, #eef1f7 100%);
}

    .testimonial-section h2 {
        text-align: center;
        margin-bottom: 0.5rem;
        color: #102548;
        font-weight: 700;
        font-size: clamp(1.5rem, 3vw, 2.25rem);
    }

    .testimonial-section .testimonial-card {
        background: white;
        padding: 2.5rem 2rem 2rem;
        box-shadow: var(--shadow-sm);
        margin-bottom: 0;
        position: relative;
        border-radius: var(--radius-lg);
        height: 100%;
        border: 1px solid rgba(44, 62, 125, 0.06);
        transition: transform var(--transition), box-shadow var(--transition);
    }

        .testimonial-section .testimonial-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-md);
        }

    .testimonial-section .testimonial-quote-icon {
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        font-size: 2rem;
        color: rgba(44, 62, 125, 0.1);
        line-height: 1;
    }

    [dir="rtl"] .testimonial-section .testimonial-quote-icon {
        right: auto;
        left: 1.5rem;
    }

    .testimonial-section .testimonial-avatar-wrap {
        margin-bottom: 1rem;
    }

.testimonial-section .testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid #102548;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(44, 62, 125, 0.2);
}

.testimonial-section .testimonial-name {
    color: #102548;
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-align: center;
    font-size: 1.05rem;
}

    .testimonial-section .testimonial-role {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .testimonial-section .testimonial-text {
        font-style: italic;
        line-height: 1.9;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.95rem;
    }

/* ================= QUICK LOOK SECTION ================= */
.quick-look-section {
    padding: 4rem 0 3rem;
    background-color: #fff;
    text-align: center;
}

    .quick-look-section .section-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .quick-look-section .section-icon i {
            font-size: 3rem;
            color: #102548;
        }

    .quick-look-section h2 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 2.5rem;
        color: var(--text-dark);
    }

    .quick-look-section .stat-item {
        padding: 1.5rem 1rem;
    }

        .quick-look-section .stat-item .stat-icon i {
            font-size: 2rem;
            color: #102548;
            opacity: 0.5;
        }

        .quick-look-section .stat-item .stat-number {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1.2;
        }

        .quick-look-section .stat-item .stat-label {
            font-size: 0.75rem;
            color: var(--accent-yellow);
            font-weight: 500;
            text-transform: capitalize;
        }

/* ================= CONNECT SECTION ================= */
.connect-section {
    padding: 3rem 0 4rem;
    background-color: var(--light-bg);
    text-align: center;
}

    .connect-section h2 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 2rem;
        color: var(--text-dark);
    }

    .connect-section .connect-tabs .nav-link {
        color: #102548;
        border: 1px solid #102548;
        transition: all 0.3s ease;
    }

        .connect-section .connect-tabs .nav-link.active {
            background-color: #102548;
            color: #fff;
        }

    .connect-section .connect-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        grid-template-rows: 1fr 1fr;
        gap: 4px;
        max-width: 100%;
    }

        .connect-section .connect-grid .connect-item {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            min-height: 140px;
        }

            .connect-section .connect-grid .connect-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.4s ease;
            }

            .connect-section .connect-grid .connect-item .overlay {
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.3);
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 1.25rem;
                text-align: center;
                transition: background 0.3s ease;
            }

                .connect-section .connect-grid .connect-item .overlay h4 {
                    color: #fff;
                    font-size: 1.25rem;
                    font-weight: 600;
                    margin-bottom: 0;
                }

            .connect-section .connect-grid .connect-item .social-content {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                height: 100%;
                padding: 1rem;
                text-align: center;
            }

                .connect-section .connect-grid .connect-item .social-content i {
                    font-size: 1.75rem;
                    color: #fff;
                    margin-bottom: 0.75rem;
                }

            .connect-section .connect-grid .connect-item.calendar {
                grid-column: 1;
                grid-row: 1 / 3;
            }

                .connect-section .connect-grid .connect-item.calendar .overlay {
                    background: linear-gradient(to bottom, rgba(44, 62, 125, 0.3), rgba(44, 62, 125, 0.75));
                }

            .connect-section .connect-grid .connect-item.facebook {
                background-color: #1877F2;
            }

            .connect-section .connect-grid .connect-item.x-twitter {
                background-color: #000000;
            }

            .connect-section .connect-grid .connect-item.instagram {
                background-color: #E1306C;
            }

            .connect-section .connect-grid .connect-item.youtube {
                background-color: #FF0000;
            }

            .connect-section .connect-grid .connect-item.gallery {
                grid-column: 4;
                grid-row: 1 / 3;
            }

                .connect-section .connect-grid .connect-item.gallery .overlay {
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
                }

            .connect-section .connect-grid .connect-item:hover img {
                transform: scale(1.08);
            }

/* ================= ACCREDITATION SECTION ================= */
.accreditation-section {
    padding: 3rem 0;
    background-color: #fff;
    text-align: center;
}

    .accreditation-section h2 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 2rem;
        color: var(--text-dark);
    }

    .accreditation-section .partner-logos {
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
        filter: none;
        gap: 1rem;
    }

        .accreditation-section .partner-logos img {
            max-height: 80px;
            max-width: 150px;
            opacity: 1;
            transition: all 0.3s ease;
        }

            .accreditation-section .partner-logos img:hover {
                filter: none;
                opacity: 1;
                transform: scale(1.05);
            }

/* ================= SAUDI SECTION (Decorative Background) ================= */
.saudi-section {
    background-image: url('~/Content/images/Home/drmustafa.affouri.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 0 0 clamp(120px, 18vw, 275px);
    margin-bottom: 0;
    overflow: hidden;
}

    .saudi-section .saudi-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%);
        pointer-events: none;
    }

/* ================= FOOTER ================= */
.main-footer {
    position: relative;
    background-color: white;
    color: #000;
    padding-top: 2.5rem;
    padding-bottom: 0;
}

    .main-footer .footer-container {
        padding-left: clamp(1rem, 5vw, 5rem);
        padding-right: clamp(1rem, 5vw, 5rem);
    }

    .main-footer .footer-top-row {
        margin-bottom: 0;
    }

    /* ---------- LEFT COLUMN ---------- */
    .main-footer .footer-left-col {
        padding-top: 1rem;
    }

    .main-footer .footer-info-group {
        margin-bottom: 1.5rem;
    }

    .main-footer .footer-info-title {
        color: #102548;
        font-weight: 700;
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

    .main-footer .footer-info-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: #D4AF37;
    }

    [dir="rtl"] .main-footer .footer-info-title::after {
        left: auto;
        right: 0;
    }

    .main-footer .footer-info-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .main-footer .footer-info-icon {
        font-size: 16px;
        width: 34px;
        height: 34px;
        min-width: 34px;
        color: #102548;
        border: 1.5px solid #102548;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .main-footer .footer-info-icon:hover {
        background: #102548;
        color: white;
    }

    .main-footer .footer-info-text {
        color: #333;
        font-size: 0.93rem;
        margin-bottom: 0;
        line-height: 1.6;
    }

    .main-footer .footer-contact-link {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
        word-break: break-word;
    }

    .main-footer .footer-contact-link:hover {
        color: #102548;
    }

    /* ---------- CENTER COLUMN ---------- */
    .main-footer .footer-center-col {
        padding-top: 1rem;
    }

    /* Quick Links */
    .main-footer .footer-quick-links {
        margin-top: 0;
    }

    .main-footer .footer-links-list {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .main-footer .footer-links-list .footer-link-item a {
        color: #333;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;
    }

    .main-footer .footer-links-list .footer-link-item a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: #D4AF37;
        transition: width 0.3s ease;
    }

    .main-footer .footer-links-list .footer-link-item a:hover {
        color: #102548;
    }

    .main-footer .footer-links-list .footer-link-item a:hover::after {
        width: 100%;
    }

    /* ---------- RIGHT COLUMN ---------- */
    .main-footer .footer-right-col {
        display: flex;
        align-items: center;
        justify-content: right;
    }

.main-footer .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.50rem;
    padding-bottom: 89px;
}

    .main-footer .footerLogo {
        background-color: white;
        border-radius: 50%;
        padding: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        transition: transform 0.3s ease;
        margin-bottom: 0.5rem;
    }


        .main-footer .footerLogo .footer-logo-img {
            max-height: 114px;
            max-width: 114px;
            object-fit: contain;
        }

    .main-footer .footer-school-name {
        color: #102548;
        font-weight: 700;
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        margin-bottom: 0.25rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    /* Social Icons */
    .main-footer .footer-social-icons {
        display: flex;
        justify-content: start;
        gap: 0.75rem;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }

    .main-footer .footer-social-icons a {
        width: 42px;
        height: 42px;
        background-color: #102548;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        text-decoration: none;
    }

    .main-footer .footer-social-icons a:hover {
        background-color: white;
        color: #102548;
        box-shadow: 0 0 0 2px #102548;
        transform: scale(1.1);
    }

    /* ---------- COPYRIGHT ---------- */
    .main-footer .copyright {
        text-align: left;
        margin: 0 15px;
        padding: 1.5rem 0 1.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 0.75rem;
        color: #333;
        margin-top: 1rem;
    }

    .main-footer .copyright p {
        margin-bottom: 0;
        line-height: 1.6;
    }

[dir="rtl"] .main-footer .copyright {
    text-align: center;
}

[dir="rtl"] .main-footer .footer-links-list .footer-link-item a::after {
    left: auto;
    right: 0;
}

/* ================= SCROLL TO TOP ================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #102548;
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(44, 62, 125, 0.4);
    }

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
    .saudi-section {
        padding: 0 0 150px 0;
    }

    .main-header .nav-link {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .home-page .hero-section .hero-title {
        font-size: 2.75rem;
    }

    .about-section .about-content {
        padding-left: 0;
        margin-top: 3rem;
    }

    .connect-section .connect-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

        .connect-section .connect-grid .connect-item {
            grid-column: auto !important;
            grid-row: auto !important;
            min-height: 160px;
        }

            .connect-section .connect-grid .connect-item.calendar {
                order: 1;
            }

            .connect-section .connect-grid .connect-item.facebook {
                order: 2;
            }

            .connect-section .connect-grid .connect-item.x-twitter {
                order: 3;
            }

            .connect-section .connect-grid .connect-item.instagram {
                order: 4;
            }

            .connect-section .connect-grid .connect-item.youtube {
                order: 5;
            }

            .connect-section .connect-grid .connect-item.gallery {
                order: 6;
            }

    .main-header .dropdown-menu {
        position: absolute;
    }

    .main-header .nav-link {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .home-page .hero-section {
        min-height: 600px;
        height: 100vh;
    }

    .home-page .hero-section .hero-title {
        font-size: 2.25rem;
    }

    .home-page .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }

    .home-page .hero-slide-content {
        padding: 100px 1rem 80px;
    }

    .home-page .geometric-shapes .shape-1,
    .home-page .geometric-shapes .shape-4 {
        display: none;
    }

    .news-section {
        padding: 0 0 2.5rem;
    }

        .news-section .news-card-img-wrap,
        .news-section .news-card-img-wrap .news-card-img,
        .news-section .news-card img {
            height: 180px;
        }

        .news-section .read-more-btn {
            padding: 0.85rem 3rem;
            width: 100%;
            max-width: 300px;
        }

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

        .about-section .about-image {
            margin-bottom: 2.5rem;
        }

        .about-section .about-content {
            padding-left: 0;
        }

            .about-section .about-content h2 {
                font-size: 1.2rem;
            }

    .programs-section .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .connect-section .connect-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

        .connect-section .connect-grid .connect-item {
            grid-column: 1 !important;
            grid-row: auto !important;
            min-height: 180px !important;
        }

            .connect-section .connect-grid .connect-item.calendar {
                order: 1;
            }

            .connect-section .connect-grid .connect-item.facebook {
                order: 2;
            }

            .connect-section .connect-grid .connect-item.x-twitter {
                order: 3;
            }

            .connect-section .connect-grid .connect-item.instagram {
                order: 4;
            }

            .connect-section .connect-grid .connect-item.youtube {
                order: 5;
            }

            .connect-section .connect-grid .connect-item.gallery {
                order: 6;
            }

    .quick-look-section .stat-item {
        border-bottom: 1px solid #eee;
        padding: 1.25rem 0.5rem;
    }

        .quick-look-section .stat-item:last-child {
            border-bottom: none;
        }

        .quick-look-section .stat-item .stat-number {
            font-size: 1.8rem;
        }

    .programs-section {
        padding: 0 0 35px 0;
    }
}

@media (max-width: 696px) {
    .news-section .NewsBgRadius,
    .programs-section .NewsBgRadius,
    .home-page .core-values-section .NewsBgRadius {
        border-radius: 0 0 80px 80px;
        padding: 1.25rem 1rem;
    }

    .saudi-section {
        padding: 0 0 70px;
    }

    .features-section .feature-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 575px) {
    .main-header .btn-login {
        margin-top: 0.5rem;
        margin-left: 0;
    }

    .quick-look-section .row .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .quick-look-section .stat-item {
        border-bottom: none;
        border-right: 1px solid #eee;
    }

        .quick-look-section .stat-item:nth-child(2n) {
            border-right: none;
        }

        .quick-look-section .stat-item:nth-child(n+3) {
            border-top: 1px solid #eee;
        }
}

@media (max-width: 767px) {
    .main-footer .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .main-footer .footer-right-col {
        margin-bottom: 1.5rem;
    }

    .main-footer .footerLogo {
        width: 90px;
        height: 90px;
    }

        .main-footer .footerLogo .footer-logo-img {
            max-height: 101px;
            max-width: 114px;
        }

    .main-footer .footer-social-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .main-footer .copyright {
        text-align: center;
    }
}

@media (max-width: 425px) {
    .main-footer .footer-links-list {
        gap: 0.3rem 1rem;
    }

    .main-footer .footer-school-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 335px) {
    .main-footer .footer-links-list .footer-link-item a {
        font-size: 12px;
    }
}

@media print {
    .scroll-to-top {
        display: none !important;
    }
}

/* Floating Social Media for Home Page */
.floating-social {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    gap: 2px;
}

[dir="rtl"] .floating-social {
    right: auto;
    left: 0;
}

.floating-social a {
    background-color: #535353 !important;
    color: var(--white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
    border-radius: 8px 0 0 8px;
    box-shadow: var(--shadow-sm);
}

[dir="rtl"] .floating-social a {
    border-radius: 50%;
}

.floating-social a:hover {
    background-color: var(--accent-yellow);
    color: #102548;
    width: 52px;
    padding-left: 4px;
}

@media (max-width: 991px) {
    .floating-social {
        top: auto;
        bottom: 15px;
        transform: translateX(50%);
        flex-direction: row;
        right: 50%;
        border-radius: 50px;
        padding: 4px 8px;
        gap: 8px;
        background-color: rgba(0, 0, 0, 0.4);
    }

    [dir="rtl"] .floating-social {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .floating-social a {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 50%;
        background: #535353 !important;
    }

        .floating-social a:hover {
            width: 36px;
            background-color: var(--accent-yellow);
        }
}

/* ================= ADDITIONAL RESPONSIVE FIXES ================= */

/* iOS Background Attachment Fix */
@supports (-webkit-touch-callout: none) {
    .news-section,
    .programs-section,
    .saudi-section {
        background-attachment: scroll !important;
    }
}

/* Header / Navbar Mobile Adjustments */
@media (max-width: 991px) {
    .main-header .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 10px;
    }
    
    .main-header .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-header .nav-link:last-child {
        border-bottom: none;
    }
    
    .main-header .dropdown-menu {
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        padding-left: 1rem;
        margin-top: 0;
        position: static !important;
    }
}

/* Hero Arrows Mobile */
@media (max-width: 767px) {
    .home-page .hero-swiper-prev,
    .home-page .hero-swiper-next {
        display: none !important;
    }
    
    .news-section .NewsBgRadius,
    .programs-section .NewsBgRadius,
    .home-page .core-values-section .NewsBgRadius {
        border-radius: 0 0 120px 120px;
    }
    
    .news-section .news-card-img-wrap,
    .news-section .news-card-img-wrap .news-card-img,
    .news-section .news-card img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .news-section .NewsBgRadius,
    .programs-section .NewsBgRadius,
    .home-page .core-values-section .NewsBgRadius {
        border-radius: 0 0 60px 60px;
    }
}

/* Footer Mobile Stacking */
@media (max-width: 767px) {
    .main-footer .footer-left-col,
    .main-footer .footer-center-col,
    .main-footer .footer-right-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main-footer .footer-info-item {
        justify-content: center;
    }
    
    .main-footer .footer-info-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-footer .footer-brand {
        padding-bottom: 2rem; /* Reduced from 89px */
    }
}
