/*
    St. Thomas School - Ultra-Premium Avant-Garde Design System
    Theme: Midnight Gold & Ivory (International Magazine Style)
*/

@import url('https://fonts.googleapis.com/css2?family=Suravaram:wght@300;400;500;600&family=Noto+Sans+Telugu:wght@700;800;900&family=Mandali:ital,wght@0,400;0,700;1,400;1,700&family=Ramabhadra:wght@400;600;700;900&display=swap');

*{ letter-spacing: 0em !important;
}

/* Bento Gallery (Home) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-areas:
    "a a a b b b"
    "a a a b b b"
    "c c d d e f"
    "g h i j e f";
}
.bento-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.bento-item:hover img { transform: scale(1.05); }

.bento-grid .bento-item:nth-child(1) { grid-area: a; }
.bento-grid .bento-item:nth-child(2) { grid-area: b; }
.bento-grid .bento-item:nth-child(3) { grid-area: c; }
.bento-grid .bento-item:nth-child(4) { grid-area: d; }
.bento-grid .bento-item:nth-child(5) { grid-area: e; }
.bento-grid .bento-item:nth-child(6) { grid-area: f; }
.bento-grid .bento-item:nth-child(7) { grid-area: g; }
.bento-grid .bento-item:nth-child(8) { grid-area: h; }
.bento-grid .bento-item:nth-child(9) { grid-area: i; }
.bento-grid .bento-item:nth-child(10) { grid-area: j; }

@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    grid-template-areas: none;
  }
  .bento-grid .bento-item { grid-area: auto; }
  .bento-grid .bento-item:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 575px) {
  .bento-grid { grid-auto-rows: 120px; gap: 10px; }
}
/* Telugu pages - Noto Serif Telugu for all text (both headings and body) */
html[lang="te"] {
    font-family: 'Noto Serif Telugu', serif !important;
}

html[lang="te"] * {
    font-family: 'Noto Serif Telugu', serif !important;
}

html[lang="te"] h1,
html[lang="te"] h2,
html[lang="te"] h3,
html[lang="te"] h4,
html[lang="te"] h5,
html[lang="te"] h6,
html[lang="te"] .section-heading,
html[lang="te"] .display-1,
html[lang="te"] .display-2,
html[lang="te"] .display-3,
html[lang="te"] .display-4 {
    font-weight: 700;
    line-height: 1.35;
}

html[lang="te"] p,
html[lang="te"] li,
html[lang="te"] small {
    line-height: 1.85;
}


:root {
    /* Sophisticated Color Palette */
    --p-midnight: #0a1128;
    --p-gold: #d4af37;
    --p-gold-soft: #f4e8c1;
    --p-ivory: #fcfbf7;
    --p-black: #1a1a1a;
    --p-white: #ffffff;
    --p-glass: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Ramabhadra', serif;
    --font-body: 'Noto Sans Telugu', sans-serif;
    --font-accent: 'Suravaram', sans-serif;

    /* Spacing & Layout */
    --container-max: 1440px;

    /* Dynamic Props */
    --header-height: 140px;

    /* Transition Easings â€” REQUIRED for all animations */
    --t-premium: cubic-bezier(0.76, 0, 0.24, 1);
    --t-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Textures & Gradients */
    --grad-midnight: radial-gradient(circle at 0% 0%, #002D5C 0%, #001F3F 100%);
    --grad-gold: linear-gradient(135deg, #D4AF37 0%, #B8860B 50%, #D4AF37 100%);
}

/* Telugu Typography Override */
:lang(te) {
    --font-heading: 'Sree Krushnadevaraya', serif;
    --font-body: 'Mandali', sans-serif;
    --font-accent: 'Ramabhadra', sans-serif;
}

:lang(te) h1,
:lang(te) h2,
:lang(te) h3,
:lang(te) .section-heading,
:lang(te) .display-4 {
    font-weight: 700 !important;
}

/* Logo Switching */
:lang(en) .logo-te {
    display: none !important;
}

:lang(te) .logo-en {
    display: none !important;
}

:lang(te) .logo-te {
    display: block !important;
}

/* Mobile Logo Scaling Inherited */
@media (max-width: 991px) {
    .brand-logo {
        height: 50px !important;
    }
}

:lang(te) h1,
:lang(te) h2,
:lang(te) h3,
:lang(te) h4,
:lang(te) h5,
:lang(te) h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    /* Bold titles for Telugu */
    line-height: 1.6;
    /* Increased for Tenali */
    text-transform: none;
    /* Telugu doesn't have uppercase */
    letter-spacing: normal;
}

:lang(te) body,
:lang(te) p,
:lang(te) a,
:lang(te) span,
:lang(te) button,
:lang(te) div {
    font-family: var(--font-body);
    line-height: 1.8;
    /* Breathable for premium feel */
    font-size: 1.2rem;
    /* Adjusted for Mandali */
}

/* Specific Telugu Legibility Overrides */
:lang(te) .main-nav a {
    font-size: 1.1rem;
    /* Prominent menu */
}

:lang(te) .menu-links a {
    font-size: 2.5rem;
    /* Large mobile menu */
}

:lang(te) .motto-text {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    /* Majestic motto */
}

:lang(te) .benefit-matrix td {
    font-size: 1.3rem;
    /* Legible expertise */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial;
    /* Handled by smooth scroll script usually */
}

body {
    font-family: var(--font-body);
    color: var(--p-black);
    background-color: var(--p-ivory);
    line-height: 1.7;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--p-ivory);
}

::-webkit-scrollbar-thumb {
    background: var(--p-gold);
}

/* Advanced Patterns */
.bg-mesh {
    background: var(--mesh-ivory);
}

