/*
 * =========================================================================
 *  Vidyamandira Portal V2 — Redesigned Landing Page Stylesheet
 *  Author: Antigravity AI
 *  File: /public/assets/css/landing-page.css
 * =========================================================================
 */

/* ─── 1. Design System & CSS Variables ─── */
:root {
    /* Rich Harmonious Color Palette */
    --color-saffron: #F97316;
    --color-saffron-light: #FFedd5;
    --color-saffron-dark: #C2410C;
    --color-saffron-glow: rgba(249, 115, 22, 0.45);

    --color-maroon: #5E1A0C;
    --color-maroon-dark: #3B0F05;
    --color-maroon-light: #8B2C16;

    --color-cream: #FCFAF5;
    --color-cream-dark: #F3EFE0;

    --color-dark: #0F172A;
    --color-dark-muted: #1E293B;
    --color-text: #334155;
    --color-text-muted: #64748B;
    --color-white: #FFFFFF;

    /* Premium Typography */
    --font-display: 'Playfair Display', 'Merriweather', serif;
    --font-body: 'Poppins', 'Inter', sans-serif;
    --font-accent: 'Rajdhani', sans-serif;

    /* Elevating Glassmorphism Elements */
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(15, 23, 42, 0.65);
    --glass-border-light: rgba(255, 255, 255, 0.4);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 8px 20px -6px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 30px var(--color-saffron-glow);

    /* Layout Constants */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-track {
    background: var(--color-cream-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-saffron);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-saffron-dark);
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-dark);
    font-weight: 700;
}

/* Layout helpers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.section-alt-bg {
    background-color: var(--color-white);
}

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

/* ─── 3. Header: Frosted Glass Sticky Header ─── */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.8rem 0;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(252, 250, 245, 0.82);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 52px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.4s;
}

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

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-saffron), var(--color-saffron-light));
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.login-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(2px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

/* Header colors matching header scroll states */
.main-header:not(.scrolled) .logo-text {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header:not(.scrolled) .main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-header:not(.scrolled) .main-nav a:hover {
    color: var(--color-white);
}

/* Not scrolled header-actions styling */
.main-header:not(.scrolled) .login-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
}

.main-header:not(.scrolled) .login-btn:hover,
.main-header:not(.scrolled) .login-btn:focus,
.main-header:not(.scrolled) .login-btn:active {
    background: var(--color-white);
    color: var(--color-maroon) !important;
    border-color: var(--color-white) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.main-header:not(.scrolled) .mobile-menu-toggle {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.main-header:not(.scrolled) .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.main-header:not(.scrolled) .theme-toggle-btn {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.main-header:not(.scrolled) .theme-toggle-btn:hover {
    color: var(--color-saffron);
}

/* Scrolled header-actions styling */
.main-header.scrolled .logo-text {
    color: var(--color-maroon);
}

.main-header.scrolled .main-nav a {
    color: var(--color-text);
}

.main-header.scrolled .main-nav a:hover {
    color: var(--color-saffron);
}

.main-header.scrolled .login-btn {
    background: linear-gradient(135deg, var(--color-saffron), var(--color-saffron-dark));
    border: 1px solid transparent;
    color: var(--color-white) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.main-header.scrolled .login-btn:hover,
.main-header.scrolled .login-btn:focus,
.main-header.scrolled .login-btn:active {
    background: linear-gradient(135deg, var(--color-saffron-dark), var(--color-maroon-light));
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45) !important;
    transform: translateY(-2px);
    color: var(--color-white) !important;
    border-color: transparent !important;
}

.main-header.scrolled .theme-toggle-btn {
    color: var(--color-dark);
}

.main-header.scrolled .theme-toggle-btn:hover {
    color: var(--color-saffron);
}

.main-header.scrolled .mobile-menu-toggle {
    color: #d16819;
    background: rgba(94, 26, 12, 0.06);
    border: 1px solid rgb(239 225 222 / 31%);
}

.main-header.scrolled .mobile-menu-toggle:hover {
    background: rgba(94, 26, 12, 0.12);
    border-color: rgba(94, 26, 12, 0.2);
    transform: scale(1.05);
}

.main-header .mobile-menu-toggle.menu-open {
    color: var(--color-orange) !important;
    background: rgba(94, 26, 12, 0.12) !important;
    border-color: rgba(94, 26, 12, 0.2) !important;
}

/* ─── 4. Hero Section: Asymmetric Split Layout ─── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: #060913;
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 8s linear;
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.prev {
    opacity: 0;
    transform: scale(1.05);
}

/* Background overlays */
.overlay-dark {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.75) 0%,
            rgba(15, 23, 42, 0.5) 50%,
            rgba(94, 26, 12, 0.7) 100%);
}

.overlay-scanlines {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.4;
}

.overlay-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(circle at center, transparent 30%, rgba(6, 9, 19, 0.9) 100%);
    pointer-events: none;
}

/* Floating Particles Background */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    filter: blur(4px);
    pointer-events: none;
    will-change: transform, opacity;
}

