/* ============================================================
   KARARY UNIVERSITY - MODERN WEBSITE STYLESHEET
   Brand Colors: Deep Green, Gold, White
   ============================================================ */

/* === CSS VARIABLES === */
:root {
    /* Primary Brand Colors */
    --primary: #0d6b3f;
    --primary-dark: #064d2c;
    --primary-light: #14a85e;
    --primary-50: rgba(13, 107, 63, 0.05);
    --primary-100: rgba(13, 107, 63, 0.1);

    /* Gold Accent */
    --gold: #c8a84e;
    --gold-light: #dfc77a;
    --gold-dark: #a68b3a;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-50: #f1f3f5;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #0f1419;

    /* Functional */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

    /* Typography */
    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'Cairo', sans-serif;

    /* Spacing */
    --section-padding: 50px 0;
    --container-max: 1280px;
    --header-height: 80px;

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Theme colors (Light Default) */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --border: #dee2e6;
}

/* === DARK MODE OVERRIDES === */
[data-theme="dark"] {
    --white: #0d1117;
    --off-white: #161b22;
    --gray-50: #0d1117;
    --gray-100: #161b22;
    --gray-200: #30363d;
    --gray-300: #484f58;
    --gray-400: #6e7681;
    --gray-500: #8b949e;
    --gray-600: #afb8c1;
    --gray-700: #c9d1d9; /* High contrast for body text */
    --gray-800: #e6edf3;
    --gray-900: #f0f6fc;
    
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --border: #30363d;
    
    --primary-50: rgba(13, 107, 63, 0.15);
    --primary-100: rgba(13, 107, 63, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-ar);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    list-style: none;
}

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

.section-padding {
    padding: var(--section-padding);
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
    word-spacing: normal;
    letter-spacing: normal;
}

[dir="ltr"] {
    text-align: left;
}

[dir="rtl"] {
    text-align: right;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light .section-title {
    color: var(--white);
}

.section-header.light .section-desc {
    color: rgba(255,255,255,0.8);
}

.section-badge {
    display: none !important;
}

.section-header.light .section-badge {
    background: rgba(255,255,255,0.15);
    color: var(--gold-light);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 0 auto 16px;
    border-radius: var(--radius-full);
}

.section-desc {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 107, 63, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 107, 63, 0.45);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-right a,
.top-bar-right span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
}

.top-bar-right a:hover {
    color: var(--gold-light);
}

.top-bar-right i {
    color: var(--gold);
    font-size: 0.75rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-light);
    font-weight: 500;
    padding: 4px 14px;
    border: 1px solid rgba(200,168,78,0.3);
    border-radius: var(--radius-full);
}

.lang-switch:hover {
    background: var(--gold);
    color: var(--gray-900);
    border-color: var(--gold);
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: none;
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-emblem {
    position: relative;
}

.logo-shield {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.5rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(13,107,63,0.3);
}

.logo-shield::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid var(--gold);
    border-radius: calc(var(--radius-md) + 3px);
    opacity: 0.5;
}

/* Official Karary mark (SVG) — replaces icon-in-shield */
.logo-shield.logo-shield--svg {
    background: transparent;
    box-shadow: none;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

.logo-shield.logo-shield--svg::after {
    display: none;
}

.karary-logo-img {
    display: block;
    height: 60px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.footer-logo .karary-logo-img--footer,
.karary-logo-img--footer {
    height: 42px;
}

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin: 0;
}

.logo-title-en {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link i {
    font-size: 0.6rem;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Mega Dropdown */
.has-dropdown {
    position: relative;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--primary);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    min-width: 480px;
}

.mega-colleges {
    min-width: 720px;
    right: -100px;
}

.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: flex;
    gap: 32px;
}

.dropdown-col h4 {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-100);
}

.dropdown-col ul li a {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-col ul li a:hover {
    background: var(--primary-50);
    color: var(--primary);
    padding-right: 18px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

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

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

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

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 999;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 10px;
    position: relative;
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-ar);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.search-form button[type="submit"] {
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.search-form button[type="submit"]:hover {
    background: var(--primary-dark);
}

.search-close {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-400);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.search-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 77, 44, 0.88) 0%,
        rgba(13, 107, 63, 0.75) 40%,
        rgba(15, 20, 25, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 700px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 168, 78, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 168, 78, 0.3);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1s both;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

/* ============================================================
   QUICK LINKS RIBBON
   ============================================================ */
.quick-links-section {
    background: var(--white);
    padding: 0;
    margin-top: -45px;
    position: relative;
    z-index: 20;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    border-left: 1px solid var(--gray-100);
}

.quick-link-card:last-child {
    border-left: none;
}

.quick-link-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
}

