/*
Theme Name: Al-Salam University College
Theme URI: https://al-salam-college.local
Author: Al-Salam University College
Author URI: https://al-salam-college.local
Description: A modern, bilingual (Arabic/English) WordPress theme for Al-Salam University College. Features RTL support, custom post types for academic programs, faculty, activities, agreements, regulations, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: al-salam
Tags: education, rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   DESIGN SYSTEM - CSS VARIABLES
   ============================================================ */
:root {
    /* Primary Colors - Navy & Gold */
    --color-primary: #1B2A4A;
    --color-primary-light: #2A3F6E;
    --color-primary-dark: #0F1A2E;
    --color-accent: #D4A843;
    --color-accent-light: #E8C870;
    --color-accent-dark: #B88A2A;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-light-gray: #E9ECEF;
    --color-gray: #6C757D;
    --color-dark-gray: #343A40;
    --color-black: #212529;

    /* Semantic Colors */
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
    --color-info: #17A2B8;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent-dark) 100%);
    --gradient-card: linear-gradient(145deg, rgba(27,42,74,0.02) 0%, rgba(212,168,67,0.05) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 50%, var(--color-accent-light) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(27,42,74,0.7) 0%, rgba(15,26,46,0.9) 100%);

    /* Typography */
    --font-primary: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-secondary: 'Inter', 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    --border-width: 1px;
    --border-color: rgba(0,0,0,0.08);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 20px rgba(212,168,67,0.3);
    --shadow-card-hover: 0 12px 40px rgba(27,42,74,0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-wide: 1440px;
    --header-height: 88px;
    --topbar-height: 40px;
    --sidebar-width: 300px;

    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* English language body */
body.lang-en {
    font-family: var(--font-secondary);
}

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

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

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
    padding: var(--space-4xl) 0;
}

.section--gray {
    background-color: var(--color-off-white);
}

.section--dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

.section__subtitle {
    font-size: var(--font-size-md);
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: var(--font-weight-normal);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar__contact {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.topbar__contact a {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition-fast);
}

.topbar__contact a:hover {
    color: var(--color-accent);
}

.topbar__actions {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.topbar__social {
    display: flex;
    gap: var(--space-sm);
}

.topbar__social a {
    color: rgba(255,255,255,0.7);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
}

.topbar__social a:hover {
    color: var(--color-white);
    background: rgba(212,168,67,0.3);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}

.lang-switcher__btn {
    padding: 4px 12px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.lang-switcher__btn.active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.lang-switcher__btn:hover:not(.active) {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
}

/* ============================================================
   MAIN HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.site-logo__image {
    height: 64px;
    width: auto;
    display: block;
}

/* When a custom logo image is set, the image is the full branding (it already
   includes the college name + emblem) — no duplicate text label needed. */
.site-logo--has-image .site-logo__text { display: none; }

.site-logo__placeholder {
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary-dark);
}

.site-logo__text {
    display: flex;
    flex-direction: column;
}

.site-logo__name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
}

.site-logo__tagline {
    font-size: var(--font-size-xs);
    color: var(--color-accent-dark);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav__list {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-dark-gray);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link.active {
    color: var(--color-accent-dark);
    background: rgba(212,168,67,0.08);
}

/* Dropdown */
.main-nav__item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-normal);
    z-index: var(--z-dropdown);
    border: 1px solid var(--border-color);
}

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

.sub-menu .main-nav__link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.sub-menu .main-nav__link:hover {
    background: rgba(212,168,67,0.1);
    padding-left: calc(var(--space-md) + 4px);
}

[dir="rtl"] .sub-menu .main-nav__link:hover {
    padding-left: var(--space-md);
    padding-right: calc(var(--space-md) + 4px);
}

/* Mobile-only drawer header — hidden on desktop */
.main-nav__head { display: none; }

/* Mobile Menu Toggle — solid gold button, navy bars. Unmissable. */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--color-accent);
    border: 2px solid var(--color-accent-dark);
    cursor: pointer;
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    position: relative;
    z-index: 510;
    box-shadow: 0 2px 8px rgba(212,168,67,0.35);
    transition: background var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}