.bg-pattern-dots {
    background-image: radial-gradient(var(--p-gold) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.bg-pattern-grid {
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* Floating Architectural Accents */
.arch-accent {
    position: absolute;
    border: 1px solid var(--p-gold);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.arch-circle {
    border-radius: 50%;
    width: 300px;
    height: 300px;
}

.arch-rect {
    width: 200px;
    height: 400px;
}

/* Premium Cards & Containers */
.glass-panel {
    background: var(--p-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sch-watermark {
    position: absolute;
    font-size: 20vh;
    font-family: var(--font-heading);
    color: var(--p-midnight);
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
}
.italic-accent {
    font-family: var(--font-accent);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}
.color-gold {
    color: var(--p-gold);
}

.ls-wide {
    letter-spacing: 0.2em;
}

.z-2 {
    z-index: 2;
}

.top-bar{
	font-family:Outfit !important;
}

/* Premium Architectural Buttons */
.btn-gold {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--p-midnight);
    text-decoration: none;
    border: 1px solid var(--p-gold);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.6s var(--t-premium);
    background: transparent;
}

.btn-gold::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--p-midnight);
    z-index: -1;
    transition: transform 0.6s var(--t-premium);
    transform-origin: bottom;
}

.btn-gold:hover {
    color: var(--p-gold);
}

.btn-gold:hover::after {
    transform: translateY(-100%);
}

.btn-gold-sm {
    padding: 0.8rem 1.6rem;
    font-size: 0.75rem;
}

.stt-gallery-card {
    overflow: hidden;
}

.stt-gallery-thumb {
    height: 190px;
    object-fit: cover;
}

.stt-gallery-card img {
    transition: transform 0.6s var(--t-premium);
}

.stt-gallery-card:hover img {
    transform: scale(1.03);
}

/* Split Layout Utilities (Modified for Bootstrap) */
.split-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Scholarly Premium Header */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--t-premium);
}

.premium-header.scrolled {
    background: rgba(250, 249, 246, 0.98);
    padding: 0.8rem 5%;
    border-bottom: 1px solid var(--p-gold);
}

.benefit-matrix {
    table-layout: fixed;
    width: 100%;
}

.benefit-matrix tr:hover td {
    background: var(--p-ivory);
    border-color: var(--p-gold);
    z-index: 10;
    position: relative;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.03);
}

.benefit-matrix td {
    padding: 2rem;
    background: white;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-matrix td:first-child {
    border-left: 4px solid var(--p-gold);
    font-weight: 800;
    color: var(--p-midnight);
    width: 35%;
    background: rgba(212, 175, 55, 0.03);
}

.benefit-matrix td:last-child {
    border-right: 1px solid rgba(212, 175, 55, 0.05);
    color: var(--p-midnight);
    opacity: 0.9;
}

.benefit-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--p-gold);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-matrix .benefit-text {
    display: flex;
    align-items: center;
}

/* --- Benefit Matrix Mobile Responsiveness --- */
@media (max-width: 768px) {

    .benefit-matrix,
    .benefit-matrix thead,
    .benefit-matrix tbody,
    .benefit-matrix tr,
    .benefit-matrix th,
    .benefit-matrix td {
        display: block;
        width: 100% !important;
    }

    .benefit-matrix thead {
        display: none;
    }

    .benefit-matrix tr {
        margin-bottom: 2rem;
        border: 1px solid rgba(212, 175, 55, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    .benefit-matrix td:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        padding: 1.5rem !important;
        background: rgba(212, 175, 55, 0.05);
        font-size: 1.1rem;
    }

    .benefit-matrix td:last-child {
        padding: 1.5rem !important;
        border-right: none;
    }
}


.display-1,
.display-2,
.display-3 {
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

/* Motto Block Styling (Light Prestige with BG Image) */
.motto-block {
    position: relative;
    padding: 12rem 0;
    text-align: center;
    overflow: hidden;
    color: var(--p-midnight);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.motto-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    /* Higher visibility as requested */
    z-index: 1;
}

.motto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(250, 249, 246, 0.98) 0%,
            rgba(250, 249, 246, 0.4) 50%,
            rgba(250, 249, 246, 0.98) 100%);
    /* Bright cinematic ivory gradient for section differentiation */
    z-index: 2;
}

.motto-text {
    font-family: var(--font-accent);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    /* Slightly larger for impact */
    line-height: 1.4;
    position: relative;
    z-index: 5;
    font-weight: 500;
    color: var(--p-midnight);
    /* Dark color for contrast against bright ivory gradient */
}

.motto-overline {
    color: var(--p-gold);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.75rem;
    margin-bottom: 3rem;
    display: block;
    font-weight: 800;
}

/* --- Consolidated Hero V3 --- */
.hero-v3 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 0 100px;
    background: transparent;
    /* Main element background must be transparent */
    z-index: 1;
    overflow: hidden;
}

/* Background Stack (Bottom up) */
.hero-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FAF9F6 0%, #F0EEE9 100%);
    z-index: -2;
}

.hero-v3::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(212, 175, 55, 0.18) 1.5px, transparent 0),
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    background-size: 40px 40px, 100% 100%;
    pointer-events: none;
    z-index: -1;
}

/* --- Consolidated Motto Block --- */
.motto-block {
    position: relative;
    padding: 14rem 0;
    text-align: center;
    overflow: hidden;
    color: var(--p-midnight);
    background: #FAF9F6;
    /* Fallback base color */
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1;
}

.motto-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.motto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(250, 249, 246, 0.98) 0%,
            rgba(250, 249, 246, 0.4) 50%,
            rgba(250, 249, 246, 0.98) 100%);
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand-logo {
    height: clamp(55px, 7vw, 100px);
    width: auto;
    transition: var(--t-premium);
}

.premium-header.scrolled .brand-logo {
    height: clamp(50px, 6.5vw, 90px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.header-contact {
    display: flex;
    gap: 3rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-contact a {
    color: var(--p-midnight);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.header-contact a:hover {
    color: var(--p-gold);
}

/* Horizontal Navigation (For Desktop Multi-Page) */
.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav > a,
.nav-dropdown-toggle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--p-midnight);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    background: none;
    border: none;
}

.main-nav > a::after,
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--p-gold);
    transition: 0.3s;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
    width: 100%;
}

/* Nav Chevron Icon */
.nav-chevron {
    font-size: 0.6rem;
    transition: transform 0.3s var(--t-smooth);
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown Container */
.nav-dropdown {
    position: relative;
}

/* Hover bridge to prevent dropdown from closing while moving cursor */
.nav-dropdown::after {
    content: '';
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: 100%;
    height: 1.2rem; /* matches dropdown offset gap */
}

/* Dropdown Panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1.2rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 2px solid var(--p-gold);
    min-width: 200px;
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s var(--t-smooth), transform 0.25s var(--t-smooth), visibility 0.25s;
    z-index: 3000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.nav-dropdown-menu a {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--p-midnight);
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    position: relative;
}

.nav-dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--p-gold);
    transition: width 0.2s var(--t-smooth);
    opacity: 0.12;
}

.nav-dropdown-menu a:hover {
    padding-left: 2rem;
    color: var(--p-gold);
}

.nav-dropdown-menu a:hover::before {
    width: 3px;
    opacity: 1;
    background: var(--p-gold);
}

/* Hide desktop nav on mobile */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
}

