/* ===== REVISION TEMPLATE V2 ===== */
.rev-hero { background: #F7FAFC; text-align: center; border-bottom: 1px solid #E2E8F0; padding: 56px 0 48px; }
.rev-bc { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: #A0AEC0; margin-bottom: 16px; flex-wrap: wrap; }
.rev-bc a { color: #A0AEC0; text-decoration: none; }
.rev-bc a:hover { color: #2ECC71; }
.rev-bc .curr { color: #2ECC71; font-weight: 700; }

.rev-hero h1 { font-size: 48px; font-weight: 700; color: #1A202C; margin-bottom: 16px; }
.h-under { text-decoration: underline; text-decoration-color: #2ECC71; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.rev-hero p { font-size: 18px; color: #4A5568; max-width: 640px; margin: 0 auto; line-height: 1.6; }

.hero-stats { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap; }
.hs-item { text-align: center; }
.hs-val { font-size: 20px; font-weight: 700; color: #1A202C; margin-right: 6px; }
.hs-lbl { font-size: 14px; color: #4A5568; }

.board-switcher { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.bs-lbl { font-size: 14px; color: #718096; }
.bs-pill { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid #E2E8F0; color: #718096; transition: all 0.2s; background: transparent; }
.bs-pill:hover { border-color: #2ECC71; color: #2ECC71; }
.bs-pill.active { background: #2ECC71; color: #fff; border-color: #2ECC71; }

/* Search Bar */
.search-wrap { max-width: 920px; margin: -28px auto 40px; }
.search-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid #E2E8F0; padding: 16px 20px; display: flex; align-items: center; gap: 16px; position: relative; z-index: 10; }
@media(max-width: 600px) { .search-card { flex-direction: column; align-items: stretch; } }

.s-input-box { flex: 1; position: relative; }
.s-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.s-input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid #E2E8F0; border-radius: 10px; background: #F7FAFC; font-size: 15px; color: #1A202C; outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit; }
.s-input::placeholder { color: #A0AEC0; }
.s-input:focus { border-color: #2ECC71; box-shadow: 0 0 0 3px rgba(46,204,113,0.12); background: #fff; }

.p-tabs { background: #F7FAFC; border-radius: 10px; padding: 3px; border: 1px solid #E2E8F0; display: flex; flex-shrink: 0; }
.p-tab { padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: 8px; cursor: pointer; color: #718096; border: none; background: transparent; transition: all 0.2s; font-family: inherit; }
.p-tab.active { background: #fff; color: #1A202C; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Section Label Pills */
.browser-wrap .section-label { text-align: center; padding: 12px 0 8px; display: block; margin-bottom: 0; font-size: inherit; color: inherit; text-transform: none; letter-spacing: normal; font-weight: normal; }
.browser-wrap .section-label span { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: #2C3E50; padding: 5px 16px; border-radius: 20px; }
.browser-wrap .section-label.pure span { background: #3B82F6; }
.browser-wrap .section-label.stats span { background: #8B5CF6; }
.browser-wrap .section-label.mech span { background: #EF4444; }
.browser-wrap .section-label.yr1 span { background: #3B82F6; }
.browser-wrap .section-label.yr2 span { background: #8B5CF6; }
.browser-wrap .section-label.opts span { background: #F59E0B; }
.browser-wrap .section-label.physical span { background: #3B82F6; }
.browser-wrap .section-label.inorganic span { background: #8B5CF6; }
.browser-wrap .section-label.organic span { background: #10B981; }
.browser-wrap .section-label { margin-top: 16px; }

/* Paper Badges (Physics) */
.badge-p1 { background: #DBEAFE; color: #2563EB; }
.badge-p2 { background: #FEE2E2; color: #DC2626; }
.badge-p3 { background: #FEF3C7; color: #D97706; }
.badge-p-all { background: #E8F8F0; color: #2ECC71; }

/* Further Maths Badges */
.badge-cp { background: #EEF2FF; color: #6366F1; }
.badge-fp1 { background: #F3E8FF; color: #7C3AED; }
.badge-fp2 { background: #F3E8FF; color: #7C3AED; }
.badge-fs1 { background: #E0F2FE; color: #0284C7; }
.badge-fs2 { background: #E0F2FE; color: #0284C7; }
.badge-fm1 { background: #FEE2E2; color: #DC2626; }
.badge-fm2 { background: #FEE2E2; color: #DC2626; }
.badge-d1 { background: #FEF3C7; color: #D97706; }
.badge-d2 { background: #FEF3C7; color: #D97706; }
.badge-mech { background: #FEE2E2; color: #DC2626; }
.badge-stat { background: #E0F2FE; color: #0284C7; }
.badge-disc { background: #FEF3C7; color: #D97706; }
.badge-ap { background: #FCE7F3; color: #DB2777; }
.badge-algo { background: #FEF3C7; color: #D97706; }
.badge-num { background: #D1FAE5; color: #059669; }
.badge-extra { background: #F3E8FF; color: #7C3AED; }
.badge-both { background: #E8F8F0; color: #2ECC71; }
.badge-yr1 { background: #DBEAFE; color: #2563EB; }
.badge-yr2 { background: #F3E8FF; color: #7C3AED; }

/* Further Maths Section Labels */
.browser-wrap .section-label.cp span { background: #6366F1; }
.browser-wrap .section-label.fp1 span { background: #8B5CF6; }
.browser-wrap .section-label.fp2 span { background: #A78BFA; }
.browser-wrap .section-label.fs1 span { background: #0EA5E9; }
.browser-wrap .section-label.fs2 span { background: #38BDF8; }
.browser-wrap .section-label.fm1 span { background: #EF4444; }
.browser-wrap .section-label.fm2 span { background: #F87171; }
.browser-wrap .section-label.d1 span { background: #F59E0B; }
.browser-wrap .section-label.d2 span { background: #FBBF24; }
.browser-wrap .section-label.mech span { background: #EF4444; }
.browser-wrap .section-label.stat span { background: #0EA5E9; }
.browser-wrap .section-label.disc span { background: #F59E0B; }
.browser-wrap .section-label.ap span { background: #EC4899; }
.browser-wrap .section-label.algo span { background: #F59E0B; }
.browser-wrap .section-label.num span { background: #10B981; }
.browser-wrap .section-label.extra span { background: #8B5CF6; }

/* Accordion / Topic Browser */
.browser-wrap { max-width: 920px; margin: 0 auto 60px; padding: 0 20px; }
.acc-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; margin-bottom: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.acc-card:hover { border-color: #CBD5E0; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.acc-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; user-select: none; transition: background 0.2s; }
.acc-header:hover { background: #F7FAFC; }

.ah-left { display: flex; align-items: center; gap: 16px; }
.ah-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ah-title { font-size: 17px; font-weight: 700; color: #1A202C; margin-bottom: 2px; }
.ah-meta { font-size: 13px; color: #718096; }

.ah-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ah-badge { background: #E8F8F0; color: #2ECC71; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 10px; }
.ah-chevron { width: 20px; height: 20px; transition: transform 0.3s; stroke: #A0AEC0; }
.acc-card.open .ah-chevron { transform: rotate(180deg); }

.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: #F7FAFC; border-top: 1px solid transparent; }
.acc-card.open .acc-body { border-top-color: #E2E8F0; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 24px; }
@media(max-width:768px){ .topic-grid { grid-template-columns: 1fr; } }

.t-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: box-shadow 0.2s, border-color 0.2s; }
.t-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); border-color: #CBD5E0; }
.tc-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-code { background: #E2E8F0; color: #4A5568; font-size: 11px; font-weight: 700; font-family: monospace; padding: 4px 6px; border-radius: 5px; flex-shrink: 0; }
.tc-name { font-size: 14px; font-weight: 700; color: #1A202C; line-height: 1.4; }

.tc-right { display: flex; gap: 8px; flex-shrink: 0; }
.btn-act { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.btn-n { background: #F0FDF4; color: #2ECC71; }
.btn-n:hover { background: #2ECC71; color: #fff; }
.btn-p { background: #EDF2F7; color: #1A202C; }
.btn-p:hover { background: #2D3748; color: #fff; }
.btn-act.dis {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

/* Tutoring CTA */
.inline-cta { background: #E8F8F0; border-radius: 16px; padding: 24px; border-left: 4px solid #2ECC71; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 14px; }
@media(max-width:600px){ .inline-cta { flex-direction: column; text-align: center; } }
.ic-title { font-size: 18px; font-weight: 700; color: #1A202C; margin-bottom: 4px; }
.ic-desc { font-size: 14px; color: #4A5568; margin: 0; line-height: 1.5; }

.no-results { text-align: center; padding: 60px 20px; display: none; }
.no-results h3 { font-size: 20px; color: #1A202C; margin-bottom: 16px; }

/* Tutor Strip */
.tutor-strip-sec { background: #F7FAFC; padding: 80px 20px; text-align: center; }
.tutor-strip-sec h3 { font-size: 24px; color: #1A202C; margin-bottom: 8px; }
.tutor-strip-sec p { font-size: 14px; color: #718096; margin-bottom: 32px; }
.t-strip { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px 24px; display: flex; align-items: center; gap: 20px; max-width: 800px; margin: 0 auto 24px; text-align: left; }
@media(max-width:600px){ .t-strip { flex-direction: column; text-align: center; } }
.ts-av { width: 64px; height: 64px; border-radius: 12px; background: #E2E8F0; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #718096; flex-shrink: 0; }
.ts-info { flex: 1; }
.ts-name { font-size: 18px; font-weight: 700; color: #1A202C; margin-bottom: 4px; }
.ts-role { font-size: 14px; color: #2ECC71; font-weight: 600; margin-bottom: 4px; }
.ts-desc { font-size: 14px; color: #4A5568; }
.explore-link { font-size: 14px; color: #4A5568; text-decoration: none; font-weight: 500; }
.explore-link:hover { color: #1A202C; text-decoration: underline; }

.cta-banner { background: #2D3436; padding: 80px 0; text-align: center; }
.cta-banner h2 { color: #fff; font-size: 32px; margin-bottom: 16px; }
.cta-banner p { font-size: 16px; color: #D1D5DB; max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }
