/* ============================================================
   Test Desk (TD) — Main Stylesheet (FINAL)
   File Path : assets/css/style.css
   ============================================================ */

/* 1) Reset & Base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Noto Sans Devanagari", "Hind Siliguri", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #1a2b45;
    background: #f5faff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #0b5cab; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #084a8a; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 2) CSS Variables */
:root {
    --td-sky-top:   #4aa3e0;
    --td-sky-bot:   #7cc6f0;
    --td-navy:      #1a2b45;
    --td-navy-soft: #33475f;
    --td-green:     #22a06b;
    --td-green-dk:  #18875a;
    --td-red:       #d94a4a;
    --td-amber:     #e0a92b;
    --td-bg:        #f5faff;
    --td-card:      #ffffff;
    --td-border:    #dbe9f4;
    --td-shadow:    0 4px 16px rgba(20, 80, 140, 0.08);
    --td-shadow-lg: 0 8px 28px rgba(20, 80, 140, 0.14);
    --td-radius:    12px;
    --td-radius-sm: 8px;
    --td-max:       1100px;
}

/* 3) Header */
.td-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--td-sky-top) 0%, var(--td-sky-bot) 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(20, 80, 140, 0.15);
}

.td-header-inner {
    max-width: var(--td-max);
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
}

.td-logo-wrap { flex-shrink: 0; display: flex; align-items: center; }

.td-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}
.td-logo-wrap:hover .td-logo-img { transform: scale(1.05); }

.td-title-wrap { flex: 1; text-align: center; min-width: 0; }

.td-app-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-app-title:hover { color: #ffffff; opacity: 0.92; }

.td-tagline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.94);
    letter-spacing: 0.3px;
    margin-top: 1px;
    font-style: italic;
    line-height: 1.2;
}

.td-menu-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
    padding: 0;
}
.td-menu-btn:hover,
.td-menu-btn:focus {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}
.td-menu-btn span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 4) Language Bar */
.td-lang-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--td-border);
    text-align: center;
    padding: 6px 12px;
    font-size: 13.5px;
    color: var(--td-navy-soft);
}
.td-lang-item {
    color: var(--td-navy-soft);
    padding: 3px 8px;
    font-weight: 500;
    border-radius: 6px;
}
.td-lang-item:hover { color: #0b5cab; background: #eef6fd; }
.td-lang-item.active {
    color: #0b5cab;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.td-lang-sep { color: #c5d6e5; margin: 0 2px; }

/* 5) Main wrapper */
.td-main {
    max-width: var(--td-max);
    margin: 0 auto;
    padding: 18px 16px 32px;
    min-height: calc(100vh - 220px);
}

/* 6) Page title */
.td-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--td-navy);
    margin: 0 0 6px;
    text-align: center;
}
.td-page-subtitle {
    font-size: 14px;
    color: var(--td-navy-soft);
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* 7) Cards */
.td-card {
    background: var(--td-card);
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 16px;
    box-shadow: var(--td-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.td-card:hover { transform: translateY(-2px); box-shadow: var(--td-shadow-lg); }

.td-exam-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.td-exam-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--td-card);
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 14px 16px;
    box-shadow: var(--td-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    color: var(--td-navy);
}
.td-exam-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--td-shadow-lg);
    border-color: #b6d8f0;
    color: var(--td-navy);
}

.td-exam-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, #e6f3fd 0%, #cfe9fa 100%);
    color: #0b5cab;
}

.td-exam-info { flex: 1; min-width: 0; }