/* Side Navigation Bars (Toned Down) */
.side-bar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    opacity: 0.5;
    transition: 0.3s;
}

.side-bar:hover {
    opacity: 1;
}

.side-bar.left {
    left: 2rem;
}

.side-bar.right {
    right: 2rem;
}

.side-label {
    transform: rotate(-90deg);
    white-space: nowrap;
    color: var(--p-gold);
}

.side-socials {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.side-socials a {
    color: var(--p-midnight);
    transition: 0.3s;
}

.side-socials a:hover {
    color: var(--p-gold);
    transform: scale(1.2);
}

/* Architectural Elements (Understated for Scholarly feel) */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    pointer-events: none;
}

.bg-line {
    position: fixed;
    background: rgba(212, 175, 55, 0.08);
    z-index: -1;
}

.bg-line.v {
    width: 1px;
    height: 100vh;
    top: 0;
}

.bg-line.h {
    height: 1px;
    width: 100vw;
    left: 0;
}

/* Watermarks Removed per User Request */

/* Layered Typography */
.layered-text {
    position: relative;
    z-index: 10;
}

.layered-text::before {
    content: attr(data-text);
    position: absolute;
    top: -20px;
    left: 20px;
    z-index: -1;
    color: var(--p-gold);
    opacity: 0.1;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2em;
}

/* Unique Floating Navigation (Modified for Header) */
/* --- Mobile Navigation Trigger (Hamburger Icon) --- */
.nav-trigger {
    width: 30px;
    height: 25px;
    background: transparent;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: var(--t-premium);
    z-index: 2100;
    position: relative;
    padding: 0;
}

@media (max-width: 992px) {
    .nav-trigger {
        display: flex !important;
    }
}

.nav-trigger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--p-midnight) !important;
    transition: 0.3s var(--t-premium);
    border-radius: 2px;
}

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

.nav-trigger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

.nav-trigger:hover {
    transform: scale(1.05);
}

/* Full-Screen Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--p-midnight);
    z-index: 1900;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: var(--t-premium);
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-links {
    text-align: center;
}

.menu-links a {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    color: white;
    text-decoration: none;
    line-height: 1.1;
    transition: var(--t-premium);
    margin-bottom: 1rem;
}

.menu-links a:hover {
    color: var(--p-gold);
    transform: skewX(-10deg) translateX(20px);
}

/* Mobile Menu Close Button */
.menu-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2000;
}

.menu-close-btn:hover {
    color: var(--p-gold);
    transform: rotate(90deg);
}

.menu-links a .lang-te {
    font-size: 3rem;
    display: block;
    opacity: 0.5;
}

/* Language Switcher (Internal) */
.internal-lang-switcher {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.internal-lang-switcher button {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.4;
}

.internal-lang-switcher button.active {
    opacity: 1;
    color: var(--p-gold);
}

/* Hero Section Avant-Garde */
.hero-v2 {
    position: relative;
    padding: 0 5%;
}

.hero-v2 .massive-text {
    font-size: clamp(4rem, 15vw, 12rem);
    color: var(--p-midnight);
    opacity: 0.05;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-90deg);
    white-space: nowrap;
    z-index: -1;
}

.hero-v2 .content-box {
    padding-top: 15vh;
}

.hero-v2 h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
}

.hero-v2 .image-mask {
    width: 100%;
    background: var(--p-midnight);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
}

.hero-v2 .image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(1.2);
    transition: 1s ease;
}

.hero-v2 .image-mask:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Feature Block Hover Effects */
.feature-block .f-img img {
    width: 100%;
    transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-block:hover .f-img img {
    transform: scale(1.05);
}

.feature-block .f-img::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--p-gold);
    z-index: -1;
    transition: 0.6s var(--t-premium);
}

.feature-block:hover .f-img::after {
    inset: -10px;
    opacity: 0.5;
}

.feature-block .f-text {
    flex: 0.8;
}

.feature-block h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* Museum Style Cards */
.museum-card {
    background: white;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem;
    height: 100%;
    transition: var(--t-premium);
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.museum-card:hover {
    border-color: var(--p-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.museum-card__img {
    height: 250px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--p-midnight);
}

.museum-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--t-premium);
}

.museum-card:hover .museum-card__img img {
    transform: scale(1.1) rotate(1deg);
}

.museum-card__content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--p-midnight);
    transition: var(--t-smooth);
}

.museum-card:hover .museum-card__content h3 {
    color: var(--p-gold);
}

.museum-card__content p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
}

.explore-card {
    border-style: dashed;
    background: #FAF9F6;
}

.explore-card:hover {
    background: white;
    border-style: solid;
}

/* Architectural Reveal Animations */
[class*="reveal-"] {
    opacity: 0;
    transition: opacity 0.9s var(--t-premium), transform 0.9s var(--t-premium), filter 0.9s var(--t-premium);
    will-change: transform, opacity, filter;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

.reveal-scale {
    transform: scale(0.95);
}

.reveal-blur {
    filter: blur(10px);
}

[class*="reveal-"].active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

.delay-3 {
    transition-delay: 0.3s !important;
}

.delay-4 {
    transition-delay: 0.4s !important;
}

.delay-5 {
    transition-delay: 0.5s !important;
}

.delay-6 {
    transition-delay: 0.6s !important;
}

/* Border Draw Animation */
[class*="reveal-"].active.border-draw::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--p-gold);
    animation: draw-border 1.5s var(--t-premium) forwards;
    pointer-events: none;
}

