/* ============================================
   UP POLICE EXAM PREPARATION PLATFORM
   Premium Police-Themed Design System
   ============================================ */

:root {
    --police-primary: #1a237e;
    --police-primary-light: #283593;
    --police-primary-dark: #0d1442;
    --police-gold: #ffd700;
    --police-gold-glow: rgba(255, 215, 0, 0.4);
    --police-red: #e53935;
    --police-green: #43a047;
    --police-bg: #0a0a1a;
    --police-surface: rgba(26, 35, 126, 0.08);
    --police-card: rgba(15, 15, 35, 0.9);
    --police-border: rgba(255, 215, 0, 0.15);
    --police-text: #f0f0f5;
    --police-text-secondary: rgba(240, 240, 245, 0.65);
    --police-gradient: linear-gradient(135deg, #1a237e, #0d47a1);
    --police-gold-gradient: linear-gradient(135deg, #ffd700, #ffab00);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(26, 35, 126, 0.3);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    background: var(--police-bg);
    color: var(--police-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== ANIMATED BACKGROUND ===== */
.up-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(26, 35, 126, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(13, 71, 161, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 60%),
        var(--police-bg);
}

.up-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(26, 35, 126, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
    animation: bgFlow 25s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes bgFlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-3%, 3%) rotate(3deg);
    }

    66% {
        transform: translate(3%, -3%) rotate(-3deg);
    }
}

.up-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== CONTAINER ===== */
.up-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== TOP BAR ===== */
.up-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.up-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.up-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--police-border);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--police-text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--police-gold-gradient);
    color: #1a1a2e;
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
.up-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
    position: relative;
}

/* ===== PREMIUM ANIMATED POLICE SIREN ===== */
.siren-wrapper {
    position: relative;
    width: 120px;
    height: 140px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sirenFloat 3s ease-in-out infinite;
}

@keyframes sirenFloat {

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

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

/* Ambient Glow Rings */
.siren-ambient-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.siren-ambient-ring-1 {
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.08) 40%, transparent 70%);
    animation: ambientPulse1 1.5s ease-in-out infinite;
}

.siren-ambient-ring-2 {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.03) 45%, transparent 70%);
    animation: ambientPulse2 1.5s ease-in-out infinite 0.3s;
}

@keyframes ambientPulse1 {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -55%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.08);
    }
}

@keyframes ambientPulse2 {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -55%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate(-50%, -55%) scale(1.05);
    }
}

/* Light Rays */
.siren-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -60%);
    z-index: 1;
}

.siren-ray {
    position: absolute;
    width: 3px;
    height: 50px;
    background: linear-gradient(to top, rgba(239, 68, 68, 0.6), rgba(255, 200, 100, 0.15), transparent);
    transform-origin: bottom center;
    border-radius: 2px;
    animation: rayPulse 1.5s ease-in-out infinite;
}

.siren-ray-1 {
    transform: rotate(-40deg) translateY(-10px);
    animation-delay: 0s;
}

.siren-ray-2 {
    transform: rotate(-15deg) translateY(-10px);
    animation-delay: 0.2s;
}

.siren-ray-3 {
    transform: rotate(15deg) translateY(-10px);
    animation-delay: 0.4s;
}

.siren-ray-4 {
    transform: rotate(40deg) translateY(-10px);
    animation-delay: 0.6s;
}

@keyframes rayPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 40px;
    }

    50% {
        opacity: 0.8;
        height: 55px;
    }
}

/* Siren Body Container */
.siren-body {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Red Dome — Translucent glass effect */
.siren-dome {
    position: relative;
    width: 64px;
    height: 72px;
    background: linear-gradient(180deg,
            rgba(239, 68, 68, 0.85) 0%,
            rgba(220, 38, 38, 0.95) 35%,
            rgba(185, 28, 28, 1) 60%,
            rgba(153, 27, 27, 1) 100%);
    border-radius: 42% 42% 8% 8% / 55% 55% 8% 8%;
    box-shadow:
        0 0 30px rgba(239, 68, 68, 0.5),
        0 0 60px rgba(239, 68, 68, 0.2),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3),
        inset 0 5px 15px rgba(255, 150, 150, 0.3);
    overflow: hidden;
    animation: domePulse 1.5s ease-in-out infinite;
}

