@import "../../fonts/Cairo/stylesheet.css";

* {
    font-family: 'Cairo', sans-serif;

}


html {
    scroll-padding-top: 100px; /* Adjust the value for your needs */
}




/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    --surface: #f8f5ee;
    --surface-dim: #e3ddcf;
    --surface-bright: #fdfbf6;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f6f2e9;
    --surface-container: #f0ebdf;
    --surface-container-high: #eae4d6;
    --surface-container-highest: #e4ddcc;
    --on-surface: #1b2230;
    --on-surface-variant: #5a564a;
    --inverse-surface: #2f2c24;
    --inverse-on-surface: #f4f0e8;
    --outline: #8a8472;
    --outline-variant: #d3ccbb;
    --surface-tint: #b49258;

    /* --- Primary (كحلي اللوكو) --- */
    --primary: #011e46;
    --on-primary: #ffffff;
    --primary-container: #011e46;
    --on-primary-container: #b7c4dd;
    --inverse-primary: #aebfe0;

    /* --- Secondary (ذهبي برونزي اللوكو) --- */
    --secondary: #8a6e3e;
    --on-secondary: #ffffff;
    --secondary-container: #b49258;
    --on-secondary-container: #4a3818;

    /* --- Tertiary --- */
    --tertiary: #011e46;
    --on-tertiary: #ffffff;
    --tertiary-container: #01162f;
    --on-tertiary-container: #9aa6bd;

    /* --- Error --- */
    --error: #b3261e;
    --on-error: #ffffff;
    --error-container: #f9dedc;
    --on-error-container: #8c1d18;

    /* --- Fixed Colors --- */
    --primary-fixed: #d7e2f4;
    --primary-fixed-dim: #aebfe0;
    --on-primary-fixed: #011e46;
    --on-primary-fixed-variant: #2a3f63;
    --secondary-fixed: #ecdcc2;
    --secondary-fixed-dim: #d8c6a0;
    --on-secondary-fixed: #241a0a;
    --on-secondary-fixed-variant: #6f5631;
    --tertiary-fixed: #d7e2f4;
    --tertiary-fixed-dim: #aebfe0;
    --on-tertiary-fixed: #01162f;
    --on-tertiary-fixed-variant: #2a3f63;

    /* --- Background --- */
    --background: #f8f5ee;
    --on-background: #1b2230;
    --surface-variant: #e4ddcc;

    /* --- Deep Navy + Gold (هوية اللوكو) --- */
    --deep-navy: #011e46;
    --deep-navy-hover: #022a5e;
    --gold: #b49258;
    --gold-dark: #8a6e3e;

    /* --- Spacing --- */
    --spacing-unit: 8px;
    --spacing-gutter: 24px;
    --spacing-margin-mobile: 16px;
    --spacing-margin-desktop: 50px;
    --max-width: 1400px;

    /* --- Rounded --- */
    --rounded-sm: 0.125rem;
    --rounded: 6px;
    --rounded-md: 0.375rem;
    --rounded-lg: 24px;
    --rounded-xl: 0.75rem;
    --rounded-full: 9999px;

    /* --- Elevation --- */
    --elevation-0: none;
    --elevation-1: 0 0 0 1px #e8e1d2;
    --elevation-2: 0px 4px 20px rgba(1, 30, 70, 0.06);

    /* --- Transitions --- */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* --- Fonts (موحّد على خط Cairo) --- */
    --font-inter: 'Cairo', sans-serif;
    --font-neue-montreal: 'Cairo', sans-serif;



    --navy-deep:  #011e46;
     --gold-dim:   rgba(201, 169, 97, .35);
    --cream:      #faf8f3;
    --muted:      #7c8494;
    --line:       #e7e2d6;



     --navy-mid:    #16284d;
     --gold-light:  #e4cf9c;
     --ink:         #1e2530;





    --surface-low: #f6f2e9;
    --surface-white: #ffffff;

    --on-surface-var: #5a564a;

    --outline-var: #d3ccbb;

    --r-sm: 6px;
    --r: 12px;
    --r-lg: 24px;
    --r-full: 9999px;

    --elev-2: 0 4px 20px rgba(1, 30, 70, .06);
    --elev-3: 0 18px 46px rgba(1, 30, 70, .13);

    --t-fast: 150ms ease;
    --t: 250ms ease;
    --t-slow: 400ms cubic-bezier(.22, .61, .36, 1);


}

/* ============================================================
   DIRECTION-SENSITIVE SCROLL ANIMATION VARIABLES
   تنقلب تلقائياً حسب اتجاه الصفحة (RTL/LTR). تُقرأ من JS
   (resetScrollAnimation) وتُستخدم في keyframe الانزلاق الأفقي.
   لا تُكتب القيم (-600/1752) في أي مكان آخر — دائماً من هنا.
   ============================================================ */
[dir="rtl"] {
    --anim-start-x: -600px;
    --anim-end-x: 1752px;
}

[dir="ltr"] {
    --anim-start-x: 600px;
    --anim-end-x: -1752px;
}



ol, ul, dl {
    margin: 0;

}


@keyframes cardSlide {
    from { transform: translate3d(var(--anim-start-x), 0px, 0px); }
    to   { transform: translate3d(var(--anim-end-x), 0px, 0px); }
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ---- Lenis smooth scroll ----
   عند تفعيل Lenis يضيف class اسمه .lenis على <html>،
   فنُلغي scroll-behavior الأصلي لتفادي التعارض مع التمرير الناعم. */
html.lenis,
html.lenis body {
    height: auto;
}



/*--------breadcrumb-------------*/
#breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 11px 24px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 10px 24px -16px rgba(15, 30, 61, .25);
}

#breadcrumb li {
    position: relative;
    display: flex;
    align-items: center;
}

/* separator dot between items */
#breadcrumb li + li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    margin-inline-end: 10px;
}

#breadcrumb a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

#breadcrumb a i,
#breadcrumb a .icon {
    color: var(--gold);
    font-size: 13px;
}

#breadcrumb a:hover {
    color: var(--navy-deep);
}

/* current / last item reads as active */
#breadcrumb li:last-child a {
    color: var(--navy-deep);
    font-weight: 700;
}

#breadcrumb a:focus-visible {
    outline: 2px solid var(--navy-deep);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (max-width: 480px) {
    #breadcrumb { padding: 9px 16px; gap: 8px; }
    #breadcrumb a { font-size: 13px; }
}

/*-----end breadcrumb--------*/




.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--on-surface);
    background-color: var(--background);
    /* الاتجاه يُورَّث من سمة dir على <html> (rtl افتراضياً / ltr عند التبديل) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   TYPOGRAPHY UTILITY CLASSES
   ============================================================ */
.display-lg {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    letter-spacing: -0.02em;
}

.headline-lg {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
}

.headline-lg-mobile {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
}

.headline-md {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.body-lg {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.body-md {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.label-sm {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.05em;
}

/* ============================================================
   TOP NAVBAR (شريط علوي)
   ============================================================ */
.top-navbar {
    width: 100%;
    background-color: var(--primary-container);
    color: var(--on-primary);
    padding: 7px 0;
    position: relative;
    z-index: 10;
}

.top-navbar .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

/* ---- Left side: Language + Portal ---- */
.top-navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-navbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--on-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--rounded);
    transition: background var(--transition-fast), border-color var(--transition-fast);
    letter-spacing: 0.02em;
}

.top-navbar__btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.top-navbar__btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.top-navbar__portal-btn {
    background: var(--gold);
    border-color: transparent;
    font-weight: 600;
}

.top-navbar__portal-btn:hover {
    background: var(--gold-dark);
    border-color: transparent;
}

/* ---- Right side: Social icons ---- */
.top-navbar__social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 120px;
}

.top-navbar__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--rounded-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--on-primary);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.top-navbar__social-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.top-navbar__social-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   MAIN NAVBAR (التنقل الرئيسي)
   ============================================================ */
