/* ==========================================================================
   YELL ACADEMY — public site styles
   Theme     : "Calm focus" — a quiet, study-hall feel
   Palette   : white + a neutral gray scale, charcoal for emphasis
   Typography: Manrope (headings) + Inter (body/UI)
   ========================================================================== */

:root {
    --white: #ffffff;
    --gray-25: #fafafa;
    --gray-50: #f5f6f7;
    --gray-100: #eceef0;
    --gray-200: #dfe2e6;
    --gray-300: #c8ccd2;
    --gray-500: #8a9099;
    --gray-600: #5f6670;
    --gray-700: #454b54;
    --charcoal: #2b2f35;
    --ink: #1c1f23;

    --text: var(--ink);
    --text-muted: var(--gray-600);
    --text-on-dark: #f3f4f6;
    --text-on-dark-muted: #b5bac2;
    --border: var(--gray-200);
    --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px rgba(20, 22, 26, 0.06);
    --shadow-lg: 0 2px 6px rgba(20, 22, 26, 0.06), 0 20px 44px rgba(20, 22, 26, 0.10);
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1180px;

    /* admin.css (the inline-editing chrome) reads this shared palette
       under these generic names — keep both sets in sync if the palette
       above changes. */
    --background: var(--gray-25);
    --surface: #ffffff;
    --primary: var(--charcoal);
    --primary-dark: var(--ink);
    --secondary: var(--gray-600);
    --muted: var(--text-muted);
    --transition: 0.2s ease;

    --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

p {
    margin: 0 0 1em;
}

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

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

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 56px 0;
}

.section--alt {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.section-head {
    max-width: 720px;
    margin: 0 0 44px;
}

.section-head p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 1.04rem;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------- */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 40;
}

.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-logo {
    height: 48px;
    width: 48px;
    flex-shrink: 0;
}

.site-title p {
    margin: 0;
}

.site-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.site-tagline {
    margin-top: 3px !important;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.header-call:hover {
    color: var(--ink);
}

/* --------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------- */

.mega-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 77px;
    z-index: 39;
}

.mega-nav-list {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mega-nav-item {
    position: relative;
}

.mega-nav-link {
    display: block;
    padding: 14px 11px;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}

.mega-nav-item:hover > .mega-nav-link,
.mega-nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.mega-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 50;
}

.mega-nav-item:hover .mega-nav-dropdown,
.mega-nav-item:focus-within .mega-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-nav-dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--gray-700);
}

.mega-nav-dropdown a:hover {
    background: var(--gray-50);
    color: var(--ink);
}

.mega-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------- */

.hero {
    background:
        linear-gradient(180deg, rgba(245, 246, 247, 0) 60%, var(--white) 100%),
        linear-gradient(var(--gray-100) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, var(--gray-100) 1px, transparent 1px) 0 0 / 44px 44px,
        var(--gray-50);
    padding: 96px 0 88px;
    position: relative;
}

.hero-inner {
    max-width: 860px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero .eyebrow {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}

.hero p.hero-lede {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 680px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-hero {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    padding: 80px 0 64px;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.page-hero p:not(.eyebrow) {
    max-width: 660px;
    color: var(--gray-600);
    font-size: 1.08rem;
    margin-bottom: 0;
}

.page-hero .hero-actions {
    justify-content: flex-start;
    margin-top: 28px;
}

/* --------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

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

.btn-sm {
    padding: 9px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: var(--gray-700);
}

.btn-outline,
.btn-outline-dark {
    background: #fff;
    border-color: var(--gray-300);
    color: var(--ink);
}

.btn-outline:hover,
.btn-outline-dark:hover {
    border-color: var(--ink);
}

/* --------------------------------------------------------------------
   STATS STRIP
   -------------------------------------------------------------------- */

.stats-strip {
    background: var(--white);
    padding: 8px 0 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stat-card {
    padding: 28px 20px;
    text-align: center;
    border-left: 1px solid var(--gray-100);
}

.stat-card:first-child {
    border-left: 0;
}

.stat-card .stat-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-card .stat-label {
    font-size: 0.84rem;
    color: var(--gray-600);
}

/* --------------------------------------------------------------------
   HOME — DUAL PATHWAYS
   -------------------------------------------------------------------- */

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

.pathway-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.pathway-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
}

.pathway-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 22px;
}

.pathway-card h3 {
    font-size: 1.6rem;
}

.pathway-card p:not(.eyebrow) {
    color: var(--gray-600);
    margin-bottom: 26px;
}

/* --------------------------------------------------------------------
   ICON GRID (highlights, pedagogy, amenities, values, directions)
   -------------------------------------------------------------------- */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.icon-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
}

.icon-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.icon-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.icon-card p {
    color: var(--gray-600);
    font-size: 0.93rem;
    margin: 0;
}

/* --------------------------------------------------------------------
   TUITION TRACKS
   -------------------------------------------------------------------- */

.track + .track {
    border-top: 1px solid var(--gray-100);
}

.track-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: start;
}