.menu-toggle:hover, .menu-toggle:focus-visible {
    background: var(--color-accent-light);
    outline: none;
}
.menu-toggle:active { transform: scale(0.95); }

.menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--color-primary-dark);
    margin: 2.5px auto;
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
    transform-origin: center;
}

.menu-toggle.active { background: var(--color-primary); border-color: var(--color-primary-dark); }
.menu-toggle.active span { background: var(--color-accent-light); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav backdrop — plain dark dim, NO blur (compatibility + UX). */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 400;
    cursor: pointer;
}
.nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* When a hero background image is set, the inline style on .hero overrides
   the gradient with `gradient-overlay + url(image)`. These rules just ensure
   the photo sizes correctly behind the overlay. */
.hero--with-image {
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero--with-image::before { opacity: 0.6; } /* pattern fades slightly over photo */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    animation: heroPattern 30s linear infinite;
}

@keyframes heroPattern {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-200px) translateY(-200px); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero .container {
    position: relative;
    z-index: var(--z-base);
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(212,168,67,0.2);
    border: 1px solid rgba(212,168,67,0.4);
    color: var(--color-accent-light);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero__title {
    font-size: clamp(2rem, 5vw, var(--font-size-4xl));
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero__title span {
    color: var(--color-accent);
}

.hero__description {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
    max-width: 550px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.hero__stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-xs);
    display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--color-primary-dark);
}

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

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--outline-dark {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn--sm {
    padding: 8px 18px;
    font-size: var(--font-size-xs);
}

.btn--lg {
    padding: 16px 36px;
    font-size: var(--font-size-base);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212,168,67,0.2);
}

.card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

[dir="rtl"] .card__badge {
    left: auto;
    right: var(--space-md);
}

.card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__category {
    font-size: var(--font-size-xs);
    color: var(--color-accent-dark);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.card__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    line-height: var(--line-height-tight);
}

.card__title a {
    color: inherit;
}

.card__title a:hover {
    color: var(--color-accent-dark);
}

.card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
    flex: 1;
}

.card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-xs);
    color: var(--color-gray);
}

.card__link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent-dark);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-fast);
}

.card__link:hover {
    gap: var(--space-sm);
    color: var(--color-primary);
}

/* Faculty Card */
.faculty-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.faculty-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    overflow: hidden;
    border: 4px solid var(--color-accent);
    box-shadow: var(--shadow-gold);
}

.faculty-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-card__name {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.faculty-card__title {
    font-size: var(--font-size-sm);
    color: var(--color-accent-dark);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-sm);
}

.faculty-card__dept {
    font-size: var(--font-size-xs);
    color: var(--color-gray);
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

.grid--auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================================
   FEATURE BOXES (About/Stats)
   ============================================================ */
.feature-box {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212,168,67,0.3);
}

.feature-box__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: rgba(212,168,67,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--color-accent-dark);
    transition: all var(--transition-normal);
}

