/* ============================================================
   Sheikan College — Site Stylesheet
   Rewritten 2026-08 · Bootstrap 5 · bilingual EN / AR
   ------------------------------------------------------------
   Add to <head> BEFORE this file:

   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap">

   The header requires the markup in header-snippet.blade.php —
   CSS alone cannot merge two separate rows into one.
   ============================================================ */

/* ── 0. Design tokens ─────────────────────────────────────── */
:root {
    /* Brand palette (unchanged) */
    --sh-maroon:     #7a2e31;
    --sh-blue:       #064c9e;
    --sh-blue-mid:   #0000a7;
    --sh-blue-light: #4d86be;
    --sh-blue-dark:  #043a78;
    --sh-red:        #cc0000;
    --sh-red-dark:   #5b2023;
    --sh-gray:       #6b7280;
    --sh-gray-light: #f2f3f4;
    --sh-silver:     #a8a9ab;
    --sh-black:      #000030;
    --sh-white:      #ffffff;

    /* Typography
       Figtree carries Latin, Cairo carries Arabic. The browser
       picks per glyph, so one stack serves both languages.
       Swap Figtree for "IBM Plex Sans" or "Inter" if preferred. */
    --font-sans:    "Figtree", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-arabic:  "Cairo", "Figtree", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;

    /* Header metrics — change these, the header follows */
    --logo-height:  54px;
    --nav-gap:      0.15rem;
    --nav-pad-x:    0.7rem;

    /* Surfaces */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 48, 0.08);
    --shadow-md: 0 6px 18px rgba(0, 0, 48, 0.10);
    --shadow-lg: 0 14px 36px rgba(0, 0, 48, 0.16);
    --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 1. Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (min-width: 992px) { html { font-size: 17px; } }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: #22242e;
    background: var(--sh-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--sh-blue);
}

a { text-decoration: none; color: inherit; transition: color var(--ease); }
a:hover { color: var(--sh-red); }

img { max-width: 100%; }

/* Visible keyboard focus — was missing entirely */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 3px solid var(--sh-blue-light);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── 2. Arabic / RTL ──────────────────────────────────────────
   Most direction handling now uses CSS logical properties
   (margin-inline, padding-inline, border-inline), so this block
   only carries what genuinely differs.
   ─────────────────────────────────────────────────────────── */
html[dir="rtl"] body,
html[dir="rtl"] .navbar,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] button {
    font-family: var(--font-arabic);
}

/* Arabic needs more leading and no negative tracking */
html[dir="rtl"] body {
    line-height: 1.9;
    letter-spacing: 0;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
    letter-spacing: 0;
    line-height: 1.5;
}

html[dir="rtl"] .hero-slider .slide-bg::after {
    background: linear-gradient(270deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.28) 45%,
        rgba(0, 0, 0, 0.10) 100%);
}

html[dir="rtl"] .contact-page-content,
html[dir="rtl"] .contact-page-content *,
html[dir="rtl"] .contact-info-box,
html[dir="rtl"] .contact-info-box * {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] .contact-page-content img { float: none; }

/* ── 3. Top utility bar ───────────────────────────────────── */
.top-bar {
    background: var(--sh-black);
    color: #bbc2cc;
    font-size: 0.78rem;
    padding: 6px 0;
}
.top-bar a { color: #bbc2cc; }
.top-bar a:hover { color: var(--sh-white); }

.top-bar-contact,
.top-bar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar .lang-btn {
    background: var(--sh-red);
    color: var(--sh-white);
    padding: 2px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}
.top-bar .lang-btn:hover {
    background: var(--sh-white);
    color: var(--sh-red);
}

@media (max-width: 575.98px) {
    .top-bar { font-size: 0.72rem; }
    .top-bar-contact { display: none; }
    .top-bar .container { justify-content: center !important; }
}

/* ── 4. Header — logo and menu on ONE line ────────────────────
   Structure: .site-header > .navbar > .container
              ├─ .navbar-brand (logo chip + wordmark)
              ├─ .navbar-toggler
              └─ .navbar-collapse > .navbar-nav
   ─────────────────────────────────────────────────────────── */
.site-header {
    background: var(--sh-blue);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 30;
}

.site-header .navbar {
    padding: 0.4rem 0;
    min-height: calc(var(--logo-height) + 0.8rem);
}

.site-header .navbar > .container,
.site-header .navbar > .container-fluid {
    display: flex;
    flex-wrap: nowrap;      /* the line that stops the menu dropping */
    align-items: center;
    gap: 1rem;
    max-width: 1440px;
}

/* Brand block never shrinks */
.site-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* White chip so a logo with a white background sits cleanly on blue */
.site-header .logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sh-white);
    border-radius: var(--radius-md);
    padding: 4px 6px;
    flex: 0 0 auto;
}
.site-header .logo-wrap img {
    height: var(--logo-height);
    width: auto;
    max-width: none;
    display: block;
}

