/* ==========================================================================
   Al-Miraj Educational Centre — Main Stylesheet
   Brand: #C00000 (red) · #002070 (navy) · #FFFFFF (white)
   No gradients. Mobile-first. Accessible.
   ========================================================================== */

/* ---------- Reset & Base ---------- */

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

:root {
    /* Brand colours */
    --red: #C00000;
    --red-dark: #B00000;
    --navy: #002070;
    --navy-deep: #001060;
    --white: #FFFFFF;
    --bg-light: #F8F9FC;
    --text-dark: #172033;
    --red-light: #FDECEC;
    --blue-light: #EAF0FA;

    /* Semantic */
    --primary: var(--red);
    --secondary: var(--navy);
    --bg: var(--white);
    --text: var(--text-dark);
    --border: #E2E5EE;
    --whatsapp: #25D366;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;

    /* Spacing */
    --section-pad: 5rem 0;
    --container-max: 1200px;
    --container-pad: 1.25rem;

    /* Transitions */
    --transition: 0.25s ease;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-navy: 0 4px 16px rgba(0, 32, 112, 0.15);
    --shadow-red: 0 4px 16px rgba(192, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ---------- Container ---------- */

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

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.section-lead {
    font-size: 1.1rem;
    color: #4A5468;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #4A5468;
    max-width: 640px;
    margin: 0 auto;
}

.text-red { color: var(--red); }
.text-navy { color: var(--navy); }

/* ---------- Section ---------- */

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-title {
    margin-bottom: 0.75rem;
}

.section-light-blue {
    background: var(--blue-light);
}

.section-light-red {
    background: var(--red-light);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
    touch-action: manipulation;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    border-color: var(--red-dark);
    box-shadow: var(--shadow-red);
}

.btn-secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy-deep);
    color: var(--white);
    border-color: var(--navy-deep);
    box-shadow: var(--shadow-navy);
}

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

.btn-outline-primary:hover {
    background: var(--red);
    color: var(--white);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--bg-light);
    color: var(--navy);
    border-color: var(--bg-light);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
    background: #1da851;
    color: var(--white);
    border-color: #1da851;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.btn-md {
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* ---- Logo ---- */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
    padding: 0.25rem 0;
}

.logo-img-footer {
    height: auto;
    width: 180px;
    max-width: 100%;
    padding: 0;
    margin-bottom: 1rem;
}

/* ---- Nav ---- */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-list > li > a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--red);
    background: var(--red-light);
}

.nav-cta {
    margin-left: 0.5rem;
}

/* ---- Dropdown ---- */

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin-bottom: 0.2rem;
}

.dropdown-menu a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: background var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--navy);
}

.dropdown-icon {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
}

.dropdown-text strong {
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 600;
}

.dropdown-text small {
    font-size: 0.75rem;
    color: #6B7280;
}

/* ---- Mobile toggle ---- */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
    margin: 0 auto;
}

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

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

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

.nav-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
    padding: 0.5rem;
}

/* ==========================================================================
   HERO (Home)
   ========================================================================== */

.hero {
    position: relative;
    background: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 112, 0.78);
    pointer-events: none;
}

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

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    direction: rtl;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   PAGE HERO (Inner pages)
   ========================================================================== */

.page-hero {
    background: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 7rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 112, 0.75);
    pointer-events: none;
}

.page-hero-red .page-hero-overlay {
    background: rgba(192, 0, 0, 0.75);
}

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

.page-hero-navy {
    background: var(--navy-deep);
}

.page-hero-red {
    background: var(--red);
}

.page-hero-arabic {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    direction: rtl;
}

.page-hero-title {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.page-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.page-hero-tags {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   WELCOME SECTION
   ========================================================================== */

.welcome-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.welcome-text p {
    margin-bottom: 1rem;
    color: #4A5468;
}

.welcome-text .btn {
    margin-top: 0.5rem;
}

.welcome-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.welcome-image-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 32, 112, 0.88);
    padding: 1.5rem;
    text-align: center;
}

.welcome-image-motto {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--white);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.welcome-image-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    direction: rtl;
}

/* ==========================================================================
   PROGRAMS GRID
   ========================================================================== */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.program-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.program-card-navy {
    border-top: 4px solid var(--navy);
}

.program-card-navy:hover {
    border-color: var(--navy);
}

.program-card-red {
    border-top: 4px solid var(--red);
}

.program-card-red:hover {
    border-color: var(--red);
}

.program-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.program-card-navy .program-card-icon {
    background: var(--blue-light);
    color: var(--navy);
}

.program-card-red .program-card-icon {
    background: var(--red-light);
    color: var(--red);
}

.program-card-arabic {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: #8B95A7;
    direction: rtl;
    margin-bottom: 0.3rem;
}

.program-card-title {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.program-card-desc {
    font-size: 0.9rem;
    color: #4A5468;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.program-card-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.level-tag {
    background: var(--bg-light);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    transition: gap var(--transition);
}

.program-card:hover .program-card-link {
    gap: 0.7rem;
}

/* ==========================================================================
   VALUES GRID
   ========================================================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--red-light);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.value-desc {
    font-size: 0.85rem;
    color: #4A5468;
}

/* ==========================================================================
   STATS
   ========================================================================== */

.section-stats {
    background: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3.5rem 0;
    position: relative;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 112, 0.82);
    pointer-events: none;
}

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

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

