/* ==========================================================================
   Pavitraa Education - Mota Varachha Satellite Growth Observatory CSS
   Theme: Luxury Real Estate & Dark Glassmorphism Command Center
   ========================================================================== */

:root {
    --edu-bg-dark: #070b12;
    --edu-bg-surface: #0e1524;
    --edu-card-bg: rgba(16, 24, 40, 0.78);
    --edu-card-border: rgba(255, 255, 255, 0.12);
    --edu-card-hover: rgba(24, 34, 56, 0.9);
    --edu-gold: #e5a93b;
    --edu-gold-glow: rgba(229, 169, 59, 0.4);
    --edu-emerald: #10b981;
    --edu-emerald-glow: rgba(16, 185, 129, 0.35);
    --edu-cyan: #00d2ff;
    --edu-cyan-glow: rgba(0, 210, 255, 0.3);
    --edu-text-main: #f8fafc;
    --edu-text-muted: #94a3b8;
    --edu-text-dim: #64748b;
    --edu-glass-blur: blur(16px);
}

.edu-master-wrapper {
    background-color: var(--edu-bg-dark);
    color: var(--edu-text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding-bottom: 5rem;
    overflow-x: hidden;
}

.edu-master-wrapper h1,
.edu-master-wrapper h2,
.edu-master-wrapper h3,
.edu-master-wrapper h4,
.edu-master-wrapper .hud-year-number,
.edu-master-wrapper .card-value {
    font-family: 'Outfit', sans-serif;
}

/* ---------------- Grand Hero Section ---------------- */
.edu-grand-hero {
    position: relative;
    padding: 4.5rem 1.5rem 3rem;
    background: radial-gradient(circle at 50% -20%, rgba(229, 169, 59, 0.22) 0%, transparent 60%),
                radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
                linear-gradient(180deg, #090e18 0%, #070b12 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.edu-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.edu-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(229, 169, 59, 0.12);
    border: 1px solid rgba(229, 169, 59, 0.4);
    color: var(--edu-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 20px rgba(229, 169, 59, 0.2);
}

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

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.edu-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    letter-spacing: -1px;
}

.gold-gradient {
    background: linear-gradient(135deg, #ffffff 10%, #ffd480 60%, #e5a93b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-hero-subtitle {
    display: block;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 500;
    color: var(--edu-text-muted);
    letter-spacing: 0;
    margin-top: 0.4rem;
}

.edu-hero-description {
    max-width: 840px;
    margin: 1.2rem auto 2.5rem;
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.65;
}

/* Highlights Strip */
.edu-quick-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--edu-glass-blur);
    padding: 1rem 1.3rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}

.highlight-item:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 169, 59, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--edu-gold);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(229, 169, 59, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.highlight-item span {
    font-size: 0.8rem;
    color: var(--edu-text-muted);
}

/* ---------------- Main Container ---------------- */
.edu-content-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
}

.edu-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.edu-section-pill.light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ---------------- Observatory Section & Satellite Viewport ---------------- */
.edu-observatory-section {
    margin-bottom: 3.5rem;
}

/* ---------------- Clean Observatory Toolbars (Zero Overlap) ---------------- */
.observatory-command-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.observatory-title-group h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.observatory-mode-tabs {
    display: flex;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid var(--edu-card-border);
    backdrop-filter: var(--edu-glass-blur);
    padding: 0.35rem;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.mode-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.mode-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mode-tab.active {
    background: linear-gradient(135deg, #e5a93b, #d48b17);
    color: #0b0f19;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(229, 169, 59, 0.35);
}

.mode-tab.active-earth {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.mode-tab.active-blueprint {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.mode-tab.reset-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 9px 9px 0;
    padding-left: 0.85rem;
}

/* Row 2: Sub-bar with Landmarks & Layer Filter */
.observatory-sub-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(11, 17, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.sub-bar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    max-width: 100%;
}

.sub-bar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--edu-gold);
    white-space: nowrap;
}

.hotspots-scroll-wrap {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 2px 0;
}

.sub-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.sub-bar-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.sub-bar-select:focus {
    border-color: var(--edu-gold);
}

.landmark-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.landmark-chip:hover {
    background: rgba(229, 169, 59, 0.2);
    border-color: var(--edu-gold);
    color: var(--edu-gold);
}

.landmark-chip.locked {
    opacity: 0.38;
    cursor: not-allowed;
    border-style: dashed;
}

/* Satellite Map Frame */
.satellite-viewport-frame {
    position: relative;
    width: 100%;
    height: 720px;
    min-height: 580px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--edu-card-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 169, 59, 0.15);
    background: #090e18;
}

