@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --maroon: #1a4f7a;
    --maroon-dark: #0d3257;
    --maroon-light: #2e6fa3;
    --gold: #c9963a;
    --gold-light: #e8bc6a;
    --cream: #faf6ef;
    --dark: #0f0f1a;
    --dark2: #1a1a2e;
    --white: #ffffff;
    --text: #1e1e2e;
    --muted: #6b6b80;
    --border: #e8ddd0;
    --glass: rgba(255, 255, 255, 0.07);
    --shadow: 0 20px 60px rgba(139, 26, 47, 0.15);
    --shadow-gold: 0 8px 32px rgba(201, 150, 58, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .page-content, .page-hero ~ * {
    flex: 1;
}


/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.header-inner {
    max-width: 1280px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(139, 26, 47, 0.3);
    overflow: hidden;
}

.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--maroon);
    line-height: 1.2;
}

.header-text .sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

.header-text .hindi {
    font-size: 13px;
    color: var(--maroon-light);
    font-weight: 600;
}

.header-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    background: var(--maroon);
    color: #fff;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s;
    border: 2px solid transparent;
}

.btn-login:hover {
    background: transparent;
    border-color: var(--maroon);
    color: var(--maroon);
}

.btn-admission {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all .3s;
    box-shadow: var(--shadow-gold);
}

.btn-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 150, 58, 0.45);
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(90deg, var(--maroon-dark), var(--maroon));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(13, 50, 87, 0.4);
}

.nav-inner {
    max-width: 1280px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.navbar a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 15px 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    transition: all .25s;
    display: inline-block;
    flex: 1;
    text-align: center;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: var(--gold);
    transition: all .3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    left: 0;
    right: 0;
}

.navbar a:hover,
.navbar a.active {
    color: var(--gold-light);
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, #3a0ca3 0%, #6a0dad 40%, #7b2ff7 75%, #9d4edd 100%);
    padding: 70px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.page-hero::before {
    content: none;
}

.page-hero h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    color: var(--white);
    position: relative;
    z-index: 1;
    animation: fadeUp .8s ease both;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-size: 15px;
    position: relative;
    z-index: 1;
    animation: fadeUp .8s .15s ease both;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    animation: fadeUp .8s .3s ease both;
}

.breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== MARQUEE ===== */
.marquee-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    padding: 9px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    padding: 0 50px;
    flex-shrink: 0;
}

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

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

/* ===== SECTION ===== */
.section {
    max-width: 1280px;
    margin: auto;
    padding: 64px 24px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: var(--maroon);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-bottom: 32px;
}

/* ===== CARD ===== */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark2);
    padding: 50px 24px 0;
    margin-top: auto;
}

.footer-grid {
    max-width: 1280px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 13px;
    color: #888;
    line-height: 1.9;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--gold);
}

.footer-col ul li a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    max-width: 1280px;
    margin: auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

.footer-bottom span {
    color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.anim-up {
    animation: fadeUp .7s ease both;
}

.anim-up-2 {
    animation: fadeUp .7s .15s ease both;
}

.anim-up-3 {
    animation: fadeUp .7s .3s ease both;
}

.anim-up-4 {
    animation: fadeUp .7s .45s ease both;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
    position: relative;
    z-index: 0;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== BADGE NEW ===== */
.badge-new {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-text h1 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    /* Header: stack logo+text on left, buttons below */
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    .header-text {
        flex: 1;
        min-width: 0;
    }

    .header-text h1 {
        font-size: 16px;
    }

    .header-right {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-login,
    .btn-admission {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Profile circle stays inline with buttons */
    #profWrap {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h2 {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .header-text .sub {
        display: none;
    }
}

.footer-col a {
    text-decoration: none;
    color: #d1d5db;
}

/* ===== SCROLL REVEAL JS ===== */
