/* =========================================
   1. CORE STYLES
   ========================================= */
:root {
    --brand-navy: #001f55;
    --brand-navy-light: #1a3668;
    --brand-purple: #4904dc;

    --bg-dark: var(--brand-navy);
    --bg-mid: #0b2a6b;
    --bg-light: #16367a;

    --primary-purple: var(--brand-purple);
    --accent-blue: #2575fc;
    --text-white: #ffffff;

    --glass-bg: rgba(0, 31, 85, 0.4);
    --glass-border: rgba(73, 4, 220, 0.3);

    --card-base-color: 0, 31, 85;
    --container-width: 1200px;

    --color-primary-main: var(--brand-purple);
    --color-heading: var(--brand-navy);
    --color-body: #555;

    --shadow-dark: 0 10px 30px rgba(0, 31, 85, 0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --swiper-pagination-top: 40rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f4f7fa;
    color: var(--color-heading);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* Footer Grid System */
.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: space-between;
}

.col-footer-main {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 0 15px;
}

.col-footer-link {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 15px;
}

/* =========================================
   2. HEADER STYLES
   (Scoped to body.home-design-custom so the legacy/default hero design
    keeps the platform's standard header look — only applied when the
    admin selects design_type = custom.)
   ========================================= */
body.home-design-custom header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.home-design-custom header.sticky {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 5px 25px rgba(0, 31, 85, 0.1);
    border-bottom: none;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

body.home-design-custom .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.home-design-custom .logo-container {
    display: flex;
    align-items: center;
}

body.home-design-custom .logo-img {
    width: 146px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

body.home-design-custom nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

body.home-design-custom nav ul li {
    position: relative;
}

body.home-design-custom nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    transition: var(--transition);
}

body.home-design-custom nav ul li a.active {
    color: #fff;
    position: relative;
}

body.home-design-custom nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    /* Dark hero bg → white underline (note #43). */
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

body.home-design-custom header.sticky nav ul li a {
    color: var(--color-heading);
}

body.home-design-custom header.sticky nav ul li a.active {
    color: var(--primary-purple);
}

/* White sticky bg → dark underline (note #43). */
body.home-design-custom header.sticky nav ul li a.active::after {
    background: var(--brand-navy);
}

body.home-design-custom nav ul li a:hover {
    color: #fff;
}

body.home-design-custom header.sticky nav ul li a:hover {
    color: var(--brand-navy);
}

body.home-design-custom .header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Updated .tool-btn with new styles (Rounded-2xl, Scale, Glow) */
body.home-design-custom .tool-btn {
    width: 38px; /* Reduced width */
    height: 38px; /* Reduced height */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Adjusted radius for smaller size */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

body.home-design-custom .tool-btn:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
    transform: scale(1.05); /* hover:scale-105 */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* hover:shadow-glow */
}

body.home-design-custom .tool-btn:active {
    transform: scale(0.95); /* active:scale-95 */
}

body.home-design-custom header.sticky .tool-btn {
    color: var(--color-heading);
    border-color: rgba(0, 31, 85, 0.1);
}

body.home-design-custom header.sticky .tool-btn:hover {
    background: var(--brand-navy);
    color: #ffffff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 15px rgba(0, 31, 85, 0.3); /* Adjusted glow for sticky */
}

/* Updated .login-btn with new styles */
body.home-design-custom .login-btn {
    background: #fff;
    color: var(--brand-navy);
    padding: 0 20px; /* Adjusted padding */
    height: 38px; /* Reduced height to match icons */
    border-radius: 12px; /* Adjusted radius */
    font-weight: 700;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.home-design-custom .login-btn:hover {
    transform: translateY(-2px) scale(1.05); /* Combined hover effects */
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4); /* Enhanced shadow */
}

body.home-design-custom .login-btn:active {
    transform: scale(0.95);
}

body.home-design-custom header.sticky .login-btn {
    background: var(--brand-navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 31, 85, 0.3);
}

body.home-design-custom header.sticky .login-btn:hover {
    background: var(--brand-navy-light);
    box-shadow: 0 5px 18px rgba(0, 31, 85, 0.4);
}

/* =========================================
   2b. DESKTOP NAV DROPDOWN (pure-CSS hover card, RTL)
   Reveal is :hover / :focus-within only — no Bootstrap JS needed, so it
   always opens. Hidden via opacity/visibility (never display) so it animates.
   ========================================= */
@media (min-width: 992px) {

    body.home-design-custom nav ul li.dropdown > a {
        cursor: pointer;
    }

    body.home-design-custom nav ul li.dropdown > a i.fas {
        font-size: 12px;
        transition: transform var(--transition);
    }
    body.home-design-custom nav ul li.dropdown:hover > a i.fas,
    body.home-design-custom nav ul li.dropdown:focus-within > a i.fas {
        transform: rotate(180deg);
    }

    /* THE WHITE CARD — overrides Bootstrap's base .dropdown-menu.
       li.dropdown is already position:relative (home.css line 168). */
    body.home-design-custom nav ul li.dropdown > .dropdown-menu {
        display: block;                 /* override Bootstrap display:none */
        position: absolute;
        top: 100%;
        inset-inline-end: 0;            /* RTL: align card's start edge under the link */
        inset-inline-start: auto;
        margin: 0;
        margin-top: 14px;              /* visual gap; bridged below so hover survives */
        padding: 10px;
        min-width: 230px;
        background: #fff;
        border: none;
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(0, 31, 85, 0.16),
                    0 4px 12px rgba(0, 31, 85, 0.08);
        list-style: none;
        text-align: start;
        z-index: 1100;                  /* above header (z-index:1000) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        pointer-events: none;
        transition: opacity var(--transition),
                    transform var(--transition),
                    visibility var(--transition);
    }

    /* HOVER BRIDGE — transparent strip over the 14px gap so the cursor can
       travel link -> card without crossing empty space (no flicker/close). */
    body.home-design-custom nav ul li.dropdown > .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -16px;
        inset-inline: 0;
        height: 16px;
        background: transparent;
    }

    /* decorative pointer arrow on top of the card (RTL: near the start edge) */
    body.home-design-custom nav ul li.dropdown > .dropdown-menu::after {
        content: '';
        position: absolute;
        top: -7px;
        inset-inline-end: 22px;
        width: 14px;
        height: 14px;
        background: #fff;
        transform: rotate(45deg);
        box-shadow: -3px -3px 8px rgba(0, 31, 85, 0.06);
        border-radius: 3px;
    }

    /* REVEAL on hover OR keyboard focus-within. The defensive .show selector
       keeps the same visible state if Bootstrap ever still toggles it. */
    body.home-design-custom nav ul li.dropdown:hover > .dropdown-menu,
    body.home-design-custom nav ul li.dropdown:focus-within > .dropdown-menu,
    body.home-design-custom nav ul li.dropdown > .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    body.home-design-custom nav ul li.dropdown .dropdown-menu > li {
        position: static;               /* override nav ul li{position:relative} */
        width: 100%;
    }

    body.home-design-custom nav ul li.dropdown .dropdown-menu .dropdown-item {
        display: block;
        width: 100%;
        padding: 11px 16px;
        margin: 2px 0;
        border-radius: 10px;
        font-size: 14.5px;
        font-weight: 600;
        line-height: 1.5;
        color: var(--color-heading);    /* dark navy — readable on white in BOTH header states */
        background: transparent;
        text-align: start;
        white-space: nowrap;
        text-decoration: none;
        transition: background var(--transition), color var(--transition);
    }

    /* pale-lavender pill on hover / focus / current page */
    body.home-design-custom nav ul li.dropdown .dropdown-menu .dropdown-item:hover,
    body.home-design-custom nav ul li.dropdown .dropdown-menu .dropdown-item:focus,
    body.home-design-custom nav ul li.dropdown .dropdown-menu .dropdown-item.active {
        background: rgba(73, 4, 220, 0.10);   /* lavender tint of --brand-purple */
        color: var(--primary-purple);
    }

    /* the active underline (nav ul li a.active::after) must not leak into rows */
    body.home-design-custom nav ul li.dropdown .dropdown-menu .dropdown-item::after {
        display: none;
    }

    /* sticky header keeps the card white: force navy text + lavender hover */
    body.home-design-custom header.sticky nav ul li.dropdown .dropdown-menu .dropdown-item {
        color: var(--color-heading);
    }
    body.home-design-custom header.sticky nav ul li.dropdown .dropdown-menu .dropdown-item:hover,
    body.home-design-custom header.sticky nav ul li.dropdown .dropdown-menu .dropdown-item.active {
        color: var(--primary-purple);
    }
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Custom hero background comes from the admin setting via the --hero-bg
       variable (set inline on .hero); falls back to the default art. */
    background-image: var(--hero-bg, url('https://static.vecteezy.com/system/resources/thumbnails/034/326/986/small_2x/abstract-geometric-background-with-lines-and-circles-vector.jpg'));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: var(--hero-filter, hue-rotate(-50deg) brightness(0.7) saturate(1.2));
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 85, 0.6);
    z-index: -1;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    padding-left: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.top-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin-bottom: 20px;
}

.vertical-line {
    width: 6px;
    min-height: 180px;
    background: linear-gradient(to bottom, var(--brand-purple), var(--brand-navy));
    border-radius: 50px;
    margin-left: 25px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(73, 4, 220, 0.4);
}

.content-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #ffffff;
}