@keyframes draw-border {
    0% {
        clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    }

    25% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
    }

    75% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.text-shimmer {
    font-family: var(--font-accent);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    background: linear-gradient(90deg, var(--p-midnight) 0%, var(--p-gold) 50%, var(--p-midnight) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Consistently Sized Hero Visuals */
.hero-v3__visual {
    position: relative;
    padding-top: 2rem;
    /* Align with text column start */
}

.hero-v3__floating-accent {
    position: absolute;
    top: -100px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-v3__main-img {
    width: 90%;
    height: 65vh;
    /* Slightly reduced height */
    object-fit: cover;
    box-shadow: 40px 40px 0 rgba(0, 31, 63, 0.05);
    /* Reduced shadow size */
}

.hero-v3__sub-img {
    position: absolute;
    bottom: 20px;
    right: -20px;
    width: 55%;
    height: 30vh;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

/* Leadership Signature Styling */
.signature-frame {
    position: relative;
    padding-top: 1rem;
    /* Match header baseline */
}

.scholar-photo {
    width: 100%;
    position: relative;
    z-index: 2;
    filter: contrast(1.05) saturate(1.1);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.05);
    /* Added subtle shadow */
}

.frame-accent {
    position: absolute;
    top: 3rem;
    /* Offset from top */
    right: -2rem;
    width: 80%;
    height: 80%;
    border: 1px solid var(--p-gold);
    z-index: 1;
}

/* Background Utilities */
.bg-ivory {
    background-color: var(--p-ivory) !important;
}

.bg-light-alt {
    background-color: #f8f9fa !important;
}

/* Profiles & Cards */
.profile-dignified {
    position: relative;
    padding: 2rem;
    background: var(--p-white);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.03);
}

.profile-dignified__img-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-dignified__seal {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 60px;
    height: auto;
    opacity: 0.8;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.role-badge {
    font-family: var(--font-heading);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--p-midnight);
    opacity: 0.6;
}

.scholarly-quote {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    line-height: 1.3;
    color: var(--p-midnight);
    border-left: 3px solid var(--p-gold);
    padding-left: 2rem;
}

.pillar-box {
    padding: 2rem;
    background: var(--p-ivory);
    border-top: 2px solid var(--p-gold);
}

.pillar-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

/* Page Header / Hero Variations */
.page-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    background: var(--p-midnight);
    color: white;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    z-index: 10;
}

.page-hero .italic-accent {
    color: var(--p-gold);
}

/* Rich Section Modules */
.section-ivory {
    background-color: var(--p-ivory);
}

.section-white {
    background-color: white;
}

.section-midnight {
    background-color: var(--p-midnight);
    color: white;
}

.section-gold-tint {
    background-color: rgba(212, 175, 55, 0.03);
}

/* Old Grids Replaced by Bootstrap Container/Row */

/* Tabbed Content (For Academics) */
.tabbed-container {
    display: flex;
    gap: 4rem;
}

.tab-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 0.3;
}

.tab-nav button {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    text-align: left;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.3s;
}

.tab-nav button.active {
    border-left-color: var(--p-gold);
    color: var(--p-gold);
}

.tab-content {
    flex: 1;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

.footer-socials a {
    color: white;
    opacity: 0.6;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--p-gold);
    opacity: 1;
    transform: translateY(-3px);
}


/* Mobile Adjustments */
@media (max-width: 1024px) {
    .split-screen {
        grid-template-columns: 1fr;
    }

    .feature-block {
        flex-direction: column !important;
    }

    .menu-links a {
        font-size: 3rem;
    }

    .hero-v2 .massive-text {
        display: none;
    }
}

/* --- Prestige Gallery (Life at St. Thomas) --- */
.gallery-section {
    padding: 10rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    column-count: 3;
    column-gap: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s var(--t-premium);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 31, 63, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: 0.5s var(--t-premium);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--p-gold);
    font-size: 1.2rem;
    margin: 0;
    transform: translateY(20px);
    transition: 0.5s var(--t-premium) 0.1s;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* --- Admission Marquee CTA --- */
.cta-marquee-wrap {
    background: var(--p-midnight);
    padding: 2.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 2px solid var(--p-gold);
    border-bottom: 2px solid var(--p-gold);
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 5rem;
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0em !important;
    font-size: 1.8rem;
}

.marquee-item .highlight {
    color: var(--p-gold);
    font-weight: 800;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}


/* --- The Saint Thomas Promise (Enhanced) --- */
.promise-card {
    padding: 0;
    /* Removed padding to let image bleed to edges */
    height: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(12px);
    transition: var(--t-premium);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.promise-card__img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--p-midnight);
}

.promise-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) opacity(0.7);
    transition: transform 1.5s var(--t-premium), filter 0.8s var(--t-smooth);
}

.promise-card:hover .promise-card__img img {
    transform: scale(1.1);
    filter: grayscale(0) opacity(1);
}

.promise-card__content {
    padding: 0 2.5rem 3.5rem;
    flex-grow: 1;
}

.promise-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--p-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s var(--t-premium);
}

.promise-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-10px);
}

.promise-card:hover::before {
    transform: scaleY(1);
}

.promise-seal {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    color: var(--p-gold);
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: var(--t-premium);
}

.promise-card:hover .promise-seal {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1);
}

.promise-card .icon-wrap {
    width: 65px;
    height: 65px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    transition: var(--t-premium);
}

.promise-card:hover .icon-wrap {
    background: var(--p-gold);
    color: var(--p-midnight) !important;
}

.promise-card:hover .icon-wrap i {
    color: var(--p-midnight) !important;
}

.promise-card h3 {
    letter-spacing: 0.05em;
    font-weight: 700;
}


/* --- About Us Page Specifics --- */
.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.divider-gold {
    width: 80px;
    height: 2px;
    background: var(--p-gold);
}

.mission-card {
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    position: relative;
    transition: var(--t-premium);
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
}

.card-number {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.scholarly-list li {
    font-size: 1.1rem;
    color: var(--p-midnight);
    opacity: 0.8;
}

.advantage-tile {
    padding: 3rem 2rem;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    transition: var(--t-premium);
}

.advantage-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.1);
    border-color: var(--p-gold);
}

.advantage-tile h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.py-10 {
    padding: 10rem 0;
}

.bg-ivory {
    background: #FAF9F6;
}

@media (max-width: 991px) {
    .py-10 {
        padding: 6rem 0;
    }

    .display-1 {
        font-size: 4rem;
    }
}


/* --- Academics Page Specifics --- */
.learning-feature {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: #FAF9F6;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--t-premium);
}

.learning-feature:hover {
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--p-gold);
    transform: translateY(-5px);
}

.learning-feature i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.standards-visual {
    position: relative;
    padding: 4rem 2rem;
    border-left: 2px solid var(--p-gold);
}

.standard-pill {
    padding: 1.5rem 2.5rem;
    background: white;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    box-shadow: 10px 10px 0 rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: fit-content;
}

.roadmap-grid {
    display: grid;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roadmap-level {
    padding: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--t-premium);
}

.roadmap-level:last-child {
    border-bottom: none;
}

.roadmap-level:hover {
    background: rgba(255, 255, 255, 0.05);
}

.level-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--p-gold);
    margin-bottom: 1rem;
}