.particle.p1 {
    width: 250px;
    height: 250px;
    left: 10%;
    top: 60%;
    animation: floatParticle1 24s infinite linear;
}

.particle.p2 {
    width: 350px;
    height: 350px;
    left: 55%;
    top: 75%;
    animation: floatParticle2 32s infinite linear;
}

.particle.p3 {
    width: 200px;
    height: 200px;
    left: 80%;
    top: 25%;
    animation: floatParticle3 20s infinite linear;
}

.particle.p4 {
    width: 180px;
    height: 180px;
    left: 40%;
    top: 15%;
    animation: floatParticle4 28s infinite linear;
}

@keyframes floatParticle1 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-500px) translateX(60px) scale(1.1);
        opacity: 0;
    }
}

@keyframes floatParticle2 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    15% {
        opacity: 0.5;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-600px) translateX(-80px) scale(0.9);
        opacity: 0;
    }
}

@keyframes floatParticle3 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-400px) translateX(40px) scale(1.2);
        opacity: 0;
    }
}

@keyframes floatParticle4 {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-550px) translateX(-50px) scale(0.85);
        opacity: 0;
    }
}

/* Asymmetric Split Layout Styles */
.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
    width: 100%;
    padding-top: 2rem;
}

/* Left Content Column */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    animation: heroLeftIntro 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroLeftIntro {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-saffron-light);
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-saffron);
    box-shadow: 0 0 10px var(--color-saffron);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.hero-headline {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sub-headline {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--color-saffron);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-headline {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.accent-headline {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #F97316 0%, #FBBF24 40%, #FF9E00 80%, #F97316 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineText 4s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes shineText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-desc {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 2px solid #c05316;
}

.cta-btn-primary {
    background: linear-gradient(352deg, #dc7218, #66666600);
    color: var(--color-white);
    /* box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); */
    position: relative;
    overflow: hidden;
}

.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.cta-btn-primary:hover::before {
    left: 125%;
}

.cta-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    /* box-shadow: 0 10px 25px rgba(249, 115, 22, 0.6); */
    background: linear-gradient(172deg, #cf6117, #66666600);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
}

/* Stats panel */
.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 580px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.stat-lbl {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Right Dashboard Widget Column */
.hero-right {
    display: flex;
    justify-content: center;
    animation: heroRightIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroRightIntro {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

.portal-preview-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(249, 115, 22, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.portal-preview-card:hover {
    transform: translateY(-8px) rotate(1deg);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 50px rgba(249, 115, 22, 0.25);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1.2rem;
}

.circle-buttons {
    display: flex;
    gap: 0.45rem;
}

.circle-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.circle-buttons span:nth-child(1) {
    background-color: #EF4444;
}

.circle-buttons span:nth-child(2) {
    background-color: #F59E0B;
}

.circle-buttons span:nth-child(3) {
    background-color: #10B981;
}

.card-title {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.card-body {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preview-welcome {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-welcome h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.preview-welcome p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Terminal Dashboard Tabs */
.terminal-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    width: 100%;
}

.term-tab-btn {
    background: transparent;
    border: none;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.term-tab-btn i {
    font-size: 0.8rem;
}

.term-tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.term-tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

/* Terminal Body & Dynamic Content */
.terminal-body {
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.term-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.term-content.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

/* Monospace Coding Console */
.terminal-console {
    background: rgba(10, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.76rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    text-align: left;
    min-height: 150px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.console-line {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.console-line.primary {
    color: var(--color-saffron);
    font-weight: bold;
}

.console-line.green-check {
    color: #34D399;
}

.console-line.diagnostic-log {
    color: #38BDF8;
    animation: consoleLogPrint 0.3s ease-out forwards;
}

@keyframes consoleLogPrint {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

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

.console-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.run-diag-btn {
    align-self: center;
    background: linear-gradient(135deg, var(--color-saffron), var(--color-saffron-dark));
    border: 1px solid transparent;
    padding: 0.65rem 1.4rem;
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.run-diag-btn:hover {
    background: linear-gradient(135deg, var(--color-saffron-dark), var(--color-maroon-light));
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.run-diag-btn i {
    font-size: 0.75rem;
}

/* Diagnostics Progress Bar */
.diag-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.diag-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34D399, #38BDF8);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.diag-progress-text {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SVG Node Graph Styling */
.graph-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.6rem;
}

.db-node-graph {
    width: 100%;
    height: auto;
}

.graph-link {
    stroke: rgba(249, 115, 22, 0.25);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    animation: dashPulse 10s linear infinite;
}

@keyframes dashPulse {
    to {
        stroke-dashoffset: -50;
    }
}

.graph-node {
    fill: #1E293B;
    stroke: var(--color-saffron);
    stroke-width: 2;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.graph-node:hover {
    fill: var(--color-saffron);
    filter: drop-shadow(0 0 8px var(--color-saffron));
    transform: scale(1.1);
}

.graph-node.core {
    fill: #0F172A;
    stroke: #38BDF8;
    stroke-width: 3;
    animation: nodeCorePulse 2s infinite alternate;
}

@keyframes nodeCorePulse {
    from {
        filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.4));
    }

    to {
        filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95));
    }
}

.graph-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 8px;
    font-weight: 700;
    fill: rgba(255, 255, 255, 0.4);
    text-anchor: middle;
    pointer-events: none;
}

.graph-label.core {
    fill: #38BDF8;
}

/* Roster stats list */
.roster-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
}

.roster-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.r-stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.r-stat-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.r-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-saffron), var(--color-saffron-dark));
    border-radius: 10px;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #34D399;
    text-transform: uppercase;
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

/* ─── 5. Slide Indicators: Dots and Sleek Counter ─── */
.slide-dots {
    position: absolute;
    bottom: 3.5rem;
    right: 4rem;
    z-index: 20;
    display: flex;
    gap: 0.75rem;
}

.slide-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slide-dots .dot.active {
    background: var(--color-saffron);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--color-saffron);
}

.slide-counter {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-accent);
    color: var(--color-white);
}

.slide-counter .current {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-saffron);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.slide-counter .divider {
    font-size: 0.9rem;
    opacity: 0.4;
    transform: rotate(20deg);
}

.slide-counter .total {
    font-size: 1.1rem;
    opacity: 0.6;
}

/* ─── 6. Corner Framed Brackets ─── */
.corner-bracket {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    z-index: 11;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.hero-content:hover .corner-bracket {
    width: 45px;
    height: 45px;
}

.corner-bracket.top-left {
    top: 25px;
    left: 25px;
    border-top-color: var(--color-saffron);
    border-left-color: var(--color-saffron);
}

.corner-bracket.top-right {
    top: 25px;
    right: 25px;
    border-top-color: var(--color-saffron);
    border-right-color: var(--color-saffron);
}

.corner-bracket.bottom-left {
    bottom: 25px;
    left: 25px;
    border-bottom-color: var(--color-saffron);
    border-left-color: var(--color-saffron);
}

.corner-bracket.bottom-right {
    bottom: 25px;
    right: 25px;
    border-bottom-color: var(--color-saffron);
    border-right-color: var(--color-saffron);
}

/* ─── 7. Scroll Down Indicator ─── */
.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
}

.scroll-label {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    animation: fadeLabel 2s ease-in-out infinite alternate;
}

@keyframes fadeLabel {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.8;
    }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.6;
}

.scroll-arrows i {
    display: block;
    font-size: 1.2rem;
    color: var(--color-saffron);
    opacity: 0;
    animation: arrowCascade 1.8s ease-in-out infinite;
}

.scroll-arrows i:nth-child(1) {
    animation-delay: 0s;
}

.scroll-arrows i:nth-child(2) {
    animation-delay: 0.25s;
}

.scroll-arrows i:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes arrowCascade {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    40%,
    65% {
        opacity: 1;
        transform: translateY(0);
    }

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

/* ─── 8. About & Ideal of Education Section (Redesigned Philosophy Showcase) ─── */
.philosophy-showcase {
    background-color: var(--color-cream);
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.5) 0%, rgba(94, 26, 12, 0.2) 50%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
    animation: spiritualAuraPulse 8s ease-in-out infinite alternate;
}

@keyframes spiritualAuraPulse {
    0% {
        transform: scale(0.9) rotate(0deg);
        background: radial-gradient(circle, rgba(255, 153, 51, 0.45) 0%, rgba(94, 26, 12, 0.15) 50%, transparent 70%);
    }

    50% {
        transform: scale(1.05) rotate(180deg);
        background: radial-gradient(circle, rgba(255, 94, 0, 0.55) 0%, rgba(255, 153, 51, 0.25) 55%, transparent 75%);
    }

    100% {
        transform: scale(1.15) rotate(360deg);
        background: radial-gradient(circle, rgba(255, 153, 51, 0.5) 0%, rgba(94, 26, 12, 0.2) 60%, transparent 80%);
    }
}

.image-glow-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 40px;
    border: 2px dashed rgba(249, 115, 22, 0.8);
    animation: rotateGlowRing 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

.image-glow-square {
    position: absolute;
    width: 112%;
    height: 112%;
    border-radius: 16px;
    border: 2px solid rgba(255, 153, 51, 0.6);
    box-shadow: 0 0 35px rgba(255, 153, 51, 0.35);
    animation: rotateGlowSquare 24s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

.about-image img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 40px;
    border: 4px solid #ff5e00;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(94, 26, 12, 0.1);
    z-index: 1;
    position: relative;
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.03) rotate(-.01deg);
    border-color: #c57f15;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(249, 115, 22, 0.2);
}

.about-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(94, 26, 12, 0.06);
    border: 1px solid rgba(94, 26, 12, 0.1);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d63f20;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-badge i {
    font-size: 0.75rem;
    color: var(--color-saffron);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-maroon);
    margin-bottom: 2.2rem;
    line-height: 1.15;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-saffron), var(--color-saffron-light));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.blockquote-wrapper {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.quote-mark {
    position: absolute;
    font-family: var(--font-display);
    font-size: 6.5rem;
    line-height: 1;
    color: rgba(249, 115, 22, 0.15);
    pointer-events: none;
    user-select: none;
}

.open-quote {
    top: -3.5rem;
    left: -2rem;
}

.close-quote {
    bottom: -4rem;
    right: 0;
}

.phil-quote {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-maroon-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.quote-author-sig {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.sig-line {
    width: 40px;
    height: 2px;
    background: var(--color-saffron);
    display: inline-block;
}

.sig-name {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-maroon);
    text-transform: uppercase;
}

.phil-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.phil-lead-description {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* Philosophy Tabs */
.philosophy-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    width: 100%;
    border-top: 1px solid rgba(94, 26, 12, 0.08);
    border-bottom: 1px solid rgba(94, 26, 12, 0.08);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.phil-tab-btn {
    background: rgba(94, 26, 12, 0.02);
    border: 1px solid rgba(94, 26, 12, 0.822);
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.phil-tab-btn i {
    font-size: 1.35rem;
    color: var(--color-saffron);
    transition: var(--transition-smooth);
}

.phil-tab-btn span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-maroon-light);
    transition: var(--transition-smooth);
}

.phil-tab-btn:hover {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.phil-tab-btn.active {
    background: linear-gradient(26deg, #ed7217, #8f240c);
    border-color: var(--color-maroon-dark);
    box-shadow: var(--shadow-md), 0 10px 20px rgba(94, 26, 12, 0.15);
    transform: translateY(-2px);
}

.phil-tab-btn.active i {
    color: var(--color-saffron-light);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.phil-tab-btn.active span {
    color: var(--color-white);
}

/* Philosophy Card content */
.philosophy-card {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.phil-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.phil-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.phil-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--color-saffron), var(--color-saffron-dark));
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
}

.phil-explore-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.phil-explore-btn:hover {
    background: linear-gradient(135deg, var(--color-saffron-dark), var(--color-maroon-light));
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    transform: translateY(-2px);
}

.phil-explore-btn:hover i {
    transform: translateX(4px);
}

/* Portrait ambient particles */
.image-particles-ambient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.image-particles-ambient::before,
.image-particles-ambient::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0%;
    height: 0%;
    border: 2px solid rgba(255, 153, 51, 0.4);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: enlightenedRipples 8s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
}

.image-particles-ambient::after {
    animation-delay: 4s;
}

@keyframes enlightenedRipples {
    0% {
        width: 10%;
        height: 10%;
        opacity: 0.7;
        border-color: rgba(255, 153, 51, 0.7);
        box-shadow: 0 0 15px rgba(255, 153, 51, 0.4), inset 0 0 15px rgba(255, 153, 51, 0.2);
    }

    50% {
        opacity: 0.35;
        border-color: rgba(255, 94, 0, 0.35);
    }

    100% {
        width: 140%;
        height: 140%;
        opacity: 0;
        border-color: rgba(94, 26, 12, 0);
        box-shadow: 0 0 40px rgba(94, 26, 12, 0), inset 0 0 30px rgba(94, 26, 12, 0);
    }
}

.img-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-saffron-glow);
    filter: blur(1px);
    animation: floatParticle 8s infinite ease-in-out;
}

.img-particle.ip1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.img-particle.ip2 {
    bottom: 15%;
    right: 15%;
    animation-delay: 2.5s;
    width: 6px;
    height: 6px;
}

.img-particle.ip3 {
    top: 50%;
    right: 5%;
    animation-delay: 4.8s;
    width: 10px;
    height: 10px;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.15);
        opacity: 0.8;
    }
}

/* ─── 9. Related Sites / Directory Section (Redesigned) ─── */
.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: -1rem auto 3.5rem auto;
    line-height: 1.7;
}

