/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 50px 0 40px;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; color: white; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
}
.page-header .breadcrumb-item.active { color: white; }

/* ── Section ── */
.section-pad { padding: 80px 0; }
.title-line {
    width: 60px; height: 4px;
    background: var(--primary);
    border-radius: 2px; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); font-size: 15px; }

/* ── Class List Cards ── */
.class-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    min-height: 180px;
}
.class-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.class-card-left {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}
.class-big-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.class-type-badge {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}
.class-card-right {
    flex: 1;
    padding: 24px 20px;
}
.class-card-right h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.class-card-right p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.class-arrow {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    font-size: 28px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}
.class-card:hover .class-arrow { opacity: 1; }

/* ── Section & Stream Pills ── */
.section-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.section-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
}
.section-pill.section {
    background: #EEF2FF;
    color: #3730A3;
}
.section-pill.science {
    background: #E8F5EE;
    color: var(--secondary);
}
.section-pill.arts {
    background: #FFF0E6;
    color: var(--primary);
}
.section-pill.commerce {
    background: #FFF8E6;
    color: #854F0B;
}

/* ── Subject Tags ── */
.class-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tag {
    display: inline-block;
    background: #F5EDE3;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
}

/* ── Board Alert ── */
.board-alert {
    background: linear-gradient(135deg, #FFF8E6, #FFF0D6);
    border: 1.5px solid #FAC775;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #633806;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
}

/* ── Section Tabs ── */
.section-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border: none;
    padding: 0;
}
.section-tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.section-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.section-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ── Section Panels ── */
.section-panel { display: none; }
.section-panel.active { display: block; }

/* ── Detail Cards ── */
.detail-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    height: 100%;
}
.detail-card-header {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    background: #FFF0E6;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}
.detail-card-header.toppers {
    background: #FFF8E6;
    color: #633806;
}
.detail-card-header.notices {
    background: #E8F5EE;
    color: var(--secondary);
}
.detail-card-header.activities {
    background: #EEF2FF;
    color: #3730A3;
}
.detail-card-body { padding: 16px 20px; }

/* ── Subjects ── */
.subject-item {
    font-size: 14px;
    color: var(--text-dark);
    padding: 8px 0;
    border-bottom: 1px solid #F5EDE3;
    display: flex;
    align-items: center;
}
.subject-item:last-child { border-bottom: none; }
.subject-item i { color: var(--primary); font-size: 13px; }

/* ── Toppers ── */
.topper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F5EDE3;
}
.topper-item:last-of-type { border-bottom: none; }
.topper-rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.topper-item.gold .topper-rank { background: #FFF8E6; color: #B45309; }
.topper-item.silver .topper-rank { background: #F1F5F9; color: #475569; }
.topper-item.bronze .topper-rank { background: #FFF0E6; color: var(--primary); }
.topper-icon { color: #F59E0B; margin-left: auto; }
.topper-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.topper-subject { font-size: 12px; color: var(--text-muted); }
.topper-note { font-size: 12px; color: var(--text-muted); }

/* ── Notices ── */
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F5EDE3;
}
.notice-item:last-child { border-bottom: none; }
.notice-dot {
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.notice-title { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.notice-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Activities ── */
.activity-card {
    background: #FAFAFA;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}
.activity-card:hover { transform: translateY(-3px); }
.activity-img {
    height: 120px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}
.activity-body { padding: 14px; }
.activity-body h6 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.activity-body p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.activity-date { font-size: 11px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .section-pad { padding: 50px 0; }
    .class-card { flex-direction: column; }
    .class-card-left { flex-direction: row; gap: 12px; min-width: unset; padding: 16px 20px; }
    .class-arrow { display: none; }
}