.satellite-map-canvas {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #070c16;
}

/* Google Earth 3D Embed Container (Loads directly in the center!) */
.earth-embed-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 125px;
    z-index: 5;
    background: #000;
    display: flex;
    flex-direction: column;
}

.earth-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.earth-embed-header-bar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.earth-embed-ext-btn {
    color: #fff;
    background: rgba(14, 165, 233, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.6);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
    transition: all 0.2s ease;
}

.earth-embed-ext-btn:hover {
    background: #0284c7;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

/* Single Clean, Compact Corner Status Badge inside Map (Never Overlaps!) */
.map-corner-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(11, 17, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    white-space: nowrap;
}

.corner-year-text {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.corner-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.corner-state-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.corner-coverage-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--edu-cyan);
    background: rgba(0, 210, 255, 0.14);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

.hud-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-status-pill.present {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.hud-status-pill.future {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.hud-status-pill.past {
    background: rgba(229, 169, 59, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(229, 169, 59, 0.4);
}

/* Satellite Time-Lapse Spectral Shaders */
.satellite-map-canvas {
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.satellite-map-canvas.era-farmland {
    /* 2015-2017: Lush rural riverbank tones, enhanced vegetation greens */
    filter: brightness(0.97) saturate(1.42) hue-rotate(-14deg) contrast(1.04);
}

.satellite-map-canvas.era-transition {
    /* 2018-2020: Construction boom, dust & arterial road grid */
    filter: brightness(1.02) contrast(1.15) saturate(0.92) sepia(0.08);
}

.satellite-map-canvas.era-metropolis {
    /* 2021-2024: Crisp, modern high-contrast true satellite */
    filter: brightness(1.0) contrast(1.08) saturate(1.12);
}

.satellite-map-canvas.era-cyberfuture {
    /* 2025-2030: Futuristic twilight smart city vibe with high clarity */
    filter: brightness(0.92) contrast(1.22) saturate(1.3) hue-rotate(5deg);
}


/* Bottom Floating Timeline Deck (Command Deck) */
.hud-bottom-deck {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
    z-index: 15;
    background: rgba(11, 17, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem 1.4rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: auto;
}

.deck-top-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.deck-playback {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.deck-btn-step {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.deck-btn-step:hover {
    background: rgba(255, 255, 255, 0.2);
}

.deck-btn-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e5a93b, #d48b17);
    color: #0b0f19;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(229, 169, 59, 0.45);
}

.deck-btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(229, 169, 59, 0.65);
}

/* Slider Track */
.deck-slider-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deck-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.deck-selected-year-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--edu-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deck-year-select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.deck-slider-hint {
    font-size: 0.72rem;
    color: var(--edu-text-dim);
}

.deck-slider-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #10b981 0%, #00d2ff 45%, #e5a93b 80%, #a855f7 100%);
    outline: none;
    cursor: pointer;
}

.deck-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--edu-gold);
    box-shadow: 0 0 16px rgba(229, 169, 59, 0.9);
    cursor: grab;
    transition: transform 0.15s;
}

.deck-slider-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.deck-ticks-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    padding: 0 4px;
}

.deck-tick {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--edu-text-dim);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.deck-tick:hover,
.deck-tick.active {
    color: #fff;
    font-weight: 800;
    transform: translateY(-1px);
}

.deck-tick.active {
    color: var(--edu-gold);
}

/* Era Jump Chips */
.deck-era-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-top: 0.2rem;
}

.era-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--edu-text-muted);
    white-space: nowrap;
}

.era-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.era-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.era-chip.active {
    background: rgba(229, 169, 59, 0.22);
    border-color: var(--edu-gold);
    color: var(--edu-gold);
    font-weight: 700;
}

/* Observatory Footer Bar */
.observatory-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.4rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    font-size: 0.8rem;
    color: var(--edu-text-muted);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.legend-items {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.color-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.color-box.existing {
    background: #f59e0b;
    border: 1px solid #fbbf24;
}

.color-box.corridor {
    background: #00d2ff;
    border: 1px dashed #38bdf8;
}

.color-box.landmark {
    background: #f43f5e;
    border-radius: 50%;
}

.api-status-text {
    font-weight: 600;
    color: #34d399;
}

/* ---------------- Real-Time Metrics & Intelligence HUD ---------------- */
.edu-metrics-section {
    margin-bottom: 3.5rem;
}

.metrics-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.metrics-header-row h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.metrics-era-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--edu-cyan);
}