/* Filter Tabs Navigation */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.6rem;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: #ffc67c;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-text-muted);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--color-maroon);
    border-color: rgba(94, 26, 12, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-light));
    border-color: var(--color-maroon);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(94, 26, 12, 0.35);
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    transition: var(--transition-smooth);
}

.institution-card {
    text-decoration: none;
    color: inherit;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid #ff650b;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.institution-card.hidden {
    display: none;
    opacity: 0;
}

.institution-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(192, 123, 73, 0.342);
    border-color: rgba(204, 65, 11, 0.904);
}

.card-img-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
}

.category-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    padding: 0.35rem 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.institution-card:hover .category-badge {
    background: var(--color-saffron);
    border-color: var(--color-saffron-light);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.institution-card:hover .card-img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.45) 100%);
    opacity: 0.85;
}

.card-content {
    padding: 2.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Glass accent border */
.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-saffron), var(--color-saffron-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.institution-card:hover .card-content::before {
    transform: scaleX(1);
}

.card-content h3 {
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-maroon);
    transition: color 0.3s ease;
}

.institution-card:hover .card-content h3 {
    color: var(--color-saffron-dark);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.card-link-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(94, 26, 12, 0.05);
    color: var(--color-maroon);
    align-self: flex-end;
    transition: var(--transition-smooth);
}