.quick-link-card:hover {
    background: var(--primary-50);
}

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

.ql-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.quick-link-card:hover .ql-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(13,107,63,0.3);
}

.quick-link-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.9;
    margin-bottom: 16px;
    position: relative;
    padding-right: 20px;
    border-right: 3px solid var(--primary);
}

.about-content > p {
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.af-icon {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.about-feature h4 {
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.about-image-box {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-float {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.about-img-float img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    left: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 25px rgba(200,168,78,0.4);
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================================
   COLLEGES SECTION
   ============================================================ */
.colleges-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #073320 100%);
    position: relative;
}

.colleges-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* College Tabs */
.college-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-full);
    font-family: var(--font-ar);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.tab-btn:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--gray-900);
    border-color: var(--gold);
}

/* Colleges Grid */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* College Card — Premium Glassmorphism v2 */
.college-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 36px 30px 32px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: inherit;
    min-height: 220px;
    justify-content: center;
}

/* Top gradient accent line */
.college-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(200,168,78,0.7), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Corner glow decoration */
.college-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(200,168,78,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

/* Hover state */
.college-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(200,168,78,0.4);
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.4),
        0 0 40px rgba(200,168,78,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

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

.college-card:hover::after {
    transform: scale(1.8);
    background: radial-gradient(circle, rgba(200,168,78,0.22) 0%, transparent 70%);
}

.college-card.hidden {
    display: none;
}

/* Bottom glow on hover */
.cc-bottom-glow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(200,168,78,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
    pointer-events: none;
}

.college-card:hover .cc-bottom-glow {
    opacity: 1;
    bottom: -40px;
}

/* Floating particles */
.cc-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(200,168,78,0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.college-card:hover .cc-particle {
    opacity: 1;
}

.cc-particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation: particleFloat1 3s ease-in-out infinite;
}

.cc-particle:nth-child(2) {
    top: 60%;
    right: 12%;
    width: 3px;
    height: 3px;
    animation: particleFloat2 4s ease-in-out infinite 0.5s;
}

.cc-particle:nth-child(3) {
    bottom: 25%;
    left: 25%;
    width: 5px;
    height: 5px;
    animation: particleFloat3 3.5s ease-in-out infinite 1s;
}

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -12px) scale(1.3); }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, 8px) scale(0.8); }
}

@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6px, 10px) scale(1.2); }
}

/* Icon */
.cc-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(200,168,78,0.18), rgba(200,168,78,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 18px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

/* Icon ring animation */
.cc-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 2px solid rgba(200,168,78,0.12);
    opacity: 0;
    transition: all 0.5s ease;
}

.college-card:hover .cc-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 10px 30px rgba(200,168,78,0.4);
    transform: scale(1.1) translateY(-4px);
}

.college-card:hover .cc-icon::after {
    opacity: 1;
    border-color: rgba(200,168,78,0.5);
    animation: iconPulseRing 2s ease-in-out infinite;
}

@keyframes iconPulseRing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Title */
.college-card h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 14px;
    transition: all 0.4s ease;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.college-card:hover h3 {
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(200,168,78,0.15);
}

/* Explore label at bottom */
.cc-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.4s ease;
    margin-top: auto;
    padding-top: 4px;
    position: relative;
}

.cc-explore::before {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), transparent);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.cc-explore i {
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.college-card:hover .cc-explore {
    color: var(--gold-light);
}

.college-card:hover .cc-explore::before {
    width: 100%;
}

.college-card:hover .cc-explore i {
    transform: translateX(-6px);
}

/* Shimmer effect on hover */
@keyframes cardShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.college-card .cc-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

.college-card:hover .cc-shimmer {
    animation: cardShimmer 0.9s ease-out;
}

/* Staggered entrance for cards */
.college-card:nth-child(1) { transition-delay: 0.05s; }
.college-card:nth-child(2) { transition-delay: 0.1s; }
.college-card:nth-child(3) { transition-delay: 0.15s; }
.college-card:nth-child(4) { transition-delay: 0.2s; }
.college-card:nth-child(5) { transition-delay: 0.25s; }
.college-card:nth-child(6) { transition-delay: 0.3s; }
.college-card:nth-child(7) { transition-delay: 0.35s; }
.college-card:nth-child(8) { transition-delay: 0.4s; }

/* Dark mode — College cards text clarity */
[data-theme="dark"] .college-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .college-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(223,199,122,0.35);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        0 0 40px rgba(200,168,78,0.06);
}

