/* ============================================
   Saint Ann's Higher Secondary School
   Custom CSS - Optimized & Performant
   ============================================ */

/* --- CSS Variables --- */
:root {
    --gold: #F7B32B;
    --gold-dark: #D4960A;
    --gold-light: #FFF4D6;
    --navy: #1A1A2E;
    --navy-light: #2D2D44;
    --green: #2D5016;
    --green-light: #E8F5E9;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --text: #2D3436;
    --text-light: #636E72;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-ring div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring div:nth-child(2) {
    animation-delay: -0.15s;
    border-top-color: rgba(247, 179, 43, 0.6);
}

.loader-ring div:nth-child(3) {
    animation-delay: -0.3s;
    border-top-color: rgba(247, 179, 43, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
}

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

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-left span,
.top-bar-right span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right strong {
    color: var(--gold);
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-logo {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-sm);
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.site-logo-nav {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    padding: 4px;
}

.site-logo-footer {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
    background: var(--gray-50);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-xl) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(247, 179, 43, 0.4);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1002;
}

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

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

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

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(160deg, #FFFDF5 0%, #FFF9E6 30%, #FEFEFE 70%, #F5F9FF 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--gold);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--green);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gold);
    top: 50%;
    left: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), #E8A500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 179, 43, 0.35);
}

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

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

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

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

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

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

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 36px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    display: inline;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gold);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

.about {
    padding-top: 60px;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.section-title .highlight {
    color: var(--gold-dark);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 16px auto 0;
}

/* --- About --- */
.about {
    background: var(--off-white);
}

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

.about-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

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

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.highlight-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    color: var(--green);
}

.highlight-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
}

.highlight-item span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* About Image Stack */
.about-image-stack {
    position: relative;
}

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

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

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

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

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: -10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 8px 30px rgba(247, 179, 43, 0.3);
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.exp-text {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Academics --- */
.academics {
    background: var(--white);
    overflow: hidden;
}

.academics-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(247, 179, 43, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(45, 80, 22, 0.05) 0%, transparent 50%);
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.academic-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.academic-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, #FFFDF5, var(--white));
    box-shadow: var(--shadow-md);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.academic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.card-classes {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.academic-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-features li {
    font-size: 0.85rem;
    color: var(--text);
    padding-left: 20px;
    position: relative;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

/* --- Gallery --- */
.gallery {
    background: var(--navy);
    color: var(--white);
}

.gallery .section-tag {
    background: rgba(247, 179, 43, 0.15);
}

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

.gallery .section-title .highlight {
    color: var(--gold);
}

.gallery .section-desc {
    color: rgba(255,255,255,0.6);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-caption {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

/* --- Facilities --- */
.facilities {
    background: var(--off-white);
}

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

.facility-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

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

.facility-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.facility-card:hover .facility-icon {
    background: var(--gold);
}

.facility-icon svg {
    width: 26px;
    height: 26px;
    color: var(--gold-dark);
    transition: color var(--transition);
}

.facility-card:hover .facility-icon svg {
    color: var(--white);
}

.facility-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.facility-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Why Choose Us --- */
.why-us {
    background: var(--white);
}

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

.why-us-content .section-tag {
    margin-bottom: 16px;
}

.why-us-content .section-title {
    margin-bottom: 16px;
}

.why-us-content > p {
    color: var(--text-light);
    margin-bottom: 36px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.why-feature h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.why-feature p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.why-us-visual {
    position: relative;
}

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

.why-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.why-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 16px;
}

.floating-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold-dark);
}

.why-floating-card strong {
    display: block;
    font-size: 1rem;
    color: var(--navy);
}

.why-floating-card span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* --- Admissions CTA --- */
.admissions-cta {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), #E8A500);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

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

/* --- Contact --- */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-card:hover {
    background: var(--gold-light);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold-dark);
}

.contact-card h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-card a {
    color: var(--gold-dark);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-50);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 24px;
}

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

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}

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

.form-group label {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 0.92rem;
    color: var(--gray-400);
    transition: all var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 4px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--gold-dark);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

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

/* Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand .logo-name {
    color: var(--white);
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.88rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
}

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

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .academics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

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

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .about {
        padding-top: 48px;
    }

    .top-bar-left {
        gap: 12px;
        flex-wrap: wrap;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    /* Nav mobile */
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 40px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
        z-index: 1001;
    }

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

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 16px;
        width: 100%;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .about-img-float {
        bottom: -20px;
        left: -10px;
        width: 150px;
    }

    /* Academics */
    .academics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .btn {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

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

    .contact-form-wrapper {
        padding: 24px 20px;
    }
}