.institution-card:hover .card-link-arrow {
    background: var(--color-saffron);
    color: var(--color-white);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
}

/* ─── 10. Footer Section (Redesigned Asymmetric Columns) ─── */
.main-footer {
    background: linear-gradient(180deg, #0A0D16 0%, #05060A 100%);
    color: rgba(252, 250, 245, 0.7);
    padding: 6rem 0 0;
    border-top: 4px solid var(--color-saffron);
    position: relative;
    overflow: hidden;
}

/* Subtle background glow inside footer */
.main-footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Footer Brand Redesign */
.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.footer-logo {
    height: 56px;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.35));
}

.footer-logo-block h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.brand-pitch {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2.2rem;
}

/* Social link buttons */
.social-links {
    display: flex;
    gap: 1.1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(252, 250, 245, 0.75);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--color-saffron);
    border-color: var(--color-saffron);
    color: var(--color-white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* Footer Quick Links styling */
.footer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-saffron);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background-color: var(--color-white);
    opacity: 0.25;
}

.quick-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.quick-links-list li a {
    color: rgba(252, 250, 245, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.quick-links-list li a i {
    font-size: 0.65rem;
    color: var(--color-saffron);
    transition: transform 0.3s ease;
}

.quick-links-list li a:hover {
    color: var(--color-white);
}

.quick-links-list li a:hover i {
    transform: translateX(4px);
}

/* Contact lists and alignments */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-list li i {
    color: var(--color-saffron);
    margin-top: 0.25rem;
    font-size: 1.05rem;
}

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

.contact-list a:hover {
    color: var(--color-white);
}

/* Redesigned Copyright block */
.copyright {
    padding: 2.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.copyright-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.copyright-credits {
    text-align: right;
}

.copyright a {
    color: var(--color-saffron);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--color-white);
}

/* ─── 11. Staggered Intersection Observer Animations ─── */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Left-right stagger animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ─── 12. Responsive Breakpoints ─── */
@media (min-width: 769px) {
    /* Height adjustment fixes for smaller height viewports on Desktop */
    @media (max-height: 820px) {
        .hero-split {
            gap: 3rem;
        }

        .hero-headline {
            margin-bottom: 1.2rem;
        }

        .hero-desc {
            margin-bottom: 2rem;
        }

        .hero-cta-group {
            margin-bottom: 2.5rem;
        }

        .portal-preview-card {
            max-width: 380px;
        }

        .card-body {
            padding: 1.8rem;
            gap: 1.6rem;
        }
    }

    @media (max-height: 720px) {
        .hero-split {
            gap: 2rem;
            padding-top: 4rem;
        }

        .hero-badge {
            margin-bottom: 1rem;
            padding: 0.35rem 0.85rem;
        }

        .hero-headline {
            margin-bottom: 0.8rem;
        }

        .hero-desc {
            margin-bottom: 1.2rem;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .hero-cta-group {
            margin-bottom: 1.8rem;
        }

        .cta-btn {
            padding: 0.8rem 2rem;
            font-size: 0.95rem;
        }

        .hero-stats {
            gap: 2rem;
            padding-top: 0.75rem;
        }

        .portal-preview-card {
            max-width: 340px;
        }

        .card-body {
            padding: 1.4rem;
            gap: 1.2rem;
        }

        .role-pill {
            padding: 0.8rem 0.5rem;
        }
    }
}

@media (max-width: 1024px) {
    .hero-split {
        gap: 2.5rem;
    }

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

    .footer-column:last-child {
        grid-column: span 2;
    }

    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    /* Section paddings on smaller screens */
    .section {
        padding: 4.5rem 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-cream);
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
        padding: 7rem 2.5rem 2rem;
        gap: 1.8rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        align-items: flex-start;
        border-left: 2px solid rgba(249, 115, 22, 0.2);
    }

    .main-nav.mobile-active {
        right: 0;
    }

    .main-nav a {
        color: var(--color-dark) !important;
        font-size: 1.15rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.6rem;
    }

    .main-nav a::after {
        display: none;
    }

    .header-actions {
        z-index: 1001;
    }

    .login-btn {
        display: none;
    }

    /* About Section stacking */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-image {
        margin-bottom: 1rem;
    }

    .about-image::before {
        display: none;
    }

    .about-image img {
        width: min(280px, 65vw);
        margin: 0 auto;
    }

    .about-text p:first-of-type {
        border-left: none;
        padding-left: 0;
        font-size: 1.1rem;
    }

    .about-text {
        align-items: center;
    }

    .philosophy-tabs {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 100%;
    }

    .phil-tab-btn {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 0.8rem;
        width: 100%;
    }

    .open-quote {
        left: 0;
    }

    /* Redesigned Hero split stack on mobile */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 7rem 0 5rem 0;
        display: flex;
        align-items: center;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
        padding-top: 1rem;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

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

    .main-headline {
        font-size: 2.6rem;
    }

    .accent-headline {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2.5rem;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
        margin: 0 auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        width: 100%;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .stat-lbl {
        font-size: 0.72rem;
    }

    .portal-preview-card {
        margin: 0 auto;
        max-width: 360px;
    }

    /* Hide slide indicators and counter on mobile to maximize card focus */
    .slide-counter,
    .slide-dots {
        display: none;
    }

    .scroll-down {
        display: flex;
        bottom: 1rem;
    }

    /* Related Sites stacking */
    .institutions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .institution-card {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .card-content {
        padding: 1.8rem;
        text-align: center;
    }

    /* Footer stacking */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-column:last-child {
        grid-column: span 1;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-list li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .copyright-flex {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .copyright-credits {
        text-align: center;
    }
}