.track-intro {
    position: sticky;
    top: 150px;
}

.track-intro .body-copy {
    white-space: pre-wrap;
    color: var(--gray-600);
    margin-bottom: 26px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.track-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 22px 24px;
    position: relative;
}

.track-item-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.track-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.track-item p {
    color: var(--gray-600);
    font-size: 0.93rem;
    margin: 0;
}

/* --------------------------------------------------------------------
   STUDY HALL — PRICING & TIMINGS
   -------------------------------------------------------------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.price-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    position: relative;
}

.price-card:last-child {
    border-color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.price-card h3 {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 6px;
}

.price-card .price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 18px;
}

.price-features {
    white-space: pre-line;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.9;
    border-top: 1px solid var(--gray-100);
    padding-top: 16px;
    flex: 1;
}

.timings-wrap {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: start;
}

.timings-list {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.timing-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid var(--gray-100);
    position: relative;
}

.timing-row:first-child {
    border-top: 0;
}

.timing-day {
    font-weight: 600;
}

.timing-hours {
    color: var(--gray-600);
    text-align: right;
}

/* --------------------------------------------------------------------
   ACHIEVEMENTS — TOPPERS WALL & TIMELINE
   -------------------------------------------------------------------- */

.toppers + .toppers {
    padding-top: 0;
}

.topper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.topper-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    position: relative;
}

.topper-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gray-100) center / cover no-repeat;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--gray-200);
}

.topper-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 2rem;
}

.topper-score {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.topper-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.topper-card p:not(.topper-score) {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 760px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 43px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 14px 0;
    position: relative;
}

.timeline-year {
    flex-shrink: 0;
    width: 88px;
    text-align: center;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 0;
    position: relative;
    z-index: 1;
}

.timeline-body {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 22px;
    flex: 1;
}

.timeline-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.timeline-body p {
    color: var(--gray-600);
    font-size: 0.93rem;
    margin: 0;
}

/* --------------------------------------------------------------------
   TESTIMONIAL SLIDER
   -------------------------------------------------------------------- */

.testimonial-slider {
    position: relative;
}

.testimonial-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial {
    scroll-snap-align: start;
    margin: 0;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-mark {
    font-size: 1.4rem;
    color: var(--gray-300);
    margin-bottom: 14px;
}

.testimonial blockquote {
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    flex: 1;
}

.testimonial figcaption {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gray-200);
    padding-top: 14px;
}

.testimonial-name {
    font-weight: 700;
    font-family: var(--font-heading);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.slider-btn:hover {
    border-color: var(--ink);
    background: var(--gray-50);
}

/* --------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.card-media {
    aspect-ratio: 4 / 3;
    background: var(--gray-100) center / cover no-repeat;
}

.card-body {
    padding: 26px;
}

.card-body h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--gray-300);
}

.card-link:hover {
    border-color: var(--ink);
}

/* --------------------------------------------------------------------
   CTA BANNER
   -------------------------------------------------------------------- */

.cta-banner {
    background: var(--charcoal);
    color: var(--text-on-dark);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
}

.cta-banner .eyebrow {
    color: var(--text-on-dark-muted);
}

.cta-banner p {
    max-width: 560px;
    margin: 0 auto 30px;
    color: var(--text-on-dark-muted);
}

.cta-banner .btn-primary {
    background: #fff;
    color: var(--ink);
}

.cta-banner .btn-primary:hover {
    background: var(--gray-100);
}

.cta-banner .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.cta-banner .btn-outline:hover {
    border-color: #fff;
}

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

/* --------------------------------------------------------------------
   STANDARD PAGE CONTENT SECTIONS
   -------------------------------------------------------------------- */

.content-block {
    max-width: 760px;
}

.content-block--wide {
    max-width: none;
}

.content-block .body-copy {
    white-space: pre-wrap;
    color: var(--text-muted);
    font-size: 1.03rem;
}

/* --------------------------------------------------------------------
   LISTING PAGES (faculty / announcements & downloads)
   -------------------------------------------------------------------- */

.faculty-roster {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faculty-designation {
    color: var(--gray-600);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.faculty-bio {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin: 14px 0 0;
}

.list-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.list-row {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--ink);
    border-radius: var(--radius);
    padding: 22px 26px;
    position: relative;
}

.list-row-meta {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.list-row h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.list-row p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: 24px 0;
}

/* --------------------------------------------------------------------
   FACULTY PROFILE CARD (faculty roster — one per member)
   -------------------------------------------------------------------- */

.faculty-profile {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
}

.faculty-profile-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--gray-100) center / cover no-repeat;
}

.faculty-profile-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.faculty-profile-fact {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.faculty-profile-fact-label {
    min-width: 140px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------
   CONTACT & ENROLLMENT
   -------------------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.enquiry-form {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enquiry-form:target {
    border-color: var(--ink);
}

.enquiry-form-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.enquiry-form-head > i {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.enquiry-form-head h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.enquiry-form-head p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.92rem;
}

.enquiry-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.enquiry-form input,
.enquiry-form select {
    font: inherit;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--gray-25);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 11px 12px;
    width: 100%;
}

.enquiry-form input:focus,
.enquiry-form select:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
    box-shadow: 0 0 0 3px var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.contact-card--wide {
    grid-column: 1 / -1;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.contact-card .eyebrow {
    display: block;
    margin-bottom: 8px;
}

.contact-card p {
    margin: 0 0 4px;
}

.contact-card a {
    font-weight: 600;
    border-bottom: 1px solid var(--gray-300);
}

.contact-card a:hover {
    border-color: var(--ink);
}

.contact-map {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    filter: grayscale(1);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-lg);
    z-index: 30;
    transition: transform var(--transition), background var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.06);
    background: var(--gray-700);
}

/* --------------------------------------------------------------------
   PHOTO ALBUMS (study hall, events & celebrations)
   -------------------------------------------------------------------- */

/* Albums show as a grid of cover cards; an opened album spans the whole
   row so its photos have room (admin.js toggles the photos panel's
   [hidden]). */
.gallery-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-albums > .empty-state {
    grid-column: 1 / -1;
}

.gallery-album {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.gallery-album:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.gallery-album:has(> .gallery-album-photos:not([hidden])) {
    grid-column: 1 / -1;
}

.gallery-album-header {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

body.wp-edit-mode .gallery-album .gallery-album-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

.gallery-album-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--gray-100) center / cover no-repeat;
}

.gallery-album:has(> .gallery-album-photos:not([hidden])) .gallery-album-cover {
    display: none;
}

.gallery-album-info {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
}

.gallery-album-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.gallery-album-count {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
}

.gallery-album-photos {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}

.gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding-top: 18px;
}

.photo-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-loading {
    padding: 0;
}

/* --------------------------------------------------------------------
   IMAGE LIGHTBOX (photo albums — public, every visitor)
   -------------------------------------------------------------------- */

.wp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 26, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 32px;
}