.level-header span {
    font-size: 1rem;
    opacity: 0.5;
    margin-left: 1rem;
}

.pact-item {
    border-left: 3px solid rgba(212, 175, 55, 0.2);
    padding-left: 2rem;
    transition: var(--t-premium);
}

.pact-item:hover {
    border-left-color: var(--p-gold);
}


/* --- Inner Page Specific Differentiation --- */
.inner-page-header {
    background: var(--p-midnight);
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.inner-page-header .bg-pattern-dots {
    opacity: 0.1;
}

.inner-page-header h1 {
    font-size: 5rem;
    color: white;
    margin-bottom: 0;
}

.inner-page-header .breadcrumb-custom {
    color: var(--p-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    display: block;
}

.inner-section {
    padding: 8rem 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.inner-section.bg-light-alt {
    background: #fcfbf9;
}

.inner-section h2.section-heading {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.inner-section h2.section-heading::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--p-gold);
}

.sidebar-info {
    padding: 3rem;
    background: #f8f7f5;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: sticky;
    top: 120px;
}


/* Relocated nav-trigger styles removed */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--p-midnight);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--t-premium);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--t-premium);
}

.menu-links a:hover {
    color: var(--p-gold);
}

@media (max-width: 1024px) {

    .main-nav,
    .header-contact {
        display: none !important;
    }

    .nav-trigger {
        display: flex !important;
    }
}


/* --- Top Bar & Navigation Refinements --- */
.top-bar {
    background: var(--p-midnight);
    padding: 0.8rem 5%;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2002;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 2.5rem;
}

.top-bar-contact a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.top-bar-contact a:hover {
    color: var(--p-gold);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 3rem;
    /* More breathing room */
}

.top-bar-socials {
    display: flex;
    gap: 2rem;
    /* Equal spacing without borders */
}

.top-bar-socials a {
    color: inherit;
    text-decoration: none !important;
    /* Force no underline */
    transition: 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-socials a:hover {
    color: var(--p-gold);
}

/* Language Switcher in Top Bar */
.top-bar-lang {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.top-bar-lang-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    text-decoration: none !important;
    display: inline-block;
}

.top-bar-lang .top-bar-lang-link:not(:last-child) {
    border-right: 1px solid rgba(212, 175, 55, 0.25);
}

.top-bar-lang-link:hover {
    color: var(--p-gold);
}

.top-bar-lang-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--p-gold);
}

/* Adjust Main Header for Top Bar & Larger Logo */
.premium-header {
    position: fixed;
    top: 40px;
    /* Aligned with top-bar height */
    left: 0;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--t-premium);
}

.premium-header.scrolled {
    top: 35px;
    padding: 1.2rem 5%;
    background: rgba(250, 249, 246, 0.98);
    border-bottom: 1px solid var(--p-gold);
}

