/* =========================================================
   GOVT EXAM PREP — RBI ASSISTANT SYLLABUS
   Premium Maroon Theme
   ========================================================= */

:root {
    --primary: #800000;
    --primary-dark: #5d0000;
    --primary-deep: #3d0000;
    --primary-light: #a61b1b;
    --accent: #d4a017;
    --bg: #f7f7f9;
    --surface: #ffffff;
    --surface-soft: #faf7f7;
    --text: #202124;
    --muted: #6b7280;
    --border: #e8e1e1;
    --shadow: 0 10px 30px rgba(67, 0, 0, 0.08);
    --shadow-hover: 0 18px 42px rgba(67, 0, 0, 0.14);
    --radius: 16px;
    --max-width: 1180px;
}

/* =========================
   RESET
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(128, 0, 0, 0.035), transparent 28%),
        #f7f7f9;
    color: var(--text);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
summary,
.subject-card {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   MAIN CONTAINER
   ========================= */

.exam-dashboard {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 30px 0 80px;
}

/* =========================
   BREADCRUMB
   ========================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 5px 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
    transition: 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb i {
    font-size: 10px;
    color: #aaa;
}

.breadcrumb span {
    color: #777;
    font-weight: 500;
}

/* =========================
   BACK BUTTON
   ========================= */

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.035);
    transition: 0.25s ease;
}

.back-btn i {
    transition: transform 0.25s ease;
}

.back-btn:hover {
    border-color: rgba(128, 0, 0, 0.25);
    background: #fffafa;
    transform: translateX(-2px);
    box-shadow: 0 8px 22px rgba(128, 0, 0, 0.08);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* =========================
   PAGE HEADER
   ========================= */

.page-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 32px 36px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(255,255,255,.13), transparent 23%),
        linear-gradient(135deg, #800000 0%, #650000 55%, #470000 100%);
    box-shadow: 0 16px 40px rgba(70, 0, 0, 0.18);
}

.page-header::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    bottom: -150px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
}

.page-header::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: 35px;
    top: -105px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.page-header-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 17px;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
    font-size: 28px;
}

.page-header > div:last-child {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    margin-bottom: 5px;
    color: #fff;
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.page-header p {
    max-width: 800px;
    color: rgba(255,255,255,.84);
    font-size: 15px;
}

/* =========================
   SECTIONS
   ========================= */

.pattern-highlights-section,
.tier-section,
.pattern-section,
.important-notes-section,
.language-section,
.faq-section,
.continue-section,
.accordion-section {
    margin-top: 42px;
}

.section-title {
    margin-bottom: 22px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 7px;
    color: #2a1717;
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 9px;
    border-radius: 10px;
    background: var(--primary);
}

.section-title p {
    max-width: 850px;
    color: var(--muted);
    font-size: 14.5px;
}

/* =========================
   OVERVIEW CARDS
   ========================= */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.overview-card {
    position: relative;
    overflow: hidden;
    padding: 23px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.overview-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(128, 0, 0, .16);
    box-shadow: var(--shadow-hover);
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.overview-card > i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: rgba(128, 0, 0, .08);
    color: var(--primary);
    font-size: 19px;
}

.overview-card h3 {
    margin-bottom: 5px;
    color: #2c1b1b;
    font-size: 16px;
    font-weight: 750;
}

.overview-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

/* =========================
   SUBJECT GRID
   ========================= */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.subject-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 96px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 7px 24px rgba(55, 0, 0, .055);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.subject-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 5px 5px 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity .25s ease;
}

.subject-card:hover {
    transform: translateY(-4px);
    border-color: rgba(128, 0, 0, .22);
    background: #fffdfd;
    box-shadow: var(--shadow-hover);
}

.subject-card:hover::after {
    opacity: 1;
}

.subject-card:active {
    transform: translateY(-1px);
}

.subject-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary);
    background: linear-gradient(145deg, #fff3f3, #f8e7e7);
    border: 1px solid #f0dcdc;
    font-size: 20px;
}

.subject-card h3 {
    margin-bottom: 3px;
    color: #291818;
    font-size: 15.5px;
    line-height: 1.3;
    font-weight: 750;
}

.subject-card p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.subject-card .arrow {
    margin-left: auto;
    color: #999;
    font-size: 12px;
    transition: transform .25s ease, color .25s ease;
}

.subject-card:hover .arrow {
    color: var(--primary);
    transform: translateY(2px);
}

/* =========================
   ACCORDION / SYLLABUS CONTENT
   ========================= */

.accordion-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-content {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(55, 0, 0, .045);
}

.accordion-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.accordion-content h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-left: 5px;
    color: #2c1717;
    font-size: 21px;
    line-height: 1.35;
}

.accordion-content h2 i {
    color: var(--primary);
    font-size: 18px;
}

.accordion-content h3 {
    margin-bottom: 12px;
    color: #493030;
    font-size: 14px;
    font-weight: 750;
}

/* =========================
   TOPIC BOXES
   ========================= */

.topic-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 17px;
}

.topic-box {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid #ead5d5;
    border-radius: 9px;
    background: #fff8f8;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.topic-box::before {
    content: "✓";
    margin-right: 7px;
    font-weight: 900;
}

.syllabus-note {
    padding: 15px 17px;
    border-left: 3px solid #d7b2b2;
    border-radius: 0 9px 9px 0;
    background: #faf7f7;
    color: #666;
    font-size: 13.5px;
    line-height: 1.75;
}

