:root {
    --ink: #152033;
    --muted: #64748b;
    --line: #d9e2ec;
    --brand: #163b73;
    --brand-strong: #0e2a52;
    --accent: #0f8b8d;
    --accent-soft: #e6fffb;
    --success: #147a42;
    --danger: #bd3030;
    --surface: #ffffff;
    --soft: #f3f6fa;
    --warning: #b45309;
    --warning-light: #fef3c7;
}

/* ── Result Filter Buttons ── */
.result-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.result-filters button {
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #6b7280;
}
.result-filters button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.result-filters button[data-filter="all"] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.result-filters button[data-filter="correct"] {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
}
.result-filters button[data-filter="wrong"] {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}
.result-filters button[data-filter="unanswered"] {
    color: #6b7280;
    border-color: #d1d5db;
    background: #f9fafb;
}
.result-filters button[data-filter="marked"] {
    color: #7e22ce;
    border-color: #d8b4fe;
    background: #faf5ff;
}
/* Active filter state */
.result-filters button.active-filter[data-filter="all"] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(22, 59, 115, 0.3);
}
.result-filters button.active-filter[data-filter="correct"] {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.result-filters button.active-filter[data-filter="wrong"] {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.result-filters button.active-filter[data-filter="unanswered"] {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}
.result-filters button.active-filter[data-filter="marked"] {
    background: #7e22ce;
    color: #fff;
    border-color: #7e22ce;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.3);
}

body {
    color: var(--ink);
    background: var(--soft);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.exam-navbar {
    background: var(--brand-strong);
    box-shadow: 0 2px 12px rgba(13, 42, 82, 0.16);
}

.navbar-brand {
    letter-spacing: 0;
}

.navbar-nav .nav-link {
    border-radius: 6px;
    font-weight: 700;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.page-hero,
.detail-header,
.result-header,
.simple-hero,
.platform-hero,
.article-hero {
    background: linear-gradient(135deg, #0e2a52 0%, #163b73 55%, #0f6b7c 100%);
    color: #fff;
    padding: 64px 0 46px;
}

.page-hero h1,
.detail-header h1,
.result-header h1,
.simple-hero h1,
.platform-hero h1,
.article-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.hero-copy,
.detail-header p,
.platform-hero p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 1.08rem;
}

.article-hero p,
.simple-hero p {
    max-width: 100%;
    color: #dbeafe;
    font-size: 1.15rem;
    line-height: 1.7;
}

.article-hero .eyebrow {
    color: #99f6e4 !important;
}

.platform-hero {
    padding: 74px 0 58px;
}

.hero-search {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    max-width: 720px;
    padding: 8px;
}

.hero-search input {
    background: #fff;
    border: 0;
    border-radius: 6px;
    flex: 1;
    min-height: 48px;
    padding: 0 14px;
}

.hero-search button {
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    padding: 0 20px;
}

.prep-dashboard {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    padding: 18px;
}

.prep-dashboard div {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 20px;
}

.prep-dashboard strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.prep-dashboard span {
    color: #dbeafe;
    font-weight: 700;
}

.simple-hero h1 {
    max-width: 100%;
}

.eyebrow {
    color: #99f6e4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

.eyebrow.dark {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 18px;
}

.hero-stat {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
}

.stat-label {
    color: #dbeafe;
}

.hero-checklist {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hero-checklist span {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f8fafc;
    font-weight: 700;
    padding: 12px 14px;
}

.feature-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.feature-item {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
    padding: 16px;
}

.feature-item strong {
    color: var(--brand);
    font-size: 1rem;
}

.feature-item span {
    color: var(--muted);
    font-size: 0.94rem;
}

.content-band {
    padding: 42px 0 56px;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
    max-width: 500px;
}

.section-heading.compact {
    margin-bottom: 14px;
}

.section-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.alt-band {
    background: #fff;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.mock-card,
.related-card,
.question-panel,
.question-palette,
.review-item,
.contact-card,
.content-card,
.paper-card,
.daily-focus,
.sidebar-panel,
.article-card,
.article-body {
    background: var(--surface);
    border: 1px solid rgba(22, 59, 115, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(21, 32, 51, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mock-card:hover,
.paper-card:hover,
.content-card:hover,
.article-card:hover,
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(21, 32, 51, 0.07);
    border-color: rgba(22, 59, 115, 0.16);
}

.card-badges,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 8px;
}

.card-badges span,
.tag-row span,
.date-chip {
    display: inline-block;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

/* Styled specific card badge elements for high visual interest */
.card-badges span:first-child,
.tag-row span:first-child,
.date-chip {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.card-badges span:nth-child(2),
.tag-row span:nth-child(2) {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #bbf7d0 !important;
}

.card-badges span:nth-child(3) {
    background: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fef3c7 !important;
}

.content-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-card > img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(22, 59, 115, 0.08);
}

.content-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-strong);
    line-height: 1.4;
    margin-bottom: 10px;
    margin-top: 12px;
}

.content-card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.daily-focus {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    padding: 28px;
}

.daily-focus h2,
.daily-focus h3 {
    font-weight: 800;
}

.article-list {
    display: grid;
    gap: 12px;
}

.article-row {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 12px;
    grid-template-columns: 110px 1fr 150px;
    padding: 14px 16px;
    text-decoration: none;
}

.article-row:hover {
    border-color: var(--accent);
}

.article-row span,
.article-row em {
    color: var(--muted);
    font-size: 0.88rem;
    font-style: normal;
}

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

.paper-card {
    background: var(--surface);
    border: 1px solid rgba(22, 59, 115, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(21, 32, 51, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(21, 32, 51, 0.07);
    border-color: rgba(22, 59, 115, 0.16);
}

.pyq-card-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    display: block;
    margin-bottom: 16px;
    object-fit: cover;
    width: 100%;
}

.paper-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.paper-card-eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.paper-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-strong);
    line-height: 1.4;
    margin-bottom: 10px;
    margin-top: 0;
}

.paper-card-desc {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Explicitly fix any conflict with anchor tag selections inside cards */
.paper-card a:not(.btn),
.mock-card a:not(.btn) {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.paper-card a:not(.btn):hover,
.mock-card a:not(.btn):hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Custom premium buttons inside cards */
.paper-card .btn,
.mock-card .btn {
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.paper-card .btn-primary,
.mock-card .btn-primary {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #ffffff !important; /* Forces white text, solving the invisible text bug! */
}

.paper-card .btn-primary:hover,
.mock-card .btn-primary:hover {
    background: var(--brand-strong) !important;
    border-color: var(--brand-strong) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 59, 115, 0.15);
}

.paper-card .btn-outline-primary,
.mock-card .btn-outline-primary {
    background: transparent !important;
    border-color: var(--brand) !important;
    color: var(--brand) !important;
}

.paper-card .btn-outline-primary:hover,
.mock-card .btn-outline-primary:hover {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #ffffff !important;
}

.paper-card .btn-success,
.mock-card .btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.paper-card .btn-success:hover,
.mock-card .btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.category-grid {
    grid-template-columns: repeat(5, 1fr);
}

.category-grid a,
.trending-topics span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 800;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.category-grid a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px -8px rgba(22, 59, 115, 0.4);
}

.trending-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.trending-topics span {
    background: var(--accent-soft);
    color: #0f766e;
    padding: 10px 14px;
}

.filter-bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr) auto;
    margin-bottom: 30px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(21, 32, 51, 0.04);
}

.filter-bar.filter-bar-single {
    grid-template-columns: 1fr auto;
}
@media (max-width: 768px) {
    .filter-bar,
    .filter-bar.filter-bar-single {
        grid-template-columns: 1fr;
    }
}

.article-grid {
    display: grid;
    gap: 24px;
}

.article-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(22, 59, 115, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(22, 59, 115, 0.08);
    border-color: rgba(22, 59, 115, 0.16);
}

@media (max-width: 768px) {
    .article-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 14px;
    }
}

.article-card-thumb-wrapper {
    flex-shrink: 0;
    width: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .article-card-thumb-wrapper {
        width: 110px;
    }
    .article-card h2 {
        font-size: 1rem;
        line-height: 1.35;
        margin: 6px 0;
    }
    .article-card p {
        display: none; /* Hide description on mobile for a neat list layout */
    }
    .article-card .thumb-placeholder {
        font-size: 0.65rem;
        padding: 6px;
        gap: 4px;
    }
    .thumb-placeholder svg {
        width: 24px;
        height: 24px;
    }
}

.article-card .thumb-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    background: radial-gradient(circle at 100% 100%, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
    transition: transform 0.4s ease;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 16px;
    line-height: 1.25;
}

.article-card:hover .thumb-placeholder {
    transform: scale(1.03);
}

.thumb-placeholder svg {
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.article-card img,
.article-main-image {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.article-card img {
    aspect-ratio: 16 / 10;
}

.article-card:hover img {
    transform: scale(1.03);
}

.article-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.article-card h2 {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 8px 0 8px 0;
}

.article-card h2 a {
    color: var(--brand-strong);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-card p {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.views-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #fee2e2;
}

.views-counter svg {
    width: 14px;
    height: 14px;
}

.article-hero {
    padding: 58px 0;
}

.article-body {
    padding: 28px;
}

.article-body h2,
.article-body h3 {
    font-weight: 800;
    margin-top: 28px;
}

.article-body p,
.article-body li {
    color: #334155;
    font-size: 1.04rem;
    line-height: 1.8;
}

.article-main-image {
    margin-bottom: 24px;
    max-height: 420px;
}

.sidebar-panel {
    background: #ffffff;
    border: 1px solid rgba(22, 59, 115, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(21, 32, 51, 0.03);
    position: sticky;
    top: 90px;
}

.sidebar-panel h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

.sidebar-panel a {
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    padding: 14px 10px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-bottom: none;
    margin-bottom: 4px;
}

.sidebar-panel a::before {
    content: "→";
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: var(--accent);
    font-weight: 800;
}

.sidebar-panel a:hover {
    background: #f8fafc;
    color: var(--brand-strong);
}

.sidebar-panel a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.module-section {
    margin-bottom: 34px;
}

.module-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.mock-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.mock-card:hover {
    box-shadow: 0 18px 42px rgba(21, 32, 51, 0.1);
    transform: translateY(-2px);
}

.mock-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #dbeafe;
    height: auto;
    overflow: hidden;
}

.mock-thumb img {
    transition: transform 220ms ease;
}

.mock-card:hover .mock-thumb img {
    transform: scale(1.03);
}

.mock-thumb img,
.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder,
.detail-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 190px;
    color: var(--brand);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.mock-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.mock-card h2,
.mock-card-title,
.related-card h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--brand-strong);
    line-height: 1.35;
    margin: 0 0 10px;
}

.pyq-thumb-banner {
    background: linear-gradient(135deg, #0a4a5e 0%, #0f6b7c 55%, #0f8b8d 100%);
    color: #fff;
    display: grid;
    height: 100%;
    min-height: 190px;
    padding: 18px;
    place-items: stretch;
    width: 100%;
}

.pyq-thumb-banner__inner {
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    min-height: 150px;
    padding: 16px 18px;
    width: 100%;
}

.pyq-thumb-banner__badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    text-transform: uppercase;
}

.pyq-thumb-banner__title {
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0 8px;
}

.pyq-thumb-banner__meta {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.92;
}

.mock-card p,
.related-card p {
    color: var(--muted);
}

.mock-card .btn {
    margin-top: auto;
}

.mock-meta,
.exam-summary,
.result-grid {
    display: grid;
    gap: 12px;
}

.mock-meta {
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0;
}

.mock-meta span {
    background: #eef6ff;
    border-radius: 6px;
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px;
    text-align: center;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 20px;
    font-size: 0.94rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 59, 115, 0.15);
}

.btn-light {
    color: var(--brand-strong);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.detail-image {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.exam-summary,
.result-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 36px;
}

.result-grid {
    grid-template-columns: repeat(5, 1fr);
}

.exam-summary div,
.result-grid div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.exam-summary strong,
.result-grid strong {
    display: block;
    font-size: 1.7rem;
}

.exam-summary span,
.result-grid span {
    color: var(--muted);
    font-weight: 700;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 10px 0 20px;
}

.related-card {
    padding: 20px;
}

.related-card a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.test-toolbar {
    position: sticky;
    top: 56px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(21, 32, 51, 0.06);
    padding: 16px 0;
}

.toolbar-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-strong);
}

.timer-box {
    align-items: center;
    background: #fff5f5;
    border: 1px solid #fee2e2;
    border-radius: 10px;
    color: var(--danger);
    display: flex;
    gap: 10px;
    padding: 8px 16px;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.05);
    transition: all 0.3s ease;
}

.timer-box.timer-low {
    background: #fef2f2;
    border-color: #fca5a5;
    animation: timerPulse 1s infinite alternate;
}

@keyframes timerPulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
    to {
        transform: scale(1.03);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
    }
}

.timer-box span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #991b1b;
}