/* Main Nav Enroll Button - PRESTIGE NAVY */
.nav-enroll-btn {
    background: var(--p-midnight);
    color: var(--p-gold) !important;
    padding: 0.9rem 2.2rem !important;
    font-weight: 800 !important;
    border-radius: 4px;
    margin-left: 2rem;
    transition: all 0.4s var(--t-premium) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.1);
    border: 2px solid var(--p-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-enroll-btn:hover {
    background: var(--p-gold);
    color: var(--p-midnight) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* Active Nav Links styling - PILL EFFECT */
.main-nav a {
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: 0.3s var(--t-premium);
}

.main-nav a.active {
    color: var(--p-gold) !important;
    font-weight: 400;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: var(--p-gold);
    transform: scaleX(1);
}

.main-nav a:not(.active):hover {
    color: var(--p-gold) !important;
}

/* Layout Offsets for Fixed Header (Logo height: 100px) */
.hero-v3 {
    padding-top: 220px !important;
    /* Total header height ~160-180px */
}

.inner-page-header {
    padding-top: 180px !important;
    padding-bottom: 80px;
}

/* Post-it Note Style - ANIMATED */
.post-it {
    background: #fffd82;
    /* Classic canary yellow */
    color: #333;
    padding: 2rem;
    width: 300px;
    min-height: 280px;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(3deg);
    position: relative;
    font-family: var(--font-body);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    line-height: 1.5;
    cursor: default;
    animation: postItFloat 6s ease-in-out infinite;
}

@keyframes postItFloat {

    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.post-it:hover {
    animation-play-state: paused;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.15);
}

.post-it-title {
    font-family: var(--font-heading);
    color: var(--p-midnight);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
}

.post-it-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
}

/* High-Fidelity Washi Tape */
.post-it-tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 100px;
    height: 35px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.post-it .pin {
    position: absolute;
    top: -10px;
    left: 10px;
    width: 25px;
    color: #e63946;
    font-size: 1.8rem;
    z-index: 3;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

/* Consolidated duplicate nav-trigger styles removed */

/* =====================================================
   RESPONSIVE HEADER — MEDIUM DESKTOP (1025px–1280px)
   ===================================================== */

/* 1280px: slight compression */
@media (max-width: 1280px) {
    .premium-header {
        padding: 1.2rem 3%;
    }

    .premium-header.scrolled {
        padding: 1rem 3%;
    }

    .header-right {
        gap: 2.5rem;
    }

    .main-nav {
        gap: 1.8rem;
    }

    .main-nav a {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

    .top-bar {
        padding: 0.7rem 3%;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .top-bar-contact {
        gap: 1.8rem;
    }

    .top-bar-right {
        gap: 2rem;
    }
}

/* 1180px: more aggressive compression */
@media (max-width: 1180px) {
    .premium-header {
        padding: 1rem 3%;
    }

    .premium-header.scrolled {
        padding: 0.8rem 3%;
    }

    .header-right {
        gap: 2rem;
    }

    .main-nav {
        gap: 1.2rem;
    }

    .main-nav a {
        font-size: 0.95rem;
        letter-spacing: 0.04em;
    }

    .nav-enroll-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem;
        margin-left: 1rem;
    }

    .top-bar-contact {
        gap: 1.2rem;
    }

    .top-bar-right {
        gap: 1.5rem;
    }
}

/* 1100px: critical zone — shrink further */
@media (max-width: 1100px) {
    .premium-header {
        padding: 0.9rem 3%;
    }

    .main-nav {
        gap: 0.9rem;
    }

    .main-nav a {
        font-size: 0.85rem;
        letter-spacing: 0.03em;
    }

    .nav-enroll-btn {
        padding: 0.35rem 0.85rem !important;
        font-size: 0.78rem;
        margin-left: 0.6rem;
    }

    .top-bar-contact {
        gap: 1rem;
    }

    .top-bar-contact a span,
    .top-bar-contact a .contact-label {
        display: none;
    }

    .top-bar-right {
        gap: 1rem;
    }

    .top-bar-socials {
        gap: 1.2rem;
    }
}

@media (max-width: 1280px) {
    .main-nav {
        display: none;
    }

    .nav-trigger {
        display: flex !important;
    }

    .nav-trigger span {
        background: var(--p-midnight) !important;
    }

    .top-bar {
        display: none !important;
        /* Force hide on smaller desktops and below */
    }

    .cta-marquee-wrap {
        display: none !important;
    }

    .brand-logo {
        height: clamp(40px, 5.5vw, 60px) !important;
    }

    .premium-header {
        top: 0 !important;
        /* Move to top since top-bar is hidden */
        padding: 0.8rem 5%;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .hero-v3 {
        padding-top: 120px !important;
        text-align: center;
    }

    .hero-v3 .ps-lg-5 {
        padding-left: 0 !important;
    }

    /* Vertical Stack for Hero Buttons */
    .hero-v3 .d-flex.gap-4 {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
    }

    .hero-v3 .btn-gold {
        width: 100%;
        max-width: 300px;
    }

    .hero-v3 .border-start {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
        padding-top: 1rem !important;
        width: 100%;
        max-width: 300px;
    }

    .hero-v3__sub-img {
        width: 75% !important;
        height: 28vh !important;
        bottom: 20px !important;
        right: auto !important;
        left: 50% !important;
        transform: translate(calc(-50% - 40px), 0) !important;
    }

    .hero-v3__sub-img.active {
        transform: translate(-50%, 0) !important;
    }

    /* Post-it Scaling */
    .post-it-wrapper {
        position: relative !important;
        top: 40px !important;
        right: 0 !important;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .post-it {
        width: 100% !important;
        max-width: 280px !important;
        min-height: 200px !important;
        padding: 1.5rem !important;
        transform: rotate(-1deg) !important;
    }

    /* Animation Overrides - No side slides on mobile */
    .reveal-left,
    .reveal-right {
        transform: translateY(30px) !important;
        opacity: 0 !important;
    }

    .reveal-left.active,
    .reveal-right.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* --- Inner Page Header Styling --- */
.inner-page-header {
    margin-top: var(--header-height) !important;
    padding-top: 100px;
    /* Internal spacing */
    padding-bottom: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white !important;
}

@media (max-width: 1280px) {
    .inner-page-header {
        margin-top: 80px;
        /* Shorter header on smaller desktops & below */
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

.inner-page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 31, 63, 0.9), rgba(0, 31, 63, 0.5));
    z-index: 1;
}

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

.inner-page-header h1,
.inner-page-header .italic-accent {
    color: white !important;
}

/* =====================================================
   INNER PAGE SECTIONS & UTILITY CLASSES
   (Used across about, academics, facilities, admissions, contact pages)
   ===================================================== */

/* Standard padded inner section */
.inner-section {
    padding: 8rem 0;
}

@media (max-width: 991px) {
    .inner-section {
        padding: 5rem 0;
    }
}

/* Alternate light background */
.bg-light-alt {
    background-color: #f7f5f0;
}

/* Dark navy background */
.bg-midnight {
    background-color: var(--p-midnight);
    color: white;
}

/* Premium section heading */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--p-midnight);
    margin-bottom: 2rem;
}

.section-heading.text-white {
    color: white;
}

/* Breadcrumb / page label */
.breadcrumb-custom {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--p-gold);
    margin-bottom: 1.5rem;
}

/* Icon wrap circle */
.icon-wrap {
    width: 65px;
    height: 65px;
    background: var(--p-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-wrap i {
    color: white;
    font-size: 1.5rem;
}

/* Subtle grayscale image effect in about page */
.grayscale-alt {
    filter: grayscale(20%) contrast(1.05) saturate(0.9);
    transition: filter 0.8s var(--t-premium);
}

.grayscale-alt:hover {
    filter: grayscale(0%) contrast(1.1) saturate(1.1);
}

/* About page image frame */
.about-image-frame {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: white;
}

/* Sidebar info panel */
.sidebar-info {
    padding: 2rem;
    background: var(--p-ivory);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Extra stagger delay */
.delay-7 {
    transition-delay: 0.7s !important;
}

.delay-8 {
    transition-delay: 0.8s !important;
}

/* border-gold utility */
.border-gold {
    border-color: var(--p-gold) !important;
}

/* Consolidated duplicate top-bar styles removed */


@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem 5%;
        text-align: center;
    }

    .top-bar-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =====================================================
   NAV ENROLL BUTTON
   ===================================================== */
.nav-enroll-btn {
    background: var(--p-midnight);
    color: var(--p-gold) !important;
    border: 1px solid var(--p-gold);
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s !important;
}

.nav-enroll-btn:hover {
    background: var(--p-gold) !important;
    color: var(--p-midnight) !important;
}

.nav-enroll-btn::after {
    display: none !important;
}

/* =====================================================
   SUBTLE PREMIUM ENHANCEMENTS (Homepage-safe)
   - Textures / gradients / micro-interactions
   - Designed to be classy and unobtrusive
   ===================================================== */

:root {
    --st-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    --st-soft-glow: 0 18px 60px rgba(0, 31, 63, 0.10);
    --st-card-lift: translateY(-6px);
}

/* Subtle texture overlays for section backdrops */
.bg-mesh,
.bg-grain {
    position: relative;
}

.bg-mesh::before,
.bg-grain::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.065;
    background-image:
        radial-gradient(900px 400px at 15% 10%, rgba(212, 175, 55, 0.35), transparent 60%),
        radial-gradient(700px 350px at 85% 20%, rgba(0, 31, 63, 0.25), transparent 65%),
        radial-gradient(600px 300px at 50% 95%, rgba(212, 175, 55, 0.18), transparent 60%),
        var(--st-noise);
    mix-blend-mode: overlay;
}

/* Hero refinement: gentle vignette + animated accent */
.hero-v3::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(250, 249, 246, 0.55) 0%, rgba(250, 249, 246, 0.15) 40%, rgba(250, 249, 246, 0.65) 100%);
    opacity: 0.8;
}

@keyframes st-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(6px);
    }
}

.hero-v3__floating-accent {
    animation: st-float 9s ease-in-out infinite;
}