.main-navbar {
    width: 100%;
    background-color: var(--surface-container-lowest);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-base);
}

.main-navbar.scrolled {
    box-shadow: var(--elevation-2);
}

.main-navbar .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    position: relative;
}

/* ---- Logo Wrapper (Oval badge overlapping top navbar) ---- */
.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 120;
    transition: all var(--transition-base);
}

.main-navbar.scrolled .logo-wrapper {
    gap: 0px;
}

.logo-badge {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background-color: var(--surface-container-lowest);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -17px;
    z-index: 120;
    flex-shrink: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.main-navbar.scrolled .logo-badge {
    width: 85px;
    height: 85px;
    background-color: transparent;
    top: 0px;
}


.logo-badge img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}
.main-navbar.scrolled .logo-badge img{
    width: 70px;
    height: 70px;

}
.university-name {
    display: flex;
    flex-direction: column;
    max-height: 69px;

}

.university-name__main {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-container);
    line-height: 1.3;
    white-space: nowrap;
}

.university-name__sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--outline);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Cairo', sans-serif;
}


/* ---- Navigation Links ---- */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav__link {
    position: relative;
    padding: 8px 13px;
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
    border-radius: var(--rounded);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 16px;
    left: 16px;
    height: 2.5px;
    background: var(--gold);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

.main-nav__link:hover {
    color: var(--primary-container);
    background: var(--primary-fixed);
}

.main-nav__link:hover::after {
    transform: scaleX(1);
}

.main-nav__link--active {
    color: var(--primary-container);
}

.main-nav__link--active::after {
    transform: scaleX(1);
}

/* ============================================================
   NAV DROPDOWN — القائمة المنسدلة (سطح المكتب)
   ============================================================ */
.main-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}

/* رأس التبويب الذي يملك قائمة منسدلة */
.main-nav__item--has-dropdown > .main-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.main-nav__caret {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
    opacity: 0.7;
}

.main-nav__item--has-dropdown:hover > .main-nav__link .main-nav__caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* الحاوية المنسدلة */
.main-nav__dropdown {
    position: absolute;
    top: calc(100% + 2px);
    inset-inline-start: 0;
    min-width: 250px;
    background: var(--surface-container-lowest);
    border-radius: 14px;
    border: 1px solid var(--outline-variant);
    box-shadow: 0 18px 44px -12px rgba(1, 30, 70, 0.28);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transform-origin: top;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 200;
}


/* جسر شفاف يمنع انغلاق القائمة عند تحريك المؤشر نحوها */
/* آخر عنصرين في القائمة (أقصى اليسار في العربي، أقصى اليمين في الإنكليزي):
   القائمة المنسدلة تفتح نحو الداخل بدل الخروج عن الشاشة */
.main-nav__item:last-child > .main-nav__dropdown,
.main-nav__item:has(+ .main-nav__mobile-extras) > .main-nav__dropdown,
.main-nav__item:has(+ .main-nav__item + .main-nav__mobile-extras) > .main-nav__dropdown {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.main-nav__dropdown::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 0;
    left: 0;
    height: 8px;
}

.main-nav__item--has-dropdown:hover > .main-nav__dropdown,
.main-nav__item--has-dropdown:focus-within > .main-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav__dropdown-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
}

.main-nav__dropdown-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--on-surface);
    border-radius: 9px;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast), padding var(--transition-fast);
}

/* نقطة ذهبية تظهر عند التمرير */
.main-nav__dropdown-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: scale(0);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.main-nav__dropdown-link:hover {
    background: var(--primary-fixed);
    color: var(--primary-container);
    padding-inline-start: 18px;
}

.main-nav__dropdown-link:hover::before {
    transform: scale(1);
}

/* ---- Mobile Menu Toggle ---- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 130;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Mobile-only extras inside burger menu ---- */
.main-nav__mobile-extras {
    display: none;
}

/* ============================================================
   SEARCH TOGGLE BUTTON
   ============================================================ */
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-full);
    background: transparent;
    color: var(--on-surface);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-right: 8px;
}

.search-toggle:hover {
    background: var(--primary-fixed);
    color: var(--primary-container);
}

.search-toggle svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   SEARCH DIALOG (نافذة البحث)
   ============================================================ */
.search-dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.search-dialog.open {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.search-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Panel */
.search-dialog__panel {
    position: relative;
    width: 94%;
    max-width: 640px;
    background: var(--surface-container-lowest);
    border-radius: var(--rounded-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0;
    transform: translateY(-20px) scale(0.97);
    transition: transform var(--transition-base);
    overflow: hidden;
}

.search-dialog.open .search-dialog__panel {
    transform: translateY(0) scale(1);
}

/* Close Button */
.search-dialog__close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--outline);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.search-dialog__close:hover {
    background: var(--surface-container-high);
    color: var(--on-surface);
}

.search-dialog__close svg {
    width: 20px;
    height: 20px;
}

/* Input Wrapper */
.search-dialog__input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--outline-variant);
}

.search-dialog__input-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-container);
    flex-shrink: 0;
}

.search-dialog__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--on-surface);
    line-height: 1.5;
}

.search-dialog__input::placeholder {
    color: var(--outline);
}


/* ============================================================
   HERO SECTION — SWIPER SLIDER
   ============================================================ */
.hero {
    padding: 0 20px;
}

.hero__container {
    position: relative;
    width: 100%;
    /* max-width: var(--max-width); */
    margin: 0 auto;
    border-radius: var(--rounded-xl);
    overflow: hidden;
    min-height: calc(100vh - 200px);
}

/* Swiper fills the container */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    /* ensure slides are full-height */
    overflow: none;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 150px);
}

/* Slide Image */
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 6s ease;
}

/* Subtle Ken Burns zoom on active slide */
.hero-swiper .swiper-slide-active .hero__image {
    transform: scale(1.06);
}

/* Overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 35%);
    z-index: 1;
}

/* Content */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    min-height: calc(100vh - 200px);
    padding: 80px 64px;
    padding-bottom: 120px;
    max-width: 600px;
    color: var(--on-primary);
}

/* Slide content entrance animations */
.hero-swiper .swiper-slide-active .hero__title,
.hero-swiper .swiper-slide-active .hero__description,
.hero-swiper .swiper-slide-active .hero__buttons {
    opacity: 1;
    transform: translateY(0);
}


.hero__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}

.hero__title .hl {
    color: var(--gold);
}

.hero__description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

/* Hero Buttons */
.hero__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.65s, transform 0.6s ease 0.65s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--rounded);
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--gold);
    box-shadow: 0 2px 8px rgba(180, 146, 88, 0.25);
}

.btn--primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

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

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   HERO CONTROLS BAR (Arrows + Fraction Pagination)
   ============================================================ */
.hero-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-controls__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Navigation Buttons */
.hero-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.hero-nav-btn:hover {
    background: var(--deep-navy);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.08);
}

.hero-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* Slide Indicators */
.hero-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-indicator {
    width: 36px;
    height: 3px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
    position: relative;
}