p.description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    max-width: 500px;
}

.meta-data {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: none;
}

.meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    margin-left: 8px;
    color: var(--brand-purple);
    font-size: 1rem;
    background: #fff;
    padding: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-right: 33px;
}

.btn-primary {
    background: var(--brand-navy);
    color: #fff;
    padding: 10px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 31, 85, 0.4);
    transition: 0.3s;
    border: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    padding: 10px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 31, 85, 0.6);
    background: var(--brand-navy-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* HERO CARDS - SWIPER */
.hero-cards {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 550px;
    overflow: visible;
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
}

.hero-swiper-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    width: 250px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero controls — static row below the cards (manual nav + pagination) */
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.hero-pagination.swiper-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.card {
    width: 100%;
    max-width: 290px;
    height: 365px;
    margin: 0 auto;
    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-img-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

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

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    padding: 10px;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.6) 10%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.card-tag {
    font-size: 0.8rem;
    color: #a29bfe;
    font-weight: 600;
}

.date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-navy));
}

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--brand-navy), #2575fc);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
}

.day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.month {
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-top: 3px;
}

.slider-controls {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    width: fit-content;
    z-index: 10;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.control-btn:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
}

/* =========================================
   4. ABOUT SECTION
   ========================================= */
.edu-about-area {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background-color: #ffffff;
}