[data-theme="dark"] .college-card h3 {
    color: #f0f6fc;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .college-card:hover h3 {
    color: #f0dda0;
    text-shadow: 0 0 20px rgba(200,168,78,0.2);
}

[data-theme="dark"] .cc-explore {
    color: rgba(240,246,252,0.4);
}

[data-theme="dark"] .college-card:hover .cc-explore {
    color: #f0dda0;
}

[data-theme="dark"] .cc-icon {
    background: linear-gradient(135deg, rgba(223,199,122,0.15), rgba(223,199,122,0.04));
    color: #f0dda0;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
    background: var(--off-white);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-card.featured .nc-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card.featured .nc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card.featured:hover .nc-image img {
    transform: scale(1.05);
}

.nc-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.nc-content {
    padding: 20px;
}

.nc-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.nc-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-400);
}

.nc-meta i {
    color: var(--primary);
}

.nc-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
    line-height: 1.6;
}

.nc-content p {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.nc-read-more {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nc-read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.nc-tag-inline {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card.compact {
    border-right: 3px solid transparent;
}

.news-card.compact:hover {
    border-right-color: var(--primary);
}

.news-card.compact h3 {
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.news-all-btn {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), #073320);
    background-image: url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 70px 0;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 77, 44, 0.92), rgba(15, 20, 25, 0.88));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 24px 10px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold-light);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.svc-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    transition: var(--transition);
}

.service-card:hover .svc-icon-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(13,107,63,0.3);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 14px;
}