.td-exam-name {
    font-size: 15.5px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--td-navy);
    line-height: 1.3;
}
.td-exam-desc {
    font-size: 12.5px;
    color: #6a7c92;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.td-exam-arrow { flex-shrink: 0; color: #9ab8d2; font-size: 20px; font-weight: 700; }

/* 8) Buttons */
.td-btn {
    display: inline-block;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--td-radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.td-btn-primary {
    background: var(--td-green);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 160, 107, 0.25);
}
.td-btn-primary:hover {
    background: var(--td-green-dk);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 160, 107, 0.32);
}
.td-btn-secondary {
    background: #eaf4fd;
    color: #0b5cab;
    border: 1px solid #cbe3f6;
}
.td-btn-secondary:hover { background: #d7ebfa; color: #084a8a; }
.td-btn-outline {
    background: transparent;
    color: #0b5cab;
    border: 1.5px solid #b6d8f0;
}
.td-btn-outline:hover { background: #eef6fd; }
.td-btn-danger { background: var(--td-red); color: #ffffff; }
.td-btn-danger:hover { background: #b83b3b; color: #ffffff; }
.td-btn-lg { padding: 14px 32px; font-size: 16.5px; border-radius: 10px; }
.td-btn-block { display: block; width: 100%; }
.td-btn:disabled,
.td-btn.disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* 9) Hero */
.td-hero {
    background: linear-gradient(135deg, #e8f4fd 0%, #d2e9fa 100%);
    border-radius: var(--td-radius);
    padding: 20px 18px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #cbe3f6;
}
.td-hero-title { font-size: 20px; font-weight: 700; color: #0b4a85; margin: 0 0 4px; }
.td-hero-sub { font-size: 13.5px; color: #4a6483; margin: 0; }

/* 10) Intro card */
.td-intro-card {
    background: #ffffff;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 20px 18px;
    box-shadow: var(--td-shadow);
    margin-bottom: 18px;
}
.td-intro-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--td-navy);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaf4fd;
}
.td-info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.td-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f7fbff;
    border-radius: var(--td-radius-sm);
    font-size: 14.5px;
}
.td-info-label { color: #5a7a95; font-weight: 500; }
.td-info-value { color: var(--td-navy); font-weight: 700; }

.td-instructions {
    background: #fffaf0;
    border-left: 4px solid var(--td-amber);
    padding: 14px 16px;
    border-radius: var(--td-radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
    color: #6b5316;
    line-height: 1.6;
}
.td-instructions h4 { margin: 0 0 8px; font-size: 15px; color: #8a6a10; }
.td-instructions ul { margin: 6px 0 0; padding-left: 20px; }
.td-instructions li { margin-bottom: 4px; }

/* 11) Subject buttons */
.td-subject-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

/* 12) Empty state */
.td-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7a8fa6;
    font-size: 14.5px;
    background: #ffffff;
    border-radius: var(--td-radius);
    border: 1px dashed #cbe3f6;
}

/* 13) Footer */
.td-footer {
    background: #eaf1f8;
    border-top: 1px solid var(--td-border);
    margin-top: 30px;
    padding: 20px 16px 16px;
    color: #5a7a95;
    font-size: 13px;
}
.td-footer-inner { max-width: var(--td-max); margin: 0 auto; text-align: center; }
.td-footer-links { margin-bottom: 8px; line-height: 1.9; }
.td-footer-links a { color: #4a6483; padding: 2px 4px; }
.td-footer-links a:hover { color: #0b5cab; text-decoration: underline; }
.td-dot { color: #b3c8dc; margin: 0 2px; }
.td-footer-copy { color: #7a8fa6; font-size: 12.5px; margin-top: 4px; }

/* 14) Utilities */
.td-text-center { text-align: center; }
.td-mt-10 { margin-top: 10px; }
.td-mt-16 { margin-top: 16px; }
.td-mt-20 { margin-top: 20px; }
.td-mb-10 { margin-bottom: 10px; }
.td-mb-16 { margin-bottom: 16px; }
.td-mb-20 { margin-bottom: 20px; }
.td-hidden { display: none !important; }

/* 15) Responsive (≥ 600px) */
@media (min-width: 600px) {
    .td-header-inner { padding: 12px 20px; min-height: 72px; gap: 12px; }
    .td-logo-img { width: 48px; height: 48px; }
    .td-app-title { font-size: 21px; }
    .td-tagline { font-size: 11px; }
    .td-exam-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .td-subject-buttons { grid-template-columns: repeat(4, 1fr); }
    .td-info-grid { grid-template-columns: repeat(2, 1fr); }
    .td-main { padding: 26px 20px 40px; }
}

/* 16) Responsive (≥ 900px) */
@media (min-width: 900px) {
    body { font-size: 15.5px; }
    .td-header-inner { min-height: 76px; }
    .td-app-title { font-size: 23px; }
    .td-tagline { font-size: 11.5px; }
    .td-exam-grid { grid-template-columns: repeat(3, 1fr); }
    .td-page-title { font-size: 26px; }
}

/* 17) Focus */
a:focus-visible,
button:focus-visible,
.td-btn:focus-visible {
    outline: 2px solid #0b5cab;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 18) Print */
@media print {
    .td-header, .td-lang-bar, .td-footer, .td-menu-btn { display: none !important; }
}

/* ============================================================
   19) SIDE DRAWER
============================================================ */
body.td-drawer-open { overflow: hidden; }

.td-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 70, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 998;
}
.td-drawer-overlay.show { opacity: 1; visibility: visible; }

.td-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    max-width: 86vw;
    background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
    box-shadow: -12px 0 32px rgba(20, 80, 140, 0.20);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.28, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid #dbe9f4;
}
.td-drawer.open { transform: translateX(0); }

.td-drawer-head {
    padding: 16px 14px 12px;
    background: linear-gradient(135deg, #4aa3e0 0%, #7cc6f0 100%);
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}
.td-drawer-head::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 12px;
    background: radial-gradient(ellipse at center top,
        rgba(74, 163, 224, 0.22) 0%, rgba(74, 163, 224, 0) 70%);
    pointer-events: none;
}

.td-drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.td-drawer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.td-drawer-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-drawer-tag {
    font-size: 10px;
    font-style: italic;
    opacity: 0.94;
    margin-top: 2px;
    line-height: 1.2;
}

.td-drawer-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transition: background 0.15s ease, transform 0.15s ease;
    padding: 0;
}
.td-drawer-close:hover,
.td-drawer-close:focus {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
    outline: none;
}

.td-drawer-nav {
    padding: 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.td-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #1a2b45;
    font-size: 14.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease,
                transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.td-drawer-link:hover,
.td-drawer-link:focus {
    background: linear-gradient(90deg, #e6f3fd 0%, #f2f9ff 100%);
    color: #0b5cab;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(20, 80, 140, 0.06);
    outline: none;
}
.td-drawer-ico { width: 26px; text-align: center; font-size: 17px; flex-shrink: 0; }

.td-drawer-foot {
    padding: 14px 16px 18px;
    border-top: 1px solid #e3eefa;
    background: #f9fcff;
}
.td-drawer-lang {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    background: #eef6fd;
    padding: 4px;
    border-radius: 10px;
}
.td-drawer-lang-btn {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 8px;
    color: #4a6483;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.td-drawer-lang-btn:hover { color: #0b5cab; }
.td-drawer-lang-btn.active {
    background: #ffffff;
    color: #0b5cab;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(20, 80, 140, 0.10);
}
.td-drawer-copy {
    text-align: center;
    color: #90a6bd;
    font-size: 11.5px;
    line-height: 1.4;
}

@media (max-width: 380px) {
    .td-drawer { width: 88vw; }
    .td-drawer-title { font-size: 14px; }
}
@media (min-width: 768px) {
    .td-drawer { width: 340px; }
}

/* ============================================================
   20) TOAST NOTIFICATION
============================================================ */
.td-toast-box {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 420px;
}

.td-toast {
    background: #1a2b45;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    pointer-events: auto;
}

.td-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.td-toast-success { background: #22a06b; }
.td-toast-error   { background: #d94a4a; }
.td-toast-warning { background: #e0a92b; color: #3d2e05; }
.td-toast-info    { background: #0b5cab; }

/* ============================================================
   21) CONFIRM DIALOG
============================================================ */
body.td-modal-open { overflow: hidden; }

.td-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 70, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.td-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.td-confirm-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    max-width: 400px;
    width: 100%;
    transform: translateY(-6px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.td-confirm-overlay.show .td-confirm-box {
    transform: translateY(0) scale(1);
}

.td-confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a2b45;
    margin: 0 0 8px;
    text-align: center;
}

.td-confirm-msg {
    font-size: 14.5px;
    color: #4a6483;
    text-align: center;
    line-height: 1.55;
    margin: 0 0 18px;
}

.td-confirm-actions {
    display: flex;
    gap: 10px;
}

.td-confirm-btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    font-family: inherit;
}

.td-confirm-cancel {
    background: #eef6fd;
    color: #0b5cab;
    border: 1px solid #cbe3f6;
}
.td-confirm-cancel:hover {
    background: #d7ebfa;
}

.td-confirm-ok {
    background: #22a06b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 160, 107, 0.25);
}
.td-confirm-ok:hover {
    background: #18875a;
}

.td-confirm-danger {
    background: #d94a4a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(217, 74, 74, 0.25);
}
.td-confirm-danger:hover {
    background: #b83b3b;
}

/* ============================================================
   22) Home Page (Hero + Section Title)
============================================================ */

.td-hero-home {
    padding: 24px 18px;
    margin-bottom: 24px;
    border-radius: var(--td-radius);
}

.td-hero-home .td-hero-title {
    font-size: 24px;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}

.td-hero-home .td-hero-sub {
    font-size: 14.5px;
    color: #4a6483;
}

.td-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--td-navy);
    margin: 0 0 4px;
    padding-left: 12px;
    border-left: 4px solid var(--td-sky-top);
    line-height: 1.3;
}

.td-section-sub {
    font-size: 13px;
    color: #6a7c92;
    margin: 0 0 16px;
    padding-left: 16px;
}

@media (min-width: 600px) {
    .td-hero-home { padding: 30px 24px; margin-bottom: 30px; }
    .td-hero-home .td-hero-title { font-size: 28px; }
    .td-hero-home .td-hero-sub { font-size: 15.5px; }
    .td-section-title { font-size: 19px; }
    .td-section-sub { font-size: 13.5px; }
}

/* ============================================================
   23) Exam Page
============================================================ */

.td-back-wrap {
    margin-bottom: 12px;
}

.td-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #0b5cab;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.td-back-link:hover {
    background: #eef6fd;
    color: #084a8a;
}

.td-back-arrow {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}

/* Exam Hero */
.td-exam-hero {
    padding: 22px 18px;
    margin-bottom: 18px;
    text-align: center;
}

.td-exam-hero-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 6px;
}

.td-exam-hero .td-hero-title {
    font-size: 20px;
    margin: 0 0 6px;
    color: #0b4a85;
}

.td-exam-hero .td-hero-sub {
    font-size: 13.5px;
    color: #4a6483;
    line-height: 1.5;
    margin: 0;
}

/* Action Buttons (Mock Test / Subject Mock Test) */
.td-exam-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.td-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--td-radius);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    width: 100%;
}

.td-action-primary {
    background: linear-gradient(135deg, #22a06b 0%, #1c8c5d 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(34, 160, 107, 0.28);
}
.td-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(34, 160, 107, 0.35);
}

.td-action-secondary {
    background: #ffffff;
    color: #0b5cab;
    border-color: #cbe3f6;
    box-shadow: var(--td-shadow);
}
.td-action-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--td-shadow-lg);
    background: #f7fbff;
}

.td-action-ico {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.td-action-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.td-action-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.td-action-sub {
    font-size: 12.5px;
    opacity: 0.9;
    line-height: 1.2;
}

/* Test Cards List */
.td-test-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.td-test-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--td-border);
    border-radius: var(--td-radius);
    padding: 16px;
    box-shadow: var(--td-shadow);
    color: var(--td-navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.td-test-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--td-shadow-lg);
    border-color: #b6d8f0;
    color: var(--td-navy);
}

.td-test-card-head {
    margin-bottom: 8px;
}

.td-test-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #0b5cab;
    background: #eaf4fd;
    padding: 3px 10px;
    border-radius: 20px;
}

.td-test-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--td-navy);
    margin: 0 0 10px;
    line-height: 1.35;
}

.td-test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #4a6483;
}