@keyframes domePulse {

    0%,
    100% {
        box-shadow:
            0 0 25px rgba(239, 68, 68, 0.4),
            0 0 50px rgba(239, 68, 68, 0.15),
            inset 0 -8px 20px rgba(0, 0, 0, 0.3),
            inset 0 5px 15px rgba(255, 150, 150, 0.3);
    }

    50% {
        box-shadow:
            0 0 40px rgba(239, 68, 68, 0.7),
            0 0 80px rgba(239, 68, 68, 0.3),
            inset 0 -8px 20px rgba(0, 0, 0, 0.2),
            inset 0 5px 20px rgba(255, 200, 150, 0.5);
    }
}

/* Glass highlight — top curve reflection */
.siren-dome-highlight {
    position: absolute;
    top: 6px;
    left: 10px;
    width: 30px;
    height: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    transform: rotate(-15deg);
}

/* Vertical glass shine line */
.siren-dome-shine {
    position: absolute;
    top: 5px;
    right: 14px;
    width: 4px;
    height: 35px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05), transparent);
    border-radius: 3px;
    transform: rotate(5deg);
}

/* Rotating light beam inside dome */
.siren-light-beam {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 220, 120, 0.7) 30deg,
            rgba(255, 255, 200, 0.9) 45deg,
            rgba(255, 220, 120, 0.7) 60deg,
            transparent 90deg,
            transparent 180deg,
            rgba(255, 220, 120, 0.7) 210deg,
            rgba(255, 255, 200, 0.9) 225deg,
            rgba(255, 220, 120, 0.7) 240deg,
            transparent 270deg);
    border-radius: 50%;
    animation: beamRotate 2s linear infinite;
    mix-blend-mode: screen;
    z-index: 1;
}

@keyframes beamRotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

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

/* Chrome ring between dome and base */
.siren-base-ring {
    width: 72px;
    height: 8px;
    background: linear-gradient(180deg,
            #a8a8a8 0%,
            #e8e8e8 25%,
            #ffffff 45%,
            #d0d0d0 55%,
            #888888 100%);
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-top: -2px;
}

/* Metallic base */
.siren-base {
    position: relative;
    width: 78px;
    height: 16px;
    background: linear-gradient(180deg,
            #6b6b6b 0%,
            #505050 20%,
            #3a3a3a 50%,
            #2a2a2a 80%,
            #1a1a1a 100%);
    border-radius: 0 0 12px 12px / 0 0 8px 8px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Chrome stripe on base */
.siren-base-shine {
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), transparent);
    border-radius: 1px;
}

.up-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    margin-bottom: 0.75rem;
    background: var(--police-gold-gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 25px var(--police-gold-glow);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--police-gold-glow);
    }

    50% {
        box-shadow: 0 0 35px var(--police-gold-glow);
    }
}

.up-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #c5cae9 40%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.up-hero-subtitle {
    font-size: 1rem;
    color: var(--police-text-secondary);
    max-width: 550px;
    margin: 0 auto 1.5rem;
}

/* Gold Divider */
.gold-divider {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 1.5rem 0;
}

.gold-divider span {
    height: 3px;
    border-radius: 2px;
}

.gold-divider .g1 {
    width: 40px;
    background: var(--police-primary-light);
}

.gold-divider .g2 {
    width: 80px;
    background: var(--police-gold);
    box-shadow: 0 0 15px var(--police-gold-glow);
}

.gold-divider .g3 {
    width: 40px;
    background: var(--police-primary-light);
}

/* ===== QUICK STATS BAR ===== */
.up-stats-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.up-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.up-stat:hover {
    transform: translateY(-3px);
    border-color: var(--police-gold);
}

.up-stat-icon {
    font-size: 1.3rem;
}

.up-stat-info {
    display: flex;
    flex-direction: column;
}

.up-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--police-gold);
    line-height: 1.2;
}

.up-stat-label {
    font-size: 0.65rem;
    color: var(--police-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== EXAM CARDS GRID ===== */
.up-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.up-exam-card {
    position: relative;
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.up-exam-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1), transparent);
    transition: var(--transition);
}