.site-header .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}
.site-header .univ-name,
.site-header .compact-brand-text {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--sh-white);
}
.site-header .brand-text small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: #bcd4f2;
    text-transform: none;
}
html[dir="rtl"] .site-header .univ-name {
    font-family: var(--font-arabic);
    text-transform: none;
    letter-spacing: 0;
}

.logo-placeholder {
    width: var(--logo-height);
    height: var(--logo-height);
    background: var(--sh-white);
    color: var(--sh-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ── 5. Main navigation ───────────────────────────────────── */
.main-nav .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;           /* allows shrink instead of wrap */
}

.main-nav .navbar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-inline-start: auto;   /* RTL-safe alignment to the end */
    gap: var(--nav-gap);
}

.main-nav .nav-item { flex: 0 0 auto; }

.main-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.8rem, 0.7rem + 0.28vw, 0.94rem);
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    padding: 0.5rem var(--nav-pad-x);
    border-radius: var(--radius-md);
    transition: background var(--ease), color var(--ease);
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus,
.main-nav .navbar-nav .show > .nav-link {
    background: rgba(255, 255, 255, 0.14);
    color: var(--sh-white);
}
.main-nav .navbar-nav .nav-link.active {
    background: var(--sh-red);
    color: var(--sh-white);
}

.main-nav .dropdown-toggle::after { margin-inline-start: 0.3em; }

/* Dropdowns must escape the nowrap row */
.main-nav .dropdown-menu {
    white-space: normal;
    background: var(--sh-white);
    border: 1px solid rgba(0, 0, 48, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    padding: 0.4rem;
    margin-top: 0.5rem;
}
.main-nav .dropdown-item {
    /* was #c8daf0 on a white menu — invisible. Now dark. */
    color: #22242e;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-md);
    white-space: normal;
}
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background: var(--sh-red);
    color: var(--sh-white);
}
.main-nav .dropdown-item.active {
    background: var(--sh-gray-light);
    color: var(--sh-blue);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.35rem 0.55rem;
}
.navbar-toggler-icon { filter: invert(1); }

/* Squeeze zone: enough room for 8 items, only just */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    :root { --logo-height: 46px; --nav-pad-x: 0.45rem; --nav-gap: 0; }
    .site-header .brand-text small { display: none; }
    .site-header .univ-name { font-size: 1.05rem; }
    .site-header .navbar > .container { gap: 0.5rem; }
}

/* Below xl the menu collapses into the toggler — normal stacking */
@media (max-width: 1199.98px) {
    .site-header .navbar > .container { flex-wrap: wrap; }
    .main-nav .navbar-collapse { flex-basis: 100%; }
    .main-nav .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        margin-inline-start: 0;
        padding-block: 0.6rem;
        gap: 0.1rem;
    }
    .main-nav .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.7rem 0.6rem;
    }
    .main-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.2rem 0 0.4rem;
    }
    .main-nav .dropdown-item { color: rgba(255, 255, 255, 0.9); }
}

@media (max-width: 575.98px) {
    :root { --logo-height: 42px; }
    .site-header .univ-name { font-size: 1rem; }
    .site-header .brand-text small { display: none; }
}

/* ── 6. Hero slider ───────────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
}

.hero-slider .carousel-item {
    height: 620px;
    position: relative;
    background: #000;
}
.hero-slider .carousel-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}
.hero-slider .slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.28) 45%,
        rgba(0, 0, 0, 0.10) 100%);
    pointer-events: none;
}

/* Sane stacking: bg 1 · content 3 · controls 4 */
.hero-slider .slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 64px;
    pointer-events: none;   /* let the carousel own empty space */
}

.hero-slider .slide-text-box {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px;
    color: var(--sh-white);
    text-align: center;
    background: rgba(0, 0, 16, 0.48);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(3px);
    pointer-events: auto;   /* but links inside stay clickable */
}

