/* ============================================================
   Government Nursing College, Kokrajhar — Logo-Matched Theme
   Color Palette extracted from official college emblem
   ============================================================ */

:root {
    /* === RADII === */
    --radius-lg: 2rem;
    --radius-xl: 3rem;

    /* === CORE PALETTE (from logo) === */
    --primary: #ffffff;
    /* White — inner circle of emblem */
    --accent: #1B3D8E;
    /* Royal Blue — globe, hands, ribbon */
    --accent-light: #2952B0;
    /* Lighter blue — hover states */
    --accent-dark: #102A66;
    /* Darker blue — pressed/active states */
    --background: #F0F3F8;
    /* Blue-tinted gray — page canvas */
    --dark: #0F1A2E;
    /* Deep navy — text, dark sections */

    /* === LOGO EXTENDED COLORS === */
    --gold: #D4A520;
    /* Golden yellow — seal badge border */
    --gold-light: #E8BE3E;
    /* Light gold — hover/highlight */
    --gold-dark: #B08A18;
    /* Dark gold — pressed/shadow */
    --green: #2E7D32;
    /* Laurel green — leaves */
    --green-light: #43A047;
    /* Light green — status/success */
    --green-dark: #1B5E20;
    /* Dark green — emphasis */
    --seal-black: #1A1A1A;
    /* Black — outer seal ring */

    /* === SURFACE & UTILITY === */
    --surface: #ffffff;
    --surface-elevated: #FAFBFD;
    --border: rgba(27, 61, 142, 0.08);
    /* Blue-tinted border */
    --border-strong: rgba(27, 61, 142, 0.15);
    --text-primary: #0F1A2E;
    --text-secondary: #3D4F6F;
    --text-muted: #7289AA;
    --overlay: rgba(15, 26, 46, 0.6);
}

/* ============================================================
   BASE RESETS
   ============================================================ */

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================================
   CUSTOM SCROLLBAR — Logo blue accent
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: rgba(27, 61, 142, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 61, 142, 0.4);
}

/* ============================================================
   NOISE OVERLAY — Created via inline SVG in HTML
   ============================================================ */

/* ============================================================
   MAGNETIC BUTTON SYSTEM
   ============================================================ */

.magnetic-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
}

@media (hover: hover) {
    .magnetic-btn:hover {
        transform: scale(1.03);
    }
}

/* Sliding background layer shared by all button variants */
.btn-layer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.magnetic-btn:hover .btn-layer {
    transform: translateY(-100%);
}

.magnetic-btn>span {
    position: relative;
    z-index: 2;
}

/* --- Accent (Royal Blue) Button --- */
.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
}

.btn-accent .btn-layer {
    background-color: var(--accent-dark);
}

.btn-accent:hover {
    box-shadow: 0 8px 25px rgba(27, 61, 142, 0.3);
}

/* --- Gold Button --- */
.btn-gold {
    background-color: var(--gold);
    color: var(--dark);
    border: none;
}

.btn-gold .btn-layer {
    background-color: var(--gold-dark);
}

.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(212, 165, 32, 0.3);
}

/* --- White / Ghost Button --- */
.btn-white {
    background-color: #ffffff;
    color: var(--accent);
    border: 1px solid var(--border-strong);
}

.btn-white .btn-layer {
    background-color: var(--background);
}

/* --- Outline Button --- */
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline .btn-layer {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   HOVER LIFT — Links & interactive elements
   ============================================================ */

.hover-lift {
    transition: transform 0.2s ease-out, color 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-1px);
}

/* ============================================================
   TEXT ANIMATION UTILITIES
   ============================================================ */

.split-line {
    overflow: hidden;
    padding-bottom: 0.1em;
}

.split-word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}

/* Animated cycling words container */
.animated-words-container {
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.1em;
    height: 1.1em;
}

.animated-word {
    opacity: 0;
    transform: translateY(100%);
    will-change: transform, opacity;
}