.up-exam-card:hover {
    transform: translateY(-6px);
    border-color: var(--police-gold);
    box-shadow: var(--shadow-card), 0 0 30px rgba(255, 215, 0, 0.15);
}

.up-exam-card.active {
    border-color: var(--police-gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
}

.up-exam-card.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.up-exam-card.coming-soon::after {
    content: 'जल्द आ रहा है';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--police-gold);
    z-index: 5;
    border: 1px solid var(--police-gold);
}

.card-header-strip {
    height: 4px;
    background: var(--police-gold-gradient);
}

.up-card-body {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.up-card-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.up-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--police-primary), var(--police-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

.up-card-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    background: var(--police-gold-gradient);
    color: #1a1a2e;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.up-card-badge.live {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    animation: badgePulse 2s infinite;
}

.up-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #fff;
}

.up-card-subtitle {
    font-size: 0.8rem;
    color: var(--police-text-secondary);
    margin-bottom: 0.75rem;
}

.up-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.up-card-tag {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--police-gold);
    font-weight: 500;
}

.up-card-stats {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.up-card-stat {
    flex: 1;
    text-align: center;
}

.up-card-stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--police-gold);
}

.up-card-stat-lbl {
    font-size: 0.6rem;
    color: var(--police-text-secondary);
    text-transform: uppercase;
}

.up-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: var(--police-gold-gradient);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.up-exam-card:hover .up-card-cta {
    letter-spacing: 1px;
}

/* ===== DETAIL VIEW ===== */
.up-detail-view {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.up-detail-view.active {
    display: block;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.detail-subtitle {
    font-size: 0.9rem;
    color: var(--police-text-secondary);
}

/* ===== TAB SYSTEM ===== */
.up-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.4rem;
    margin-bottom: 1.5rem;
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: 60px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.up-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: var(--police-text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: lowercase;
    letter-spacing: 0.2px;
}

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

.up-tab.active {
    background: var(--police-gold-gradient);
    color: #1a1a2e;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 215, 0, 0.35);
}

.up-tab-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* ===== TAB CONTENT PANELS ===== */
.tab-panel {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.tab-panel.active {
    display: block;
}

.panel-card {
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
}

.panel-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-card-title .icon {
    font-size: 1.2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-label {
    font-size: 0.7rem;
    color: var(--police-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* Syllabus Accordion */
.syllabus-section {
    margin-bottom: 1rem;
}

.syllabus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
}

.syllabus-header:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--police-gold);
}

.syllabus-header.active {
    background: rgba(26, 35, 126, 0.2);
    border-color: var(--police-gold);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.syllabus-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.syllabus-emoji {
    font-size: 1.2rem;
}

.syllabus-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--police-gold);
}

.syllabus-header.active .syllabus-arrow {
    transform: rotate(180deg);
}

.syllabus-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.syllabus-body.open {
    max-height: 800px;
}

.syllabus-topics {
    padding: 1rem;
}

.syllabus-topic {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--police-text-secondary);
}

.syllabus-topic::before {
    content: '▹';
    color: var(--police-gold);
    font-weight: bold;
    flex-shrink: 0;
}

/* Exam Pattern Table */
.pattern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pattern-table th {
    padding: 0.75rem 1rem;
    background: var(--police-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.pattern-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: var(--police-text-secondary);
}

.pattern-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.pattern-table tr:hover td {
    background: rgba(26, 35, 126, 0.1);
    color: #fff;
}

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

.pattern-total td {
    font-weight: 700;
    color: var(--police-gold) !important;
    background: rgba(255, 215, 0, 0.05) !important;
    border-top: 2px solid var(--police-gold);
}

/* ===== PHYSICAL CALCULATOR ===== */
.calc-container {
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calc-field.full {
    grid-column: 1 / -1;
}

.calc-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--police-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-input,
.calc-select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.calc-input:focus,
.calc-select:focus {
    border-color: var(--police-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.calc-select option {
    background: #1a1a2e;
    color: #fff;
}

.calc-btn {
    grid-column: 1 / -1;
    padding: 0.85rem;
    background: var(--police-gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #1a1a2e;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.calc-result {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.calc-result.pass {
    background: rgba(67, 160, 71, 0.1);
    border-color: rgba(67, 160, 71, 0.3);
}

.calc-result.fail {
    background: rgba(229, 57, 53, 0.1);
    border-color: rgba(229, 57, 53, 0.3);
}

.calc-result-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-result.pass .calc-result-title {
    color: var(--police-green);
}

.calc-result.fail .calc-result-title {
    color: var(--police-red);
}

.calc-result-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calc-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.calc-detail-label {
    color: var(--police-text-secondary);
}

.calc-detail-val {
    font-weight: 600;
}

.calc-detail-val.pass {
    color: var(--police-green);
}

.calc-detail-val.fail {
    color: var(--police-red);
}

/* ===== SELECTION PROCESS TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--police-gold), var(--police-primary));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    animation: fadeInUp 0.5s ease-out both;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-dot {
    position: absolute;
    left: -1.55rem;
    top: 0.3rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--police-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #1a1a2e;
    box-shadow: 0 0 15px var(--police-gold-glow);
}

.timeline-content {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--police-gold);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--police-text-secondary);
    line-height: 1.5;
}

/* ===== SUBJECT-WISE CARDS ===== */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.subject-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-card.active {
    cursor: pointer;
    border-color: rgba(255, 215, 0, 0.25);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 165, 0, 0.04));
}

.subject-card.active:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.subject-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.subject-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}

.subject-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--police-text);
    margin-bottom: 0.3rem;
}

.subject-sub {
    font-size: 0.75rem;
    color: var(--police-text-secondary);
    margin-bottom: 0.6rem;
}

.subject-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--police-gold), #ff9800);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subject-soon {
    font-size: 0.72rem;
    color: var(--police-text-secondary);
    font-weight: 600;
}

