@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   1. DESIGN SYSTEM VARIABLES & ROOT
   ========================================== */
:root {
    /* Color Palette - Logo-Tailored */
    --primary: #009B90;
    /* Brand Teal/Cyan from Logo book */
    --primary-light: #00C2B4;
    /* Luminous Teal Accent */
    --primary-dark: #1E293B;
    /* Slate/Charcoal from Logo text */
    --secondary: #E11D48;
    /* Rose Pink/Magenta from Logo student */
    --accent: #F59E0B;
    /* Golden Yellow/Orange from Logo swoop */
    --accent-light: #FBBF24;
    /* Warm Gold */

    /* Neutrals */
    --bg-light: #F7F9FB;
    /* Pure Mist White */
    --bg-card: #FFFFFF;
    /* Clean Card White */
    --text-main: #1E293B;
    /* Obsidian Charcoal */
    --text-muted: #64748B;
    /* Slate Gray */
    --text-light: #F8FAFC;
    /* Crisp White */
    --border-color: #E2E8F0;
    /* Subtle Divider Gray */

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 115px;

    /* Decorative & Shadows */
    --shadow-sm: 0 2px 4px rgba(12, 74, 96, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(12, 74, 96, 0.08), 0 8px 16px -6px rgba(12, 74, 96, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(12, 74, 96, 0.15);
    --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Theme overrides if required */
.dark-theme {
    --bg-light: #0B0F19;
    --bg-card: #131A26;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   2. GLOBAL RESETS & GENERAL STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: var(--transition-smooth);
}

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

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================
   3. TYPOGRAPHY SYSTEM
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4 {
    color: var(--text-light);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* Decorative Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

/* ==========================================
   4. LAYOUT COMPONENTS (CONTAINER & GRID)
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Responsive 2-column split grid */
.grid-split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-split-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Fluid List Columns for Academics & Portal lists */
.list-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

@media (max-width: 576px) {
    .list-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.35rem 0;
    }
}

/* Responsive Dual Card Grid wrapper */
.responsive-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 576px) {
    .responsive-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Welcome Section custom layout grid */
.info-split-welcome {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 992px) {
    .info-split-welcome {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   5. NAVIGATION HEADER (GLASSMORPHIC)
   ========================================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.top-bar-left span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.affiliation-tag {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary-dark);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.main-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header-scrolled .main-header {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.dark-theme .main-header {
    background-color: rgba(11, 15, 25, 0.75);
    border-bottom-color: rgba(30, 41, 59, 0.6);
}

.dark-theme.header-scrolled .main-header {
    background-color: rgba(11, 15, 25, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Brand/Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header-scrolled .logo img {
    height: 60px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(12, 74, 96, 0.15);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

.logo:hover .logo-icon::before {
    left: 100%;
    top: 100%;
}

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

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.dark-theme .logo-title {
    color: var(--text-light);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
    position: relative;
    padding: 0.5rem 0;
}

.dark-theme .nav-link {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Action Button */
.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(12, 74, 96, 0.25);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.nav-btn:hover::before {
    left: 100%;
}

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

.nav-btn-gold:hover {
    box-shadow: var(--shadow-gold);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.dark-theme .hamburger span {
    background-color: var(--text-light);
}

/* ==========================================
   6. DYNAMIC UI BUTTONS & INPUT ELEMENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(12, 74, 96, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(12, 74, 96, 0.05);
    transform: translateY(-3px);
}

.dark-theme .btn-secondary {
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary-dark);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(12, 74, 96, 0.15);
}

/* Stat Card */
.stat-card {
    text-align: center;
    border-top: 4px solid var(--accent);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   7. PREMIUM HERO BANNER STYLING
   ========================================== */
.hero-banner {
    padding: calc(var(--header-height) + 60px) 0 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(20, 107, 138, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(13, 92, 58, 0.05) 0%, transparent 50%),
        var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    background-color: rgba(12, 74, 96, 0.06);
    border: 1px solid rgba(12, 74, 96, 0.1);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    fill: var(--accent);
    width: 16px;
    height: 16px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Premium Hero Image Frame */
.hero-visual {
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    overflow: hidden;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.hero-image-frame img {
    border-radius: calc(var(--radius-lg) - 8px);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: brightness(0.95);
    transition: var(--transition-smooth);
}

.hero-visual:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Decorative backdrop boxes */
.hero-decoration-1 {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 8px solid var(--accent);
    border-radius: var(--radius-md);
    bottom: -30px;
    left: -30px;
    z-index: 1;
    opacity: 0.15;
    animation: rotateSlow 20s linear infinite;
}

.hero-decoration-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), transparent);
    border-radius: var(--radius-lg);
    top: -40px;
    right: -40px;
    z-index: 1;
    opacity: 0.2;
    filter: blur(2px);
}

/* Floating Stats badge inside Hero */
.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 3;
    bottom: 30px;
    right: -20px;
    animation: floatSlow 4s ease-in-out infinite;
}

.dark-theme .hero-floating-card {
    background: rgba(19, 26, 38, 0.85);
    border-color: rgba(30, 41, 59, 0.3);
}

.hero-fc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.hero-fc-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-fc-text p {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   8. MAIN PAGES & CORE INTERACTIVE SECTIONS
   ========================================== */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Feature Showcase Cards (e.g. why choose us) */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(12, 74, 96, 0.05);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.05) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Info Banner Split Layout */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.info-visual {
    position: relative;
}

.info-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 6px solid var(--bg-card);
}

.info-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.info-content .section-tag {
    margin-bottom: 0.5rem;
}

.info-content h2 {
    margin-bottom: 1.5rem;
}

.info-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Principal spotlight box */
.principal-spotlight {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.principal-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.principal-visual img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: brightness(0.95);
}

.principal-quote {
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.principal-quote::before {
    content: '“';
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--accent);
    position: absolute;
    top: -40px;
    left: -30px;
    opacity: 0.3;
}

.principal-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
}

.principal-title {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.principal-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.p-stat h5 {
    color: var(--text-light);
    font-size: 1.4rem;
}

.p-stat p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ==========================================
   9. INTERACTIVE FORMS & DYNAMIC CONTACTS
   ========================================== */
.form-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-theme .form-label {
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(12, 74, 96, 0.08);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

/* Active Validation States */
.form-input.is-valid {
    border-color: #10B981;
}

.form-input.is-invalid {
    border-color: #EF4444;
}

.form-error-msg {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
    display: none;
}

/* Admissions Guide / Steps UI */
.step-item {
    position: relative;
    padding-left: 4.5rem;
    margin-bottom: 3rem;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 3px solid var(--accent);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.95rem;
}

/* Timeline vertical line */
.steps-container {
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

/* Location and Contact Cards info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(12, 74, 96, 0.1);
}

.contact-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(12, 74, 96, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.contact-info-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================
   10. ULTRA PREMIUM FOOTER DESIGN
   ========================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
    border-top: 4px solid var(--accent);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 92, 58, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 0.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    fill: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.15) translateY(-3px);
}

/* ==========================================
   11. MOBILE DRAWERS & RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 2rem auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-floating-card {
        right: 0;
        bottom: -10px;
    }

    .info-split {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .principal-spotlight {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .principal-visual {
        max-width: 300px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 75px;
    }

    .logo img {
        height: 55px;
    }

    .main-header {
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .dark-theme .main-header {
        background-color: #0B0F19 !important;
    }

    .section {
        padding: 4rem 0;
    }

    .top-bar {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-card) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 3rem 2rem;
        gap: 0;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
        z-index: 1005;
        transition: var(--transition-smooth);
    }

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

    .nav-links .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-dark) !important;
        width: 100%;
        padding: 1.1rem 0;
        border-bottom: 1px solid var(--border-color);
        display: block;
        transition: var(--transition-smooth);
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: var(--primary) !important;
        padding-left: 0.5rem;
    }

    .dark-theme .nav-links .nav-link {
        color: var(--text-light) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .dark-theme .nav-links .nav-link:hover,
    .dark-theme .nav-links .nav-link.active {
        color: var(--primary-light) !important;
    }

    .nav-links .nav-btn {
        width: 100%;
        margin-top: 2rem;
        text-align: center;
        justify-content: center;
    }

    /* Hamburger Active Animations */
    .hamburger.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

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

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .header-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.55);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
    }

    .header-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

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

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

/* ==========================================
   12. KEYFRAMES & TRANSITION TIMELINES
   ========================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatSlow {

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

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

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Counter incremental style helper */
.counter-animate {
    transition: var(--transition-smooth);
}

/* ==========================================
   13. CUSTOM TIMINGS TABLE, FAQ ACCORDION, GALLERY
   ========================================== */
/* Timings Table */
.timings-table-wrapper {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: clamp(1rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* margin: 0 auto; */
}

@media (max-width: 480px) {
    .timings-table-wrapper {
        padding: 1rem;
    }
    .timings-table th,
    .timings-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.82rem;
    }
}

.timings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.timings-table th,
.timings-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.timings-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    background-color: rgba(0, 155, 144, 0.05);
}

.timings-table tr:last-child td {
    border-bottom: none;
}

.timings-table td strong {
    color: var(--secondary);
}

/* Premium Responsive Table (Stacked layout on mobile) */
@media (max-width: 576px) {
    .responsive-table {
        display: block;
        width: 100%;
    }
    
    .responsive-table thead {
        display: none; /* Hide header row */
    }
    
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }
    
    .responsive-table tr {
        border-bottom: 2px solid var(--border-color) !important;
        padding: 1rem 0;
    }
    
    .responsive-table tr:last-child {
        border-bottom: none !important;
        padding-bottom: 0;
    }
    
    .responsive-table td {
        text-align: right;
        padding: 0.6rem 0.5rem;
        position: relative;
        padding-left: 50% !important;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.05) !important;
    }
    
    .dark-theme .responsive-table td {
        border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .responsive-table td:last-child {
        border-bottom: none !important;
    }
    
    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 45%;
        font-family: var(--font-heading);
        font-weight: 700;
        text-align: left;
        color: var(--primary-dark);
        font-size: 0.88rem;
    }
    
    .dark-theme .responsive-table td::before {
        color: var(--text-light);
    }
}

/* FAQ Accordion using details & summary */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

details.faq-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 5vw, 2rem);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
}

details.faq-item[open] {
    border-color: rgba(0, 155, 144, 0.3);
    box-shadow: var(--shadow-md);
    background: radial-gradient(circle at 100% 100%, rgba(0, 155, 144, 0.02) 0%, transparent 60%);
}

summary.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    outline: none;
    user-select: none;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: var(--transition-smooth);
}

details.faq-item[open] summary.faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    color: var(--secondary);
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Activities Gallery Grid */
.activities-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 155, 144, 0.15);
}

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

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================
   14. PREMIUM FLOATING WHATSAPP LAUNCHER
   ========================================== */
.whatsapp-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition-bounce);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    background-color: #128C7E;
    color: #ffffff;
}