.feature-box:hover .feature-box__icon {
    background: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

.feature-box__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.feature-box__text {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
    line-height: var(--line-height-relaxed);
}

/* Stats Counter */
.stats-bar {
    background: var(--gradient-hero);
    padding: var(--space-3xl) 0;
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.stats-bar .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item__number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-item__label {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
    display: block;
}

/* ============================================================
   PAGE HEADER / BREADCRUMB
   ============================================================ */
.page-header {
    background: var(--gradient-hero);
    padding: var(--space-3xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: var(--font-size-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.breadcrumb {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.7);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb__separator {
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__about p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-lg);
}

.footer__title {
    font-size: var(--font-size-md);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-semibold);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

[dir="rtl"] .footer__title::after {
    left: auto;
    right: 0;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

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

[dir="rtl"] .footer__links a:hover {
    transform: translateX(-4px);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.6);
}

.footer__contact-icon {
    color: var(--color-accent);
    font-size: var(--font-size-md);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.5);
}

.footer-bottom__social {
    display: flex;
    gap: var(--space-sm);
}

.footer-bottom__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.footer-bottom__social a:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ============================================================
   ARCHIVE / LISTING PAGE
   ============================================================ */
.archive-content {
    padding: var(--space-3xl) 0;
}

.archive-filters {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
}

.filter-btn {
    padding: 8px 20px;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--color-dark-gray);
    font-weight: var(--font-weight-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.single-content {
    padding: var(--space-3xl) 0;
}

.single-content .container {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-3xl);
}

.single-main {
    min-width: 0;
}

.single-main h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.single-main h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.single-main p {
    line-height: var(--line-height-relaxed);
    color: var(--color-dark-gray);
}

.single-main ul,
.single-main ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

[dir="rtl"] .single-main ul,
[dir="rtl"] .single-main ol {
    padding-left: 0;
    padding-right: var(--space-xl);
}

.single-main li {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
    list-style: disc;
}

.single-main ol li {
    list-style: decimal;
}

/* Sidebar */
.sidebar {
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-widget {
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-color);
}

.sidebar-widget__title {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
}

/* ============================================================
   FORMS (Contact, Search)
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
    background: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.pagination a {
    color: var(--color-dark-gray);
    background: var(--color-white);
}

.pagination a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination .current {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}

/* ============================================================
   AGREEMENT / TABLE STYLES
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    font-size: var(--font-size-sm);
}

.data-table th,
.data-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: start;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.data-table tr:nth-child(even) {
    background: var(--color-off-white);
}

.data-table tr:hover {
    background: rgba(212,168,67,0.05);
}

/* ============================================================
   LEARNING OUTCOMES COMPARISON
   ============================================================ */
.outcomes-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.outcome-year {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.outcome-year__header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    font-weight: var(--font-weight-semibold);
}

.outcome-year__body {
    padding: var(--space-lg);
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
}

.outcome-item__check {
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

[dir="rtl"] .scroll-top {
    right: auto;
    left: var(--space-xl);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212,168,67,0.5);
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: none;
}
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.topbar__search-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    margin-right: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.topbar__search-btn:hover { opacity: 1; }

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay__inner {
    text-align: center;
    width: 100%;
    max-width: 700px;
    padding: var(--space-xl);
}
.search-overlay__close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.search-overlay__close:hover { opacity: 1; }
.search-overlay__title {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
}
.search-overlay__form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.search-overlay__input {
    flex: 1;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
    border: none;
    outline: none;
    font-family: inherit;
}
.search-overlay__submit {
    padding: var(--space-md) var(--space-xl);
    background: var(--color-accent);
    border: none;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: background 0.2s;
}
.search-overlay__submit:hover { background: var(--color-accent-light); }

/* Search Results Page */
.search-page-form__input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color 0.2s;
}
.search-page-form__input:focus {
    border-color: var(--color-primary);
    outline: none;
}
.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.search-result-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}
.search-result-card:hover {
    box-shadow: var(--shadow-md);
}
.search-result-card__type {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}
.search-result-card__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}
.search-result-card__title a {
    color: var(--color-text);
    text-decoration: none;
}
.search-result-card__title a:hover {
    color: var(--color-accent);
}
.search-result-card__excerpt {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}
.search-result-card__meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section { margin-bottom: var(--space-xl); }
.faq-section__title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}
.faq-section__title i { margin-left: 8px; margin-right: 8px; color: var(--color-accent); }

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    text-align: inherit;
    gap: var(--space-md);
}
.faq-item__question:hover { background: rgba(var(--color-primary-rgb, 26, 54, 93), 0.05); }

.faq-item__chevron {
    transition: transform 0.3s ease;
    color: var(--color-accent);
    flex-shrink: 0;
}
.faq-item.open .faq-item__chevron {
    transform: rotate(180deg);
}
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-lg);
}
.faq-item.open .faq-item__answer {
    max-height: 500px;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}
.faq-item__answer p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================================
   ORG CHART
   ============================================================ */
.org-chart { text-align: center; }
.org-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
}
.org-level::before {
    content: '';
    position: absolute;
    top: -var(--space-lg);
    left: 50%;
    width: 2px;
    height: var(--space-lg);
    background: var(--color-accent);
}
.org-level--1::before { display: none; }

.org-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    min-width: 180px;
    max-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.org-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.org-card--president {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}