.about-image-gallery {
    position: relative;
    z-index: 2;
    padding-left: 50px;
}

.main-img-1 {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0px 30px 60px 0px rgba(0, 31, 85, 0.1);
    display: block;
    transform: scaleX(-1);
    position: relative;
    z-index: 10;
}

.scene-layer {
    position: absolute;
    z-index: 3;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.award-status {
    position: absolute;
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.08);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--brand-purple);
    min-width: 220px;
}

.award-status .icon {
    width: 50px;
    height: 50px;
    background: rgba(73, 4, 220, 0.1);
    color: var(--brand-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.award-status .content h6 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.2;
}

.award-status .content span {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.badge-programs {
    top: 40px;
    right: -30px;
}

.badge-experts {
    top: auto;
    right: auto;
    bottom: -30px;
    left: -40px;
}

.badge-experts .icon {
    background: rgba(0, 31, 85, 0.1);
    color: var(--brand-navy);
}

.certs-status {
    position: absolute;
    bottom: 80px;
    right: -50px;
    background: var(--brand-navy);
    color: white !important;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 13;
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.2);
}

.certs-status h6 {
    color: white
}

.certs-status i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
}

.certs-status div {
    line-height: 1.2;
}

.shape-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
}

.shape-1 {
    top: -30px;
    left: -60px;
    z-index: -1;
    opacity: 0.6;
}

.shape-2 {
    top: -40px;
    left: -40px;
    z-index: -1;
    opacity: 0.6;
}

.shape-3 {
    bottom: -40px;
    right: -40px;
    z-index: 1;
    opacity: 0.6;
}

.title-shape-circle {
    position: absolute;
    top: -15px;
    left: -20px;
    width: 80px;
    height: 80px;
    border: 6px solid rgba(73, 4, 220, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    padding-right: 30px;
}

.section-title {
    position: relative;
}

.pre-title {
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 15px;
}

.title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--brand-navy);
}

.color-secondary {
    color: var(--brand-purple);
}

.about-description {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.features-list {
    margin-bottom: 40px;
}

.features-list li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--brand-navy);
}

.features-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--brand-purple);
}

/* Updated Calmer Discover Button */
.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 35px;
    background: transparent;
    color: var(--brand-navy);
    border: 1px solid rgba(0, 31, 85, 0.15);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-discover:hover {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.btn-discover i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-discover:hover i {
    transform: rotate(45deg);
}

/* Improved Soft Register Button */
.btn-register-soft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    border-radius: 12px;
    background: #f8f9fc;
    color: var(--brand-navy);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-register-soft:hover {
    background: #fff;
    color: var(--brand-purple);
    border-color: rgba(73, 4, 220, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.btn-register-soft i {
    font-size: 12px;
    transition: transform 0.4s ease;
}

.btn-register-soft:hover i {
    transform: rotate(45deg);
}

/* =========================================
   X. FIELDS OF FOCUS SECTION (OPTION 1: CARDS)
   ========================================= */
.edu-fields-area {
    padding: 100px 0;
    background-color: #f4f7fa;
    position: relative;
    z-index: 1;
}

.fields-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px; /* Increased gap */
    margin-top: 60px; /* More space for floating icons */
}

.field-card {
    background: #fff;
    border-radius: 20px;
    padding: 0 20px 30px 20px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 30px;
}

/* Hover Effect */
.field-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.15);
    background-color: #fff;
    border-bottom: 4px solid var(--brand-purple);
}