.timer-box strong {
    font-size: 1.35rem;
    font-family: monospace;
    font-weight: 700;
}

/* Progress Tracker styling */
.test-progress-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 9999px;
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.test-progress-bar {
    background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes questionFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(21, 32, 51, 0.04);
    padding: 32px;
    transition: all 0.2s ease;
}

.question-panel:not(.d-none) {
    animation: questionFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.question-panel h2 {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--ink);
}

.question-count {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.question-image {
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    margin: 20px 0;
}

/* Custom Option Selector Cards */
.options-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.option-card {
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.option-card:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

/* Selected option styles */
.option-card input[type="radio"]:checked + .option-badge {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.option-card input[type="radio"]:checked ~ .option-text {
    color: var(--brand-strong);
    font-weight: 600;
}

.option-card input[type="radio"]:checked ~ .option-check-circle {
    border-color: var(--brand);
    background: #fff;
}

.option-card input[type="radio"]:checked ~ .option-check-circle .inner-dot {
    transform: scale(1);
    background: var(--brand);
}

.option-card:has(input[type="radio"]:checked),
.option-card.selected {
    background: #f0f7ff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(22, 59, 115, 0.08);
}

.option-badge {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #475569;
    display: flex;
    font-size: 0.95rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    width: 36px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.option-text {
    color: var(--ink);
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.5;
}

.option-check-circle {
    align-items: center;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    height: 20px;
    justify-content: center;
    width: 20px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.inner-dot {
    background: transparent;
    border-radius: 50%;
    height: 10px;
    transform: scale(0);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 10px;
}

/* Clear selection button utility */
.clear-selection-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
}

.clear-selection-btn:hover {
    color: var(--danger);
    text-decoration: underline;
}

.test-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.question-palette {
    position: sticky;
    top: 142px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(21, 32, 51, 0.04);
}

.question-palette h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--brand-strong);
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.palette-btn {
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.palette-btn:hover {
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-1px);
}

.palette-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 10px rgba(22, 59, 115, 0.25);
}

.palette-btn.answered {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.palette-btn.visited {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}

.palette-btn.marked-review {
    background: #faf5ff;
    border-color: #a855f7;
    color: #7e22ce;
    position: relative;
}

.palette-btn.marked-review::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    background: #a855f7;
    border-radius: 50%;
    border: 1px solid #fff;
}

/* Palette Status Legend styling */
.palette-legend {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.78rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-weight: 600;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.legend-color.unvisited { background: #f8fafc; border-color: #cbd5e1; }
.legend-color.visited { background: #fef3c7; border-color: #f59e0b; }
.legend-color.answered { background: #dcfce7; border-color: #22c55e; }
.legend-color.marked { background: #faf5ff; border-color: #a855f7; }

.score-line {
    align-items: baseline;
    display: flex;
    gap: 10px;
}

.score-line strong {
    font-size: 3rem;
}

.review-list {
    display: grid;
    gap: 18px;
}

.review-item {
    border-left: 6px solid #94a3b8;
    padding: 22px;
    background: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.review-item.correct {
    border-left-color: #16a34a;
    background: #f0fdf4;
}

.review-item.wrong {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.review-item.unanswered {
    border-left-color: #9ca3af;
    background: #f9fafb;
}

.review-item.marked {
    border-right: 2px solid #a855f7;
    box-shadow: 0 1px 4px rgba(126, 34, 206, 0.08);
}

.review-item h3 {
    font-size: 1.05rem;
    line-height: 1.5;
}

.review-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 10px;
}

.explanation {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 700px;
    padding: 34px;
    text-align: center;
}

.empty-state.small {
    max-width: none;
    padding: 18px;
}

.narrow-content {
    max-width: 920px;
}

.narrow-content h2,
.policy-content h2,
.contact-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 26px 0 10px;
}

.narrow-content h2:first-child,
.policy-content h2:first-child,
.contact-card h2:first-child {
    margin-top: 0;
}

.narrow-content p,
.policy-content p,
.contact-card p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

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

.info-grid div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.info-grid strong,
.info-grid span {
    display: block;
}

.info-grid strong {
    color: var(--brand);
    margin-bottom: 8px;
}

.info-grid span {
    color: var(--muted);
}

.contact-card {
    height: 100%;
    padding: 24px;
}

.form-control {
    border-color: var(--line);
    border-radius: 6px;
    min-height: 46px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 139, 141, 0.16);
}

.form-label {
    font-weight: 800;
}

.form-note {
    color: var(--muted);
    display: inline-block;
    margin-left: 10px;
}

.site-footer {
    background: #0b1628;
    color: #cbd5e1;
    padding: 42px 0 20px;
}

.footer-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-grid h2,
.footer-grid h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-grid p {
    color: #cbd5e1;
    max-width: 520px;
}

.footer-grid a {
    color: #cbd5e1;
    display: block;
    padding: 8px 0;
    text-decoration: none;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
}

@media (max-width: 991px) {
    .navbar-nav {
        padding: 12px 0;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.8rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        justify-content: flex-start;
    }

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

    .question-palette {
        position: static;
    }

    .info-grid,
    .footer-grid,
    .paper-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .article-row,
    .article-card {
        grid-template-columns: 1fr;
    }

    .prep-dashboard strong {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .paper-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .daily-focus {
        padding: 20px;
    }

    .article-body {
        padding: 20px;
    }

    .platform-hero {
        padding: 48px 0 36px;
    }

    .article-hero {
        padding: 40px 0;
    }
}

@media (max-width: 575px) {
    .page-hero,
    .detail-header,
    .result-header,
    .simple-hero,
    .platform-hero,
    .article-hero {
        padding: 36px 0 28px;
    }

    .hero-actions .btn,
    .detail-actions .btn {
        width: 100%;
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        min-height: 46px;
        min-width: auto;
    }

    .prep-dashboard,
    .paper-grid,
    .category-grid,
    .filter-bar,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .hero-stat,
    .question-panel,
    .question-palette,
    .review-item,
    .contact-card {
        padding: 18px;
    }

    .content-band {
        padding: 28px 0 42px;
    }

    .mock-card-body {
        padding: 18px;
    }

    .mock-meta,
    .exam-summary,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .mock-meta {
        gap: 8px;
    }

    .test-toolbar {
        top: 56px;
    }

    .toolbar-title {
        font-size: 0.98rem;
    }

    .timer-box {
        justify-content: space-between;
        width: 100%;
    }

    .question-panel h2 {
        font-size: 1rem;
    }

    .options-list label {
        padding: 12px;
    }

    .palette-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .test-nav .btn {
        flex: 1 1 100%;
    }

    .score-line {
        display: block;
    }

    .score-line strong {
        font-size: 2rem;
    }

    .review-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-note {
        margin: 10px 0 0;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-top: 8px;
    }

    .prep-dashboard strong {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .daily-focus {
        padding: 16px;
    }

    .article-body {
        padding: 16px;
    }

    .detail-actions .btn,
    .hero-actions .btn {
        min-width: auto;
    }

    .category-grid a {
        padding: 14px 12px;
        font-size: 0.92rem;
    }

    .trending-topics span {
        word-break: break-word;
    }

    .exam-summary strong,
    .result-grid strong {
        font-size: 1.3rem;
    }
}

/* ==============================
   Breadcrumb Navigation
   ============================== */
.breadcrumb-nav {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--muted);
}

/* ==============================
   Editorial / Home Content Section
   ============================== */
.editorial-section {
    border-top: 1px solid #e2e8f0;
}

.editorial-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 1.25rem;
}

.editorial-section p {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.editorial-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.editorial-section ol,
.editorial-section ul {
    color: #334155;
    font-size: 1rem;
    line-height: 1.85;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.editorial-section li {
    margin-bottom: 0.5rem;
}

/* ==============================
   FAQ Accordion (native <details>)
   ============================== */
.faq-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--brand-strong);
    padding: 1rem 1.25rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ==============================
   Author / Team Card
   ============================== */
.author-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.author-role {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
}

.author-info p {
    color: #334155;
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ==============================
   Policy Pages
   ============================== */
.policy-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-strong);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.policy-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.policy-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.policy-content p,
.policy-content li {
    color: #334155;
    font-size: 1rem;
    line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.4rem;
}

.policy-content a {
    color: var(--brand);
    font-weight: 600;
}

.policy-content a:hover {
    color: var(--accent);
}

/* ==============================
   Exam Stream Section (Homepage)
   ============================== */
.exam-stream-section {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 42px 0;
}

.exam-stream-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
    cursor: pointer;
    color: var(--ink);
}

.exam-stream-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.09);
    color: var(--ink);
}

.upsc-card:hover { border-color: #163b73; }
.ssc-card:hover  { border-color: #b45309; }

.exam-stream-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
}

.upsc-card .exam-stream-icon { background: linear-gradient(135deg, #0e2a52, #163b73); }
.ssc-card  .exam-stream-icon { background: linear-gradient(135deg, #92400e, #b45309); }

.exam-stream-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--brand-strong);
}

.ssc-card .exam-stream-body h3 { color: #92400e; }

.exam-stream-body p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.exam-stream-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.exam-stream-stats span {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.exam-stream-cta {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    display: inline-block;
}

.upsc-card .exam-stream-cta { color: var(--brand); }
.ssc-card  .exam-stream-cta { color: #b45309; }

/* ==============================
   SSC CGL Hero
   ============================== */
.ssc-hero {
    background: linear-gradient(135deg, #92400e 0%, #b45309 55%, #d97706 100%) !important;
}

/* ==============================
   SSC Teaser Band (Homepage)
   ============================== */
.ssc-teaser-band {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
}

.ssc-teaser-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.ssc-teaser-text {
    flex: 1;
    min-width: 260px;
}

.ssc-teaser-text h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.ssc-teaser-text p {
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.ssc-badge-inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b45309, #d97706);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.35);
}

.ssc-badge-inner span {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.ssc-badge-inner small {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.88;
    margin-top: 2px;
}

/* ==============================
   Navbar Exam Dots
   ============================== */
.exam-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.upsc-dot { background: #4f83d4; }
.ssc-dot  { background: #d97706; }

/* ==============================
   SSC Subject Cards
   ============================== */
.ssc-subject-card .ssc-subject-icon {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    border-radius: 12px 12px 0 0;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .exam-stream-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ssc-teaser-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==============================
   Homepage Hero (new clean version)
   ============================== */
.home-hero {
    background: linear-gradient(135deg, #0e2a52 0%, #163b73 55%, #0f6b7c 100%);
    color: #fff;
    padding: 72px 0 56px;
    text-align: center;
}

.home-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.home-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.home-hero-sub {
    font-size: 1.1rem;
    color: #bfdbfe;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==============================
   Exam Picker Cards (Homepage)
   ============================== */
.exam-choose-section {
    background: #fff;
    padding: 48px 0 52px;
    border-bottom: 1px solid #e2e8f0;
}

.choose-label {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.exam-pick-card {
    display: flex;
    gap: 0;
    border-radius: 18px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.exam-pick-card:hover {
    transform: translateY(-5px);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.upsc-pick { border-color: rgba(22, 59, 115, 0.15); }
.ssc-pick  { border-color: rgba(180, 83, 9, 0.15); }

.upsc-pick:hover { border-color: #163b73; box-shadow: 0 20px 40px rgba(22,59,115,0.12); }
.ssc-pick:hover  { border-color: #b45309; box-shadow: 0 20px 40px rgba(180,83,9,0.12); }

.exam-pick-left {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.exam-pick-badge {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    writing-mode: initial;
    letter-spacing: 0.03em;
}

.upsc-badge { background: linear-gradient(180deg, #0e2a52, #163b73); }
.ssc-badge  { background: linear-gradient(180deg, #92400e, #b45309); }

.exam-pick-right {
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    flex: 1;
    min-width: 0;
}

.exam-pick-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.exam-pick-top h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    color: var(--brand-strong);
}

.ssc-pick .exam-pick-top h2 { color: #92400e; }

.exam-pick-arrow {
    font-size: 1.4rem;
    font-weight: 900;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.exam-pick-card:hover .exam-pick-arrow {
    transform: translateX(4px);
    color: var(--brand);
}

.ssc-pick:hover .exam-pick-arrow { color: #b45309; }

.exam-pick-right > p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.9rem;
}

.exam-pick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.exam-pick-stats span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.exam-pick-cta {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand);
}

.ssc-pick .exam-pick-cta { color: #b45309; }

/* ==============================
   Feature Pills (Homepage)
   ============================== */
.inside-band {
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.feature-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    text-align: center;
    transition: all 0.25s;
    cursor: default;
    height: 100%;
}

.feature-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.pill-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.feature-pill strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 0.15rem;
}

.feature-pill small {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ==============================
   Unified Hub UI System (UPSC & SSC CGL)
   ============================== */
.hub-hero {
    padding: 72px 0 60px;
    background: linear-gradient(135deg, #0e2a52 0%, #163b73 55%, #0f6b7c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hub-hero.ssc-theme {
    background: linear-gradient(135deg, #78350f 0%, #92400e 55%, #b45309 100%);
}

.hub-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.hub-hero-content {
    position: relative;
    z-index: 2;
}

.hub-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.hub-stat-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.hub-stat-chip:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.hub-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.hub-stat-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Hub Grid & Cards --- */
.hub-section {
    padding: 80px 0;
    background: #f8fafc;
}

.hub-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.hub-section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 0.5rem;
}

.hub-section-title p {
    color: var(--muted);
    font-size: 1.1rem;
}

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

@media (max-width: 991px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .hub-grid { grid-template-columns: 1fr; } }

.hub-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: var(--ink);
}

.hub-card-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
}

/* Color variations for icons */
.icon-blue   { background: #eff6ff; color: #3b82f6; }
.icon-indigo { background: #eef2ff; color: #6366f1; }
.icon-emerald{ background: #ecfdf5; color: #10b981; }
.icon-amber  { background: #fffbeb; color: #f59e0b; }
.icon-rose   { background: #fff1f2; color: #f43f5e; }
.icon-slate  { background: #f8fafc; color: #64748b; }
.icon-cyan   { background: #ecfeff; color: #06b6d4; }
.icon-violet { background: #f5f3ff; color: #8b5cf6; }

.hub-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.hub-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex: 1;
}

.hub-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.hub-card-tags {
    display: flex;
    gap: 8px;
}

.hub-card-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 10px;
}

.hub-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.hub-card:hover .hub-card-arrow {
    background: var(--ink);
    color: #fff;
    transform: translateX(4px);
}

/* ==============================
   UPSC Subject Chips (Refined)
   ============================== */
.upsc-subject-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.upsc-subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--ink);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.upsc-subject-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
    color: var(--ink);
}

@media (max-width: 768px) {
    .hub-stats { grid-template-columns: repeat(2, 1fr); }
    .hub-hero { padding: 50px 0 40px; }
    .hub-card { padding: 1.5rem; }
}


/* ── Modern Home Hero ── */
.modern-hero {
    background: #0b0f19;
    background-image: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    padding: 120px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-text-col {
    position: relative;
    z-index: 2;
}
.modern-hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.modern-hero-title .highlight {
    color: #a78bfa;
}
.modern-hero-sub {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}
.modern-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}
.modern-btn-primary {
    background: #7c3aed;
    color: #fff;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid #7c3aed;
}
.modern-btn-primary:hover {
    background: #6d28d9;
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.modern-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.modern-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.modern-hero-features {
    display: flex;
    gap: 30px;
}
.mhf-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mhf-icon {
    font-size: 24px;
}
.mhf-item strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}
.mhf-item span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* Hero Abstract Visual */
.hero-visual-abstract {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hva-glow-1 {
    position: absolute; width: 250px; height: 250px; background: #7c3aed; border-radius: 50%; filter: blur(80px); opacity: 0.3; top: 10%; right: 20%;
}
.hva-glow-2 {
    position: absolute; width: 200px; height: 200px; background: #3b82f6; border-radius: 50%; filter: blur(80px); opacity: 0.3; bottom: 10%; left: 10%;
}
.hva-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.top-card { width: 280px; height: 180px; top: 10%; left: 10%; transform: rotate(-5deg); }
.bottom-card { width: 300px; height: 160px; bottom: 15%; right: 10%; transform: rotate(5deg); }
.hva-bar { height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; margin-bottom: 12px; }
.hva-circle { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 50%; margin-bottom: 20px; }

/* ── Modern Exam Section ── */
.modern-exam-section {
    padding: 80px 0;
    background: #fff;
}
.modern-section-title {
    text-align: center;
    margin-bottom: 50px;
}
.modern-section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.modern-section-title h2::before, .modern-section-title h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #e2e8f0;
}
.modern-section-title h2::before { right: 100%; margin-right: 20px; }
.modern-section-title h2::after { left: 100%; margin-left: 20px; }
.modern-section-title p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Exam Cards */
.modern-exam-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.02);
}
.modern-exam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.mec-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.upsc-card .mec-icon-wrap { background: rgba(124,58,237,0.1); color: #7c3aed; }
.ssc-card .mec-icon-wrap { background: rgba(249,115,22,0.1); color: #ea580c; }
.modern-exam-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 15px;
    line-height: 1.3;
}
.upsc-card h3 { color: #7c3aed; }
.ssc-card h3 { color: #ea580c; }
.mec-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.mec-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    text-align: left;
    display: inline-block;
    align-self: center;
}
.mec-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
}
.m-icon {
    font-size: 1.2rem;
}
.mec-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    margin-top: 35px;
    transition: 0.2s;
}
.upsc-card .mec-btn { background: #7c3aed; box-shadow: 0 4px 15px rgba(124,58,237,0.3); }
.upsc-card .mec-btn:hover { background: #6d28d9; color: #fff; }
.ssc-card .mec-btn { background: #ea580c; box-shadow: 0 4px 15px rgba(234,88,12,0.3); }
.ssc-card .mec-btn:hover { background: #c2410c; color: #fff; }

/* ── Feature Pills ── */
.modern-feature-pill {
    background: #fff;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: 0.3s;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}
.modern-feature-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.mfp-icon {
    font-size: 28px;
    margin-bottom: 12px;
}
.modern-feature-pill strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.modern-feature-pill span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── CTA Banner ── */
.modern-cta-banner {
    background: linear-gradient(135deg, #a78bfa 0%, #93c5fd 100%);
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(167, 139, 250, 0.2);
    position: relative;
    overflow: hidden;
}
.cta-banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}
.cta-icon {
    font-size: 48px;
}
.cta-text h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.cta-text p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-size: 1.05rem;
}
.modern-btn-white {
    background: #fff;
    color: #4f46e5;
    border-radius: 50px;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    transition: 0.2s;
    white-space: nowrap;
}
.modern-btn-white:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    color: #4338ca;
}

@media (max-width: 991px) {
    .modern-hero-title { font-size: 2.8rem; }
    .modern-hero { padding: 80px 0; }
    .modern-cta-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 30px; }
    .cta-banner-content { flex-direction: column; }
    .modern-section-title h2::before, .modern-section-title h2::after { display: none; }
}
@media (max-width: 768px) {
    .modern-hero-actions { flex-direction: column; gap: 12px; }
    .modern-hero-features { flex-direction: column; gap: 15px; }
}

/* ── Global Premium Theme (Navbar & Footer) ── */
body {
    background-color: #f8fafc;
}

/* Navbar */
.exam-navbar {
    background-color: #0b0f19 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}
.exam-navbar .navbar-brand {
    font-size: 1.4rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.exam-navbar .navbar-brand::before {
    content: "📖";
    font-size: 1.5rem;
}
.exam-navbar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: 0.2s;
}
.exam-navbar .nav-link:hover, .exam-navbar .nav-link.active {
    color: #fff !important;
}
.btn-nav-signin {
    background: #7c3aed;
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 24px !important;
    font-weight: 600;
    margin-left: 15px;
    transition: 0.2s;
}
.btn-nav-signin:hover {
    background: #6d28d9;
    box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}

/* Footer */
.premium-footer {
    background-color: #0b0f19;
    color: rgba(255,255,255,0.6);
    padding: 80px 0 30px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.pf-brand {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pf-brand::before {
    content: "📖";
    font-size: 1.5rem;
}
.pf-desc {
    margin-bottom: 30px;
    line-height: 1.6;
}
.pf-socials {
    display: flex;
    gap: 15px;
}
.pf-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}
.pf-social-icon:hover {
    background: #7c3aed;
    color: #fff;
}
.premium-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.pf-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pf-links li {
    margin-bottom: 12px;
}
.pf-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.2s;
}
.pf-links a:hover {
    color: #a78bfa;
}
.pf-subscribe p {
    margin-bottom: 15px;
}
.pf-subscribe-form {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
.pf-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 10px 15px;
    color: #fff;
    width: 100%;
}
.pf-input:focus {
    outline: none;
    border-color: #7c3aed;
}
.pf-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.pf-btn:hover {
    background: #6d28d9;
}
.pf-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* ==========================================================================
   GLOBAL NAVBAR (MODERN REDESIGN)
   ========================================================================== */
.global-navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.global-navbar .navbar-brand {
    color: var(--brand-strong);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.global-navbar .nav-link {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.global-navbar .nav-link:hover,
.global-navbar .nav-link:focus,
.global-navbar .nav-item.active .nav-link {
    color: var(--brand);
    background: #f8fafc;
}

.global-navbar .nav-item.active .nav-link {
    font-weight: 700;
    color: var(--accent);
}

/* Dropdown Polishing */
.global-navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 12px;
    margin-top: 10px;
    min-width: 220px;
}

.global-navbar .dropdown-item {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.global-navbar .dropdown-item:hover,
.global-navbar .dropdown-item:focus {
    background: #f1f5f9;
    color: var(--brand);
    transform: translateX(4px);
}

/* Navbar Buttons */
.navbar-btns .btn {
    font-weight: 700;
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.navbar-btns .btn-outline-primary {
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

.navbar-btns .btn-outline-primary:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}

.navbar-btns .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.navbar-btns .btn-primary:hover {
    background: var(--brand-strong);
    box-shadow: 0 4px 12px rgba(22, 59, 115, 0.2);
}

/* Profile Dropdown */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    color: #334155 !important;
    background: #fff !important;
}

.profile-btn:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==========================================================================
   MOBILE OFFCANVAS (HAMBURGER)
   ========================================================================== */
.offcanvas-nav {
    border-left: none;
    box-shadow: -5px 0 25px rgba(0,0,0,0.05);
}

.offcanvas-nav .offcanvas-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 24px;
}

.offcanvas-nav .offcanvas-title {
    font-weight: 800;
    color: var(--brand-strong);
}

.offcanvas-nav .offcanvas-body {
    padding: 24px;
}

.offcanvas-nav .nav-link {
    font-size: 1.1rem;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.offcanvas-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    background: #f8fafc;
    padding: 12px;
    margin-top: 0;
    margin-bottom: 8px;
}

.offcanvas-nav .accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    padding: 12px 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 8px;
}

.offcanvas-nav .accordion-button:not(.collapsed) {
    color: var(--brand);
    background: #f1f5f9;
}

.offcanvas-nav .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 4px;
}

.offcanvas-nav .accordion-body {
    padding: 8px 16px 16px 32px;
}

.offcanvas-nav .accordion-body .dropdown-item {
    padding: 10px 16px;
    font-size: 1rem;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.global-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 80px 0 30px;
    color: #475569;
    margin-top: auto;
}

.global-footer h4 {
    color: var(--brand-strong);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-strong);
    margin-bottom: 16px;
    display: inline-block;
}

.footer-desc {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand);
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-disclaimer {
    color: #94a3b8;
    max-width: 800px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-disclaimer {
        text-align: right;
    }
}