.org-card--president .org-card__title { color: var(--color-white); }
.org-card--president .org-card__name { color: rgba(255,255,255,0.8); }
.org-card__icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}
.org-card--president .org-card__icon { color: var(--color-accent); }
.org-card__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.org-card__name {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}
.org-card--dept {
    min-width: 150px;
    padding: var(--space-md);
}

.admin-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}
.admin-unit-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}
.admin-unit-card:hover { background: rgba(var(--color-primary-rgb, 26, 54, 93), 0.05); }
.admin-unit-card i {
    color: var(--color-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   CALENDAR / TIMELINE
   ============================================================ */
.calendar-section { margin-bottom: var(--space-xl); }
.section-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}
.section-title i { color: var(--color-accent); margin-left: 6px; margin-right: 6px; }

.calendar-timeline {
    position: relative;
    padding-left: 40px;
}
[dir="rtl"] .calendar-timeline { padding-left: 0; padding-right: 40px; }

.calendar-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
    border-radius: 2px;
}
[dir="rtl"] .calendar-timeline::before { left: auto; right: 15px; }

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.timeline-item__icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    position: absolute;
    left: -40px;
}
[dir="rtl"] .timeline-item__icon { left: auto; right: -40px; }

.timeline-item__content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    flex: 1;
}
.timeline-item__content h3 {
    font-size: var(--font-size-base);
    margin-bottom: 4px;
}
.timeline-item__date {
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Calendar Table */
.calendar-table-wrap { overflow-x: auto; }
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.calendar-table thead { background: var(--color-primary); color: var(--color-white); }
.calendar-table th {
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    text-align: inherit;
}
.calendar-table td {
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}
.calendar-table tbody tr:hover { background: rgba(var(--color-primary-rgb, 26, 54, 93), 0.03); }
.calendar-table tbody tr:nth-child(even) { background: var(--color-surface); }

/* Holidays */
.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}
.holiday-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}
.holiday-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.holiday-card__icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}
.holiday-card__name {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 4px;
}
.holiday-card__days {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}
.gallery-album-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.gallery-album-card__image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.gallery-album-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-album-card:hover .gallery-album-card__overlay { opacity: 1; }
.gallery-album-card__count {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0,0,0,0.7);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
}
[dir="rtl"] .gallery-album-card__count { right: auto; left: var(--space-sm); }
.gallery-album-card__info {
    padding: var(--space-md);
}
.gallery-album-card__info h3 { font-size: var(--font-size-base); margin-bottom: 4px; }
.gallery-album-card__info h3 a { color: var(--color-text); text-decoration: none; }
.gallery-album-card__info h3 a:hover { color: var(--color-accent); }
.gallery-album-card__date { font-size: var(--font-size-xs); color: var(--color-text-light); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.lightbox__prev, .lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.4); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox__caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: var(--font-size-sm);
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border-radius: var(--radius-md);
}

/* ============================================================
   DOWNLOAD CARDS (in archive)
   ============================================================ */