.hero-slider .slide-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffd9d9;
    margin-bottom: 10px;
}

.hero-slider .slide-title,
.hero-slider .slider-title-only,
.hero-slider .carousel-caption h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--sh-white);
    margin: 0 auto 12px;
    max-width: 950px;
}
html[dir="rtl"] .hero-slider .slide-title,
html[dir="rtl"] .hero-slider .slider-title-only {
    font-family: var(--font-arabic);
    letter-spacing: 0;
    line-height: 1.45;
}

.hero-slider .slide-subtitle,
.hero-slider .slide-excerpt {
    font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
    color: #eef5ff;
    margin: 0 auto 18px;
    max-width: 850px;
}

.hero-slider .slide-bottom-link {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-slider .carousel-indicators {
    margin-bottom: 18px;
    z-index: 4;
}
.hero-slider .carousel-indicators button {
    width: 34px;
    height: 4px;
    background: var(--sh-white);
    opacity: 0.6;
    border: 0;
    border-radius: 2px;
}
.hero-slider .carousel-indicators button.active {
    background: var(--sh-red);
    opacity: 1;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 7%;
    z-index: 4;
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    background-color: rgba(122, 46, 49, 0.85);
    border-radius: 50%;
    padding: 18px;
}

.hero-slider.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slider.carousel-fade .carousel-item.active { opacity: 1; }

/* ── 7. Section headings ──────────────────────────────────── */
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    font-weight: 700;
    color: var(--sh-blue);
    border-inline-start: 4px solid var(--sh-red);   /* flips in RTL */
    padding-inline-start: 14px;
    margin-bottom: 24px;
}
html[dir="rtl"] .section-title { font-family: var(--font-arabic); }

.section-title.center {
    border-inline-start: none;
    padding-inline-start: 0;
    text-align: center;
}
.section-title.center::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--sh-red);
    margin: 10px auto 0;
}

/* ── 8. Stats bar ─────────────────────────────────────────── */
.stats-bar {
    background: var(--sh-gray-light);
    border-bottom: 4px solid var(--sh-red);
    padding: 32px 0;
}
.stat-item {
    text-align: center;
    padding: 0 10px;
}
.stat-item .stat-num {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--sh-red);
    /* dropped the stray border-left — it fought the centring */
}
.stat-item .stat-label {
    /* was #a8c4e8 on white — effectively unreadable */
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sh-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    background: rgba(0, 0, 48, 0.12);
    margin: 0 auto;
}

/* ── 9. News cards ────────────────────────────────────────── */
.news-card {
    border: 1px solid rgba(0, 0, 48, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease);
    overflow: hidden;
    height: 100%;
    background: var(--sh-white);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.news-card .card-img-top {
    height: 190px;
    object-fit: cover;
}
.news-card .card-img-placeholder {
    height: 190px;
    background: linear-gradient(135deg, var(--sh-blue) 0%, var(--sh-blue-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card .card-img-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.35);
}
.news-card .card-body { padding: 18px; }
.news-card .card-date {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--sh-red);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.news-card .card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--sh-black);
    margin: 8px 0;
    line-height: 1.35;
}
.news-card .read-more {
    color: var(--sh-blue-mid);
    font-size: 0.84rem;
    font-weight: 600;
}
.news-card .read-more:hover { color: var(--sh-red); }

/* ── 10. Announcements ────────────────────────────────────── */
.ann-section { background: var(--sh-gray-light); }
.ann-item {
    background: var(--sh-white);
    border: 1px solid transparent;      /* was hovering a border that didn't exist */
    border-inline-start: 3px solid var(--sh-silver);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.ann-item:hover {
    border-inline-start-color: var(--sh-red);
    box-shadow: var(--shadow-sm);
}
.ann-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--sh-black);
}
.ann-item small {
    color: var(--sh-gray);
    font-size: 0.78rem;
}

/* ── 11. Programs grid ────────────────────────────────────── */
.college-card {
    border: 1px solid #dde2ea;
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center;
    height: 100%;
    background: var(--sh-white);
    transition: transform var(--ease), border-color var(--ease),
                background var(--ease), box-shadow var(--ease);
}
.college-card:hover {
    transform: translateY(-3px);
    border-color: var(--sh-red);
    background: var(--sh-blue);
    box-shadow: var(--shadow-md);
}
.college-card:hover .college-icon,
.college-card:hover .college-name { color: var(--sh-white); }