.svc-arrow {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.service-card:hover .svc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #073320);
    background-image: url('/images/graduation.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,107,63,0.92), rgba(6,77,44,0.95));
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section {
    background: var(--off-white);
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    min-width: 180px;
    text-align: center;
}

.partner-card i {
    font-size: 1.8rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.partner-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
}

.partner-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.partner-card:hover i {
    color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-top: 60px;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: var(--off-white);
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo .logo-shield {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.footer-logo .logo-shield.logo-shield--svg {
    width: auto;
    height: auto;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-logo span {
    font-size: 0.7rem;
    color: var(--gray-400);
    letter-spacing: 1px;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '‹';
    font-size: 0.8rem;
    color: var(--gold);
    opacity: 0;
    transition: var(--transition-fast);
    transform: translateX(5px);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-right: 8px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact .fc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 3px;
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13,107,63,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-3px);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
    .colleges-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .mega-colleges {
        min-width: 580px;
        right: -50px;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .about-grid {
        gap: 40px;
    }
    .mega-dropdown,
    .mega-colleges {
        min-width: 400px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        z-index: 2000;
        padding: 80px 24px 30px;
        transition: var(--transition);
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    /* Overlay is a direct child of body; header is z-index 1000 so overlay (1999) was painting on top and blocking taps on the drawer */
    body.mobile-nav-open .main-header {
        z-index: 2100;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .mega-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: none;
        border-radius: 0;
        min-width: auto;
        padding: 10px 16px;
        display: none;
        background: var(--gray-50);
    }

    .mega-colleges {
        min-width: auto;
        right: 0;
    }

    .has-dropdown.open .mega-dropdown {
        display: block;
    }

    .dropdown-content {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-image-box {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 75vh;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --header-height: 70px;
    }

    .top-bar-right {
        gap: 12px;
        font-size: 0.7rem;
    }

    .top-bar-right span:last-child {
        display: none;
    }

    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
        border-radius: var(--radius-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-card {
        min-width: auto;
    }
}

/* Mobile overlay — below .main-header when menu open (see body.mobile-nav-open) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--gold);
    color: var(--gray-900);
    transform: rotate(15deg);
}

.theme-toggle i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.theme-toggle .fa-sun {
    color: var(--gold);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --white: #0f1419;
    --off-white: #161b22;
    --gray-50: #1c2128;
    --gray-100: #21262d;
    --gray-200: #30363d;
    --gray-300: #484f58;
    --gray-400: #6e7681;
    --gray-500: #8b949e;
    --gray-600: #b1bac4;
    --gray-700: #c9d1d9;
    --gray-800: #e6edf3;
    --gray-900: #f0f6fc;

    --primary: #1a9956;
    --primary-dark: #13753f;
    --primary-light: #2dd97a;
    --primary-50: rgba(26, 153, 86, 0.08);
    --primary-100: rgba(26, 153, 86, 0.15);

    --gold: #dfc77a;
    --gold-light: #f0dda0;
    --gold-dark: #c8a84e;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.4);
}

/* Top bar dark */
[data-theme="dark"] .top-bar {
    background: #0a0e13;
    border-bottom-color: rgba(255,255,255,0.05);
}

/* Header dark */
[data-theme="dark"] .main-header {
    background: #0f1419;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(15, 20, 25, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] .logo-text h1 {
    color: var(--gold-light);
}

[data-theme="dark"] .logo-title-en {
    color: var(--gray-500);
}

[data-theme="dark"] .logo-shield {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(26,153,86,0.3);
}

[data-theme="dark"] .logo-shield.logo-shield--svg {
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .logo-shield::after {
    border-color: var(--gold-dark);
}

[data-theme="dark"] .logo-shield.logo-shield--svg::after {
    display: none;
}

[data-theme="dark"] .nav-link {
    color: var(--gray-600);
}

[data-theme="dark"] .nav-item:hover .nav-link,
[data-theme="dark"] .nav-item.active .nav-link {
    color: var(--primary-light);
    background: var(--primary-50);
}

[data-theme="dark"] .nav-item.active .nav-link::after {
    background: var(--primary-light);
}

/* Mega dropdown dark */
[data-theme="dark"] .mega-dropdown {
    background: #161b22;
    border-top-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .dropdown-col h4 {
    color: var(--gold-light);
    border-bottom-color: rgba(223,199,122,0.15);
}

[data-theme="dark"] .dropdown-col ul li a {
    color: var(--gray-500);
}

[data-theme="dark"] .dropdown-col ul li a:hover {
    background: rgba(26,153,86,0.1);
    color: var(--primary-light);
}

/* Search dark */
[data-theme="dark"] .search-toggle,
[data-theme="dark"] .theme-toggle {
    background: var(--gray-100);
    color: var(--gray-500);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gold-dark);
    color: #0f1419;
}

[data-theme="dark"] .search-overlay {
    background: #161b22;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .search-form input {
    background: #1c2128;
    border-color: var(--gray-200);
    color: var(--gray-700);
}

[data-theme="dark"] .search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,153,86,0.15);
}

/* Mobile menu dark */
[data-theme="dark"] .mobile-menu-toggle span {
    background: var(--gray-600);
}

[data-theme="dark"] .main-nav {
    background: #0f1419;
}

/* Quick links dark */
[data-theme="dark"] .quick-links-grid {
    background: #161b22;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

[data-theme="dark"] .quick-link-card {
    border-left-color: var(--gray-200);
}

[data-theme="dark"] .quick-link-card:hover {
    background: rgba(26,153,86,0.08);
}

[data-theme="dark"] .quick-link-card span {
    color: var(--gray-600);
}

[data-theme="dark"] .ql-icon {
    background: linear-gradient(135deg, rgba(26,153,86,0.1), rgba(26,153,86,0.05));
    color: var(--primary-light);
}

[data-theme="dark"] .quick-link-card:hover .ql-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 15px rgba(26,153,86,0.3);
}

/*
 * Dark mode: --white is remapped to the page surface (#0f1419).
 * Hero, CTA, and “light” section headers sit on photos/dark bands and must keep real light foreground.
 */
[data-theme="dark"] .hero-content {
    color: #f0f6fc;
}

[data-theme="dark"] .hero-title {
    color: #f6fff9;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.82), 0 1px 3px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .hero-desc {
    color: rgba(240, 246, 252, 0.92);
}

[data-theme="dark"] .hero-section .btn-outline {
    color: #f0f6fc;
    border-color: rgba(240, 246, 252, 0.92);
    background: rgba(4, 13, 8, 0.5);
}

[data-theme="dark"] .hero-section .btn-outline:hover {
    background: #f0f6fc;
    color: #052818;
    border-color: #f0f6fc;
}

[data-theme="dark"] .hero-section .slider-btn {
    color: #f0f6fc;
}

[data-theme="dark"] .cta-content h2 {
    color: #f0f6fc;
}

[data-theme="dark"] .cta-section .btn-outline-light {
    color: #f0f6fc;
    border-color: rgba(240, 246, 252, 0.9);
    background: rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .cta-section .btn-outline-light:hover {
    background: #f0f6fc;
    color: #052818;
    border-color: #f0f6fc;
}

/* Section headers dark */
[data-theme="dark"] .section-title {
    color: var(--gray-800);
}

[data-theme="dark"] .section-header.light .section-title {
    color: #f0f6fc;
}

[data-theme="dark"] .section-header.light .section-desc {
    color: rgba(240, 246, 252, 0.88);
}

[data-theme="dark"] .section-header:not(.light) .section-badge {
    background: rgba(26, 153, 86, 0.42);
    color: #ecfdf5;
    border: 1px solid rgba(240, 221, 160, 0.5);
}

[data-theme="dark"] .section-header.light .section-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fcefb3;
    border: 1px solid rgba(240, 221, 160, 0.42);
}

[data-theme="dark"] .section-desc {
    color: var(--gray-500);
}

/* About section dark */
[data-theme="dark"] .about-section {
    background: #0f1419;
}

[data-theme="dark"] .about-lead {
    color: var(--gray-700);
    border-right-color: var(--primary-light);
}

[data-theme="dark"] .about-content > p {
    color: var(--gray-500);
}

[data-theme="dark"] .about-feature h4 {
    color: var(--gray-800);
}

[data-theme="dark"] .about-feature p {
    color: var(--gray-500);
}

[data-theme="dark"] .af-icon {
    color: var(--primary-light);
}

[data-theme="dark"] .about-img-float {
    border-color: #0f1419;
}

[data-theme="dark"] .about-img-main {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Colleges section dark — already has dark bg, just adjust subtle tones */
[data-theme="dark"] .colleges-section {
    background: linear-gradient(135deg, #081c12 0%, #040d08 100%);
}

/* News section dark */
[data-theme="dark"] .news-section {
    background: #161b22;
}

[data-theme="dark"] .news-card {
    background: #1c2128;
    border-color: var(--gray-200);
}

[data-theme="dark"] .news-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: var(--primary);
}

[data-theme="dark"] .nc-content h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .nc-content p {
    color: var(--gray-500);
}

[data-theme="dark"] .nc-read-more {
    color: var(--primary-light);
}

[data-theme="dark"] .nc-read-more:hover {
    color: var(--gold-light);
}

[data-theme="dark"] .nc-tag-inline {
    background: rgba(26,153,86,0.15);
    color: var(--primary-light);
}

[data-theme="dark"] .news-card.compact {
    border-right-color: transparent;
}

[data-theme="dark"] .news-card.compact:hover {
    border-right-color: var(--primary-light);
}

/* Stats section dark — already dark, soften overlay */
[data-theme="dark"] .stats-section {
    background-color: #040d08;
}

[data-theme="dark"] .stats-overlay {
    background: linear-gradient(135deg, rgba(4, 13, 8, 0.95), rgba(8, 16, 12, 0.92));
}

[data-theme="dark"] .stat-number {
    color: #f0f6fc;
}

/* Services section dark */
[data-theme="dark"] .services-section {
    background: #0f1419;
}

[data-theme="dark"] .service-card {
    background: #1c2128;
    border-color: var(--gray-200);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(26,153,86,0.3);
}

[data-theme="dark"] .service-card h3 {
    color: var(--gray-800);
}

[data-theme="dark"] .service-card p {
    color: var(--gray-500);
}

[data-theme="dark"] .svc-icon-wrap {
    background: linear-gradient(135deg, rgba(26,153,86,0.1), rgba(26,153,86,0.05));
    color: var(--primary-light);
}

[data-theme="dark"] .service-card:hover .svc-icon-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(26,153,86,0.3);
}

[data-theme="dark"] .svc-arrow {
    color: var(--primary-light);
}

/* CTA section dark — already dark bg */
[data-theme="dark"] .cta-section {
    background-color: #040d08;
}

[data-theme="dark"] .cta-overlay {
    background: linear-gradient(135deg, rgba(8,28,18,0.95), rgba(4,13,8,0.97));
}

/* Partners section dark */
[data-theme="dark"] .partners-section {
    background: #161b22;
}

[data-theme="dark"] .partner-card {
    background: #1c2128;
    border-color: var(--gray-200);
}

[data-theme="dark"] .partner-card i {
    color: var(--gray-400);
}

[data-theme="dark"] .partner-card span {
    color: var(--gray-600);
}

[data-theme="dark"] .partner-card:hover {
    border-color: rgba(26,153,86,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .partner-card:hover i {
    color: var(--primary-light);
}

/* Footer dark */
[data-theme="dark"] .main-footer {
    background: var(--primary);
}

[data-theme="dark"] .footer-wave {
    color: #161b22;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .footer-col h4 {
    color: var(--gold-light);
}

[data-theme="dark"] .footer-col h4::after {
    background: var(--gold-dark);
}

[data-theme="dark"] .footer-logo h3 {
    color: var(--gold-light);
}

/* Back to top dark */
[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(26,153,86,0.3);
}

[data-theme="dark"] .back-to-top:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

/* Buttons dark */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(26,153,86,0.25);
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 20px rgba(26,153,86,0.35);
}

/* Scrollbar dark */
[data-theme="dark"]::-webkit-scrollbar-track {
    background: #161b22;
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection dark */
[data-theme="dark"] ::selection {
    background: var(--primary);
    color: #fff;
}

/* Smooth theme transition for all elements */
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   INNER STATIC PAGES (about, law, departments…) — layout + dark
   Tokens scoped under .page-content so dashboard vars stay untouched.
   ========================================/* ============================================================
   INNER STATIC PAGES (about, law, departments…) — layout + dark
   Tokens scoped under .page-content so dashboard vars stay untouched.
   ============================================================ */
[data-theme="dark"] .page-content {
    --bg-primary: #0f1419;
    --card-bg: #161b22;
    --border-color: #30363d;
    --heading-color: #e6edf3;
    --text-color: #c9d1d9;
    --text-secondary: #8b949e;
    --link-color: #6ee7a8;
}

/* Page Banner Enhancement */
body section.page-banner {
    padding: clamp(80px, 15vw, 120px) 0 clamp(50px, 10vw, 80px);
    background: linear-gradient(135deg, #064d2c 0%, #0d6b3f 50%, #0f1419 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
    margin-bottom: 40px;
}

body section.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/pattern-gold.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

body section.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body section.page-banner p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 800px;
}

/* Breadcrumb Styling */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb i { font-size: 0.7rem; opacity: 0.5; }

/* Page Banner Dark Mode Fix */
[data-theme="dark"] section.page-banner h1 {
    color: #ffffff;
}

[data-theme="dark"] .breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .breadcrumb span {
    color: #ffffff;
}

[data-theme="dark"] .breadcrumb a {
    color: var(--gold-light);
}

/* Content Grid Layout */
.page-content .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
}

/* Sidebar Styling */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--card-bg, var(--white));
    border: 1px solid var(--border-color, var(--gray-200));
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: var(--primary);
    color: var(--white);
    transform: translateX(-5px);
}

[dir="ltr"] .sidebar-nav li a:hover,
[dir="ltr"] .sidebar-nav li a.active {
    transform: translateX(5px);
}

/* Tabs Navigation Styling */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

[data-theme="dark"] .tabs-nav { background: #1c2128; }

.tab-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color, var(--gray-200));
    background: var(--card-bg, var(--white));
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(200, 168, 78, 0.3);
}

.tab-btn:hover:not(.active) {
    background: var(--primary-50);
    color: var(--primary);
    border-color: var(--primary);
}

/* Tab Content Animation */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active { display: block; }

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

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-section h2 i { color: var(--gold); font-size: 1.4rem; }

.quran-verse {
    background: rgba(13, 107, 63, 0.04);
    border-right: 5px solid var(--gold);
    padding: 30px;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-family: 'Amiri', serif;
}

/* Agreements Table Styling */
.agreements-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color, var(--gray-200));
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0;
}

.agreements-table th {
    background: var(--gray-50);
    padding: 15px 20px;
    text-align: right;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-100);
}

[dir="ltr"] .agreements-table th { text-align: left; }

.agreements-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color, var(--gray-100));
    font-size: 0.95rem;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .page-content .content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
}

/* Dark Mode Overrides for Static Sections */
[data-theme="dark"] .sidebar-widget { background: #161b22; }
[data-theme="dark"] .sidebar-nav li a { color: #c9d1d9; }
[data-theme="dark"] .content-section h2 { color: #e6edf3; }
[data-theme="dark"] .quran-verse { background: rgba(13, 107, 63, 0.15); color: #6ee7a8; }
[data-theme="dark"] .agreements-table th { background: #0d1117; }
[data-theme="dark"] .agreements-table td { border-color: #30363d; }
ge {
    color: #f0f6fc;
}
.main-footer { background: #0d6b3f !important; }