.animated-word:first-child {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LIVE FEED CURSOR BLINK
   ============================================================ */

.cursor-blink {
    animation: blink 1.2s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ============================================================
   PULSE DOT — Status indicators
   ============================================================ */

.pulse-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green-light);
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: var(--green-light);
    animation: pulse-ring 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Gold variant for "official" indicators */
.pulse-dot-gold {
    background-color: var(--gold);
}

.pulse-dot-gold::after {
    background-color: var(--gold);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ============================================================
   NAVBAR MORPH STATES
   ============================================================ */

.nav-transparent {
    background: transparent;
    color: #ffffff;
    border: 1px solid transparent;
}

.nav-solid {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--dark);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 26, 46, 0.06);
}

/* Active nav link — gold underline */
.nav-link-active {
    position: relative;
}

.nav-link-active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

/* ============================================================
   FEATURE / HIGHLIGHT CARDS
   ============================================================ */

.feature-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    filter: drop-shadow(0 10px 25px rgba(15, 26, 46, 0.04));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 26, 46, 0.08);
}

/* Card with gold top-border accent (for highlighted / featured card) */
.feature-card-gold {
    border-top: 3px solid var(--gold);
}

/* Card with blue top-border accent */
.feature-card-blue {
    border-top: 3px solid var(--accent);
}

/* ============================================================
   PROGRAM CARDS
   ============================================================ */

.program-card-overlay {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(240, 243, 248, 1) 100%);
}

/* Program card accent strip (left border using logo colors) */
.program-strip-blue {
    border-left: 4px solid var(--accent);
}

.program-strip-gold {
    border-left: 4px solid var(--gold);
}

.program-strip-green {
    border-left: 4px solid var(--green);
}

/* ============================================================
   EKG / SVG ANIMATION PATHS
   ============================================================ */

.ekg-path {
    stroke: var(--accent);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* ============================================================
   INSTITUTIONAL BADGE (Hero section)
   ============================================================ */

.institution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(212, 165, 32, 0.15);
    border: 1px solid rgba(212, 165, 32, 0.3);
    border-radius: 100px;
    color: var(--gold-light);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.institution-badge-dark {
    background: rgba(27, 61, 142, 0.1);
    border-color: rgba(27, 61, 142, 0.2);
    color: var(--accent);
}

/* ============================================================
   SECTION DIVIDER — Gold accent line
   ============================================================ */

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.section-divider-blue {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* ============================================================
   DARK SECTION (About / Mission / Footer)
   Logo-navy background with texture support
   ============================================================ */

.section-dark {
    background-color: var(--dark);
    color: #ffffff;
}

.section-dark .text-muted {
    color: rgba(255, 255, 255, 0.5);
}

.section-dark .text-secondary {
    color: rgba(255, 255, 255, 0.7);
}

/* Gold accent text in dark sections */
.text-gold {
    color: var(--gold);
}

.text-accent {
    color: var(--accent);
}

.text-green {
    color: var(--green);
}

.bg-gold {
    background-color: var(--gold);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-green {
    background-color: var(--green);
}

/* ============================================================
   FOOTER — Government institutional footer
   ============================================================ */

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-govt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(212, 165, 32, 0.1);
    border: 1px solid rgba(212, 165, 32, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.03em;
}

/* ============================================================
   PRICING / ADMISSION CARDS
   ============================================================ */

/* Middle "featured" card with accent bg */
.admission-card-featured {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    border: none;
    transform: scale(1.02);
}

.admission-card-featured .btn-layer {
    background-color: var(--gold);
}

/* ============================================================
   CAMPUS IMAGE GRID — Overlay label
   ============================================================ */

.campus-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.85), transparent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================================
   STAT COUNTER BAR
   ============================================================ */

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* Dark section variant */
.section-dark .stat-number {
    color: var(--gold);
}

.section-dark .stat-label {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   LOGO EMBLEM — SVG recreation helpers
   ============================================================ */

.logo-seal {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: 3px solid var(--seal-black);
    border-radius: 50%;
}

.logo-globe {
    fill: var(--accent);
}

.logo-land {
    fill: var(--green);
}

.logo-laurel {
    fill: var(--green);
}

/* ============================================================
   ACCESSIBILITY — Focus rings using logo blue
   ============================================================ */

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Gold focus for dark sections */
.section-dark *:focus-visible {
    outline-color: var(--gold);
}

/* ============================================================
   SELECTION HIGHLIGHT — Logo blue
   ============================================================ */

::selection {
    background: rgba(27, 61, 142, 0.2);
    color: var(--dark);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --radius-lg: 1.5rem;
        --radius-xl: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}