/* ===== FOLDER NAVIGATION ===== */
.folder-panel {
    animation: folderSlideIn 0.3s ease;
}

@keyframes folderSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.folder-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.folder-back {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--police-text);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.folder-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.3);
}

.folder-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--police-text);
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.folder-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.folder-card:hover:not(.locked) {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
    background: rgba(255, 215, 0, 0.05);
}

.folder-card.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.folder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.folder-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--police-text);
    margin-bottom: 0.4rem;
}

.folder-meta {
    font-size: 0.78rem;
    color: var(--police-text-secondary);
    font-weight: 500;
}

/* ===== YEAR FOLDER CARDS ===== */
.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.year-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.year-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.year-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.12);
    background: rgba(255, 215, 0, 0.05);
}

.year-card:hover::before {
    opacity: 1;
}

.year-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.year-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--police-text);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.year-meta {
    font-size: 0.75rem;
    color: var(--police-text-secondary);
    font-weight: 500;
}

/* Empty state */
.folder-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--police-text-secondary);
}

.folder-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
}

.folder-empty p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== QUIZ / PYQ SECTION ===== */
.pyq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pyq-card {
    padding: 1.25rem;
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.pyq-card:hover {
    transform: translateY(-4px);
    border-color: var(--police-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pyq-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pyq-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pyq-card-meta {
    font-size: 0.8rem;
    color: var(--police-text-secondary);
    margin-bottom: 0.75rem;
}

.pyq-card-stats {
    display: flex;
    gap: 1rem;
}

.pyq-stat {
    font-size: 0.75rem;
    color: var(--police-gold);
    font-weight: 600;
}

/* ===== QUIZ VIEW ===== */
.quiz-view {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.quiz-view.active {
    display: block;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(229, 57, 53, 0.15);
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--police-red);
}

.quiz-progress-text {
    font-size: 0.85rem;
    color: var(--police-text-secondary);
    font-weight: 600;
}

.quiz-progress-text .current {
    color: var(--police-gold);
    font-size: 1.1rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--police-gold-gradient);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.quiz-question-card {
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(20px);
}

.quiz-subject-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: rgba(26, 35, 126, 0.3);
    border: 1px solid rgba(26, 35, 126, 0.5);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #c5cae9;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* ── Passage Panel ── */
.quiz-passage {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(121, 134, 203, 0.1), rgba(63, 81, 181, 0.06));
    border: 1px solid rgba(121, 134, 203, 0.2);
    border-left: 4px solid var(--police-blue, #5c6bc0);
    border-radius: var(--radius-md, 10px);
    max-height: 220px;
    overflow-y: auto;
    animation: passageSlideIn 0.35s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(121, 134, 203, 0.3) transparent;
}

.quiz-passage::-webkit-scrollbar {
    width: 5px;
}

.quiz-passage::-webkit-scrollbar-track {
    background: transparent;
}

.quiz-passage::-webkit-scrollbar-thumb {
    background: rgba(121, 134, 203, 0.3);
    border-radius: 4px;
}

@keyframes passageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.quiz-passage-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #7986cb;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.quiz-passage-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    text-align: justify;
}

.quiz-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: #fff;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--police-text);
    text-align: left;
    width: 100%;
}

.quiz-option:hover:not(.disabled) {
    background: rgba(26, 35, 126, 0.15);
    border-color: rgba(26, 35, 126, 0.4);
}

.quiz-option .opt-letter {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.quiz-option.selected {
    background: rgba(26, 35, 126, 0.2);
    border-color: var(--police-primary-light);
}

.quiz-option.selected .opt-letter {
    background: var(--police-gradient);
    color: #fff;
}

.quiz-option.correct {
    background: rgba(67, 160, 71, 0.12);
    border-color: var(--police-green);
}

.quiz-option.correct .opt-letter {
    background: var(--police-green);
    color: #fff;
}

.quiz-option.wrong {
    background: rgba(229, 57, 53, 0.12);
    border-color: var(--police-red);
}

.quiz-option.wrong .opt-letter {
    background: var(--police-red);
    color: #fff;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-explanation {
    margin-top: 1.25rem;
    padding: 1.2rem 1.2rem 1.2rem 1.4rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-left: 4px solid var(--police-gold);
    border-radius: var(--radius-md);
    display: none;
    position: relative;
    overflow: hidden;
}

.quiz-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.05), transparent 60%);
    pointer-events: none;
}