/* Card micro-interactions (subtle) */
.promise-card,
.museum-card {
    transition: transform 500ms var(--t-premium), box-shadow 500ms var(--t-premium), border-color 500ms var(--t-premium);
}

.promise-card:hover,
.museum-card:hover,
.promise-card:focus-within,
.museum-card:focus-within {
    transform: var(--st-card-lift);
    box-shadow: var(--st-soft-glow);
}

/* Button refinement: soft highlight on hover */
.btn-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(212, 175, 55, 0.22) 35%, transparent 70%);
    transform: translateX(-30%);
    transition: opacity 500ms var(--t-premium), transform 700ms var(--t-premium);
}

.btn-gold:hover::before {
    opacity: 1;
    transform: translateX(30%);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-v3__floating-accent {
        animation: none !important;
    }

    .promise-card,
    .museum-card,
    .btn-gold::before {
        transition: none !important;
    }
}

/* =====================================================
   LEGACY PAGE TIMELINE
   ===================================================== */

.st-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(212, 175, 55, 0.25);
}

.st-timeline__item {
    position: relative;
    padding: 0 0 2.25rem 1.5rem;
}

.st-timeline__item:last-child {
    padding-bottom: 0;
}

.st-timeline__dot {
    position: absolute;
    left: -1.05rem;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--p-midnight);
    border: 2px solid var(--p-gold);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.08);
}

.st-timeline__meta {
    font-family: var(--font-heading);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(0, 31, 63, 0.65);
    margin-bottom: 0.35rem;
}

.st-timeline__content {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.10);
    padding: 1.35rem 1.5rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .inner-page-header h1 {
        font-size: 3rem;
    }

    .st-timeline__content {
        padding: 1.15rem 1.2rem;
    }
}

/* =====================================================
   ACADEMICS PAGE UI
   ===================================================== */

.st-grade-track {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.st-grade-track::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: radial-gradient(700px 220px at 20% 0%, rgba(212, 175, 55, 0.45), transparent 60%),
        radial-gradient(500px 220px at 85% 100%, rgba(0, 31, 63, 0.25), transparent 60%);
}

.st-grade-track__item {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 31, 63, 0.12);
    color: rgba(0, 31, 63, 0.82);
    background: rgba(250, 249, 246, 0.75);
}

.st-facility-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 31, 63, 0.06);
    transition: transform 500ms var(--t-premium), box-shadow 500ms var(--t-premium), border-color 500ms var(--t-premium);
    height: 100%;
}

.st-facility-card:hover,
.st-facility-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0, 31, 63, 0.10);
    border-color: rgba(212, 175, 55, 0.30);
}

.st-facility-card__top {
    padding: 1.5rem 1.6rem 1.1rem;
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(255, 255, 255, 0.75));
}

.st-facility-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.30);
    color: var(--p-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.st-facility-card__body {
    padding: 0 1.6rem 1.6rem;
}

.st-facility-card__detail {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 31, 63, 0.07);
    opacity: 1;
    max-height: none;
    overflow: visible;
    transform: none;
}

/* Keep hover highlight, just don't hide content */
.st-facility-card:hover .st-facility-card__detail,
.st-facility-card:focus-within .st-facility-card__detail {
    opacity: 1;
    max-height: none;
    transform: none;
}

.st-parallax-section {
    position: relative;
    padding: 9rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.st-parallax-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.55), rgba(0, 31, 63, 0.65));
}

.st-parallax-section .container {
    position: relative;
    z-index: 1;
}

.st-parallax-section__panel {
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 3.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 28px 80px rgba(0, 31, 63, 0.20);
}

@media (max-width: 992px) {
    .st-parallax-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .st-parallax-section {
        padding: 6rem 0;
    }

    .st-parallax-section__panel {
        padding: 2rem 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .st-parallax-section {
        background-attachment: scroll;
    }
}

/* =====================================================
   FACILITIES PAGE UI
   ===================================================== */

.st-acre-callout {
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(135deg, rgba(250, 249, 246, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 16px;
    padding: 2.1rem 2.4rem;
    box-shadow: 0 26px 70px rgba(0, 31, 63, 0.10);
    position: relative;
    overflow: hidden;
}

.st-acre-callout::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        radial-gradient(700px 240px at 20% 0%, rgba(212, 175, 55, 0.45), transparent 60%),
        radial-gradient(650px 240px at 90% 100%, rgba(0, 31, 63, 0.25), transparent 60%);
}

.st-acre-callout__meta {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(0, 31, 63, 0.65);
}

.st-acre-callout__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 2.8vw, 3.2rem);
    color: var(--p-midnight);
    margin-top: 0.6rem;
}

.st-acre-callout__sub {
    position: relative;
    z-index: 1;
    margin-top: 0.75rem;
    opacity: 0.75;
    max-width: 850px;
}

.st-section-tech {
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.02), rgba(0, 31, 63, 0.00));
}

.st-section-nature {
    background: linear-gradient(180deg, rgba(34, 139, 34, 0.03), rgba(250, 249, 246, 0.0));
}

.st-feature-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 31, 63, 0.08);
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.6rem;
    box-shadow: 0 18px 50px rgba(0, 31, 63, 0.06);
    transition: transform 500ms var(--t-premium), box-shadow 500ms var(--t-premium), border-color 500ms var(--t-premium);
}

.st-feature-card:hover,
.st-feature-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0, 31, 63, 0.10);
    border-color: rgba(212, 175, 55, 0.26);
}

.st-feature-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: rgba(0, 31, 63, 0.06);
    border: 1px solid rgba(0, 31, 63, 0.10);
    color: var(--p-midnight);
}

.st-photo-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.16);
    box-shadow: 0 26px 70px rgba(0, 31, 63, 0.10);
    background: rgba(255, 255, 255, 0.6);
}

.st-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.st-photo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 31, 63, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.22);
    backdrop-filter: blur(10px);
}

.st-pillars {
    display: grid;
    gap: 1rem;
}

.st-pillars__item {
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 31, 63, 0.08);
}

.st-pillars__title {
    margin-top: 0.35rem;
    font-weight: 800;
    color: var(--p-midnight);
}

.st-pillars__desc {
    opacity: 0.75;
    margin-top: 0.25rem;
}

.st-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.62rem;
    border: 1px solid rgba(0, 31, 63, 0.12);
}

.st-badge--security {
    background: rgba(0, 31, 63, 0.10);
    color: rgba(0, 31, 63, 0.85);
}