.college-icon {
    font-size: 2.1rem;
    color: var(--sh-blue-mid);
    margin-bottom: 12px;
    transition: color var(--ease);
}
.college-name {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--sh-black);
    line-height: 1.35;
    transition: color var(--ease);
}

/* ── 12. Dean / rector ────────────────────────────────────── */
.rector-section {
    background: var(--sh-black);
    color: var(--sh-white);
    padding: 64px 0;
}
.rector-section h2,
.rector-section h3 { color: var(--sh-white); }

.rector-section .rector-img,
.rector-section .rector-img-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sh-red);
}
.rector-section .rector-img-placeholder {
    background: var(--sh-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}
.rector-quote {
    font-size: 1rem;
    color: #ccd8e8;
    border-inline-start: 3px solid var(--sh-red);
    padding-inline-start: 18px;
    /* italic dropped: it renders poorly in Arabic */
}

/* ── 13. Staff cards ──────────────────────────────────────── */
.program-staff-section { background: #f8f9fa; }
.staff-card .card {
    border: 1px solid rgba(0, 0, 48, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
}
.staff-card:hover .card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.staff-photo-wrapper {
    width: 150px;
    height: 150px;
    margin: 25px auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sh-white);
}
.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.staff-name {
    color: var(--sh-blue);
    font-weight: 700;
    font-size: 1.05rem;
}
.staff-position {
    color: #555;
    font-size: 0.85rem;
}

/* ── 14. CMS page content ─────────────────────────────────── */
.editable-page-section { background: var(--sh-white); }
.editable-page-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.9;
    max-width: 78ch;        /* comfortable measure */
}
html[dir="rtl"] .editable-page-content { text-align: right; }

.editable-page-content h1,
.editable-page-content h2,
.editable-page-content h3,
.editable-page-content h4 {
    color: var(--sh-blue);
    font-weight: 700;
    margin: 28px 0 14px;
}
.editable-page-content p { margin-bottom: 16px; }
.editable-page-content ul,
.editable-page-content ol {
    margin-bottom: 18px;
    padding-inline-start: 26px;     /* flips automatically in RTL */
    padding-inline-end: 0;
}
.editable-page-content a {
    color: var(--sh-blue-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.editable-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}
.editable-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.editable-page-content th,
.editable-page-content td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
}
.editable-page-content th {
    background: var(--sh-blue);
    color: var(--sh-white);
    text-align: start;
}
.editable-page-content tbody tr:nth-child(even) { background: #fafbfc; }

/* Tables scroll rather than break the layout on phones */
@media (max-width: 575.98px) {
    .editable-page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ── 15. Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--sh-black);
    color: #98a4b2;
    padding: 56px 0 0;
}
.site-footer h5 {
    color: var(--sh-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sh-red);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a {
    color: #98a4b2;
    font-size: 0.86rem;
}
.site-footer ul li a:hover { color: var(--sh-red); }

.site-footer .footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.86rem;
    margin-bottom: 10px;
}
.site-footer .footer-contact i {
    color: var(--sh-red);
    margin-top: 4px;
    flex: 0 0 auto;
}

.footer-bottom {
    background: #0a0e14;
    color: #6b7684;
    font-size: 0.8rem;
    padding: 14px 0;
    margin-top: 40px;
    border-top: 1px solid #1c2430;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1c2430;
    color: #98a4b2;
    border-radius: 50%;
    margin-inline-end: 8px;
    font-size: 0.9rem;
    transition: background var(--ease), color var(--ease), transform var(--ease);
}
.social-links a:hover {
    background: var(--sh-red);
    color: var(--sh-white);
    transform: translateY(-2px);
}

.footer-map { background: #000; }
.footer-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

/* ── 16. Buttons ──────────────────────────────────────────── */
.btn-sheikan-primary,
.btn-sheikan-outline {
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 11px 24px;
    transition: background var(--ease), color var(--ease),
                border-color var(--ease), transform var(--ease);
}
.btn-sheikan-primary {
    background: var(--sh-red);
    color: var(--sh-white);
    border: 2px solid var(--sh-red);
}
.btn-sheikan-primary:hover {
    background: var(--sh-red-dark);
    border-color: var(--sh-red-dark);
    color: var(--sh-white);
    transform: translateY(-1px);
}
.btn-sheikan-outline {
    background: transparent;
    border: 2px solid var(--sh-blue-mid);
    color: var(--sh-blue-mid);
}
.btn-sheikan-outline:hover {
    background: var(--sh-blue-mid);
    color: var(--sh-white);
    transform: translateY(-1px);
}
/* Outline variant on dark backgrounds (hero, footer) */
.rector-section .btn-sheikan-outline,
.hero-slider .btn-sheikan-outline {
    border-color: var(--sh-white);
    color: var(--sh-white);
}
.rector-section .btn-sheikan-outline:hover,
.hero-slider .btn-sheikan-outline:hover {
    background: var(--sh-white);
    color: var(--sh-blue);
}

/* ── 17. Page hero + breadcrumbs ──────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--sh-blue) 0%, var(--sh-blue-mid) 100%);
    color: var(--sh-white);
    padding: 26px 0 20px;   /* was 4px/3px — the title had no room */
}
.page-hero h1 {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
    margin: 0;
    color: var(--sh-white);
}
.breadcrumb {
    margin: 8px 0 0;
    background: transparent;
    padding: 0;
}
.breadcrumb-item { font-size: 0.83rem; color: #c3d8f2; }
.breadcrumb-item a { color: #c3d8f2; }
.breadcrumb-item a:hover { color: var(--sh-white); }
.breadcrumb-item.active { color: var(--sh-white); }
.breadcrumb-item + .breadcrumb-item::before { color: #8fb3d8; }
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\\";           /* mirrored separator */
}

/* ── 18. Utilities ────────────────────────────────────────── */
.section-pad   { padding: 64px 0; }
.bg-light-gray { background: var(--sh-gray-light); }
.text-red      { color: var(--sh-red) !important; }
.text-blue     { color: var(--sh-blue) !important; }
.border-red    { border-color: var(--sh-red) !important; }

/* ── 19. Responsive tail ──────────────────────────────────── */
@media (max-width: 768px) {
    .hero-slider .carousel-item { height: 420px; }
    .hero-slider .slide-content { padding-bottom: 34px; }
    .hero-slider .slide-text-box {
        padding: 18px;      /* was 114px — a typo that swallowed the slide */
        max-width: 94%;
    }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next { display: none; }
    .section-pad { padding: 44px 0; }
    .rector-section { padding: 44px 0; }
    .stat-divider { display: none; }
}

/* ── 2026-08 Menu: hover dropdown on desktop, clickable parents ── */

/* Desktop: open dropdown on hover of the whole dropdown parent */
@media (min-width: 992px) {
    .main-nav .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    /* Hide the small caret indicator flip on hover */
    .main-nav .navbar-nav .dropdown:hover > .nav-link { background: var(--sh-red); color: #fff !important; }

    /* Prevent a tiny gap between the parent and the menu that would close on mouseleave */
    .main-nav .dropdown-menu {
        margin-top: 0 !important;
        border-top: 3px solid var(--sh-red);
    }
}

/* ── 2026-08 Menu: hover dropdown on desktop, clickable parents ── */

/* Desktop: open dropdown on hover of the whole dropdown parent */
@media (min-width: 992px) {
    .main-nav .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    /* Hide the small caret indicator flip on hover */
    .main-nav .navbar-nav .dropdown:hover > .nav-link { background: var(--sh-red); color: #fff !important; }

    /* Prevent a tiny gap between the parent and the menu that would close on mouseleave */
    .main-nav .dropdown-menu {
        margin-top: 0 !important;
        border-top: 3px solid var(--sh-red);
    }
}

/* ── 2026-08 Menu polish: more transparent, less blur, active glow ── */
.main-nav {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
}

/* Red glow on the currently active nav link */
.main-nav .navbar-nav .nav-link.active {
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.55),
                0 0 4px  rgba(204, 0, 0, 0.35) inset;
    color: var(--sh-red) !important;
}

/* And on hover — softer glow */
.main-nav .navbar-nav .nav-link:hover {
    box-shadow: 0 0 14px rgba(204, 0, 0, 0.35);
}

/* Mobile keeps solid nav — no glow blur artifacts */
@media (max-width: 991px) {
    .main-nav { background: #fff !important; backdrop-filter: none; }
    .main-nav .navbar-nav .nav-link.active { box-shadow: none; }
    .main-nav .navbar-nav .nav-link:hover  { box-shadow: none; }
}

/* ── 2026-08 Active menu item: readable contrast ── */
.main-nav .navbar-nav .nav-link.active,
.main-nav .navbar-nav .dropdown.active > .nav-link {
    background: var(--sh-red) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.55),
                0 2px 6px rgba(204, 0, 0, 0.4);
}

/* Hover: darker text so it doesn't disappear either */
.main-nav .navbar-nav .nav-link:hover {
    background: rgba(204, 0, 0, 0.12) !important;
    color: var(--sh-red-dark) !important;   /* dark maroon — reads clearly */
}

/* ── 2026-08 Active menu item: readable contrast ── */
.main-nav .navbar-nav .nav-link.active,
.main-nav .navbar-nav .dropdown.active > .nav-link {
    background: var(--sh-red) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.55),
                0 2px 6px rgba(204, 0, 0, 0.4);
}

/* Hover: darker text so it doesn't disappear either */
.main-nav .navbar-nav .nav-link:hover {
    background: rgba(204, 0, 0, 0.12) !important;
    color: var(--sh-red-dark) !important;   /* dark maroon — reads clearly */
}

/* ── 2026-08 Submenu: match main menu colors ── */

/* Same glass background + blur as .main-nav */
.main-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 3px solid var(--sh-red) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 48, 0.12);
}

/* Item base: dark text on the glass, no gradient */
.main-nav .dropdown-item {
    color: var(--sh-black) !important;
    background: transparent !important;
    font-weight: 500;
}

/* Hover: same faint-red bg + dark maroon text as main-nav hover */
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background: rgba(204, 0, 0, 0.12) !important;
    color: var(--sh-red-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Active submenu item: same solid red + white text + glow as main-nav active */
.main-nav .dropdown-item.active {
    background: var(--sh-red) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.55),
                0 2px 6px rgba(204, 0, 0, 0.4);
}

/* Mobile: solid readable submenu (glass off) */
@media (max-width: 991px) {
    .main-nav .dropdown-menu {
        background: #fff !important;
        backdrop-filter: none;
    }
}

/* ── 2026-08 Header = menu glass, submenu fully transparent ── */

/* Header now shares the same 55% white glass as the main menu */
.site-header {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
}

/* Submenu — remove the white fill, keep blur so text stays readable */
.main-nav .dropdown-menu {
    background: transparent !important;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
}

/* ── 2026-08 More solid nav + guaranteed text contrast ── */

/* Header + main nav: much more opaque (92% white) — text is clearly readable */
.site-header,
.main-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
}