.hero-indicator::before {
    content: '';
    position: absolute;
    inset: -8px -4px;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-indicator.active {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(180, 146, 88, 0.5);
}



/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {


    .main-nav__link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .hero__content {
        padding: 64px 40px;
        padding-bottom: 100px;
    }
}

@media (max-width: 1300px) {
    .top-navbar .container {
        padding: 0 var(--spacing-margin-mobile);
        justify-content: center;
    }

    .top-navbar__social {
        display: none;
    }

    .main-navbar .container {
        padding: 0 var(--spacing-margin-mobile);
        height: 64px;
    }

    .logo-badge {
        width: 82px;
        height: 82px;
        top: -12px;
    }

    .logo-badge img {
        width: 72px;
        height: 72px;
    }

    .main-navbar.scrolled .logo-badge {
        width: 60px;
        height: 60px;
    }

    .main-navbar.scrolled .logo-badge img {
        width: 60px;
        height: 50px;
    }

    .university-name__main {
        font-size: 16px;
    }

    .university-name__sub {
        font-size: 10px;
    }

    /* Mobile nav */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(88vw, 340px);
        height: 100dvh;
        background: var(--surface-container-lowest);
        flex-direction: column;
        align-items: stretch;
        padding: 88px 16px 28px;
        gap: 4px;
        box-shadow: -4px 0 34px rgba(1, 30, 70, 0.18);
        transition: right var(--transition-base);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open {
        right: 0;
        overflow-y: auto;
    }

    .main-nav__item {
        display: block;
        position: relative;
    }

    .main-nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 14px;
        font-size: 15.5px;
        border-radius: 12px;
    }

    .main-nav__link:hover,
    .main-nav__link--active {
        background: var(--primary-fixed);
        color: var(--primary-container);
    }

    .main-nav__link::after {
        display: none;
    }

    /* ---- Accordion (تبويبات فرعية داخل الموبايل) ---- */
    .main-nav__caret {
        width: 20px;
        height: 20px;
        opacity: 0.85;
    }

    .main-nav__item--has-dropdown.is-expanded > .main-nav__link {
        background: var(--primary-fixed);
        color: var(--primary-container);
    }

    .main-nav__item--has-dropdown.is-expanded > .main-nav__link .main-nav__caret {
        transform: rotate(180deg);
    }

    /* في الموبايل: القائمة المنسدلة تصبح أكورديون داخل التدفق */
    .main-nav__dropdown {
        position: static;
        top: auto;
        right: auto;
        min-width: 0;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height var(--transition-base), opacity var(--transition-base), margin var(--transition-base);
        max-height: 0;
        overflow: hidden;
        z-index: auto;
    }

    .main-nav__dropdown::before,
    .main-nav__dropdown::after {
        display: none;
    }

    .main-nav__item--has-dropdown.is-expanded > .main-nav__dropdown {
        max-height: 640px;
        opacity: 1;
        margin: 4px 0 6px;
    }

    .main-nav__dropdown-list {
        gap: 2px;
        /* خط جانبي يوضّح أن هذه تبويبات فرعية */
        padding-inline-start: 12px;
        margin-inline-start: 10px;
        border-inline-start: 2px solid var(--outline-variant);
    }

    .main-nav__dropdown-link {
        font-size: 15.5px;
        font-weight: 600;
        padding: 10px 12px;
        color: var(--on-surface-variant);
        white-space: normal;
    }

    .main-nav__dropdown-link:hover {
        padding-inline-start: 12px;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 105;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-base);
    }

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

    /* ---- Social icons inside burger menu ---- */
    .main-nav__mobile-extras {
        display: block;
        padding: 20px 0 8px;
        margin-top: 8px;
        border-top: 1px solid var(--surface-container-high);
    }

    .main-nav__mobile-social {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .main-nav__mobile-social .top-navbar__social-link {
        background: var(--primary-container);
        color: var(--on-primary);
        width: 36px;
        height: 36px;
    }

    .main-nav__mobile-social .top-navbar__social-link:hover {
        background: var(--deep-navy-hover);
    }

    /* Hero responsive */
    .hero {
        padding: 0 12px;
    }

    .hero__container {
        min-height: 420px;
        border-radius: var(--rounded-lg);
    }

    .hero-swiper .swiper-slide {
        min-height: 420px;
    }

    .hero__content {
        padding: 40px 24px;
        /* padding-bottom: 100px; */
        height: 80vh;
        /* max-width: 100%; */
    }

    .hero__title {
        font-size: 30px;
        line-height: 1.3;
    }

    .hero__description {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .btn {
        justify-content: center;
        width: fit-content;
    }

    .hero-controls__inner {
        padding: 12px 20px;
        gap: 16px;
    }

    .hero-nav-btn {
        width: 32px;
        height: 32px;
    }

    .hero-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero-indicator {
        width: 28px;
    }

}

@media (max-width: 480px) {
    .top-navbar__btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero__title {
        font-size: 26px;
    }
}













img,
video {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* Typography */
.caption {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.25rem;
    letter-spacing: 0.00875rem;
}

.heading-l {
    font-family: var(--font-neue-montreal);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-navy);
}

.heading-m {
    font-family: var(--font-neue-montreal);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.1;
}

.body-l {
    font-family: var(--font-inter);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.75rem;
    letter-spacing: -0.03rem;
}

/* Colors */
.text-primary {
    color: rgb(255 98 0);
}

.text-black-light {
    color: rgba(0, 0, 0, 0.6);
}

.bg-primary-gray {
    background-color: rgb(247, 243, 234);
}

/* Section */
.stacked-section {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0.5rem;
}

/* Cards container */
#cards {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
}

/* Individual card — sticky on ALL screen sizes */
.stacked-card {
    display: flex;
    min-height: 600px;
    width: 100%;
    flex-direction: column;
    overflow: clip;
    border-radius: 1.5rem;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.2) 2px -1px 10px -4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Sticky stacking effect — works on all screen sizes */
    position: sticky;
}

/* Card content left side */
.card-content {
    display: flex;
    height: 100%;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
}

.card-content .icon {
    width: 3.5rem;
    height: 3.5rem;
}

.card-content h3 {
    text-wrap: pretty;
    color: var(--deep-navy);

}

.card-content p {
    max-width: 450px;
    text-wrap: pretty;
    /* قصّ الوصف إلى 6 أسطر كحدٍّ أقصى مع (...) لمنع تشوّه شكل البطاقة */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    overflow: hidden;
}

/* رابط (التفاصيل) — شكل بسيط أسفل الوصف */
.card-content__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: gap var(--transition-base), color var(--transition-base);
    border-bottom: 1px solid var(--gold-dark) ;
}

.card-content__link svg {
    width: 18px;
    height: 18px;
}

.card-content__link:hover {
    color: var(--deep-navy);
    gap: 0.75rem;
    border-bottom-color: var(--deep-navy) ;

}

/* Card media right side */
.card-media {
    position: relative;
    flex: 1;
    padding: 0 4rem;
}

.card-media .media-inner {
    margin-bottom: 1rem;
    height: 100%;
    overflow: clip;
    border-radius: 1.25rem;
}

.card-media .media-inner video,
.card-media .media-inner img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-media .media-inner video {
    min-height: 350px;
    max-width: 300px;
    margin: 0 auto;
    align-self: center;
    border-radius: 1.25rem;
}

/* Floating decorations */
.decoration-tl {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 30%;
}

.decoration-br {
    position: absolute;
    bottom: 0.75rem;
    right: 2rem;
    width: 40%;
}

.decoration-security-tl {
    position: absolute;
    top: -1rem;
    left: 0;
    width: 30%;
}

.decoration-security-br {
    position: absolute;
    bottom: 0.25rem;
    right: 0.75rem;
    z-index: 40;
    width: 50%;
}

.decoration-security-br img {
    position: absolute;
    bottom: 0;
    right: 0.75rem;
}

.group:hover .hover-hide {
    visibility: hidden;
}