.stat-item {
    color: var(--white);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   QUOTE
   ========================================================================== */

.section-quote {
    background: var(--bg-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 252, 0.9);
    pointer-events: none;
}

.section-quote > .container {
    position: relative;
    z-index: 1;
}

.quote-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-mark {
    color: var(--red);
    opacity: 0.2;
    margin: 0 auto 1rem;
}

.quote-block p {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-style: italic;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.quote-block cite {
    font-size: 0.9rem;
    color: #6B7280;
    font-style: normal;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.section-cta {
    background: var(--red);
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-title {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   STORY GRID (About / School / Dugsi / Madrasa)
   ========================================================================== */

.story-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1rem;
    color: #4A5468;
}

.story-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.story-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 32, 112, 0.85);
    padding: 1.75rem;
}

.story-image-overlay-red {
    background: rgba(192, 0, 0, 0.85);
}

.story-image-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.story-image-overlay p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.story-image-arabic {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    direction: rtl;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ==========================================================================
   VISION & MISSION
   ========================================================================== */

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.vm-card {
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
}

.vm-card-navy {
    background: var(--white);
    border: 2px solid var(--navy);
}

.vm-card-red {
    background: var(--white);
    border: 2px solid var(--red);
}

.vm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-card-navy .vm-icon {
    background: var(--blue-light);
    color: var(--navy);
}

.vm-card-red .vm-icon {
    background: var(--red-light);
    color: var(--red);
}

.vm-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.vm-card-navy h3 {
    color: var(--navy);
}

.vm-card-red h3 {
    color: var(--red);
}

.vm-card p {
    color: #4A5468;
    font-size: 0.95rem;
}

/* ==========================================================================
   PHILOSOPHY
   ========================================================================== */

.philosophy-image-wrap {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.philosophy-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 21 / 9;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-item h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.philosophy-item p {
    font-size: 0.9rem;
    color: #4A5468;
}

/* ==========================================================================
   LEVELS GRID
   ========================================================================== */

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.level-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.level-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.level-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.level-card:hover .level-card-image img {
    transform: scale(1.05);
}

.level-card-body {
    padding: 1.75rem;
}

.level-card-number {
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.level-card-name {
    font-size: 1.3rem;
    color: var(--red);
    margin-bottom: 0.3rem;
}

.level-card-full {
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.level-card-desc {
    font-size: 0.88rem;
    color: #4A5468;
}

/* ==========================================================================
   APPROACH GRID
   ========================================================================== */

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.approach-grid-with-image {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.approach-feature-image {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 100%;
}

.approach-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.approach-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.approach-item:hover {
    box-shadow: var(--shadow);
}

.approach-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-light);
    color: var(--navy);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.approach-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.approach-item p {
    font-size: 0.85rem;
    color: #4A5468;
}

/* ==========================================================================
   FACILITIES
   ========================================================================== */

.facilities-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.facilities-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.facility-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}

.facility-img-main {
    aspect-ratio: 4 / 3;
}

.facility-img-secondary {
    aspect-ratio: 16 / 10;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
}

.facility-item svg {
    color: var(--red);
    flex-shrink: 0;
}

/* ==========================================================================
   STRUCTURE GRID (Madrasa)
   ========================================================================== */

.structure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.structure-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all var(--transition);
}

.structure-card:hover {
    box-shadow: var(--shadow);
}

.structure-card-number {
    width: 44px;
    height: 44px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.structure-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.structure-card-desc {
    font-size: 0.88rem;
    color: #4A5468;
}

/* ==========================================================================
   INFO BANNER
   ========================================================================== */

.info-banner {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.info-banner-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--blue-light);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-banner-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.info-banner-content p {
    color: #4A5468;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   STEPS (Admissions)
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
}

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

.step-number {
    width: 48px;
    height: 48px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1.2rem;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.85rem;
    color: #4A5468;
}

/* ==========================================================================
   REQUIREMENTS
   ========================================================================== */

.requirements-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.requirements-list {
    margin-top: 1.5rem;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list svg {
    color: var(--red);
    flex-shrink: 0;
}

.requirements-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.requirements-card h3 {
    color: var(--white);
    margin-bottom: 0.6rem;
}

.requirements-card > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.requirements-card-programs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-link {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.mini-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.mini-link strong {
    font-size: 0.85rem;
    color: var(--white);
}

.mini-link small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   FEES BANNER
   ========================================================================== */

.fees-banner {
    background: var(--blue-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid #D5DEEF;
}

.fees-banner-content > p {
    color: #4A5468;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.fees-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.gallery-filter {
    padding: 0.5rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-filter:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.gallery-filter.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

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

.gallery-item.hidden {
    display: none;
}

.gallery-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image-wrap img {
    transform: scale(1.06);
}

.gallery-image-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 32, 112, 0.85);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}

.gallery-caption {
    padding: 0.8rem 1rem;
    background: var(--white);
}

.gallery-caption h3 {
    font-size: 0.88rem;
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 600;
}

.gallery-empty {
    text-align: center;
    padding: 3rem;
    color: #6B7280;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ---- Form ---- */

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #2E7D32;
}

.form-success svg {
    flex-shrink: 0;
    color: #4CAF50;
    margin-top: 2px;
}

.form-success h3 {
    color: #2E7D32;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.form-success p {
    font-size: 0.88rem;
    color: #4E6E50;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.req {
    color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--red);
}

.form-error {
    display: none;
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 0.3rem;
}

.form-error.show {
    display: block;
}

/* ---- Info ---- */

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon-navy {
    background: var(--blue-light);
    color: var(--navy);
}

.contact-info-icon-green {
    background: #E0F5E6;
    color: var(--whatsapp);
}

.contact-info-icon-red {
    background: var(--red-light);
    color: var(--red);
}

.contact-info-body h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.contact-phone-link {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.contact-phone-link:hover {
    color: var(--red);
}

.contact-quick-cta {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
}

.contact-quick-cta h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-quick-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ==========================================================================
   404
   ========================================================================== */

.section-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.not-found {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.not-found-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.not-found-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.not-found-text {
    color: #4A5468;
    margin-bottom: 2rem;
}

.not-found-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.2rem;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
}

.footer-arabic {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    direction: rtl;
}

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-phone,
.footer-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--white);
}

.footer-phone svg,
.footer-email svg {
    flex-shrink: 0;
    color: var(--red);
}

.footer-contact {
    margin-bottom: 1.2rem;
}

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

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.footer-motto {
    font-style: italic;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */

.floating-actions {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
}

.float-call {
    background: var(--red);
    color: var(--white);
}

.float-call:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: scale(1.1);
}

.float-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.float-whatsapp:hover {
    background: #1da851;
    color: var(--white);
    transform: scale(1.1);
}

.float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE — Tablet (≤ 900px)
   ========================================================================== */

@media (max-width: 900px) {
    :root {
        --section-pad: 3.5rem 0;
    }

    /* ---- Nav ---- */
    .nav-toggle {
        display: flex;
    }

    .nav-close {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 4rem 1.5rem 2rem;
        gap: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    }

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

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

    .nav-list > li {
        border-bottom: 1px solid var(--border);
    }

    .nav-list > li > a {
        padding: 0.85rem 0.5rem;
        font-size: 0.95rem;
        border-radius: 0;
    }

    .nav-dropdown {
        position: static;
    }

    .dropdown-arrow {
        float: right;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0.5rem 1rem;
        min-width: auto;
        background: transparent;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .nav-cta {
        margin: 1rem 0 0;
        width: 100%;
        text-align: center;
    }

    .logo-img {
        padding: 0.375rem 0;
    }

    /* ---- Grids ---- */
    .welcome-grid,
    .story-grid,
    .requirements-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

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

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

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

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

    .approach-feature-image {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 250px;
    }

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

    .facilities-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .info-banner {
        flex-direction: column;
        text-align: center;
    }

    .info-banner-icon {
        margin: 0 auto;
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile (≤ 600px)
   ========================================================================== */

@media (max-width: 600px) {
    :root {
        --section-pad: 2.5rem 0;
        --container-pad: 1rem;
    }

    .hero {
        padding: 6.5rem 0 3.5rem;
    }

    .hero-arabic {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .page-hero {
        padding: 6rem 0 2.5rem;
    }

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

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

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

    .approach-feature-image {
        grid-column: span 2;
        min-height: 200px;
    }

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

    .facilities-layout {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-filter {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .fees-banner-buttons {
        flex-direction: column;
    }

    .fees-banner-buttons .btn {
        width: 100%;
    }

    .btn {
        white-space: normal;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .not-found-buttons {
        flex-direction: column;
    }

    .not-found-buttons .btn {
        width: 100%;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-wrap {
        padding: 1.75rem 1.25rem;
    }

    .fees-banner {
        padding: 1.75rem;
    }

    .info-banner {
        padding: 1.75rem;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .contact-quick-cta {
        padding: 1.25rem;
    }

    .requirements-card {
        padding: 1.5rem;
    }

    .program-card-body {
        padding: 1.25rem;
    }

    .level-card-body {
        padding: 1.25rem;
    }

    .value-card {
        padding: 1.25rem;
    }

    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }

    .float-btn {
        width: 48px;
        height: 48px;
    }

    .float-btn svg {
        width: 22px;
        height: 22px;
    }

    .logo-img {
        padding: 0.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   RESPONSIVE — Small mobile (≤ 380px)
   ========================================================================== */

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

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

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

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

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

    .approach-grid,
    .approach-grid-with-image {
        grid-template-columns: 1fr;
    }

    .approach-feature-image {
        grid-column: span 1;
    }

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

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

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

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

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

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

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

    .float-pulse {
        display: none;
    }

    .hero-scroll {
        animation: none;
    }
}

:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

.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;
}

/* ==========================================================================
   BODY PADDING (for fixed header)
   ========================================================================== */

main {
    padding-top: 72px;
}