.field-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--brand-purple);
    margin-top: -40px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 4px solid #f4f7fa;
}

.field-card:hover .field-icon {
    transform: translateY(-15px) scale(1.1);
    background: var(--brand-purple);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(73, 4, 220, 0.3);
}

.field-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 10px;
    z-index: 1;
    transition: 0.3s;
}

.field-card:hover .field-title {
    color: var(--brand-purple);
}

/* Hidden Description by default */
.field-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: translateY(10px);
}

.field-card:hover .field-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 5px;
    color: #555;
}

/* NEW CARD BUTTON */
.field-card-btn {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: 0.3s;
    /* Allow it to be visible but discreet until hover if desired, or animate it */
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
}

.field-card:hover .field-card-btn {
    opacity: 1;
    transform: translateY(0);
    max-height: 40px; /* Allocate space */
    color: var(--brand-purple);
}

@media (max-width: 992px) {
    .fields-grid-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .fields-grid-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   5. EVENTS SECTION (MODERN CARD DESIGN)
   ========================================= */
.edu-event-area {
    padding: 120px 0;
    background-color: #f8f9fc;
    z-index: 1;
    position: relative
}

.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

@media (max-width: 1100px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

/* --- New Professional Card Design --- */
.event-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    group: 'event-card';
    width: 100%;
    height: 100%;
}

.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.12);
}

/* Image Wrapper */
.event-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.event-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card-modern:hover .event-thumb-wrapper img {
    transform: scale(1.1);
}

/* Overlay Gradient on Image */
.event-thumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 31, 85, 0.6), transparent 60%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.event-card-modern:hover .event-thumb-wrapper::after {
    opacity: 0.4;
}

/* Category Badge */
.event-cat-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-navy);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.event-card-modern:hover .event-cat-badge {
    background: var(--brand-purple);
    color: #fff;
}

/* Floating Date */
.event-date-floating {
    position: absolute;
    top: 190px;
    left: 20px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
    transition: 0.3s;
    border-top: 3px solid var(--brand-purple);
}

.event-card-modern:hover .event-date-floating {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(73, 4, 220, 0.25);
}

.event-date-floating .day {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy);
}