/* ===== Desktop (lg: 1024px+) ===== */
@media (min-width: 1024px) {
    .caption {
        font-size: 1rem;
        line-height: 1.5rem;
        letter-spacing: 0.01rem;
    }

    .heading-l {
        font-size: 3.75rem;
    }

    .heading-m {
        font-size: 3.125rem;
    }

    .body-l {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .stacked-section {
        max-width: var(--max-width);
        padding: 8rem 3rem;
    }


    /* Desktop card layout — horizontal split */
    .stacked-card {
        height: 600px;
        flex-direction: row;
        align-items: center;
    }

    .card-content {
        padding: 4rem;
    }

    .card-media .media-inner video {
        min-height: 450px;
    }

    /* Scale/position states when card is "scrolled past" */
    .stacked-card[data-index="0"].scrolled {
        top: 75px;
        transform: scale(0.96);
    }

    .stacked-card[data-index="1"].scrolled {
        top: 85px;
        transform: scale(0.96);
    }

    .stacked-card[data-index="2"].scrolled {
        top: 100px;
        transform: scale(0.96);
    }

    /* Default non-scrolled state */
    .stacked-card:not(.scrolled) {
        transform: scale(1);
    }

    /* Decoration adjustments */
    .decoration-br {
        bottom: 0;
    }

    .decoration-security-tl {
        left: -2rem;
        top: -4rem;
    }

    .decoration-security-br {
        bottom: -4rem;
    }
}

/* ===== Tablet (768px – 1023px): sticky stacking with column layout ===== */
@media (max-width: 1023px) and (min-width: 768px) {
    .stacked-section {
        padding: 4rem 1.5rem;
    }

    .stacked-card {
        min-height: 500px;
    }

    .stacked-card[data-index="0"].scrolled {
        top: 80px;
        transform: scale(0.95);
    }

    .stacked-card[data-index="1"].scrolled {
        top: 90px;
        transform: scale(0.95);
    }

    .stacked-card[data-index="2"].scrolled {
        top: 100px;
        transform: scale(0.95);
    }

    .stacked-card:not(.scrolled) {
        transform: scale(1);
    }

    .card-content {
        padding: 2rem;
    }

    .card-media {
        padding: 0 2rem;
    }
}

/* ===== Mobile (≤ 767px): sticky stacking with vertical column layout ===== */
@media (max-width: 767px) {
    .stacked-section {
        padding: 3rem 0.75rem;
        gap: 2.5rem;
    }

    .heading-l {
        font-size: 1.5rem;
    }

    .heading-m {
        font-size: 1.25rem;
    }

    .body-l {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .stacked-card {
        min-height: auto;
        border-radius: 1rem;
    }

    .stacked-card[data-index="0"].scrolled {
        top: 70px;
        transform: scale(0.94);
    }

    .stacked-card[data-index="1"].scrolled {
        top: 80px;
        transform: scale(0.94);
    }

    .stacked-card[data-index="2"].scrolled {
        top: 90px;
        transform: scale(0.94);
    }

    .stacked-card:not(.scrolled) {
        transform: scale(1);
    }

    .card-content {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .card-content .icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .card-content p {
        max-width: 100%;
    }

    .card-media {
        padding: 0 1rem;
    }

    .card-media .media-inner {
        border-radius: 0.75rem;
    }

    #cards {
        gap: 1.5rem;
    }

}

/* ============================================================
   COLLEGES — Scroll-Driven Horizontal Cards Reveal
   قسم الكليات (حركة كشف أفقية مرتبطة بالتمرير)
   ============================================================ */

/* إخفاء شريط التمرير */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.colleges {
    position: relative;
    background-color: var(--background);
}

/* عنوان القسم (في التدفق العادي قبل منطقة التمرير) */
.colleges__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 67ch;
    margin: 0 auto;
    padding: 6rem 1.5rem 1rem;
    text-align: center;
}

.colleges__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
}

.colleges__hint svg {
    width: 18px;
    height: 18px;
    animation: colleges-bounce 1.8s ease-in-out infinite;
}

@keyframes colleges-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* الطبقة 1 — حاوية مساحة التمرير (الارتفاع يُضبط ديناميكياً عبر JS) */
.colleges__scroll-space {
    position: relative;
}

/* الطبقة 2 — الحاوية الثابتة */
.colleges__sticky {
    position: sticky;
    top: 0;
    height: calc(100vh + 75px);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* الطبقة 3 — الشريط المتحرك (يُحرَّك عبر translateX من JS) */
.colleges__track {
    display: flex;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* تفعيل تسريع GPU */
}

/* شبكة الكروت */
.colleges__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 360px;
    gap: 2rem;
}

/* ---- بطاقة الكلية (تصميم: طبقة لون فوق الصورة + مثلث مائل ينقلب + خط سفلي + زر متدرّج) ----
   لون كل بطاقة يأتي من المتغيّر --accent المُعرّف في خاصية style لكل بطاقة. */
.cc-card {
    display: flex;
    flex-direction: column;
    width: 360px;
    border-radius: 24px;
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    overflow: hidden;
    box-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.35);

}

/* منطقة الصورة + طبقة اللون + المثلث المائل */
.cc-card__media {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.cc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* طبقة اللون الشفّافة فوق الصورة */
.cc-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.20);
    opacity: 0.6;
}

/* المثلث الأبيض المائل (يُقصّ بحدود البطاقة عبر overflow) وينقلب عند المرور */
.cc-card__media::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-style: solid;
    border-width: 0 0 130px 500px;
    border-color: transparent transparent #ffffff transparent;
    transition: var(--transition-base);
}

.cc-card:hover .cc-card__media::after {
    border-width: 0 500px 130px 0;
}

/* نص البطاقة (متمركز — يناسب RTL وLTR) */
.cc-card__text {
    flex: 1;
    text-align: center;
}

.cc-card__title {
    position: relative;
    width: fit-content;
    margin: 14px auto 0;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--on-surface);
}

/* الخط الملوّن أسفل العنوان */
.cc-card__title::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 15px;
    width: calc(100% - 30px);
    height: 4px;
    background-color: var(--gold);
}

.cc-card__desc {
    margin: 30px 0;
    padding: 0 20px;
    color: #777;
    font-size: 1rem;
    line-height: 1.7;
    /* قصّ النص إلى 3 أسطر كحدٍّ أقصى مع إضافة (...) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* الزر — يمتلئ باللون من جهة بداية السطر عند المرور */
.cc-card__btn {
    display: block;
    width: fit-content;
    margin: 0 auto 30px;
    padding: 10px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid var(--gold);
    color: var(--gold);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* يضمن ظهور طبقة التعبئة فوق خلفية البطاقة البيضاء */
    transition: color var(--transition-base);
}

.cc-card__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--gold);
    /* RTL: يبدأ خارج الإطار من جهة اليمين (بداية السطر) */
    transform: translateX(103%);
    transition: transform var(--transition-base);
}

[dir="ltr"] .cc-card__btn::before {
    transform: translateX(-103%);
}

.cc-card:hover .cc-card__btn {
    color: #ffffff;
}

.cc-card:hover .cc-card__btn::before {
    transform: translateX(0);
}

/* ---- تجاوب: الموبايل ---- */
@media (max-width: 920px) {
    .colleges__grid {
        grid-auto-columns: 86vw;
        gap: 1.25rem;
    }

    .cc-card {
        width: 86vw;
        max-width: 380px;
    }

    .cc-card__media {
        height: 200px;
    }

    .cc-card__media::after {
        border-width: 0 0 90px 500px;
    }

    .cc-card:hover .cc-card__media::after {
        border-width: 0 500px 90px 0;
    }

    .cc-card__title {
        font-size: 1.5rem;
    }

    .cc-card__desc {
        margin: 22px 0;
        padding: 14px;
        font-size: 0.95rem;
    }

    .cc-card__btn {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .colleges__header {
        padding: 4rem 1.25rem 1rem;
    }
}

/* احترام تفضيل تقليل الحركة: عرض أفقي عادي بدون تثبيت */
@media (prefers-reduced-motion: reduce) {
    .colleges__hint svg {
        animation: none;
    }
}

/* ============================================================
   COUNCIL — مجلس الجامعة (Cinematic Leadership Reveal)
   قسمٌ داكن فخم: بطاقة الرئيس في الوسط بارزة، ثم ينضمّ النائبان
   من الحافتين تدريجياً عبر التمرير حتى تتساوى البطاقات الثلاث.
   أبعاد البطاقات تُقرأ من المتغيّرات أدناه، فتعمل الحركة مع أي مقاس.
   ============================================================ */
.council {
    position: relative;
    /* البطاقات تدخل من خارج الشاشة أثناء التمرير: clip يقصّها دون تمرير أفقي، ولا يكسر sticky كما يفعل hidden */
    overflow-x: clip;
    background: #05060f;
    --lc-w: 320px;
    --lc-h: 444px;
    --lc-gap: 40px;
}

/* الطبقة 1 — مساحة التمرير (الارتفاع يُضبط عبر JS) */
.council__scroll-space {
    position: relative;
}

/* الطبقة 2 — الإطار الثابت */
.council__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        radial-gradient(120% 90% at 50% -8%, #11164a 0%, #0a0c26 42%, #05060f 100%);
}

/* ---- الخلفية والتوهّج ---- */
.council__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.council__glow {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.council__glow--gold {
    width: 62vmax;
    height: 62vmax;
    top: 44%;
    background: radial-gradient(circle, rgba(254, 166, 25, 0.30), rgba(254, 166, 25, 0) 62%);
}

.council__glow--navy {
    width: 86vmax;
    height: 86vmax;
    top: 70%;
    background: radial-gradient(circle, rgba(46, 66, 210, 0.18), rgba(46, 66, 210, 0) 60%);
}

.council__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 66px 66px;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
}

/* ---- العنوان ---- */
.council__head {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    padding: clamp(2.2rem, 6vh, 4.6rem) 1.5rem 0;
    will-change: transform;
}

.council__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.26em;
}