/* 6 Luxury Stat Cards Grid */
.metrics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.luxury-stat-card {
    background: var(--edu-card-bg);
    border: 1px solid var(--edu-card-border);
    backdrop-filter: var(--edu-glass-blur);
    padding: 1.3rem 1.4rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.luxury-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.luxury-stat-card.featured-gold {
    border-color: rgba(229, 169, 59, 0.4);
    background: linear-gradient(145deg, rgba(229, 169, 59, 0.1) 0%, rgba(16, 24, 40, 0.8) 100%);
}

.luxury-stat-card.featured-emerald {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 24, 40, 0.8) 100%);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-icon.gold {
    background: rgba(229, 169, 59, 0.15);
    color: var(--edu-gold);
    border: 1px solid rgba(229, 169, 59, 0.35);
}

.card-icon.emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.card-icon.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.card-icon.cyan {
    background: rgba(0, 210, 255, 0.15);
    color: var(--edu-cyan);
    border: 1px solid rgba(0, 210, 255, 0.35);
}

.card-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.card-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--edu-text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.card-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0.1rem 0;
}

.card-subtext {
    font-size: 0.75rem;
    color: var(--edu-text-dim);
}

.card-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.4rem 0;
}

.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #e5a93b);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    width: max-content;
    margin: 0.2rem 0;
}

.trend-badge.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Selected Year Storyboard Showcase */
.year-story-showcase {
    background: var(--edu-card-bg);
    border: 1px solid var(--edu-card-border);
    backdrop-filter: var(--edu-glass-blur);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.story-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--edu-gold);
    margin-bottom: 0.6rem;
}

.story-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.story-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0 0 1.2rem;
}

.story-source-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
}

.story-source-tag i {
    color: #34d399;
}

.story-right-column h5 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--edu-gold);
    margin: 0 0 0.75rem;
}

.story-triggers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.story-triggers-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.story-triggers-list li i {
    color: var(--edu-gold);
    margin-top: 0.2rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---------------- Charts & Looking Ahead Grid ---------------- */
.edu-charts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.glass-panel {
    background: var(--edu-card-bg);
    border: 1px solid var(--edu-card-border);
    backdrop-filter: var(--edu-glass-blur);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.panel-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
}

.panel-header p {
    font-size: 0.88rem;
    color: var(--edu-text-muted);
    margin: 0 0 1.2rem;
}

/* 16-Year Interactive Bar Chart */
.edu-interactive-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 200px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
}

.edu-bar {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0;
}

.edu-bar .bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    transition: all 0.25s ease;
}

.edu-bar:hover .bar {
    background: linear-gradient(180deg, #ffd480 0%, #e5a93b 100%);
    transform: scaleY(1.05);
}

.edu-bar.future .bar {
    background: repeating-linear-gradient(135deg, #a855f7 0px, #a855f7 4px, #c084fc 4px, #c084fc 8px);
}

.edu-bar[aria-pressed=true] .bar {
    background: linear-gradient(180deg, #ffd480 0%, #e5a93b 100%) !important;
    box-shadow: 0 0 15px rgba(229, 169, 59, 0.8);
}

.edu-bar small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--edu-text-dim);
}

.edu-bar[aria-pressed=true] small {
    color: var(--edu-gold);
    font-weight: 800;
}

.chart-legend-row {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--edu-text-muted);
}

.chart-sample {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: middle;
}

.chart-sample.solid {
    background: #10b981;
}

.chart-sample.striped {
    background: repeating-linear-gradient(135deg, #a855f7 0px, #a855f7 2px, #c084fc 2px, #c084fc 4px);
}

/* Looking Ahead: 2030 Masterplan Card */
.future-vision-panel {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(9, 14, 24, 0.9) 100%);
    border-color: rgba(16, 185, 129, 0.35);
}

.future-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.vision-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.future-vision-panel h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
}

.future-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.future-stat-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.stat-col span {
    display: block;
    font-size: 0.72rem;
    color: var(--edu-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-col strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--edu-gold);
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.12);
}

.btn-jump-vision {
    width: 100%;
    background: linear-gradient(135deg, #e5a93b, #d48b17);
    color: #0b0f19;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(229, 169, 59, 0.4);
    transition: all 0.25s ease;
}

.btn-jump-vision:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 169, 59, 0.6);
}

/* ---------------- High-Growth Investment CTA ---------------- */
.edu-cta-section {
    margin-top: 2rem;
}