.event-date-floating .month {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Card Content */
.event-content-body {
    padding: 20px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
    margin-left: 5px;
}

/* Price in Content */
.event-price-inline {
    font-weight: 800;
    color: var(--brand-purple);
    font-size: 14px;
    background: rgba(73, 4, 220, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.event-price-inline.free {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.event-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 15px;
    line-height: 1.5;
    transition: 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-modern:hover .event-title {
    color: var(--brand-purple);
}

/* Footer / Button Area */
.event-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-footer-details {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.event-info-item {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.event-info-item i {
    color: var(--brand-purple);
    width: 14px;
    text-align: center;
}

/* Updated Button Arrow Link with Text and Animation */
.btn-arrow-link {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: #f4f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 8px;
    text-decoration: none;
}

.btn-arrow-link:hover {
    background: var(--brand-navy);
    color: #fff;
}

.btn-arrow-link i {
    transition: transform 0.3s ease;
}

.btn-arrow-link:hover i {
    transform: rotate(45deg);
}

/* Animation specific */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card-modern {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.event-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.event-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.event-card-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.event-card-modern:nth-child(4) {
    animation-delay: 0.4s;
}

/* Swiper pagination for event grid */
.event-grid-swiper {
    padding-bottom: 15px; /* small room for card shadow; dots render externally below */
    position: relative;
}

.event-grid-swiper .swiper-slide {
    height: auto;
}

.event-grid-swiper .event-card-modern {
    height: 100%;
}

/* Static row BELOW the cards (pagination lives outside .swiper now), mirroring
   the working stories pagination — never absolute/clipped to 0 height. */
.event-grid-pagination {
    position: static !important;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 18px;
}

.event-grid-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #e0e0e0;
    opacity: 1;
}

.event-grid-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background-color: var(--brand-purple);
    width: 30px;
    border-radius: 10px;
}

/* Mobile: .event-grid-swiper keeps Swiper's bundled overflow:hidden (do NOT set
   overflow:visible — it caused horizontal scroll). Pagination is external/static
   (see .event-grid-pagination above), so no per-breakpoint override needed. */

/* Course type + duration row (below title) */
.event-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.event-type-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-purple);
    background: rgba(73, 4, 220, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.event-duration-inline {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-duration-inline i {
    color: var(--brand-purple);
}


/* =========================================
   6. NEWS SECTION (SPLIT EDITORIAL DESIGN - UPDATED)
   ========================================= */
.edu-news-area {
    padding: 80px 0;
    background: #fff;
    flex-grow: 1;
}

.editorial-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    min-height: 550px;
}

/* Left Image Panel */
.news-preview-panel {
    flex: 1.6; /* Wider image area */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #000; /* Dark bg to enhance image fade */
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    opacity: 0.9;
    /* transition lives in the .animate / :not(.animate) states below */
}

/* BOTTOM SLIDE UP BOX - GLASSMORPHISM */
.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;

    /* Enhanced Glassmorphism - INCREASED TRANSPARENCY */
    background: rgba(255, 255, 255, 0.20); /* Changed from 0.35 to 0.20 for more see-through look */
    backdrop-filter: blur(30px); /* Increased blur from 25px to 30px to maintain readability */
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.5); /* Slightly softer border */

    border-radius: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);

    transform: translateY(100%);
    opacity: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

/* Animation states (ported verbatim from Home_page.html). The .animate class is
   toggled by HomeNewsEditorial.vue on each news change (auto-rotate or list hover)
   to replay the slow cinematic slide-up + Ken Burns zoom. */
.news-preview-panel.animate .preview-overlay {
    transform: translateY(0);
    opacity: 1;
    transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1); /* slow, smooth slide up */
}

.news-preview-panel.animate .preview-img {
    transform: scale(1.15); /* slow Ken Burns zoom */
    transition: transform 1.8s ease-out;
}

/* Instant reset before each replay (no tween), so the motion always restarts clean. */
.news-preview-panel:not(.animate) .preview-overlay {
    transition: none !important;
    transform: translateY(100%);
    opacity: 0;
}
.news-preview-panel:not(.animate) .preview-img {
    transition: none !important;
    transform: scale(1);
}

/* Respect reduced-motion: reveal instantly, no slow tween. */
@media (prefers-reduced-motion: reduce) {
    .news-preview-panel.animate .preview-overlay,
    .news-preview-panel.animate .preview-img {
        transition: none !important;
    }
}

.preview-meta {
    font-size: 13px;
    color: var(--brand-purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-meta::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--brand-purple);
    display: inline-block;
}

.preview-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: var(--brand-navy);
    line-height: 1.3;
}

.preview-desc {
    font-size: 15px;
    color: #000; /* Darkest black to ensure contrast on transparent glass */
    line-height: 1.7;
    margin: 5px 0 10px;
    font-weight: 500;
}

/* Read More Button inside Preview */
.preview-btn {
    align-self: flex-start;
    padding: 12px 30px;
    border-radius: 12px;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
}

.preview-btn:hover {
    background: var(--brand-purple);
    transform: translateX(-5px);
}

.preview-btn i {
    transition: transform 0.3s;
}

.preview-btn:hover i {
    transform: rotate(45deg);
}

/* Right List */
.news-list-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center list vertically */
}

.editorial-item {
    padding: 22px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-radius: 12px;
}

.editorial-item:first-child {
    border-top: 1px solid #eee;
}

/* The Purple Line */
.editorial-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: var(--brand-purple);
    transition: height 0.3s ease;
    border-radius: 2px;
}

.editorial-item:hover, .editorial-item.active {
    background: #f9f9fc;
    padding-right: 25px;
}

/* Expand Line on Hover/Active */
.editorial-item:hover::before, .editorial-item.active::before {
    height: 70%;
}

.item-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
    line-height: 1.5;
    transition: 0.3s;
}

.editorial-item:hover .item-title, .editorial-item.active .item-title {
    color: var(--brand-purple);
}

/* Responsive */
@media (max-width: 992px) {
    .editorial-wrapper {
        flex-direction: column-reverse;
        height: auto;
    }

    .news-preview-panel {
        height: 400px;
        min-height: 400px;
    }

    /* Animation still drives the overlay on touch via auto-rotate (.animate),
       matching Home_page.html — no hover needed. */
    .preview-overlay {
        position: absolute !important;
        bottom: 0 !important;
        margin-top: 0;
        transform: translateY(100%);
    }

    .news-preview-panel.animate .preview-overlay {
        transform: translateY(0);
    }
}

/* =========================================
   7. SUCCESS STORIES (UPDATED)
   ========================================= */
#success-stories-standalone {
    --color-primary-new: var(--brand-purple);
    --color-secondary-new: var(--brand-navy);
    --color-heading-new: var(--brand-navy);
    --color-body-new: #525252;
    --color-white: #fff;
    --font-primary: 'Tajawal', sans-serif;
    --radius-small: 5px;

    background-color: #f9f9f9;
    padding: 80px 0;
    color: var(--color-body-new);
    font-family: var(--font-primary);
}

#success-stories-standalone h2,
#success-stories-standalone h5 {
    font-family: var(--font-primary);
    color: var(--color-heading-new);
    font-weight: 700;
    margin-top: 0;
}