/* =========================
   EXAM TABLE
   ========================= */

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
}

.exam-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.exam-table th,
.exam-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #eee7e7;
    border-right: 1px solid #f0eaea;
    text-align: center;
}

.exam-table th:last-child,
.exam-table td:last-child {
    border-right: 0;
}

.exam-table thead th {
    color: #fff;
    background: var(--primary);
    font-weight: 750;
    white-space: nowrap;
}

.exam-table tbody td:first-child {
    color: var(--primary);
    font-weight: 750;
}

.exam-table tbody tr:nth-child(even) {
    background: #fcf9f9;
}

.exam-table tbody tr:hover {
    background: #fff5f5;
}

.exam-table .total-row {
    background: #f8eded !important;
}

.exam-table .total-row th {
    color: var(--primary-dark);
    font-weight: 800;
}

.exam-table tbody tr:last-child th,
.exam-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================
   IMPORTANT NOTES / POLICY
   ========================= */

.policy-card {
    position: relative;
    padding: 24px 27px;
    border: 1px solid #eadada;
    border-radius: 15px;
    background:
        linear-gradient(135deg, #fffafa, #ffffff);
    box-shadow: var(--shadow);
}

.policy-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.policy-card li {
    position: relative;
    padding-left: 28px;
    color: #575050;
    font-size: 14px;
    line-height: 1.65;
}

.policy-card li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 3px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f3dddd;
    color: var(--primary);
    font-family: "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
}

/* =========================
   FAQ
   ========================= */

.faq-container {
    display: grid;
    gap: 10px;
}

.faq-container details {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(55, 0, 0, .035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-container details[open] {
    border-color: rgba(128, 0, 0, .2);
    box-shadow: 0 8px 25px rgba(55, 0, 0, .07);
}

.faq-container summary {
    position: relative;
    padding: 17px 48px 17px 20px;
    color: #321d1d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary::after {
    content: "\f078";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    transition: transform .25s ease;
}

.faq-container details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-container details p {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* =========================
   CONTINUE PREPARATION
   ========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 24px 23px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(128, 0, 0, .2);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #fff0f0;
    color: var(--primary);
    font-size: 19px;
}

.feature-card h3 {
    margin-bottom: 7px;
    color: #2d1919;
    font-size: 17px;
}

.feature-card p {
    min-height: 48px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.feature-card > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
}

.feature-card > span i {
    transition: transform .25s ease;
}

.feature-card:hover > span i {
    transform: translateX(4px);
}

/* =========================
   SCROLLBAR
   ========================= */

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f2eeee;
}

.table-container::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c6a2a2;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================
   SELECTION
   ========================= */

::selection {
    color: #fff;
    background: var(--primary);
}

/* =========================
   FOCUS
   ========================= */

a:focus-visible,
summary:focus-visible,
.subject-card:focus-visible {
    outline: 3px solid rgba(128, 0, 0, .22);
    outline-offset: 3px;
}

/* =========================
   RESPONSIVE — TABLET
   ========================= */

@media (max-width: 1000px) {

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================
   RESPONSIVE — MOBILE
   ========================= */

@media (max-width: 680px) {

    .exam-dashboard {
        width: min(100% - 22px, var(--max-width));
        padding-top: 20px;
        padding-bottom: 55px;
    }

    .breadcrumb {
        gap: 7px;
        font-size: 11.5px;
    }

    .back-btn {
        margin-bottom: 18px;
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .page-header {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 26px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .page-header-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .page-header p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .pattern-highlights-section,
    .tier-section,
    .pattern-section,
    .important-notes-section,
    .language-section,
    .faq-section,
    .continue-section,
    .accordion-section {
        margin-top: 30px;
    }

    .section-title {
        margin-bottom: 17px;
    }

    .section-title h2 {
        font-size: 21px;
    }

    .section-title p {
        font-size: 13px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .overview-card {
        padding: 18px;
    }

    .overview-card > i {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        font-size: 17px;
    }

    .overview-card h3 {
        font-size: 15px;
    }

    .overview-card p {
        font-size: 12.5px;
    }

    .subject-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .subject-card {
        min-height: 82px;
        padding: 14px;
        gap: 12px;
    }

    .subject-icon {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .subject-card h3 {
        font-size: 14px;
    }

    .subject-card p {
        font-size: 11.5px;
    }

    .accordion-content {
        padding: 22px 18px;
    }

    .accordion-content h2 {
        font-size: 18px;
        margin-bottom: 17px;
    }

    .accordion-content h3 {
        font-size: 13.5px;
    }

    .topic-box {
        font-size: 12px;
        min-height: 35px;
        padding: 6px 11px;
    }

    .syllabus-note {
        padding: 13px 14px;
        font-size: 12.5px;
    }

    .policy-card {
        padding: 19px 17px;
    }

    .policy-card li {
        padding-left: 25px;
        font-size: 12.8px;
    }

    .faq-container summary {
        padding: 15px 43px 15px 16px;
        font-size: 13px;
    }

    .faq-container summary::after {
        right: 16px;
    }

    .faq-container details p {
        padding: 0 16px 16px;
        font-size: 12.5px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 19px;
    }

    .feature-card p {
        min-height: auto;
    }

}

/* =========================
   VERY SMALL DEVICES
   ========================= */

@media (max-width: 390px) {

    .page-header {
        padding: 20px 16px;
    }

    .page-header-icon {
        display: none;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .subject-card {
        padding: 12px;
    }

    .subject-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

}