.cta-banner-glass {
    background: linear-gradient(135deg, rgba(229, 169, 59, 0.18) 0%, rgba(14, 21, 36, 0.95) 100%),
                radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.18), transparent 50%);
    border: 1px solid rgba(229, 169, 59, 0.35);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--edu-gold);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.cta-text-group h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.8rem;
    line-height: 1.25;
}

.cta-text-group p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 680px;
    margin: 0;
}

.cta-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-gold-action {
    background: linear-gradient(135deg, #e5a93b, #d48b17);
    color: #0b0f19;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(229, 169, 59, 0.4);
    transition: all 0.25s ease;
}

.btn-gold-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 169, 59, 0.6);
}

.btn-glass-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-glass-action:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ---------------- Responsive Styles (Fully Mobile-Optimized) ---------------- */
@media (max-width: 1024px) {
    .satellite-viewport-frame {
        height: 600px;
    }
    .year-story-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .edu-charts-grid {
        grid-template-columns: 1fr;
    }
    .cta-banner-glass {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .edu-content-container {
        padding: 1.25rem 0.85rem 0;
    }

    /* Grand Hero Mobile */
    .edu-grand-hero {
        padding: 2.5rem 1rem 1.8rem;
    }
    .edu-hero-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.85rem;
        letter-spacing: 1px;
    }
    .edu-hero-title {
        font-size: clamp(1.85rem, 6.5vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    .edu-hero-subtitle {
        font-size: 1.05rem;
    }
    .edu-hero-description {
        font-size: 0.92rem;
        line-height: 1.55;
        margin: 0.8rem auto 1.6rem;
    }
    .edu-quick-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .highlight-item {
        padding: 0.75rem 0.85rem;
        gap: 0.7rem;
        border-radius: 12px;
    }
    .highlight-item i {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
        border-radius: 9px;
    }
    .highlight-item strong {
        font-size: 0.84rem;
    }
    .highlight-item span {
        font-size: 0.72rem;
    }

    /* Observatory Section & Command Bar */
    .edu-observatory-section {
        margin-bottom: 2.2rem;
    }
    .observatory-command-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-bottom: 0.75rem;
    }
    .observatory-title-group h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }
    /* Horizontal Scrollable Tabs Strip (Zero vertical crowding!) */
    .observatory-mode-tabs {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.45rem;
        padding: 2px 2px 6px;
        scrollbar-width: none;
    }
    .observatory-mode-tabs::-webkit-scrollbar {
        display: none;
    }
    .mode-tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.76rem;
        font-weight: 700;
        padding: 0.45rem 0.85rem;
        border-radius: 9px;
    }

    /* Satellite Viewport */
    .satellite-viewport-frame {
        height: clamp(500px, 62vh, 580px);
        border-radius: 18px;
    }

    /* Map Corner Status Badge */
    .map-corner-status {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        padding: 0.25rem 0.6rem;
        gap: 0.35rem;
        font-size: 0.72rem;
        border-radius: 8px;
        backdrop-filter: blur(15px);
        background: rgba(11, 17, 30, 0.88);
    }
    .corner-year-text {
        font-size: 0.92rem;
        font-weight: 800;
    }
    .corner-state-text {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .corner-coverage-text {
        font-size: 0.7rem;
    }
    .hud-status-pill {
        font-size: 0.62rem;
        padding: 0.12rem 0.4rem;
    }

    /* Mobile Timeline Command Deck (Grid layout: Row 1 = Controls + Year Select, Row 2 = Full Slider, Row 3 = Swipeable Era Chips) */
    .hud-bottom-deck {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 0.6rem 0.8rem;
        border-radius: 16px;
        gap: 0.45rem;
        background: rgba(11, 17, 30, 0.94);
        backdrop-filter: blur(25px);
        border-color: rgba(255, 255, 255, 0.22);
    }
    .deck-top-row {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "playback header"
            "slider slider";
        gap: 0.4rem 0.6rem;
        align-items: center;
    }
    .deck-playback {
        grid-area: playback;
        gap: 0.35rem;
    }
    .deck-btn-step {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    .deck-btn-play {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    .deck-slider-wrap {
        display: contents;
    }
    .deck-slider-header {
        grid-area: header;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin: 0;
    }
    .deck-selected-year-label {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0;
    }
    .deck-selected-year-label span {
        display: none; /* Hide static label to give full room to dropdown */
    }
    .deck-year-select {
        width: auto;
        max-width: 210px;
        padding: 0.32rem 0.65rem;
        font-size: 0.82rem;
        font-weight: 700;
        background: rgba(229, 169, 59, 0.18);
        border: 1px solid var(--edu-gold);
        color: #fff;
        border-radius: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
    .deck-slider-hint {
        display: none;
    }
    .deck-slider-range {
        grid-area: slider;
        width: 100%;
        height: 8px;
        margin: 2px 0;
    }
    .deck-slider-range::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    .deck-ticks-row {
        display: none;
    }
    /* Horizontal Swipeable Era Chips on Mobile */
    .deck-era-chips {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 0.35rem;
        padding-top: 0.15rem;
        scrollbar-width: none;
    }
    .deck-era-chips::-webkit-scrollbar {
        display: none;
    }
    .era-label {
        display: none;
    }
    .era-chip {
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.22rem 0.65rem;
        flex-shrink: 0;
        border-radius: 9999px;
    }

    /* Earth Embed Container on Mobile */
    .earth-embed-container {
        bottom: 95px;
    }

    /* Footer Legend Bar (Leaves room for floating back-to-top button) */
    .observatory-footer-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        gap: 0.45rem;
        margin-top: 0.6rem;
        margin-bottom: 2rem;
        padding-right: 65px; /* Ensures fixed .scroll-top button never covers legend text */
    }
    .legend-items {
        gap: 0.65rem;
    }
    .api-status-text {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    /* Real-Time Analytics Section */
    .edu-metrics-section {
        margin-bottom: 2.2rem;
    }
    .metrics-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    .metrics-header-row h3 {
        font-size: 1.25rem;
    }
    .metrics-era-title {
        font-size: 0.78rem;
        padding: 0.25rem 0.65rem;
    }
    /* 2-Column High-Tech Dashboard Grid on Mobile */
    .metrics-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .luxury-stat-card {
        padding: 0.9rem 0.95rem;
        border-radius: 14px;
        gap: 0.35rem;
    }
    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    .card-label {
        font-size: 0.66rem;
    }
    .card-value {
        font-size: 1.25rem;
    }
    .card-subtext {
        font-size: 0.72rem;
        line-height: 1.3;
    }
    .trend-badge {
        font-size: 0.68rem;
        padding: 0.15rem 0.45rem;
    }

    /* Evolution Story Showcase */
    .year-story-showcase {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.35rem 1.1rem;
        border-radius: 16px;
        margin-bottom: 2.2rem;
    }
    .story-badge {
        font-size: 0.72rem;
    }
    .story-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    .story-text {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 0.85rem;
    }
    .story-triggers-list li {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    /* Charts & Future Vision Grid */
    .edu-charts-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 2.2rem;
    }
    .glass-panel {
        padding: 1.35rem 1.1rem;
        border-radius: 16px;
    }
    .panel-header h3 {
        font-size: 1.2rem;
    }
    .panel-header p {
        font-size: 0.82rem;
        margin-bottom: 0.8rem;
    }
    .edu-interactive-chart {
        height: 155px;
        gap: 3px;
        padding-bottom: 4px;
        overflow-x: auto;
    }
    .chart-year {
        font-size: 0.58rem;
    }
    .future-stat-box {
        padding: 0.8rem 0.5rem;
        margin-bottom: 1.2rem;
        border-radius: 12px;
    }
    .stat-col span {
        font-size: 0.66rem;
    }
    .stat-col strong {
        font-size: 1.15rem;
    }
    .stat-divider {
        height: 28px;
    }
    .btn-jump-vision {
        font-size: 0.88rem;
        padding: 0.8rem 1.2rem;
    }

    /* CTA Banner Mobile */
    .cta-banner-glass {
        padding: 1.6rem 1.2rem;
        border-radius: 18px;
        gap: 1.2rem;
    }
    .cta-text-group h2 {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    .cta-text-group p {
        font-size: 0.88rem;
        line-height: 1.55;
    }
    .cta-buttons-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .btn-gold-action,
    .btn-glass-action {
        width: 100%;
        justify-content: center;
        padding: 0.82rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .corner-state-text,
    .corner-sep:nth-of-type(1) {
        display: none;
    }
    .edu-hero-title {
        font-size: 1.85rem;
    }
    .deck-year-select {
        max-width: 175px;
        font-size: 0.78rem;
    }
}

@media (max-width: 380px) {
    .metrics-cards-grid {
        grid-template-columns: 1fr;
    }
    .edu-quick-highlights {
        grid-template-columns: 1fr;
    }
    .deck-btn-step {
        width: 28px;
        height: 28px;
    }
    .deck-btn-play {
        width: 36px;
        height: 36px;
    }
    .deck-year-select {
        max-width: 145px;
        font-size: 0.75rem;
    }
}