.td-test-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.td-test-meta-ico {
    font-size: 14px;
}

.td-test-card-btn {
    display: block;
    text-align: center;
    background: #22a06b;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 16px;
    border-radius: var(--td-radius-sm);
    transition: background 0.15s ease;
}

.td-test-card:hover .td-test-card-btn {
    background: #18875a;
}

/* Responsive */
@media (min-width: 600px) {
    .td-exam-actions {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .td-exam-hero-icon { font-size: 48px; }
    .td-exam-hero .td-hero-title { font-size: 24px; }
    .td-test-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .td-test-list { grid-template-columns: repeat(3, 1fr); }
}






/* ============================================================
   24) ADMIN LAYOUT — Sidebar + Top Bar
============================================================ */

/* Top bar में burger (मोबाइल) */
.admin-burger {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease;
}
.admin-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}
.admin-burger:hover { background: rgba(255, 255, 255, 0.22); }

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    width: 250px;
    height: calc(100vh - 58px);
    background: #ffffff;
    border-right: 1px solid #dbe9f4;
    overflow-y: auto;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.05);
}
.admin-sidebar.open { transform: translateX(0); }

.admin-sidebar-nav {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 9px;
    color: #33475f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.admin-sidebar-link:hover {
    background: #eef6fd;
    color: #0b5cab;
    transform: translateX(2px);
}
.admin-sidebar-link.active {
    background: linear-gradient(90deg, #e6f3fd 0%, #f2f9ff 100%);
    color: #0b5cab;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #4aa3e0;
}
.admin-sidebar-ico {
    width: 24px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}
.admin-sidebar-sep {
    height: 1px;
    background: #e3eefa;
    margin: 8px 6px;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 70, 0.42);
    z-index: 39;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.admin-sidebar-overlay.show { opacity: 1; visibility: visible; }
body.admin-sidebar-open { overflow: hidden; }

/* Main — desktop पर sidebar के बाद की जगह */
.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 16px 40px;
    transition: margin-left 0.25s ease;
}