/* Scoped Layout Grid */
#success-stories-standalone .custom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -15px;
}

#success-stories-standalone .col-text {
    width: 41.666667%;
    padding: 0 15px;
}

#success-stories-standalone .col-slider {
    width: 58.333333%;
    padding: 0 15px;
}

/* New Section Components */
#success-stories-standalone .section-title .pre-title {
    color: var(--color-primary-new);
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

#success-stories-standalone .section-title .main-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--color-heading-new);
}

#success-stories-standalone .section-title .description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--color-body-new);
}

/* Button Redesign - لون موحد مع هوفر خفيف */
#success-stories-standalone .edu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-navy);
    color: #fff;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 31, 85, 0.2);
    transition: all 0.3s ease;
}

#success-stories-standalone .edu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 31, 85, 0.4);
    background: var(--brand-navy-light);
    color: #fff;
}

#success-stories-standalone .edu-btn i {
    margin-right: 10px;
    transition: transform 0.3s;
}

#success-stories-standalone .edu-btn:hover i {
    transform: rotate(45deg);
}

/* Testimonial Card */
#success-stories-standalone .testimonial-grid {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: 0.3s;
    overflow: hidden;
    z-index: 1;
    text-align: right;
}

#success-stories-standalone .testimonial-grid::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: none; /* was a broken external demo asset (SSL error) */
    filter: hue-rotate(240deg) brightness(0.8); /* Adjust hue to match navy */
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    transform: scaleX(-1);
}

/* إزالة لون الحدود للقصة النشطة */
#success-stories-standalone .swiper-slide-active .testimonial-grid {
    border-color: transparent;
}

#success-stories-standalone .swiper-slide-active .testimonial-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 31, 85, 0.1);
}

#success-stories-standalone .card-header-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

#success-stories-standalone .thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-left: 15px;
}

#success-stories-standalone .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#success-stories-standalone .student-info {
    flex-grow: 1;
}

#success-stories-standalone .grid-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

#success-stories-standalone .subtitle {
    font-size: 13px;
    color: var(--color-primary-new);
    font-weight: 600;
}

#success-stories-standalone .qoute-icon {
    font-size: 24px;
    color: #e6e6e6;
    margin-right: auto;
}

#success-stories-standalone .testimonial-grid:hover .qoute-icon {
    color: var(--color-primary-new);
}

#success-stories-standalone .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#success-stories-standalone .content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-body-new);
    margin-bottom: 20px;
    flex-grow: 1;
}

#success-stories-standalone .read-story-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-heading-new);
    margin-top: auto;
    transition: 0.3s;
}

#success-stories-standalone .read-story-link i {
    margin-right: 5px;
    font-size: 12px;
    color: var(--color-primary-new);
    transition: 0.3s;
}

#success-stories-standalone .read-story-link:hover {
    color: var(--color-primary-new);
}

#success-stories-standalone .read-story-link:hover i {
    margin-right: 8px;
}

#success-stories-standalone .swiper-testimonial-slider-wrapper {
    padding: 20px 10px 50px 10px;
    perspective: 1000px;
}

#success-stories-standalone .swiper-slide {
    width: 335px !important;
    height: 450px !important;
    transition: all 0.4s ease;
    opacity: 0.4;
}

#success-stories-standalone .swiper-slide-active {
    opacity: 1 !important;
    z-index: 10;
}

/* Phones: the 335px slide is wider than the content box -> fit it. */
@media (max-width: 480px) {
    #success-stories-standalone .swiper-slide {
        width: min(335px, calc(100vw - 60px)) !important;
        max-width: 320px;
    }
}

#success-stories-standalone .swiper-pagination {
    bottom: 15px !important;
    position: absolute;
    width: 100%;
    text-align: center;
}

#success-stories-standalone .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d0d0d0;
    opacity: 1;
    margin: 0 6px !important;
}

#success-stories-standalone .swiper-pagination-bullet-active {
    background: var(--brand-purple);
    width: 30px;
    border-radius: 10px;
}

/* =========================================
   8. NEW SECTIONS: CTA & FOOTER
   ========================================= */
/* Services / CTA Section - FLOATING BOX STYLE */
.edu-cta-area {
    /* Split background: Top matches previous section, Bottom matches footer */
    background: linear-gradient(to bottom, #f9f9f9 50%, var(--brand-navy) 50%);
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.cta-main-box {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 31, 85, 0.15);
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    /* Animation entry */
    animation: floatUp 1s ease-out;
}

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

.cta-single-item {
    flex: 1;
    padding: 50px 30px;
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, 0.05); /* Divider */
    position: relative;
    transition: all 0.4s ease;
}