.council__eyebrow span {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.council__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.council__title {
    margin: 0 auto;
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 28%, #c4caf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- مسرح البطاقات ---- */
.council__stage {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/* البطاقة — موضعها وحجمها يُتحكَّم بهما عبر JS (transform على .lc-card) */
.lc-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--lc-w);
    height: var(--lc-h);
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.lc-card--center {
    z-index: 3;
}

.lc-card--left,
.lc-card--right {
    z-index: 2;
}

/* الغلاف الداخلي — يحمل حركة الـ hover منفصلةً عن حركة التمرير */
.lc-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    box-shadow:
        0 30px 60px -26px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.55s ease, border-color 0.55s ease;
}

/* الصورة */
.lc-card__media {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.lc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 15, 0) 38%, rgba(5, 6, 15, 0.55) 70%, rgba(5, 6, 15, 0.92) 100%);
}

/* نص البطاقة */
.lc-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.1rem 1.1rem 1.35rem;
    text-align: center;
}

.lc-card__role {
    display: inline-block;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lc-card__name {
    margin: 0.3rem 0 0;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.3;
}

.lc-card__line {
    display: block;
    width: 46px;
    height: 3px;
    margin: 0.7rem auto 0.65rem;
    border-radius: 2px;
    background: var(--gold);
    opacity: 0.9;
}

.lc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.25s ease, gap 0.25s ease;
}

.lc-card__link svg {
    width: 15px;
    height: 15px;
}

.lc-card__link:hover {
    color: var(--gold);
    gap: 0.65rem;
}

/* ---- تمييز بطاقة الرئيس بالذهبي ---- */
.lc-card--center .lc-card__inner {
    border-color: rgba(180, 146, 88, 0.42);
    box-shadow:
        0 36px 72px -26px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(254, 166, 25, 0.22),
        0 0 60px -8px rgba(254, 166, 25, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lc-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(160deg, #ffd884, #b49258);
    color: #3a2600;
    box-shadow: 0 12px 26px -8px rgba(180, 146, 88, 0.7);
}

.lc-card__badge svg {
    width: 24px;
    height: 24px;
}

/* ---- تلميح التمرير ---- */
.council__hint {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: clamp(1.2rem, 3vh, 2.4rem);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.council__hint svg {
    width: 20px;
    height: 20px;
    animation: council-bounce 1.8s ease-in-out infinite;
}

@keyframes council-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ---- تأثير المرور (يُفعَّل بعد اكتمال التجميع) ---- */
.council__stage.is-complete .lc-card {
    cursor: pointer;
}

.council__stage.is-complete .lc-card:hover {
    z-index: 6;
}

.council__stage.is-complete .lc-card:hover .lc-card__inner {
    transform: translateY(-12px);
    border-color: rgba(180, 146, 88, 0.6);
    box-shadow:
        0 48px 84px -26px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(180, 146, 88, 0.4),
        0 0 72px -8px rgba(180, 146, 88, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ============================================================
   COUNCIL — الوضع الثابت (تقليل الحركة / الموبايل) + التجاوب
   ============================================================ */
.council__stage.is-static {
    position: static;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 1.25rem 0.5rem;
}

.council__stage.is-static .lc-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
    opacity: 1 !important;
}

/* مقاسات البطاقات حسب عرض الشاشة (الحركة تقرأ هذه القيم تلقائياً) */
@media (max-width: 1200px) {
    .council {
        --lc-w: 290px;
        --lc-h: 408px;
        --lc-gap: 32px;
    }
}

@media (max-width: 1024px) {
    .council {
        --lc-w: 252px;
        --lc-h: 366px;
        --lc-gap: 26px;
    }

    .lc-card__name {
        font-size: 1.16rem;
    }

    .lc-card__role {
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {
    .council {
        --lc-w: 216px;
        --lc-h: 320px;
        --lc-gap: 20px;
    }

    .lc-card__name {
        font-size: 1.05rem;
    }

    .lc-card__body {
        padding: 0.85rem 0.8rem 1.05rem;
    }
}

/* موبايل: تكديس رأسي ثابت (يُفعّله JS عبر is-static) */
@media (max-width: 768px) {
    .council {
        --lc-w: min(86vw, 360px);
        --lc-h: 460px;
        --lc-gap: 1.5rem;
    }

    .council__head {
        padding-top: 4.5rem;
    }

    /* على الموبايل: بطاقة الرئيس أولاً لأولوية بصرية أوضح */
    .council__stage.is-static .lc-card--center {
        order: -1;
    }

    .lc-card__name {
        font-size: 1.35rem;
    }

    .lc-card__role {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .council__hint svg {
        animation: none;
    }

    .lc-card__inner {
        transition: none;
    }
}

/* ================================================================
   STATS SECTION — الجامعة في أرقام
   خلفية كحلية فخمة تطابق هوية الموقع + بطاقات زجاجية + عدّاد
   ================================================================ */
.stats {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(5rem, 12vh, 9rem) var(--spacing-margin-mobile);
    /* خلفية كحلية مطابقة لقسم مجلس الجامعة */
    background:
        radial-gradient(120% 90% at 50% -8%, #11164a 0%, #0a0c26 42%, #05060f 100%);
}

.stats__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.stats__glow {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%);
}

.stats__glow--gold {
    width: 50vmax;
    height: 50vmax;
    top: 38%;
    background: radial-gradient(circle, rgba(254, 166, 25, 0.18), rgba(254, 166, 25, 0) 62%);
}

.stats__glow--navy {
    width: 80vmax;
    height: 80vmax;
    top: 78%;
    background: radial-gradient(circle, rgba(46, 66, 210, 0.16), rgba(46, 66, 210, 0) 60%);
}

.stats__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 66px 66px;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
}

/* ---- العنوان ---- */
.stats__head {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 46rem;
    margin-bottom: clamp(2.8rem, 6vh, 4.5rem);
}

.stats__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1.1rem;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.stats__eyebrow span {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.stats__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.stats__title {
    margin: 0 auto 1rem;
    font-size: clamp(1.85rem, 4.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 28%, #c4caf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- شبكة البطاقات ---- */
.stats__grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* ---- البطاقة الزجاجية ---- */
.stat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(2rem, 3vw, 2.8rem) 1.6rem clamp(1.7rem, 2.4vw, 2.3rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 24px 60px -24px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    opacity: 0; /* مخفية قبل ظهور القسم — الظهور عبر keyframes */
    /* انتقالات التفاعل عند المرور (hover) */
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease,
        border-color 0.45s ease,
        background 0.45s ease;
    will-change: transform;
}

/* رفع المحتوى فوق طبقات التوهّج الزائفة */
.stat-card > * {
    position: relative;
    z-index: 1;
}

/* خط توهّج علوي رقيق (يتمدّد ويتوهّج عند المرور) */
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(180, 146, 88, 0.5), transparent);
    transition: width 0.5s ease, background 0.5s ease;
}



/* ---- ظهور البطاقات عند دخول القسم ---- */
.stats__grid.is-visible .stat-card {
    opacity: 1;
    animation: statCardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.stats__grid.is-visible .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats__grid.is-visible .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats__grid.is-visible .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats__grid.is-visible .stat-card:nth-child(4) { animation-delay: 0.4s; }

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

/* ================= تأثيرات المرور (hover) ================= */
.stats__grid.is-visible .stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(180, 146, 88, 0.4);
    box-shadow:
        0 38px 80px -30px rgba(0, 0, 0, 0.72),
        0 20px 54px -28px rgba(180, 146, 88, 0.55),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.stat-card:hover::before {
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(180, 146, 88, 0.95), transparent);
}

.stat-card:hover::after { opacity: 1; }

.stat-card:hover .stat-card__icon {
    color: #022247;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.1);
}

.stat-card:hover .stat-card__number {
    color: #dcc8a2;
}

.stat-card:hover .stat-card__label {
    color: rgba(255, 255, 255, 0.85);
}

.stat-card__icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    color: var(--gold);
    border: 1px solid rgba(180, 146, 88, 0.22);
    border-radius: 13px;
    background: rgba(180, 146, 88, 0.06);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.stat-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card__number {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.9rem;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.stat-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.4s ease;
}

/* ---- استجابة ---- */
@media (max-width: 900px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 640px;
    }
}

@media (max-width: 560px) {
    .stats__grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-card { opacity: 1; }
    .stats__grid.is-visible .stat-card { animation: none; }
    .stat-card:hover,
    .stat-card:hover .stat-card__icon { transform: none; }
}

/* ================================================================
   NEWS SECTION — آخر الأخبار والنشاطات
   قسم فاتح أنيق + تبويبان (الجامعة / الكليات) + 3 أخبار ثابتة
   والباقي داخل سلايدر Swiper.
   ================================================================ */
.news-section {
    position: relative;
    background:rgb(247, 243, 234);
    padding: clamp(4rem, 9vh, 7rem) 0 clamp(4.5rem, 9vh, 7rem);
    overflow: hidden;
}

.news-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-margin-mobile);
}

/* ---- العنوان ---- */
.news-header {
    text-align: center;
    margin-bottom: clamp(2.2rem, 5vh, 3.4rem);
}

.news-title {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-navy);
}

.news-title-line {
    width: 72px;
    height: 4px;
    margin: 1rem auto 1.1rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold), #dcc8a2);
}

.news-section .colleges-grid-desc {
    max-width: 52ch;
    margin: 0 auto;
    color: var(--deep-navy);

    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.8;
}

/* ---- التبويبات ---- */
.news-tabs-wrapper {
    display: flex;
    justify-content: end;

    margin-bottom: clamp(2.2rem, 5vh, 3.2rem);
}

.news-tabs {
    display: inline-flex;
    padding: 0.4rem;
    border-radius: 99px;
    background: rgba(1, 30, 70, 0.05);
    border: 1px solid rgba(1, 30, 70, 0.07);
}

.news-tab {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    /* font-size: clamp(0.9rem, 1.5vw, 0.5rem); */
    font-weight: 600;
    color: rgba(1, 30, 70, 0.62);
    padding: 0.7rem 1.7rem;
    border-radius: 99px;
    background: transparent;
    transition: color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.news-tab:hover {
    color: var(--deep-navy);
}

.news-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--deep-navy), #0a3163);
    box-shadow: 0 10px 24px -10px rgba(1, 30, 70, 0.55);
}

/* ---- لوحات المحتوى ---- */
.news-panel {
    display: none;
    animation: newsFade 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-panel.active {
    display: block;
}

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

/* ---- شبكة الأخبار الثابتة (3) ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: clamp(2.2rem, 4vh, 3rem);
}

/* ---- بطاقة الخبر ---- */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(1, 30, 70, 0.06);
    border-radius: 18px;
    overflow: hidden;
    /* box-shadow: 0 14px 36px -22px rgba(1, 30, 70, 0.35); */
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 146, 88, 0.4);
    box-shadow: 0 26px 50px -22px rgba(1, 30, 70, 0.4);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card-image img {
    transform: scale(1.07);
}

.news-category {
    position: absolute;
    top: 0px;
    z-index: 2;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    border-bottom-left-radius: 15px;
    background: var(--gold);
    box-shadow: 0 6px 16px -6px rgba(133, 83, 0, 0.6);
}

.news-card-body {
    flex: 1;
    padding: 1.3rem 1.4rem 0.4rem;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-dark);
    margin-bottom: 0.7rem;
}