/* Page Head (heading + button) */
.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.admin-page-head .admin-page-title { margin: 0; }
.admin-page-head .admin-page-sub { margin: 2px 0 0; }

/* Table */
.admin-table-wrap {
    background: #ffffff;
    border: 1px solid #dbe9f4;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(20, 80, 140, 0.05);
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 720px;
}
.admin-table thead th {
    background: #f5faff;
    color: #33475f;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid #e3eefa;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid #f0f6fb;
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafdff; }

.admin-cell-ico { font-size: 22px; text-align: center; }
.admin-cell-title { font-weight: 600; color: #1a2b45; line-height: 1.3; }
.admin-cell-sub { font-size: 12.5px; color: #5a7a95; margin-top: 1px; }
.admin-cell-slug { font-size: 11.5px; color: #90a6bd; margin-top: 2px; font-family: monospace; }

/* Badge */
.admin-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.admin-badge-green { background: #e7f8f0; color: #16784f; }
.admin-badge-gray  { background: #eef2f7; color: #5a7a95; }
.admin-badge-red   { background: #fdecec; color: #b83b3b; }
.admin-badge-amber { background: #fff7e3; color: #8a6a10; }

/* Row actions */
.admin-row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.admin-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef6fd;
    border: none;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.admin-btn-icon:hover { background: #d7ebfa; transform: translateY(-1px); }
.admin-btn-icon-danger { background: #fdecec; }
.admin-btn-icon-danger:hover { background: #f9d5d5; }

/* Empty */
.admin-empty {
    padding: 40px 20px;
    text-align: center;
    color: #7a8fa6;
    background: #ffffff;
    border: 1px dashed #cbe3f6;
    border-radius: 12px;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
    .admin-burger { display: flex; }
    .admin-topbar-title { font-size: 15px; }
    .admin-topbar-user {
        display: none;
    }
}

@media (min-width: 900px) {
    .admin-sidebar {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 250px;
        padding: 30px 26px 50px;
    }
    .admin-burger { display: none; }
}

/* ============================================================
   31) TEST INTRO + Registration Notice
============================================================ */

.td-intro-hero {
    padding: 20px 16px;
    margin-bottom: 18px;
}

.td-intro-hero .td-exam-hero-icon {
    font-size: 40px;
    margin-bottom: 6px;
}

.td-intro-hero .td-hero-title {
    font-size: 20px;
    color: #0b4a85;
    margin: 0 0 4px;
}

.td-intro-hero .td-hero-sub {
    font-size: 13.5px;
    color: #4a6483;
    margin: 0;
}

/* Registration Notice */
.td-reg-notice {
    background: linear-gradient(135deg, #fff7e3 0%, #ffe9c7 100%);
    border: 1.5px solid #f5d49a;
    border-radius: var(--td-radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(224, 169, 43, 0.18);
}

.td-reg-notice-title {
    font-size: 15px;
    font-weight: 700;
    color: #8a6a10;
    margin-bottom: 6px;
}

.td-reg-notice-msg {
    font-size: 14px;
    color: #6b5316;
    line-height: 1.55;
    margin-bottom: 14px;
}

.td-reg-notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.td-reg-notice-actions .td-btn {
    flex: 1;
    min-width: 120px;
}

/* Intro Actions */
.td-intro-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

/* ============================================================
   Drawer — Account Section (Register / Login / Dashboard)
============================================================ */

.td-drawer-account {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e3eefa;
}

.td-drawer-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #eef6fd;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0b4a85;
}
.td-drawer-user-ico { font-size: 16px; }
.td-drawer-user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-drawer-account-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.td-drawer-acc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.15s ease, background 0.15s ease;
    line-height: 1.25;
}
.td-drawer-acc-btn:hover { transform: translateY(-1px); }

.td-drawer-acc-reg {
    background: linear-gradient(135deg, #22a06b 0%, #1c8c5d 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(34, 160, 107, 0.28);
}
.td-drawer-acc-reg:hover { color: #ffffff; }

.td-drawer-acc-login {
    background: #eef6fd;
    color: #0b5cab;
    border: 1.5px solid #cbe3f6;
}
.td-drawer-acc-login:hover { background: #d7ebfa; color: #084a8a; }

.td-drawer-acc-dash {
    background: #eef6fd;
    color: #0b5cab;
    border: 1.5px solid #cbe3f6;
}
.td-drawer-acc-dash:hover { background: #d7ebfa; color: #084a8a; }

.td-drawer-acc-logout {
    background: #fdecec;
    color: #b83b3b;
    border: 1.5px solid #f5c7c7;
}
.td-drawer-acc-logout:hover { background: #f9d5d5; color: #8e2e2e; }

/* ============================================================
   32) My Tests Button (Home) + Section Title Centered
============================================================ */

/* My Tests — छोटा, सुंदर बटन (बाकी cards जैसा ही look) */
.td-mytests-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0b5cab;
    border: 1px solid var(--td-border);
    border-radius: 10px;
    padding: 10px 18px;
    margin: 0 auto 26px;
    text-decoration: none;
    box-shadow: var(--td-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    width: auto;
    max-width: 100%;
    font-family: inherit;
}

.td-mytests-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--td-shadow-lg);
    border-color: #b6d8f0;
    background: #f7fbff;
    color: #0b5cab;
}

.td-mytests-card:active {
    transform: translateY(0);
}

.td-mytests-ico {
    font-size: 18px;
    line-height: 1;
}

.td-mytests-info { display: block; }

.td-mytests-title {
    font-size: 15px;
    font-weight: 600;
    color: #0b5cab;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* description और arrow छिपाएँ */
.td-mytests-sub,
.td-mytests-arrow {
    display: none;
}

/* Wrapper — बटन को बीच में लाने के लिए */
.td-mytests-wrap {
    text-align: center;
    margin-bottom: 8px;
}

/* Section Title — केंद्र में और आकर्षक */
.td-section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #0b4a85;
    margin: 0 auto 6px;
    padding: 0;
    border: none;
    line-height: 1.3;
    letter-spacing: 0.2px;
    display: block;
}

.td-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4aa3e0, #7cc6f0);
    border-radius: 3px;
    margin: 8px auto 0;
}

.td-section-sub {
    text-align: center;
    font-size: 13.5px;
    color: #5a7a95;
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.5;
}

@media (min-width: 600px) {
    .td-section-title { font-size: 23px; }
    .td-section-sub   { font-size: 14.5px; }
    .td-mytests-title { font-size: 16px; }
    .td-mytests-ico   { font-size: 20px; }
    .td-mytests-card  { padding: 11px 22px; }
}

/* ============================================================
   Logo — Home tooltip (hover पर 🏠 होम दिखेगा)
============================================================ */

.td-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Tooltip — शुरू में छिपा हुआ */
.td-logo-tip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1a2b45;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
    margin-top: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.2px;
}

/* Tooltip का छोटा-सा तीर */
.td-logo-tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #1a2b45;
}

/* Hover पर tooltip दिखे */
.td-logo-wrap:hover .td-logo-tip,
.td-logo-wrap:focus .td-logo-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Logo पर hover — थोड़ा बड़ा */
.td-logo-wrap:hover .td-logo-img {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Active state (जब click दबा हो) */
.td-logo-wrap:active .td-logo-img {
    transform: scale(0.95);
}