.st-badge--health {
    background: rgba(212, 175, 55, 0.12);
    color: rgba(0, 31, 63, 0.85);
}

.st-badge--nature {
    background: rgba(34, 139, 34, 0.10);
    color: rgba(0, 31, 63, 0.85);
}

.st-alt-wrap {
    background: white;
}

.st-alt-block {
    padding: 7.5rem 0;
    position: relative;
    overflow: hidden;
}

.st-alt-block--blue {
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.03), rgba(250, 249, 246, 0.0));
}

.st-alt-block--green {
    background: linear-gradient(180deg, rgba(34, 139, 34, 0.04), rgba(250, 249, 246, 0.0));
}

@media (max-width: 768px) {
    .st-alt-block {
        padding: 5.5rem 0;
    }
}

/* =====================================================
   ADMISSIONS PAGE UI
   ===================================================== */

.st-adm-panel {
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 26px 70px rgba(0, 31, 63, 0.08);
}

.st-adm-details {
    border-radius: 14px;
    border: 1px solid rgba(0, 31, 63, 0.08);
    background: rgba(250, 249, 246, 0.55);
    padding: 1rem 1rem 1.25rem;
}

.st-adm-details+.st-adm-details {
    margin-top: 1rem;
}

.st-adm-details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.25rem;
}

.st-adm-details summary::-webkit-details-marker {
    display: none;
}

.st-adm-details__title {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--p-midnight);
}

.st-adm-details__meta {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.65rem;
    opacity: 0.55;
}

.st-adm-steps {
    display: grid;
    gap: 1rem;
}

.st-adm-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 31, 63, 0.08);
    background: rgba(255, 255, 255, 0.75);
}

.st-adm-step__num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--p-midnight);
    font-family: var(--font-heading);
    font-weight: 900;
}

.st-adm-step__title {
    font-weight: 900;
    color: var(--p-midnight);
}

.st-adm-step__desc {
    opacity: 0.7;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .st-adm-panel {
        padding: 1rem;
    }
}

/* =====================================================
   CONTACT PAGE UI
   ===================================================== */

.st-contact-tile {
    height: 100%;
    background: white;
    border: 1px solid rgba(0, 31, 63, 0.08);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 31, 63, 0.04);
    transition: all 0.5s var(--t-premium);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.st-contact-tile:hover {
    transform: translateY(-8px);
    border-color: var(--p-gold);
    box-shadow: 0 20px 60px rgba(0, 31, 63, 0.08);
}

.st-contact-tile__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p-midnight), #002c5c);
    color: var(--p-gold);
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 31, 63, 0.2);
    transition: transform 0.6s var(--t-premium);
}

.st-contact-tile:hover .st-contact-tile__icon {
    transform: rotateY(360deg) scale(1.1);
}

.st-contact-tile__content {
    flex-grow: 1;
}

.st-contact-tile__title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--p-midnight);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.st-contact-tile__text {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
    color: var(--p-midnight);
}

.st-contact-tile a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.st-contact-tile a:hover {
    color: var(--p-gold);
}

.st-contact-list {
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(0, 31, 63, 0.08);
}

.st-contact-list__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(0, 31, 63, 0.06);
}

.st-contact-list__row:last-child {
    border-bottom: none;
}

.st-contact-list__label {
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    opacity: 0.65;
}

.st-contact-list__value {
    text-align: right;
    font-weight: 800;
}

.st-contact-list__value a {
    color: var(--p-midnight);
    text-decoration: none;
}

.st-contact-list__value a:hover {
    text-decoration: underline;
}

.st-map-wrap {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.st-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .st-contact-list__row {
        grid-template-columns: 1fr;
    }

    .st-contact-list__value {
        text-align: left;
    }

    .st-map-wrap {
        height: 420px;
    }
}

/* =====================================================
   ADMISSIONS PDF FORM UI
   ===================================================== */

.st-form-section {
    padding: 1.1rem 0 0.25rem;
    border-top: 1px solid rgba(0, 31, 63, 0.06);
}

.st-form-section:first-child {
    border-top: none;
    padding-top: 0;
}

.st-form-section__title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    opacity: 0.65;
    margin-bottom: 1rem;
}

.st-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 31, 63, 0.10);
    background: rgba(250, 249, 246, 0.75);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.st-radio input {
    accent-color: var(--p-gold);
}

/* =============================================
   Facilities Grid Card (.fac-card)
   ============================================= */

.fac-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 8px 36px rgba(0, 31, 63, 0.06);
    transition: transform 500ms var(--t-premium), box-shadow 500ms var(--t-premium), border-color 500ms var(--t-premium);
    height: 100%;
}

.fac-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 31, 63, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
}

.fac-card__img {
    position: relative;
    overflow: visible;
    aspect-ratio: 4 / 3;
}

.fac-card--wide .fac-card__img {
    aspect-ratio: 16 / 7;
}

.fac-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    transition: transform 700ms var(--t-premium);
}

.fac-card:hover .fac-card__img img {
    transform: scale(1.06);
}

.fac-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 31, 63, 0.35) 100%);
    pointer-events: none;
}

.fac-card__icon {
    position: absolute;
    bottom: -18px;
    left: 1.5rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--p-gold);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.40);
    border: 2px solid #fff;
    transition: transform 300ms var(--t-premium);
}

.fac-card:hover .fac-card__icon {
    transform: scale(1.1);
}

.fac-card__body {
    padding: 2rem 1.5rem 1.5rem;
}

.fac-card__body h3 {
    color: var(--p-midnight);
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

/* Donor section now uses site-standard utilities and Bootstrap grid */

/* Blog Card - Premium International Style */
.blog-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0; /* Sharp, architectural edges */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--t-premium);
    position: relative;
    height: 100%;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--p-gold);
    transition: height 0.5s var(--t-premium);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    background: white;
    border-color: rgba(212, 175, 55, 0.3);
}

.blog-card:hover::before {
    height: 100%;
}

.blog-card__img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--t-premium);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.08);
}

.blog-card__date {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--p-midnight);
    color: var(--p-gold);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.blog-card__content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--p-midnight);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: rgba(10, 17, 40, 0.7);
    margin-bottom: 2rem !important;
}

.blog-card__link {
    margin-top: auto;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--p-midnight);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: color 0.3s;
}

.blog-card__link:hover {
    color: var(--p-gold);
}

/* Border Draw Effect for Cards */
.border-draw {
    position: relative;
}