.news-date i {
    font-size: 0.85rem;
}

.news-card-title {
    margin: 0 0 0.6rem;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--deep-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--deep-navy);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 0.9rem 1.4rem 1.3rem;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-navy);
    text-decoration: none;
    transition: gap var(--transition-base), color var(--transition-base);
}

.news-read-more i {
    font-size: 0.8rem;
    transition: transform var(--transition-base);
}

.news-read-more:hover {
    color: var(--gold-dark);
}

.news-read-more:hover i {
    transform: translateX(-4px);
}

/* ---- السلايدر ---- */
.news-swiper {
    width: 100%;
    padding-bottom: 0.5rem;
}

.news-swiper .news-card {
    height: 100%;
}

.news-swiper .swiper-slide {
    height: auto;
}

/* أدوات التحكم */
.news-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.news-slider-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(1, 30, 70, 0.12);
    background: #fff;
    color: var(--deep-navy);
    font-size: 0.95rem;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.news-slider-btn:hover {
    background: linear-gradient(135deg, var(--deep-navy), #0a3163);
    color: #fff;
    transform: translateY(-2px);
}

.news-slider-btn.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

.news-slider-pagination {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    width: auto;
}

.news-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: rgba(1, 30, 70, 0.22);
    opacity: 1;
    transition: width var(--transition-base), background var(--transition-base);
}

.news-slider-pagination .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 99px;
    background: var(--gold);
}

/* ---- زر عرض الجميع ---- */
.news-view-all {
    display: flex;
    justify-content: center;
    margin-top: clamp(2.4rem, 5vh, 3.4rem);
}

.news-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background:var(--gold);
    box-shadow: 0 4px 20px -12px rgba(1, 30, 70, 0.55);
    transition: transform var(--transition-base), box-shadow var(--transition-base), gap var(--transition-base);
}

.news-view-all-btn i {
    transition: transform var(--transition-base);
}

.news-view-all-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 20px 38px -14px rgba(1, 30, 70, 0.6); */
    background-color: var(--gold-dark);
}

.news-view-all-btn:hover i {
    transform: translateX(-5px);
}

/* ---- استجابة ---- */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .news-panel { animation: none; }
    .news-card,
    .news-card-image img { transition: none; }
}

/* ================================================================
   FACULTY SECTION — الهيئة التدريسية
   بطاقة بلوحة خلفية مزاحة + عمود تواصل جانبي، بهوية الموقع الكحلي/الذهبي
   جميع الأعضاء داخل سلايدر Swiper يعرض 3 بطاقات.
   ================================================================ */
.faculty {
    position: relative;
    background: #f7f9fb;
    padding: clamp(4rem, 9vh, 7rem) 0 clamp(4.5rem, 9vh, 7rem);
    overflow: hidden;
}

.faculty__container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-margin-mobile);
}

/* ---- العنوان ---- */
.faculty__head {
    text-align: center;
    margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
}

.faculty__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.faculty__eyebrow span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.faculty__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.faculty__title {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-navy);
}

.faculty__desc {
    max-width: 54ch;
    margin: 0 auto;
    color: var(--deep-navy);

    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.8;
}