.download-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s;
}
.download-card:hover { box-shadow: var(--shadow-md); }
.download-card__icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.download-card__icon--pdf { background: #e53e3e; }
.download-card__icon--doc { background: #2b6cb0; }
.download-card__icon--xls { background: #38a169; }
.download-card__icon--ppt { background: #d69e2e; }
.download-card__info { flex: 1; }
.download-card__title {
    font-weight: 600;
    font-size: var(--font-size-base);
    margin-bottom: 4px;
}
.download-card__title a { color: var(--color-text); text-decoration: none; }
.download-card__title a:hover { color: var(--color-accent); }
.download-card__meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}
.download-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: background 0.2s;
    flex-shrink: 0;
}
.download-card__btn:hover { background: var(--color-accent-light); }

/* ============================================================
   SITEMAP
   ============================================================ */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}
.sitemap-section__title {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: var(--space-md);
}
.sitemap-section__title i { color: var(--color-accent); margin-left: 6px; margin-right: 6px; }
.sitemap-list {
    list-style: none;
    padding: 0;
}
.sitemap-list li {
    margin-bottom: var(--space-xs);
}
.sitemap-list a {
    color: var(--color-text);
    text-decoration: none;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.2s;
}
.sitemap-list a:hover { color: var(--color-accent); }
.sitemap-list a i { color: var(--color-accent); margin-left: 4px; margin-right: 4px; font-size: 0.85em; }
.sitemap-list ul {
    list-style: none;
    padding-left: var(--space-lg);
    margin-top: var(--space-xs);
}
[dir="rtl"] .sitemap-list ul { padding-left: 0; padding-right: var(--space-lg); }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .single-content .container { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --header-height: 68px; }

    /* Topbar: simpler on tablets */
    .topbar { padding: var(--space-xs) 0; font-size: 0.78rem; }
    .topbar .container {
        flex-direction: column;
        gap: var(--space-xs);
    }
    .topbar__contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
        font-size: 0.78rem;
    }
    .topbar__actions {
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Header: ensure logo + toggle line up cleanly */
    .site-header .container {
        padding: 0 var(--space-md);
        gap: var(--space-md);
    }
    .menu-toggle { display: flex; }
    .site-logo__image { height: 44px; }
    .site-logo--has-image { gap: 0; }

    /* ====== Mobile Nav Drawer ======
       Drawer slides from the SAME side as the hamburger button.
       In RTL the hamburger sits on the visual LEFT (it's at the end of the
       flex header row), so the drawer is anchored to the LEFT and slides
       in from there. LTR is the mirror.
       Transform-based animation (rather than animating right/left) is
       smoother and lets a single .open class flip both directions. */
    .main-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: min(88vw, 360px);
        background: #FFFFFF !important;
        padding: 0;
        z-index: 500; /* well above backdrop (400) */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%); /* RTL default: off-screen to the left */
        transition: transform var(--transition-normal);
        box-shadow: 8px 0 30px rgba(0,0,0,0.25); /* shadow falls into the viewport */
    }
    [dir="ltr"] .main-nav {
        left: auto;
        right: 0;
        transform: translateX(100%); /* LTR: off-screen to the right */
        box-shadow: -8px 0 30px rgba(0,0,0,0.25);
    }
    .main-nav.open { transform: translateX(0); }
    /* Also paint the list explicitly white in case stacking context isolates
       any backdrop bleed-through from the body of the drawer. */
    .main-nav__list { background: #FFFFFF; }

    /* When the WP admin bar is present (logged-in users) push the drawer +
       backdrop down by its height so the drawer header isn't cut off. */
    .admin-bar .main-nav,
    .admin-bar .nav-backdrop { top: 32px; }
    @media (max-width: 782px) {
        .admin-bar .main-nav,
        .admin-bar .nav-backdrop { top: 46px; }
    }

    /* Gold accent strip at top of drawer */
    .main-nav::before {
        content: '';
        display: block;
        height: 6px;
        background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
        flex-shrink: 0;
    }

    /* Drawer header injected by JS — site label + close X */
    .main-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-md) var(--space-lg);
        background: var(--color-primary);
        color: var(--color-white);
        flex-shrink: 0;
    }
    .main-nav__head-title {
        font-size: var(--font-size-md);
        font-weight: var(--font-weight-semibold);
        color: var(--color-accent-light);
        letter-spacing: 0.3px;
    }
    .main-nav__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
        color: var(--color-white);
        border: 1px solid rgba(255,255,255,0.2);
        cursor: pointer;
        transition: all var(--transition-fast);
        flex-shrink: 0;
    }
    .main-nav__close:hover, .main-nav__close:focus-visible {
        background: var(--color-accent);
        color: var(--color-primary-dark);
        border-color: var(--color-accent);
        outline: none;
    }
    .main-nav__close:active { transform: scale(0.92); }

    /* Right-side cluster in the drawer head: lang switcher + close X. */
    .main-nav__head-actions {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    /* In-drawer language switcher — sits on the navy header background, so
       buttons need a lighter border than the topbar version. */
    .lang-switcher--drawer {
        display: inline-flex;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 6px;
        padding: 3px;
        gap: 2px;
    }
    .lang-switcher--drawer .lang-switcher__btn {
        background: transparent;
        color: var(--color-white);
        border: none;
        padding: 5px 11px;
        font-size: 12px;
        font-weight: var(--font-weight-semibold);
        border-radius: 4px;
        cursor: pointer;
        min-width: 38px;
        transition: all var(--transition-fast);
    }
    .lang-switcher--drawer .lang-switcher__btn:hover {
        background: rgba(255,255,255,0.12);
    }
    .lang-switcher--drawer .lang-switcher__btn.active {
        background: var(--color-accent);
        color: var(--color-primary-dark);
    }

    .main-nav__list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: var(--space-md) 0;
        margin: 0;
        flex: 1;
    }

    .main-nav__item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
    }
    .main-nav__item:last-child { border-bottom: none; }

    .main-nav__link {
        padding: 14px var(--space-lg);
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-medium);
        color: var(--color-primary);
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-md);
        min-height: 48px; /* touch target */
    }
    .main-nav__link:hover, .main-nav__link:active {
        background: rgba(212,168,67,0.12);
        color: var(--color-accent-dark);
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        background: var(--color-off-white);
        border-radius: 0;
        min-width: 0;
    }
    [dir="rtl"] .sub-menu { padding: 0; }
    .sub-menu .main-nav__link {
        padding-right: calc(var(--space-lg) + 16px);
        padding-left: var(--space-lg);
        font-size: var(--font-size-sm);
    }
    [dir="ltr"] .sub-menu .main-nav__link {
        padding-left: calc(var(--space-lg) + 16px);
        padding-right: var(--space-lg);
    }
    .main-nav__item.open .sub-menu { display: block; }
    .main-nav__item.open > .main-nav__link .fa-chevron-down { transform: rotate(180deg); }
    .fa-chevron-down { transition: transform var(--transition-fast); }

    /* Lock body scroll while menu is open */
    body.menu-open { overflow: hidden; touch-action: none; }

    /* Critical: `.site-header` has position:sticky + z-index:200 which creates
       a stacking context. The drawer is INSIDE the header, so its z-index is
       capped at 200 in the body coordinate system — below the backdrop (400).
       When the drawer is open, lift the header above the backdrop so the
       drawer (z-index 500 within the header's context) is also above it. */
    body.menu-open .site-header { z-index: 600; }

    /* Hide the hamburger when the drawer is open — the in-drawer close X is
       the one place users tap to dismiss. Avoids the confusing "two X" state. */
    .menu-toggle.active { display: none; }

    /* Hero / sections */
    /* Add extra bottom padding so the .hero::after curve (80px) doesn't clip
       the bottom row of content (specifically the stat labels). */
    .hero { min-height: 500px; padding: var(--space-3xl) 0 calc(var(--space-3xl) + 80px); }
    .hero__stats { flex-wrap: wrap; gap: var(--space-lg); }
    .hero__stat { flex: 1 0 40%; }

    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }

    .section { padding: var(--space-2xl) 0; }
    .section__title { font-size: var(--font-size-2xl); }
}

/* Phone-size — declutter further */
@media (max-width: 600px) {
    :root { --header-height: 64px; }
    .topbar { display: none; } /* contact info is in footer; saves vertical space */

    .site-logo__image { height: 40px; }
    .menu-toggle { width: 44px; height: 44px; }

    .container { padding: 0 var(--space-md); }
    .hero { min-height: 440px; padding: var(--space-2xl) 0 calc(var(--space-2xl) + 80px); }
    .hero__title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .hero__description { font-size: var(--font-size-base); }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    /* Phones: switch stats from 2-column-wrap (which orphans the third stat
       under the white curve) to a single 3-column row. All three stats stay
       visible together at the bottom of the hero. */
    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding-top: var(--space-lg);
        margin-top: var(--space-lg);
    }
    .hero__stat { flex: none; min-width: 0; }
    .hero__stat-number { font-size: clamp(1.1rem, 5.5vw, 1.6rem); }
    .hero__stat-label { font-size: 11.5px; line-height: 1.3; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
    .stat-item__number { font-size: var(--font-size-3xl); }

    .section__title { font-size: var(--font-size-xl); }
    .section__subtitle { font-size: var(--font-size-sm); }
}

/* Tiny phones */
@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
    .site-logo__image { height: 36px; }
}