.whatsapp-launcher svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Tooltip styling */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #1E293B;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.whatsapp-launcher:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Tooltip arrow */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #1E293B;
}

@media (max-width: 576px) {
    .whatsapp-launcher {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    
    .whatsapp-launcher svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* ==========================================
   DROPDOWN MENU NAVIGATION
   ========================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.8px solid var(--primary-dark);
    border-bottom: 1.8px solid var(--primary-dark);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    margin-top: -3px;
}

.dark-theme .dropdown-arrow {
    border-color: var(--text-light);
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 210px;
    box-shadow: var(--shadow-lg), 0 12px 30px -10px rgba(12, 74, 96, 0.12);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
}

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

.dropdown-link {
    display: block;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-dark);
    transition: var(--transition-smooth);
    border-bottom: none !important;
}

.dark-theme .dropdown-link {
    color: var(--text-light);
}

.dropdown-link:hover {
    color: var(--primary);
    background-color: rgba(0, 155, 144, 0.04);
}

.dropdown-link.active {
    color: var(--primary);
    background-color: rgba(0, 155, 144, 0.08);
}

/* Hover support on parent nav-link underline animation */
.nav-item-dropdown:hover .dropdown-trigger::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-item-dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-trigger {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 0.5rem;
    }

    .nav-item-dropdown:hover .dropdown-arrow {
        transform: rotate(45deg);
        margin-top: -3px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: block;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1.25rem;
        min-width: 0;
        width: 100%;
        border-radius: 0;
        transition: none;
    }

    .dropdown-link {
        font-size: 1.05rem;
        padding: 1rem 0;
        color: var(--primary-dark) !important;
        border-bottom: 1px solid var(--border-color) !important;
        width: 100%;
    }

    .dark-theme .dropdown-link {
        color: var(--text-light) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .dropdown-link:last-child {
        border-bottom: none !important;
    }
}