.cta-single-item:last-child {
    border-left: none;
}

/* Hover Effect for individual sections */
.cta-single-item:hover {
    background: #f8f9fc;
}

.cta-single-item:hover .cta-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--brand-purple);
    color: #fff;
    box-shadow: 0 10px 20px rgba(73, 4, 220, 0.3);
}

/* Icon Styling */
.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(73, 4, 220, 0.08); /* Light purple bg */
    color: var(--brand-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-content h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Button Styling */
.cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-purple);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(73, 4, 220, 0.2);
    padding: 10px 25px;
    border-radius: 12px; /* Changed to match theme */
}

.cta-action-btn:hover {
    background: var(--brand-purple);
    color: #fff;
    transform: translateY(-2px);
}

.cta-action-btn i {
    transition: transform 0.3s ease;
}

.cta-action-btn:hover i {
    transform: rotate(45deg);
}

/* Footer Section */
.edu-footer-area {
    background-color: var(--brand-navy);
    color: #fff;
    padding-top: 80px;
    font-size: 14px;
}

.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-links li a::before {
    content: '\f104';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    opacity: 0.5;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

/* Updated Footer Social Icons - Matching Header Tool Buttons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-social a:hover {
    background: #ffffff;
    color: var(--brand-navy);
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.payment-logos {
    display: flex;
    gap: 8px; /* Reduced gap */
    flex-wrap: wrap;
    align-items: center;
}

.payment-logos img {
    height: 26px; /* Reduced height */
    width: auto;
    background: #fff;
    padding: 3px 5px;
    border-radius: 5px;
    object-fit: contain;
}

.copyright-area {
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 992px) {
    .cta-main-box {
        flex-direction: column;
    }

    .cta-single-item {
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .cta-single-item:last-child {
        border-bottom: none;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    /* Reset footer columns on mobile */
    .col-footer-main, .col-footer-link {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================
MOBILE HAMBURGER & MENU
========================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

body.home-design-custom header.sticky .hamburger-btn {
    border-color: rgba(0, 31, 85, 0.2);
}

body.home-design-custom header.sticky .hamburger-btn span {
    background: var(--brand-navy);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 85, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s, visibility 0.35s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background: var(--brand-navy);
    z-index: 1999;
    padding: 75px 28px 35px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.35);
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

/* زر الإغلاق */
.mobile-menu-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* روابط القائمة - عمودية */
.mobile-nav {
    flex: 1;
}

/* إلغاء تأثير nav ul { display:flex } من الهيدر */
.mobile-nav ul {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
}

.mobile-nav ul li {
    display: block !important;
    width: 100% !important;
    position: static !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav ul li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav ul li a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 17px 4px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.mobile-nav ul li a::after {
    display: none !important;
}

/* إزالة الخط النشط من الهيدر */
.mobile-nav ul li a span {
    flex: 1;
}

.mobile-nav ul li a i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.25s;
    margin-left: 4px;
}

.mobile-nav ul li a.active {
    color: #fff !important;
}

.mobile-nav ul li a.active i {
    color: var(--brand-purple);
}

.mobile-nav ul li a:hover {
    color: #fff !important;
    padding-right: 12px !important;
}

.mobile-nav ul li a:hover i {
    color: var(--brand-purple);
    transform: translateX(-3px);
}

/* الأيقونات الأربعة */
.mobile-menu-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.mob-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    flex-shrink: 0;
}

.mob-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* زر تسجيل الدخول */
.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: var(--brand-navy);
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 12px;
}

.mobile-login-btn i {
    font-size: 14px;
}

.mobile-login-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* =========================================
   RESPONSIVE: TABLET & MOBILE
   ========================================= */
@media (max-width: 991px) {
    /* Header */
    header nav,
    .header-tools {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
        text-align: right;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 0;
        order: 1;
    }

    .hero-cards {
        order: 2;
        max-width: 100%;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .action-buttons {
        margin-right: 0;
        flex-wrap: wrap;
    }

    /* About Section */
    .edu-about-area {
        padding: 70px 0;
    }

    .row {
        flex-direction: column;
    }

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

    .about-image-gallery {
        padding-left: 0;
        margin-bottom: 100px;
    }

    .badge-programs {
        right: -10px;
        top: 20px;
    }

    .badge-experts {
        left: -10px;
        bottom: -20px;
    }

    .certs-status {
        right: -10px;
        bottom: 40px;
    }

    .about-content {
        padding-right: 0;
        margin-top: 20px;
    }

    /* Fields Section */
    .edu-fields-area {
        padding: 60px 0;
    }

    .fields-grid-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    /* Events Section */
    .edu-event-area {
        padding: 60px 0;
    }

    .section-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* News Section */
    .edu-news-area {
        padding: 60px 0;
    }

    .editorial-wrapper {
        flex-direction: column-reverse;
        gap: 0;
        min-height: auto;
    }

    .news-preview-panel {
        height: 350px;
        min-height: 350px;
    }

    /* Success Stories */
    #success-stories-standalone {
        padding: 60px 0;
    }

    #success-stories-standalone .custom-row {
        flex-direction: column;
    }

    #success-stories-standalone .col-text,
    #success-stories-standalone .col-slider {
        width: 100%;
        padding: 0 15px;
    }

    #success-stories-standalone .col-slider {
        margin-top: 30px;
    }

    #success-stories-standalone .section-title .main-title {
        font-size: 26px;
    }

    /* CTA Section */
    .edu-cta-area {
        padding: 50px 0;
    }

    /* Footer */
    .edu-footer-area {
        padding-top: 60px;
    }
}