/* ---- السلايدر ---- */
.faculty-swiper {
    width: 100%;
    padding-bottom: 0.5rem;
}

.faculty-swiper .swiper-slide {
    height: auto;
}

/* ---- بطاقة العضو ---- */
.faculty-card {
    position: relative;
}

/* لوحة الخلفية المزاحة */
.faculty-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: calc(100% - 60px);
    height: 100%;
    background-color: rgb(247, 243, 234);
    border: 1px solid rgba(1, 30, 70, 0.06);
    border-radius: 16px;
    z-index: -2;
    direction: ltr;
}

/* اللوحة التي تنزلق عند المرور */
.faculty-card::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #f2f2f2, #e2e2e2);
    border-radius: 16px;
    z-index: -1;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    direction: ltr;
}

.faculty-card:hover::after {
    width:  calc(100% - 60px);
}

/* الصورة */
.faculty-card__data {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 60px;

}

/* رابط الصورة (يحتل مكان الصورة في الشبكة) */
.faculty-card__photo {
    display: block;
    flex: 0 0 auto;
    width: calc(100% - 60px);
    line-height: 0;
}

.faculty-card__data img {
    width: 100%;
    object-fit: cover;
    height: 360px;
    border-radius: 14px;
    transition: filter var(--transition-base), transform var(--transition-base);
}

.faculty-card:hover .faculty-card__data img {
    filter: grayscale(0.5);
}

/* عمود التواصل الجانبي */
.faculty-card__social {
    width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.faculty-card__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgba(1, 30, 70, 0.4);
    font-size: 1.05rem;
    transition: color var(--transition-base), transform var(--transition-base);
}

.faculty-card__social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* النص (رابط) */
.faculty-card__text {
    display: block;
    padding: 1.3rem 0;
    margin-inline-start: 80px;
    text-decoration: none;
    color: inherit;
}

.faculty-card__name {
    margin: 0 0 0.4rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--deep-navy);
    transition: color var(--transition-base);
}

.faculty-card:hover .faculty-card__name {
    color: var(--gold-dark);
}

.faculty-card__role {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(1, 30, 70, 0.55);
}

/* ---- أدوات التحكم ---- */
.faculty-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2.2rem;
}

.faculty-slider-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(1, 30, 70, 0.12);
    background: #fff;
    color: var(--deep-navy);
    font-size: 0.95rem;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.faculty-slider-btn:hover {
    background: linear-gradient(135deg, var(--deep-navy), #0a3163);
    color: #fff;
    transform: translateY(-2px);
}

.faculty-slider-btn.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

.faculty-slider-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
}

.faculty-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: rgba(1, 30, 70, 0.22);
    opacity: 1;
    transition: width var(--transition-base), background var(--transition-base);
}

.faculty-slider-pagination .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 99px;
    background: var(--gold);
}

/* ================================================================
   PARTNERS SECTION — شركاء النجاح
   شعار الشريك يطفو فوق حافة البطاقة (نصفه داخلها ونصفه خارجها).
   ================================================================ */
.partners {
    position: relative;
    background: #f7f9fb;
    padding: clamp(4rem, 9vh, 7rem) 0 clamp(4.5rem, 9vh, 7rem);
    overflow: hidden;
}

.partners__container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-margin-mobile);
}

/* ---- العنوان ---- */
.partners__head {
    text-align: center;
    margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
}

.partners__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.partners__eyebrow span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.partners__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.partners__title {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-navy);
}

.partners__desc {
    max-width: 56ch;
    margin: 0 auto;
    color: var(--deep-navy);

    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.8;
}

/* ---- السلايدر ----
   padding-top يترك مساحة كافية للشعار الطافي حتى لا يُقصّ */
.partners-swiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 0.5rem;
}

.partners-swiper .swiper-slide {
    height: auto;
}

/* ---- بطاقة الشريك ---- */
.partner-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    text-decoration: none;
    color: inherit;
    height: 115px;
    padding: 66px 1.25rem 1.7rem;
    background: var(--surface-container-lowest);
    border: 1px solid rgba(1, 30, 70, 0.07);
    border-radius: 20px;
    box-shadow: 0 14px 32px -20px rgba(1, 30, 70, 0.22);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 146, 88, 0.45);
    box-shadow: 0 28px 48px -22px rgba(1, 30, 70, 0.32);
}

/* الشعار الطافي — نصفه فوق حافة البطاقة ونصفه داخلها */
.partner-card__logo {
    position: absolute;
    top: 0;
    inset-inline-start: 50%;
    transform: translate(50%, -50%);
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}



.partner-card:hover .partner-card__logo {
    transform: translate(50%, -50%) scale(1.06);
}



.partner-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* اسم الشريك */
.partner-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--deep-navy);
}

/* ---- أدوات التحكّم ---- */
.partners-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.partners-slider-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(1, 30, 70, 0.12);
    background: #fff;
    color: var(--deep-navy);
    font-size: 0.95rem;
    box-shadow: 0 8px 20px -10px rgba(1, 30, 70, 0.35);
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.partners-slider-btn:hover {
    background: linear-gradient(135deg, var(--deep-navy), #0a3163);
    color: #fff;
    transform: translateY(-2px);
}

.partners-slider-btn.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

.partners-slider-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: auto;
}

.partners-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: rgba(1, 30, 70, 0.22);
    opacity: 1;
    transition: width var(--transition-base), background var(--transition-base);
}

.partners-slider-pagination .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 99px;
    background:  var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .faculty-card::after,
    .faculty-card__data img,
    .partner-card,
    .partner-card__logo { transition: none; }
}

/* ================================================================
   GALLERY SECTION — نافذة على الجامعة (مروحة بطاقات متحركة + GSAP)
   البطاقات مطلقة الموضع ومركزيّة، وحركتها (الإزاحة/الدوران/التحجيم)
   يتحكّم بها GSAP عبر script.js. الأنماط هنا للهيكل والمظهر فقط.
   ================================================================ */
.gallery {
    position: relative;
    background:
        radial-gradient(120% 80% at 50% 0%, #ffffff 0%, #f4efe4 55%, #ece5d8 100%);
    padding: clamp(4rem, 9vh, 7rem) 0 clamp(4.5rem, 9vh, 7rem);
    overflow: hidden;
}

.gallery__container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-margin-mobile);
}

/* ---- العنوان ---- */
.gallery__head {
    text-align: center;
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

.gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.gallery__eyebrow span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.gallery__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.gallery__title {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-navy);
}

.gallery__desc {
    max-width: 56ch;
    margin: 0 auto;
    color: var(--deep-navy);

    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.8;
}

/* ---- مسرح المروحة ---- */
.fan-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fan-layout {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 80rem;
    min-height: 36rem;
}

/* ---- بطاقة (صورة) ---- */
.fan-card {
    position: absolute;
    top: 50%;
    left: 50%;     /* فيزيائي (لا logical) ليتوافق مع إزاحات GSAP في RTL/LTR */
    width: 26rem;
    height: 29rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #011e46;
    border: 4px solid #fff;
    box-shadow:
        0 28px 60px -22px rgba(1, 30, 70, 0.5),
        0 6px 16px rgba(1, 30, 70, 0.18);
    cursor: pointer;
    will-change: transform;
    opacity: 0;            /* يكشفها GSAP عند الدخول */
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* تدرّج خفيف أسفل الصورة لإبراز العمق */
.fan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 30, 70, 0.28), transparent 45%);
    pointer-events: none;
}

/* ---- أدوات التحكّم ---- */
.fan-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 4.5rem;
}