.wp-lightbox[hidden] {
    display: none;
}

.wp-lightbox img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: var(--shadow-lg);
}

.wp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.wp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: var(--text-on-dark-muted);
    padding: 64px 0 0;
    font-size: 0.92rem;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 40px;
}

.footer-column h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-column i {
    width: 18px;
    margin-right: 6px;
    color: var(--gray-500);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column a:hover {
    color: #fff;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a i {
    margin: 0;
    width: auto;
    color: inherit;
}

.footer-social a:hover {
    border-color: #fff;
}

.footer-bottom {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    text-align: center;
    font-size: 0.82rem;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 14px auto;
    max-width: 320px;
}

.footer-product,
.footer-developer {
    margin: 4px 0;
    color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------- */

/* Eight menu items: tighten spacing on narrower desktops so the nav stays
   on one line until the mobile menu takes over. */
@media (max-width: 1180px) {

    .mega-nav-list {
        padding: 0 8px;
    }

    .mega-nav-link {
        padding: 14px 7px;
        font-size: 0.82rem;
    }
}

@media (max-width: 960px) {

    .mega-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-call span {
        display: none;
    }

    .mega-nav {
        display: none;
        position: sticky;
        top: 77px;
        max-height: calc(100vh - 77px);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .mega-nav.is-open {
        display: block;
    }

    .mega-nav-list {
        flex-direction: column;
        padding: 8px 16px 16px;
    }

    .mega-nav-link {
        padding: 12px 8px;
        border-bottom: 1px solid var(--gray-100);
    }

    .mega-nav-link.active {
        border-bottom-color: var(--gray-100);
        font-weight: 700;
    }

    .mega-nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 12px;
    }

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

    .stat-card:nth-child(3) {
        border-left: 0;
    }

    .stat-card:nth-child(n+3) {
        border-top: 1px solid var(--gray-100);
    }

    .track-grid,
    .timings-wrap {
        display: block;
    }

    .track-intro,
    .timings-wrap .section-head {
        position: static;
        margin-bottom: 28px;
    }

    .testimonial-track {
        grid-auto-columns: calc((100% - 24px) / 2);
    }

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

    .faculty-profile {
        grid-template-columns: 1fr;
    }

    .faculty-profile-photo {
        max-width: 200px;
    }
}

@media (max-width: 640px) {

    .site-header-inner {
        padding: 12px 16px;
        gap: 12px;
    }

    .site-logo {
        height: 40px;
        width: 40px;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .site-tagline {
        display: none;
    }

    .site-header-actions {
        gap: 10px;
    }

    .site-header-actions .btn-sm {
        display: none;
    }

    .mega-nav,
    .mega-nav.is-open {
        top: 65px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .page-hero {
        padding: 56px 0 44px;
    }

    .pathway-card,
    .enquiry-form {
        padding: 26px 22px;
    }

    .testimonial-track {
        grid-auto-columns: 88%;
    }

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

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-year {
        width: 64px;
        font-size: 0.9rem;
    }

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

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}