@media (max-width: 767px) {
    /* Hero */
    .hero {
        padding-top: 90px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    p.description {
        font-size: 0.9rem;
    }

    .meta-data {
        gap: 10px;
    }

    .top-content-wrapper {
        margin-bottom: 15px;
    }

    .vertical-line {
        min-height: 150px;
        margin-left: 15px;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn-primary, .btn-outline {
        padding: 9px 20px;
        font-size: 0.9rem;
    }

    /* Hero Swiper */
    .hero-swiper .swiper-slide {
        width: 200px;
        height: 320px;
    }

    .card {
        width: 200px;
        height: 300px;
    }

    /* Fields */
    .fields-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .field-card {
        padding: 0 15px 20px;
    }

    /* About badges smaller */
    .award-status {
        padding: 14px 16px;
        min-width: 170px;
    }

    .award-status .content h6 {
        font-size: 18px;
    }

    /* News */
    .news-preview-panel {
        height: 280px;
    }

    .preview-title {
        font-size: 18px;
    }

    .preview-overlay {
        padding: 20px;
    }

    /* Section titles */
    .title {
        font-size: 22px;
    }

    #success-stories-standalone .section-title .main-title {
        font-size: 22px;
    }

    /* Search overlay */
    .search-title {
        font-size: 2rem;
    }

    .search-subtitle {
        font-size: 1rem;
    }

    .search-close {
        top: 20px;
        left: 20px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero-content h1 {
        font-size: 1.25rem;
    }

    .vertical-line {
        display: none;
    }

    .top-content-wrapper {
        margin-bottom: 10px;
    }

    /* Fields: single column on very small screens */
    .fields-grid-container {
        grid-template-columns: 1fr;
    }

    /* Hero swiper cards */
    .hero-swiper .swiper-slide {
        width: 170px;
        height: 280px;
    }

    .card {
        width: 170px;
        height: 260px;
    }

    .card-title {
        font-size: 0.85rem;
    }

    /* About badges hide on very small */
    .certs-status {
        right: 0;
        font-size: 12px;
    }

    .badge-programs {
        right: 0;
    }

    .badge-experts {
        left: 0;
    }

    /* CTA single item padding */
    .cta-single-item {
        padding: 35px 20px;
    }

    /* Footer */
    .footer-row {
        flex-direction: column;
    }

    .col-footer-main, .col-footer-link {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================
   TOUCH ACTIVE STATES (mobile tap = hover)
   ========================================= */
.field-card.touch-hover,
.field-card.touch-active {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.15);
    background-color: #fff;
    border-bottom: 4px solid var(--brand-purple);
}

.field-card.touch-hover .field-icon,
.field-card.touch-active .field-icon {
    transform: translateY(-15px) scale(1.1);
    background: var(--brand-purple);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(73, 4, 220, 0.3);
}

.field-card.touch-hover .field-title,
.field-card.touch-active .field-title {
    color: var(--brand-purple);
}

.field-card.touch-hover .field-desc,
.field-card.touch-active .field-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 5px;
    color: #555;
}

.field-card.touch-hover .field-card-btn,
.field-card.touch-active .field-card-btn {
    opacity: 1;
    transform: translateY(0);
    max-height: 40px;
    color: var(--brand-purple);
}

.event-card-modern.touch-active {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 31, 85, 0.12);
}

.event-card-modern.touch-active .event-cat-badge {
    background: var(--brand-purple);
    color: #fff;
}

.event-card-modern.touch-active .event-title {
    color: var(--brand-purple);
}

.card.touch-active {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-primary.touch-active,
.btn-primary.touch-active:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 31, 85, 0.6);
    background: var(--brand-navy-light);
}

.login-btn.touch-active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* =========================================
   HIDE DECORATIVE SHAPES ON MOBILE ONLY
   ========================================= */
@media (max-width: 991px) {
    .shape-group {
        display: none !important;
    }
}