.fan-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(1, 30, 70, 0.12);
    background: #fff;
    color: var(--deep-navy);
    box-shadow: 0 8px 20px -10px rgba(1, 30, 70, 0.35);
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.fan-arrow:hover {
    background: linear-gradient(135deg, var(--deep-navy), #0a3163);
    color: #fff;
    transform: translateY(-2px);
}

.fan-arrow svg {
    width: 18px;
    height: 18px;
}

.fan-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fan-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(1, 30, 70, 0.18);
    transition: width var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.fan-dot.is-active {
    background:  var(--gold);
    transform: scale(1.35);
}

/* ---- تجاوب أحجام البطاقات ---- */
@media (max-width: 1023px) {
    .fan-layout { min-height: 32rem; }
    .fan-card { width: 18rem; height: 26rem; }
}

@media (max-width: 767px) {
    .fan-layout { min-height: 27rem; }
    .fan-card { width: 15rem; height: 22rem; border-width: 3px; }
}

@media (max-width: 639px) {
    .fan-layout { min-height: 24rem; }
    .fan-card { width: 13rem; height: 19rem; }
}

@media (max-width: 479px) {
    .fan-layout { min-height: 21rem; }
    .fan-card { width: 11rem; height: 16rem; }
}

/* ---- بديل عند تعذّر تحميل GSAP ---- */
.fan-layout--fallback {
    flex-wrap: wrap;
    gap: 1rem;
    min-height: auto;
}

.fan-layout--fallback .fan-card {
    position: static;
    width: 12rem;
    height: 17rem;
    opacity: 1;
    transform: none;
}

.fan-layout--fallback .fan-card::after { display: none; }

/* ================================================================
   SUSTAINABILITY SECTION — أهداف التنمية المستدامة (SDGs)
   عجلة Chart.js في الوسط؛ عند المرور على هدف تنزاح يميناً ويظهر
   يساراً مستطيل تفصيلي بلون الهدف. الأنماط هنا للهيكل والحركة.
   ================================================================ */
.sdg {
    position: relative;
    padding: clamp(4rem, 9vh, 7rem) 0 clamp(4.5rem, 9vh, 7rem);
    overflow: hidden;
    background:url("../../images/blob-scene-haikei (12).svg") center / cover no-repeat;
}

.sdg__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 18% 20%, rgba(34, 102, 141, 0.06), transparent 70%),
        radial-gradient(55% 55% at 85% 80%, rgba(43, 192, 86, 0.06), transparent 70%);
    pointer-events: none;
}

.sdg__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-margin-mobile);
}

/* ---- العنوان ---- */
.sdg__head {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3.4rem);
}

.sdg__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    /* SDG-BG-TRIAL — الأصل: color: var(--gold-dark); */
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.sdg__eyebrow span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.sdg__eyebrow span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.sdg__title {
    margin: 0 0 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    /* SDG-BG-TRIAL — الأصل: color: var(--deep-navy); */
    color: var(--deep-navy);
}

.sdg__desc {
    max-width: 60ch;
    margin: 0 auto;
    /* SDG-BG-TRIAL — الأصل: color: rgba(1, 30, 70, 0.6); */
    color: var(--deep-navy);

    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.8;
}

/* ---- المسرح ---- */
.sdg__stage {
    position: relative;
    width: 100%;
    min-height: clamp(380px, 48vw, 560px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* العجلة: مركزية افتراضياً، تنزاح يميناً عند التفعيل */
.sdg__chart {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(300px, 44vw, 500px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.sdg__stage.is-active .sdg__chart {
    transform: translate(-50%, -50%) translateX(clamp(130px, 16vw, 250px));
}

.sdg__chart canvas {
    width: 100% !important;
    height: 100% !important;
}

#sdgChart {
    transform: scale(1.15);
}

/* المستطيل التفصيلي: يخرج من اليسار */
.sdg__detail {
    position: absolute;
    top: 50%;
    left: clamp(0px, 4vw, 56px);
    width: min(488px, 42vw);
    transform: translateY(-50%) translateX(-24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.6s;
    z-index: 3;
}

.sdg__stage.is-active .sdg__detail {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* ---- بطاقة الهدف (داخل المستطيل) — لونها لون الهدف عبر --goal ---- */
.sdg-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 26px 50px -24px rgba(1, 30, 70, 0.4);
    border: 1px solid rgba(1, 30, 70, 0.06);
}

.sdg-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: var(--goal, var(--deep-navy));
}

.sdg-card__head img {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
    background: #fff;
}

.sdg-card__head h3 {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.sdg-card__body {
    padding: 1.2rem;
}

.sdg-card__desc {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(1, 30, 70, 0.72);
}

.sdg-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--goal, var(--deep-navy));
    transition: gap var(--transition-base);
}

.sdg-card__link:hover {
    gap: 0.85rem;
}

/* ---- تجاوب: على الشاشات الصغيرة يُكدّس عمودياً ---- */
@media (max-width: 1250px) {
    .sdg__stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .sdg__chart,
    .sdg__stage.is-active .sdg__chart {
        position: static;
        transform: none;
        width: min(80vw, 360px);
        order: 1;
    }

    .sdg__detail,
    .sdg__stage.is-active .sdg__detail {
        position: static;
        transform: none;
        width: min(94vw, 440px);
        max-width: 100%;
        order: 2;
    }

    .sdg__detail {
        height: 0;
        margin-top: 0;
        overflow: hidden;
    }

    .sdg__stage.is-active .sdg__detail {
        height: auto;
        margin-top: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sdg__chart,
    .sdg__detail { transition: none; }
}

/* ================================================================
   FOOTER — تذييل الموقع
   خلفية كحلية فخمة، توزيع شبكي خماسي، أيقونات تواصل، خريطة، شريط سفلي.
   ================================================================ */
.footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(160deg, #022247 0%, #01162f 55%, #010e22 100%);
}

.footer__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


/* ---- الشبكة العلوية ---- */
.footer__top {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(3rem, 6vh, 4.5rem) var(--spacing-margin-mobile) clamp(2rem, 4vh, 3rem);
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr 1.7fr;
    gap: clamp(1.6rem, 3vw, 2.6rem);
}

/* ---- العلامة + النص التعريفي ---- */
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    margin-bottom: 1.2rem;
}

.footer__logo-badge {
    width: 86px;
    height: 86px;
    flex: none;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px;
}

.footer__logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__logo-text {
    display: flex;
    flex-direction: column;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.footer__logo-text small {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
}

.footer__desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.62);
}

/* ---- عناوين الأعمدة ---- */
.footer__heading {
    position: relative;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.footer__heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

/* ---- قوائم الروابط ---- */
.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.93rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.68);
    transition: color var(--transition-base), transform var(--transition-base);
}

.footer__links a i {
    font-size: 0.72rem;
    color: var(--gold);
    transition: transform var(--transition-base);
}

.footer__links a:hover {
    color: #fff;
    transform: translateX(-4px);
}

.footer__links a:hover i {
    transform: translateX(-3px);
}

/* ---- التواصل: أيقونات + هاتف + بريد ---- */
.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.footer__social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.footer__social a:hover {
    color: #022247;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer__contact-icon {
    width: 36px;
    height: 36px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--gold);
    background: rgba(180, 146, 88, 0.12);
}

.footer__contact-list a {
    font-size: 0.95rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    transition: color var(--transition-base);
}

.footer__contact-list a:hover {
    color: var(--gold);
}

/* ---- الموقع: الخريطة + العنوان ---- */
.footer__map {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}

.footer__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.3) contrast(1.05);
}

.footer__address {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer__address i {
    color: var(--gold);
    margin-top: 0.25rem;
}

/* ---- الشريط السفلي ---- */
.footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.3rem var(--spacing-margin-mobile);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__legal {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer__legal a {
    position: relative;
    font-size: 0.86rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer__legal a:hover {
    color: var(--gold);
}

.footer__legal li:not(:last-child) a::after {
    content: "";
    position: absolute;
    inset-inline-start: -0.8rem;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
}

/* ---- تجاوب ---- */
@media (max-width: 1100px) {
    .footer__top {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer__brand { grid-column: 1 / -1; }
    .footer__location { grid-column: 1 / -1; }
    .footer__map { height: 220px; }
}

@media (max-width: 680px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
    }
    .footer__brand,
    .footer__location { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}