/* Force strong dark text on nav links so they never blend with bg */
.main-nav .navbar-nav .nav-link {
    color: var(--sh-black) !important;   /* dark navy */
}

/* Submenu: slightly translucent white too, not fully transparent */
.main-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.main-nav .dropdown-item { color: var(--sh-black) !important; }

/* ── 2026-08 Header text: glowy blue with shadow ── */
.site-header .compact-brand-text,
.site-header .univ-name,
.site-header .univ-name small,
.site-header .site-title,
.site-header .site-title *,
.site-header .site-title a,
.site-header .brand-title,
.site-header .brand-text {
    color: var(--sh-blue) !important;
    text-shadow:
        0 0 8px  rgba(6, 76, 158, 0.55),   /* inner blue halo */
        0 0 18px rgba(6, 76, 158, 0.35),   /* outer blur */
        0 2px 4px rgba(0, 0, 48, 0.35);    /* subtle drop shadow for depth */
}

/* Hover: intensify glow */
.site-header .site-title a:hover,
.site-header .brand-title a:hover,
.site-header .brand-text a:hover {
    color: var(--sh-blue-mid) !important;
    text-shadow:
        0 0 12px rgba(0, 0, 167, 0.65),
        0 0 24px rgba(0, 0, 167, 0.4),
        0 2px 6px rgba(0, 0, 48, 0.4);
}

