/* ==========================================================================
   EXAMINATIONS & RESULTS PAGE STYLES - CHALTAKHALI R.G.B.C. INSTITUTION
   ========================================================================== */

.exam-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    color: #ffffff;
    border-bottom: 4px solid #6366f1;
}

.exam-hero-stat {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    color: #ffffff;
}

.exam-status-tab-btn {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.exam-status-tab-btn:hover {
    transform: translateY(-1px);
}

.exam-pill-btn {
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.exam-pill-btn:hover {
    transform: translateY(-1px);
}

/* Event Cards Layout & Spacing */
.exam-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    border-left: 6px solid #4338ca;
    padding: 1.4rem 1.5rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

.exam-card.border-status-published {
    border-left-color: #16a34a;
}

.exam-card.border-status-ongoing {
    border-left-color: #d97706;
    background-color: #fffdfa;
}

.exam-card.border-status-upcoming {
    border-left-color: #2563eb;
}

.exam-card.border-status-completed {
    border-left-color: #64748b;
}

.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.exam-badge-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.exam-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.42;
    margin-bottom: 0.65rem;
}

.exam-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.85rem;
    width: fit-content;
}

.exam-desc {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.exam-action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fs-7 {
    font-size: 0.875rem !important;
}

.fs-8 {
    font-size: 0.78rem !important;
}

/* Evaluation System Roadmap */
.roadmap-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.15rem;
    position: relative;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.roadmap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 27, 75, 0.08);
    border-color: #cbd5e1;
}

.roadmap-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

/* Online Result Callout Card */
.exam-callout-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.exam-callout-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Grade Filter Tabs */
.grade-tab-btn {
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.grade-tab-btn:hover {
    transform: translateY(-1px);
}

/* Guidelines Accordion */
.exam-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.exam-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
}

.exam-accordion .accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: #1e1b4b;
    box-shadow: none;
}

.exam-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #cbd5e1;
}

@media print {
    .exam-hero,
    .navbar,
    footer,
    .no-print {
        display: none !important;
    }
    .exam-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        padding: 1rem !important;
    }
}
