/* ===== EXAM SELECTOR BUTTONS ===== */
.exam-selector-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.exam-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
}

.exam-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.exam-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border-color: transparent;
}

/* ===== BREADCRUMB (Premium) ===== */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

/* ===== EXAM TABS (Premium Pill Design) ===== */
.exam-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 60px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.exam-tab {
    padding: 14px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.exam-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.exam-tab:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.exam-tab:hover {
    color: var(--secondary);
}

.exam-tab.active {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.4);
}

.exam-tab.active::before {
    display: none;
}

/* ===== INFO CARDS (Glassmorphism + 3D) ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    padding: 36px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 28px 0 0 28px;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.15);
    background: var(--bg-glass);
}

.info-card h3 {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

/* ===== SYLLABUS TABLE (Premium) ===== */
.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.syllabus-table thead {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.05));
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.syllabus-table th {
    color: var(--primary);
    font-weight: 700;
}

.syllabus-table th,
.syllabus-table td {
    padding: 20px 24px;
    text-align: left;
    transition: background 0.3s;
}

.syllabus-table tbody tr {
    border-bottom: 1px solid var(--border-glass);
}

.syllabus-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.08);
}

/* ===== CTA SECTION (Gradient Glow) ===== */
.cta-section {
    background: var(--grad-primary);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 30px 60px -15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-section>* {
    position: relative;
    z-index: 1;
}

/* ===== CUSTOM TIMELINE FOR EXAMS ===== */
.timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-main);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.timeline-content h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Spectrum Sync: Exams Hub Light Mode Refinements */
.light-mode .exam-selector-header {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .exam-btn {
    color: #475569;
}

.light-mode .exam-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.light-mode .exam-btn.active {
    color: white !important;
    background: var(--grad-primary) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
}

.light-mode .breadcrumb {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    color: #475569;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.light-mode .exam-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .exam-tab {
    color: #475569;
}

.light-mode .exam-tab:hover {
    color: #059669;
}

.light-mode .exam-tab.active {
    color: white !important;
    background: var(--grad-primary) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
}

.light-mode .exam-tab::before {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.light-mode .info-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1) !important;
}

.light-mode .syllabus-table {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.light-mode .syllabus-table thead {
    background: rgba(16, 185, 129, 0.05);
}

.light-mode .syllabus-table td {
    color: #475569;
    border-color: rgba(0, 0, 0, 0.03);
}

.light-mode .syllabus-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.03);
}

.light-mode .cta-section {
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.light-mode .timeline::before {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .timeline-item::before {
    border-color: #f0f9f6;
}

@media (max-width: 992px) {

    .exam-selector-header,
    .exam-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: none !important;
        padding: 8px !important;
        -ms-overflow-style: none;
        /* IE/Edge */
        scrollbar-width: none;
        /* Firefox */
        gap: 8px !important;
        border-radius: 16px !important;
    }

    .exam-selector-header::-webkit-scrollbar,
    .exam-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .exam-btn,
    .exam-tab {
        flex: 0 0 auto !important;
        padding: 10px 20px !important;
        white-space: nowrap !important;
        font-size: 0.9rem !important;
    }

    .exam-tab {
        padding: 12px 20px !important;
    }

    .container {
        padding: 16px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 24px;
    }

    .cta-section {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }
}