/* ── 2026-08 Larger body + heading sizes ── */
html { font-size: 19px; }                           /* was 17px */
@media (min-width: 992px) { html { font-size: 20px; } }   /* was 18px */

body {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Heading scale — bumped up ~15% */
h1, .h1 { font-size: 2.6rem;  line-height: 1.2; }
h2, .h2 { font-size: 2.1rem;  line-height: 1.25; }
h3, .h3 { font-size: 1.75rem; line-height: 1.3; }
h4, .h4 { font-size: 1.45rem; line-height: 1.35; }
h5, .h5 { font-size: 1.2rem;  line-height: 1.4; }
h6, .h6 { font-size: 1.05rem; line-height: 1.45; }

/* Section titles + card titles nudged up */
.section-title              { font-size: 2rem; }
.news-card .card-title      { font-size: 1.15rem; }
.college-name               { font-size: 1rem; }
.stat-item .stat-num        { font-size: 2.6rem; }

/* Nav a touch bigger too */
.main-nav .navbar-nav .nav-link { font-size: 1.08rem; }

/* Buttons match the new scale */
.btn-sheikan-primary,
.btn-sheikan-outline { font-size: 1.05rem; padding: 12px 24px; }

/* Mobile: scale down slightly so it doesn't feel cramped */
@media (max-width: 767px) {
    html { font-size: 17px; }
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
}

/* ── 2026-08 Smaller main menu text ── */
.main-nav .navbar-nav .nav-link { font-size: 0.9rem; padding: 10px 10px !important; }

@media (min-width: 992px) and (max-width: 1200px) {
    .main-nav .navbar-nav .nav-link { font-size: 0.82rem; padding: 10px 8px !important; }
}

/* ── 2026-08 Larger body + heading sizes ── */
html { font-size: 19px; }                           /* was 17px */
@media (min-width: 992px) { html { font-size: 20px; } }   /* was 18px */

body {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Heading scale — bumped up ~15% */
h1, .h1 { font-size: 2.6rem;  line-height: 1.2; }
h2, .h2 { font-size: 2.1rem;  line-height: 1.25; }
h3, .h3 { font-size: 1.75rem; line-height: 1.3; }
h4, .h4 { font-size: 1.45rem; line-height: 1.35; }
h5, .h5 { font-size: 1.2rem;  line-height: 1.4; }
h6, .h6 { font-size: 1.05rem; line-height: 1.45; }

/* Section titles + card titles nudged up */
.section-title              { font-size: 2rem; }
.news-card .card-title      { font-size: 1.15rem; }
.college-name               { font-size: 1rem; }
.stat-item .stat-num        { font-size: 2.6rem; }

/* Nav a touch bigger too */
.main-nav .navbar-nav .nav-link { font-size: 1.08rem; }

/* Buttons match the new scale */
.btn-sheikan-primary,
.btn-sheikan-outline { font-size: 1.05rem; padding: 12px 24px; }

/* Mobile: scale down slightly so it doesn't feel cramped */
@media (max-width: 767px) {
    html { font-size: 17px; }
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
}

/* ── 2026-08 News single article ── */
.news-single-title {
    color: var(--sh-blue) !important;
    font-family: 'Cairo', 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    border: none;
    padding: 0;
    margin: 0 0 8px !important;
}

/* ── 2026-08 News title: smaller ── */
.news-single-title { font-size: 1.5rem !important; line-height: 1.35; }
@media (max-width: 767px) { .news-single-title { font-size: 1.25rem !important; } }

/* ── 2026-10 Match Kordofan slide-in transition ── */
.hero-slider:not(.carousel-fade) .carousel-item {
    transition: transform 0.7s ease-in-out;
    opacity: 1 !important;
}
.hero-slider.carousel-slide-mode .carousel-item {
    transition: transform 0.7s ease-in-out !important;
}

/* ── 2026-10 TinyMCE image class-based floats ── */
.editable-page-content img.img-float-left,
.editable-page-content figure.image.align-left {
    float: left;
    margin: 6px 28px 18px 0 !important;
    max-width: 45%;
}
.editable-page-content img.img-float-right,
.editable-page-content figure.image.align-right {
    float: right;
    margin: 6px 0 18px 28px !important;
    max-width: 45%;
}
.editable-page-content img.img-center,
.editable-page-content figure.image.align-center {
    display: block;
    margin: 18px auto !important;
    float: none;
}
.editable-page-content img.img-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0 !important;
    float: none;
}

/* RTL swap */
html[dir="rtl"] .editable-page-content img.img-float-left {
    margin: 6px 0 18px 28px !important;
}
html[dir="rtl"] .editable-page-content img.img-float-right {
    margin: 6px 28px 18px 0 !important;
}

/* Mobile: all floats collapse to full-width blocks */
@media (max-width: 640px) {
    .editable-page-content img.img-float-left,
    .editable-page-content img.img-float-right {
        float: none !important;
        display: block;
        max-width: 100%;
        margin: 12px auto !important;
    }
}