.quiz-explanation.show {
    display: block;
    animation: explanationSlideIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 600px;
    }
}

.quiz-explanation-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--police-gold);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quiz-explanation-text {
    font-size: 0.92rem;
    color: var(--police-text);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.quiz-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.quiz-nav-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-nav-btn.prev {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-nav-btn.next {
    background: var(--police-gold-gradient);
    color: #1a1a2e;
}

.quiz-nav-btn:hover {
    transform: translateY(-2px);
}

.quiz-nav-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.quiz-nav-btn.submit {
    background: linear-gradient(135deg, var(--police-green), #2e7d32);
    color: #fff;
}

/* ===== RESULTS VIEW ===== */
.results-view {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.results-view.active {
    display: block;
}

.results-card {
    background: var(--police-card);
    border: 1px solid var(--police-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    margin-bottom: 1.5rem;
}

.results-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.results-subtitle {
    font-size: 0.9rem;
    color: var(--police-text-secondary);
    margin-bottom: 1.5rem;
}

.results-score-ring {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-score-ring svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.results-score-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.results-score-ring .ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.results-score-ring .ring-fill.good {
    stroke: var(--police-green);
}

.results-score-ring .ring-fill.avg {
    stroke: var(--police-gold);
}

.results-score-ring .ring-fill.poor {
    stroke: var(--police-red);
}

.results-score-value {
    font-size: 2rem;
    font-weight: 900;
}

.results-score-label {
    font-size: 0.7rem;
    color: var(--police-text-secondary);
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-stat {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-stat-val {
    font-size: 1.3rem;
    font-weight: 800;
}

.result-stat-val.correct {
    color: var(--police-green);
}

.result-stat-val.wrong {
    color: var(--police-red);
}

.result-stat-val.skip {
    color: var(--police-text-secondary);
}

.result-stat-lbl {
    font-size: 0.7rem;
    color: var(--police-text-secondary);
    text-transform: uppercase;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.result-btn.primary {
    background: var(--police-gold-gradient);
    color: #1a1a2e;
}

.result-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-btn:hover {
    transform: translateY(-2px);
}

/* ===== UPDATES TAB ===== */
.update-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.update-item:hover {
    border-color: var(--police-gold);
    background: rgba(255, 255, 255, 0.05);
}

.update-item.live {
    border-color: rgba(229, 57, 53, 0.3);
    background: rgba(229, 57, 53, 0.05);
}

.update-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--police-red);
    flex-shrink: 0;
    margin-top: 0.4rem;
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
    animation: dotPulse 2s infinite;
}

.update-dot.info {
    background: var(--police-gold);
    box-shadow: 0 0 10px var(--police-gold-glow);
    animation: none;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.update-content strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.update-content p {
    font-size: 0.82rem;
    color: var(--police-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Dates Grid */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.date-item {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}

.date-label {
    font-size: 0.7rem;
    color: var(--police-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.date-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.date-value.gold {
    color: var(--police-gold);
}

/* ===== RESOURCES SECTION ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.resource-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.resource-card:hover {
    border-color: var(--police-gold);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.resource-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resource-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.resource-desc {
    font-size: 0.8rem;
    color: var(--police-text-secondary);
    line-height: 1.5;
}

/* ===== PREPARATION ROADMAP ===== */
.roadmap-months {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roadmap-month {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--police-gold);
    transition: var(--transition);
}

.roadmap-month:hover {
    border-color: var(--police-gold);
    background: rgba(255, 255, 255, 0.05);
}

.roadmap-month-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--police-gold);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roadmap-tasks {
    font-size: 0.85rem;
    color: var(--police-text-secondary);
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .up-container {
        padding: 1rem;
    }

    .up-hero {
        padding: 1rem 0;
    }

    .up-hero-title {
        font-size: 1.6rem;
    }

    .up-stats-bar {
        gap: 0.75rem;
    }

    .up-stat {
        padding: 0.5rem 0.8rem;
    }

    .up-exams-grid {
        grid-template-columns: 1fr;
    }

    .calc-form {
        grid-template-columns: 1fr;
    }

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

    .results-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .quiz-header {
        padding: 0.75rem;
    }

    .quiz-question-card {
        padding: 1rem;
    }

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

    .up-tabs {
        gap: 0.2rem;
        padding: 0.3rem;
    }

    .up-tab {
        padding: 0.55rem 0.3rem;
        font-size: 0.68rem;
        gap: 0.25rem;
    }

    .up-tab-icon {
        font-size: 0.75rem;
    }

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

@media (max-width: 480px) {
    .up-topbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .quiz-nav {
        flex-direction: column;
    }

    .results-actions {
        flex-direction: column;
    }
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

.text-gold {
    color: var(--police-gold);
}

.text-green {
    color: var(--police-green);
}

.text-red {
    color: var(--police-red);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

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

/* Official PDF Link Buttons */
.official-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.8), rgba(229, 57, 53, 0.5));
    border: 1px solid rgba(229, 57, 53, 0.4);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.official-pdf-link:hover {
    background: linear-gradient(135deg, rgba(229, 57, 53, 1), rgba(229, 57, 53, 0.7));
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.4);
    transform: translateY(-1px);
}

.official-pdf-link .pdf-icon {
    font-size: 0.85rem;
}

/* Official Documents Section */
.official-docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.official-doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.official-doc-item:hover {
    border-color: var(--police-gold);
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.official-doc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.2), rgba(229, 57, 53, 0.05));
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.official-doc-item:nth-child(2) .official-doc-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.2);
}

.official-doc-item:nth-child(3) .official-doc-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.05));
    border-color: rgba(33, 150, 243, 0.2);
}

.official-doc-item:nth-child(4) .official-doc-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.05));
    border-color: rgba(76, 175, 80, 0.2);
}

.official-doc-info {
    flex: 1;
    min-width: 0;
}

.official-doc-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.official-doc-meta {
    font-size: 0.72rem;
    color: var(--police-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.official-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(229, 57, 53, 0.15);
    color: #e53935;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.official-doc-arrow {
    font-size: 1rem;
    color: var(--police-text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.official-doc-item:hover .official-doc-arrow {
    color: var(--police-gold);
    transform: translateX(3px);
}

.official-website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.official-website-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}