@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Mapped Brand Palette - Dark 3D EdTech */
    --color-rankhub-red: #E50914;
    --color-rankhub-red-hover: #B20710;
    --color-rankhub-red-light: #FFF1F2;
    --color-rankhub-red-border: #E50914;
    --color-rankhub-red-text: #E50914;

  /* Background & Surface */
  --color-background: #080808;
  --color-surface: #111111;
  --color-surface-hover: #171717;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b3b3b3;
  --color-text-muted: #777777;
  --color-text-inverse: #000000;

  /* Borders & Dividers */
  --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(229, 9, 20, 0.4);

  /* Status Colors (Kept from old, refined for dark) */
  --color-success: #22c55e;
  --color-warning: #f59e0b;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.7), 0 4px 6px -4px rgb(0 0 0 / 0.7);

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#layout-container:not(.exam-page) {
    min-height: 0;
}

#layout-container:empty:not(.exam-page)::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 45%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: rankhub-layout-shimmer 1.2s ease-in-out infinite;
}

@keyframes rankhub-layout-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.current-affairs-toolbar,
.current-affairs-summary,
.admin-ca-page {
    width: min(100% - 2rem, 1100px);
    margin: 1.25rem auto 0;
}

.current-affairs-toolbar,
.current-affairs-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.current-affairs-toolbar label,
.admin-ca-form label {
    display: grid;
    gap: .4rem;
    color: var(--color-text-secondary);
    font-size: .8rem;
    font-weight: 700;
}

.current-affairs-toolbar select,
.current-affairs-toolbar input,
.admin-ca-form input,
.admin-ca-form textarea,
.admin-ca-form select {
    min-height: 2.4rem;
    padding: .55rem .7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-background);
    color: var(--color-text-primary);
}

.current-affairs-date-controls { display: flex; align-items: end; gap: .75rem; }
.current-affairs-summary { align-items: center; margin-top: 1rem; }
.current-affairs-summary h2 { margin-top: .3rem; }
.current-affairs-summary strong { color: var(--color-rankhub-red); white-space: nowrap; }
.current-affairs-loading,
.current-affairs-error { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--color-text-secondary); }
.current-affairs-error button { color: var(--color-rankhub-red); text-decoration: underline; }
.current-affairs-question { padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.current-affairs-question-top { display: flex; justify-content: space-between; color: var(--color-rankhub-red); font-weight: 800; }
.current-affairs-question-top small { color: var(--color-text-muted); font-weight: 500; }
.current-affairs-question h3 { margin: 1rem 0; line-height: 1.45; }
.current-affairs-options { display: grid; gap: .6rem; }
.current-affairs-options label { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; }
.current-affairs-options label:has(input:checked) { border-color: var(--color-rankhub-red); background: var(--color-rankhub-red-light); color: var(--color-text-inverse); }
.ca-submit, .admin-ca-actions button, .admin-ca-form button { margin-top: 1rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--color-rankhub-red); color: white; font-weight: 700; }
.ca-explanation { margin-top: 1rem; padding: .8rem; border-radius: var(--radius-sm); background: rgba(34, 197, 94, .15); }
.ca-explanation.incorrect { background: rgba(245, 158, 11, .15); }
.admin-ca-page { padding: 2rem 0 4rem; }
.admin-ca-header { padding: 2rem; border-bottom: 1px solid var(--color-border); }
.admin-ca-actions { display: flex; gap: .75rem; margin: 1.5rem 0; }
.admin-ca-actions .secondary, .admin-ca-form .secondary { background: transparent; border: 1px solid var(--color-border); }
.admin-ca-message { min-height: 1.5rem; margin-top: 1rem; }
.admin-ca-message.error { color: #f87171; }
.admin-ca-message.success { color: var(--color-success); }
.admin-ca-form { display: grid; gap: 1rem; padding: 1.25rem; margin-bottom: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.admin-ca-form textarea { min-height: 5rem; resize: vertical; }
.admin-ca-list { display: grid; gap: .75rem; margin-top: 1rem; }
.admin-ca-list article { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--color-border); }
.admin-ca-list small { color: var(--color-text-muted); }
.admin-ca-list button { margin-left: .5rem; color: var(--color-rankhub-red); }

@media (max-width: 640px) {
    .current-affairs-toolbar, .current-affairs-date-controls, .current-affairs-summary { align-items: stretch; flex-direction: column; }
    .current-affairs-toolbar select, .current-affairs-toolbar input { width: 100%; }
    .admin-ca-list article { align-items: flex-start; flex-direction: column; }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

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

ul,
ol {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-8);
  }
}




/* =========================================================
   MASTER EXAM CARD
   Shared by Home and Exams listings.
   ========================================================= */

.rankhub-light-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rankhub-light-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rankhub-light-card .card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rankhub-light-card .exam-save-button {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #e4e6eb;
    border-radius: 9px;
    background: #ffffff;
    color: #8b95a5;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rankhub-light-card .exam-save-button:hover {
    border-color: var(--exam-brand-color, #e50914);
    background: var(--exam-brand-soft, rgba(229, 9, 20, 0.08));
    color: var(--exam-brand-color, #e50914);
    transform: translateY(-1px);
}

.rankhub-light-card .exam-save-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.rankhub-light-card .exam-save-button.is-saved {
    border-color: var(--exam-brand-color, #e50914);
    background: var(--exam-brand-soft, rgba(229, 9, 20, 0.08));
    color: var(--exam-brand-color, #e50914);
}

.rankhub-light-card .exam-save-button.is-saved svg {
    fill: currentColor;
}

.rankhub-light-card .exam-save-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.rankhub-light-card .card-badge {
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rankhub-light-card .card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #27ae60;
    font-size: 0.8rem;
    font-weight: 500;
}

.rankhub-light-card .card-status::before {
    width: 6px;
    height: 6px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #27ae60;
    content: "";
}

.rankhub-light-card .card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rankhub-light-card .exam-logo-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: var(--exam-brand-soft, rgba(229, 9, 20, 0.08));
}

.rankhub-light-card .exam-logo-box svg {
    width: 24px;
    height: 24px;
    fill: #e50914;
}

.rankhub-light-card .exam-logo-box img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.rankhub-light-card .card-title {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rankhub-light-card .card-desc {
    margin: 0 0 20px;
    color: #65676b;
    font-size: 0.9rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rankhub-light-card .progress-wrapper {
    margin-bottom: 20px;
}

.rankhub-light-card .progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #65676b;
    font-size: 0.85rem;
    font-weight: 500;
}

.rankhub-light-card .progress-bar-bg {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background-color: #e4e6eb;
}

.rankhub-light-card .progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background-color: var(--exam-brand-color, #e50914);
}

.rankhub-light-card .card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background-color: var(--exam-brand-color, #e50914);
    color: var(--exam-brand-text, #ffffff);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.rankhub-light-card .card-btn:hover {
    background-color: var(--exam-brand-hover, #cc0812);
}

.rankhub-light-card .card-btn:active {
    transform: scale(0.98);
}




/* =========================================================
   CANONICAL UI COMPONENTS
   ========================================================= */

.rh-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rh-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-rankhub-red);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: opacity 0.2s;
}

.rh-btn-primary:hover {
  opacity: 0.9;
}

.rh-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
}

/* =========================================================
   RANKHUB — GLOBAL HEADER
   ========================================================= */

.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;

  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);

  box-shadow: var(--shadow-sm);
}


/* =========================================================
   HEADER LEFT
   ========================================================= */

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.premium-menu-btn {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: var(--color-text-primary);
  background: transparent;

  border: 1px solid transparent;
  border-radius: var(--radius-md);

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.premium-menu-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
}

.premium-menu-btn:active {
  transform: scale(0.94);
}

.premium-menu-btn:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.18);
  outline-offset: 2px;
}


/* =========================================================
   RANKHUB LOGO
   ========================================================= */

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--color-text-primary);

  white-space: nowrap;

  user-select: none;
}

.brand-logo-icon {
  color: var(--color-rankhub-red);
  flex-shrink: 0;
}

.brand-logo-text {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.logo-accent {
  color: var(--color-rankhub-red);
}


/* =========================================================
   HEADER RIGHT
   ========================================================= */

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =========================================================
   HEADER ACTION BUTTONS
   ========================================================= */

.header-action-btn {
  position: relative;

  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-secondary);
  background: transparent;

  border: 1px solid transparent;
  border-radius: var(--radius-md);

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.header-action-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  border-color: var(--color-border);
}

.header-action-btn:active {
  transform: scale(0.94);
}

.header-action-btn:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.18);
  outline-offset: 2px;
}


/* =========================================================
   NOTIFICATION DOT
   ========================================================= */

.header-notif-dot {
  position: absolute;

  top: 8px;
  right: 8px;

  width: 7px;
  height: 7px;

  background: var(--color-rankhub-red);

  border: 2px solid var(--color-surface);
  border-radius: var(--radius-full);
}

/* Existing bell badge and popup. The bell button itself keeps its current design. */
.header-notif-btn {
    z-index: 20;
}

.rh-notification-badge {
    top: 2px;
    right: 1px;
    width: auto;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-surface);
    border-radius: var(--radius-full);
    background: var(--color-rankhub-red);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.rh-notification-popup {
    position: absolute;
    z-index: 2100;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-primary);
}

.rh-notification-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.rh-notification-popup-header strong {
    font-size: 15px;
}

.rh-notification-popup-header span {
    color: var(--color-text-muted);
    font-size: 11px;
}

.rh-notification-popup-list {
    max-height: 360px;
    overflow-y: auto;
}

.rh-notification-item {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.rh-notification-item:hover,
.rh-notification-item:focus-visible {
    background: var(--color-surface-hover);
    outline: none;
}

.rh-notification-item.is-unread {
    border-left: 3px solid var(--color-rankhub-red);
    padding-left: 13px;
}

.rh-notification-item-title {
    overflow: hidden;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rh-notification-item-message {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rh-notification-item-meta {
    color: var(--color-text-muted);
    font-size: 10px;
    text-transform: capitalize;
}

.rh-notification-empty {
    padding: 24px 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 600px) {
    .rh-notification-popup {
        position: fixed;
        top: 60px !important;
        right: 12px !important;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .rh-notification-popup-list {
        max-height: min(55vh, 360px);
    }
}


/* =========================================================
   PROFILE AVATAR
   ========================================================= */

.header-profile-avatar {
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 4px;

  overflow: hidden;

  background: var(--color-navy);
  color: var(--color-text-inverse);

  border: 2px solid var(--color-surface);
  border-radius: var(--radius-full);

  box-shadow: 0 0 0 1px var(--color-border);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.header-profile-avatar:hover {
  transform: translateY(-1px);

  box-shadow:
    0 0 0 1px var(--color-border),
    0 4px 10px rgb(15 23 42 / 0.12);
}

.header-profile-avatar:active {
  transform: scale(0.94);
}

.header-profile-avatar:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.18);
  outline-offset: 2px;
}

.profile-initial {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) {
  .global-header {
    height: 68px;
    padding: 0 24px;
  }

  .header-left {
    gap: 14px;
  }

  .header-right {
    gap: 8px;
  }

  .brand-logo-text {
    font-size: 1.12rem;
  }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1024px) {
  .global-header {
    padding: 0 32px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
  .global-header {
    height: 60px;
    padding: 0 12px;
  }

  .header-left {
    gap: 8px;
  }

  .header-right {
    gap: 2px;
  }

  .premium-menu-btn,
  .header-action-btn {
    width: 38px;
    height: 38px;
  }

  .header-profile-avatar {
    width: 36px;
    height: 36px;
  }

  .brand-logo-text {
    font-size: 1rem;
  }

  .brand-logo-icon {
    width: 20px;
    height: 20px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .premium-menu-btn,
  .header-action-btn,
  .header-profile-avatar {
    transition: none;
  }
}


/* =========================================================
   CBT MOBILE DRAWER
   ========================================================= */

@media (max-width: 768px) {

    .cbt-mobile-drawer {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;

        width: min(310px, 88vw);
        height: 100dvh;
        min-height: 100dvh;

        display: flex;
        flex-direction: column;

        padding:
            env(safe-area-inset-top)
            14px
            env(safe-area-inset-bottom);

        border-radius: 18px 0 0 18px;

        transform: translateX(105%);
        visibility: hidden;

        box-shadow: -16px 0 42px rgba(15, 23, 42, 0.2);

        transition:
            transform 0.28s cubic-bezier(.22, .61, .36, 1),
            visibility 0.28s ease;
    }


    .cbt-mobile-drawer.active {
        transform: translateX(0);
        visibility: visible;
    }


    .cbt-mobile-drawer-header {
        min-height: 52px;
        flex: 0 0 52px;

        padding: 0 2px 0 8px;
    }


    .cbt-mobile-drawer-header strong {
        font-size: 15px;
        color: #17191c;
    }


    .cbt-mobile-submit {
        flex: 0 0 auto;
        padding: 14px 8px;
        border-bottom: 1px solid #e8eaed;
    }


    .cbt-mobile-submit button,
    .cbt-mobile-exit button {
        width: 100%;
        min-height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        border: 0;
        border-radius: 8px;

        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        cursor: pointer;
    }


    .cbt-mobile-submit button {
        background: #d7192b;
        color: #ffffff;
        box-shadow: 0 5px 14px rgba(215, 25, 43, 0.16);
    }


    .cbt-mobile-submit button:active,
    .cbt-mobile-exit button:active {
        transform: scale(0.98);
    }


    .cbt-mobile-palette-area {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 14px 8px 18px;
    }


    .cbt-mobile-palette-total {
        display: block;
        margin-bottom: 10px;

        color: #737b86;
        font-size: 10px;
        font-weight: 700;
        text-align: right;
    }


    .cbt-mobile-palette-area .mobile-question-palette {
        width: 100%;
        min-width: 0;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;

        padding: 0;
        overflow: visible;
        box-sizing: border-box;
    }


    .cbt-mobile-palette-area .mobile-question-palette .palette-btn,
    .cbt-mobile-palette-area .mobile-question-palette .palette-number {
        width: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        border-radius: 7px;
    }


    .cbt-mobile-palette-area .mobile-question-palette .palette-btn:hover,
    .cbt-mobile-palette-area .mobile-question-palette .palette-number:hover {
        transform: none !important;
        box-shadow: none !important;
    }


    .cbt-mobile-palette-area .mobile-question-palette
    .palette-btn.answered:hover,
    .cbt-mobile-palette-area .mobile-question-palette
    .palette-number.answered:hover {
        background: #1f9d63 !important;
        color: #ffffff !important;
    }


    .cbt-mobile-palette-area .mobile-question-palette
    .palette-btn.review:hover,
    .cbt-mobile-palette-area .mobile-question-palette
    .palette-number.review:hover {
        background: #fbbf24 !important;
        color: #713f12 !important;
    }


    .cbt-mobile-palette-area .mobile-question-palette
    .palette-btn.not-answered:hover,
    .cbt-mobile-palette-area .mobile-question-palette
    .palette-number.not-answered:hover {
        background: #fee2e2 !important;
        color: #991b1b !important;
    }


    .cbt-mobile-palette-area .mobile-question-palette
    .palette-btn.not-visited:hover,
    .cbt-mobile-palette-area .mobile-question-palette
    .palette-number.not-visited:hover {
        background: #e5e7eb !important;
        color: #374151 !important;
    }


    .cbt-mobile-palette-area .mobile-question-palette
    .palette-btn.current:hover,
    .cbt-mobile-palette-area .mobile-question-palette
    .palette-number.current:hover {
        background: #2563eb !important;
        color: #ffffff !important;
    }


    .cbt-mobile-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 12px;

        margin-top: 20px;
        padding-top: 14px;
        border-top: 1px solid #e8eaed;
    }


    .cbt-mobile-legend span {
        min-width: 0;

        display: flex;
        align-items: center;
        gap: 6px;

        color: #69717c;
        font-size: 9px;
        font-weight: 650;
        white-space: nowrap;
    }


    .cbt-mobile-legend .legend-dot {
        width: 9px;
        height: 9px;
        flex: 0 0 9px;
    }


    .cbt-mobile-exit {
        flex: 0 0 auto;
        margin-top: auto;
        padding: 14px 8px 8px;
        border-top: 1px solid #e8eaed;
    }


    .cbt-mobile-exit button {
        background: #ffffff;
        border: 1px solid #d7192b;
        color: #c81729;
    }

}


@media (min-width: 769px) {

    .cbt-mobile-drawer,
    .mobile-palette-overlay {
        display: none !important;
    }

}

/* =========================================================
   GLOBAL CARD DESIGN SYSTEM
   Master reference: Current Affairs question cards
   ========================================================= */
:root {
    --rh-card-surface: #ffffff;
    --rh-card-border: rgba(0, 0, 0, 0.07);
    --rh-card-radius: 16px;
    --rh-card-padding: 22px;
    --rh-card-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    --rh-card-title-size: 17px;
    --rh-card-muted: #777777;
}

.rh-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: var(--rh-card-padding);
    border: 1px solid var(--rh-card-border);
    border-radius: var(--rh-card-radius);
    background: var(--rh-card-surface);
    box-shadow: var(--rh-card-shadow);
    color: #222222;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rh-card:hover,
.rh-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   GLOBAL PAGE TITLE BANNER
   Master reference: Support / Current Affairs header
   ========================================================= */
:root {
    --rh-banner-bg: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(255, 255, 255, 0.96));
    --rh-banner-border: rgba(220, 38, 38, 0.12);
    --rh-banner-radius: 20px;
    --rh-banner-padding: 34px;
    --rh-banner-primary: #dc2626;
}

.rh-page-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 24px;
    padding: var(--rh-banner-padding);
    border: 1px solid var(--rh-banner-border);
    border-radius: var(--rh-banner-radius);
    background: var(--rh-banner-bg);
}

.rh-page-banner::before {
    position: absolute;
    z-index: 0;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--rh-banner-primary);
}

.rh-page-banner::after {
    position: absolute;
    z-index: -1;
    content: "";
    top: -60px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    pointer-events: none;
}

.rh-page-banner-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.rh-page-banner > * {
    position: relative;
    z-index: 1;
}

.rh-page-banner .pyq-label,
.rh-page-banner .current-affairs-label,
.rh-page-banner .test-series-label,
.rh-page-banner .exam-information-label,
.rh-page-banner .page-eyebrow,
.rh-page-banner .header-label,
.rh-page-banner .result-badge,
.rh-page-banner .privacy-eyebrow,
.rh-page-banner .account-eyebrow,
.rh-page-banner .about-eyebrow,
.rh-page-banner .contact-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--rh-banner-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rh-page-banner h1,
.rh-page-banner .page-title {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #222;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.rh-page-banner p,
.rh-page-banner .page-description {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .rh-page-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 16px;

    .rankhub-page-banner {
        flex-direction: row;
    }

    .rankhub-page-banner .rh-page-banner-content,
    .rankhub-page-banner .pyq-header-content,
    .rankhub-page-banner .page-header-content,
    .rankhub-page-banner .header-content,
    .rankhub-page-banner .test-series-header-content,
    .rankhub-page-banner .exam-information-header-content {
        flex: 1 1 auto;
    }
    }

    .rh-page-banner h1,
    .rh-page-banner .page-title {
        font-size: 30px;
    }
}

/* Final layout authority: normal page content uses equal horizontal gutters. */
.rh-page-container,
.page-container,
.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page,
.contact-container,
.about-page > .about-top {
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-container,
.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page {
    padding-left: 0;
    padding-right: 0;
}

.current-affairs-page > .current-affairs-toolbar,
.current-affairs-page > .current-affairs-summary,
.current-affairs-page > .current-affairs-grid,
.current-affairs-page > .current-affairs-empty {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.rh-page-container > *,
.page-container > *,
.pyq-page > *,
.pyq-paper-page > *,
.mock-tests-page > *,
.test-series-page > *,
.subject-practice-page > *,
.exam-detail-page > *,
.exam-information-page > *,
.performance-page > *,
.current-affairs-page > *,
.contact-container > *,
.about-page > .about-top > * {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: calc(100% - 32px);
    }
}

/* =========================================================
   FIXED GLOBAL HEADER
   Preserve the existing 64px header design while removing it
   from document flow safely on every layout page.
   ========================================================= */
:root {
    --rh-global-header-height: 64px;
}

body:has(.global-header) {
    padding-top: var(--rh-global-header-height);
}

.global-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3000;
    height: var(--rh-global-header-height);
}

.app-sidebar {
    z-index: 3100;
}

@media (max-width: 600px) {
    :root {
        --rh-global-header-height: 64px;
    }
}

/* Final cascade for equal left/right page spacing. */
.rh-page-container,
.page-container,
.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page,
.contact-container,
.about-page > .about-top {
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   COMMON PAGE LAYOUT — CONTACT SPACING REFERENCE
   ========================================================= */

.home-page > .container,
.about-page,
.about-page > .about-top,
.page-container,
.pyq-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.performance-container,
.current-affairs-page,
.privacy-page,
.terms-page,
.account-page,
.contact-container {
    width: min(1120px, calc(100% - 40px));
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body .home-page > .container,
body .about-page,
body .about-page > .about-top,
body .page-container,
body .pyq-page,
body .mock-tests-page,
body .test-series-page,
body .subject-practice-page,
body .exam-detail-page,
body .exam-information-page,
body .performance-page,
body .performance-container,
body .current-affairs-page,
body .privacy-page,
body .terms-page,
body .account-page,
body .contact-container {
    width: min(1120px, calc(100% - 40px));
    max-width: 1120px;
}

body .home-page > .container,
body .about-page,
body .about-page > .about-top,
body .page-container,
body .pyq-page,
body .mock-tests-page,
body .test-series-page,
body .subject-practice-page,
body .exam-detail-page,
body .exam-information-page,
body .performance-page,
body .performance-container,
body .current-affairs-page,
body .privacy-page,
body .terms-page,
body .account-page {
    width: min(1320px, calc(100% - 32px));
    max-width: 1320px;
}

.home-page > .container,
.about-page > .about-top,
.page-container,
.pyq-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page,
.privacy-page,
.terms-page,
.account-page,
.contact-container {
    margin-top: 0;
}

@media (max-width: 650px) {
    .home-page > .container,
    .about-page,
    .about-page > .about-top,
    .page-container,
    .pyq-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .performance-container,
    .current-affairs-page,
    .privacy-page,
    .terms-page,
    .account-page,
    .contact-container {
        width: calc(100% - 24px);
        max-width: 1120px;
    }

    body .home-page > .container,
    body .about-page,
    body .about-page > .about-top,
    body .page-container,
    body .pyq-page,
    body .mock-tests-page,
    body .test-series-page,
    body .subject-practice-page,
    body .exam-detail-page,
    body .exam-information-page,
    body .performance-page,
    body .performance-container,
    body .current-affairs-page,
    body .privacy-page,
    body .terms-page,
    body .account-page,
    body .contact-container {
        width: calc(100% - 24px);
        max-width: 1120px;
    }

    body .home-page > .container,
    body .about-page,
    body .about-page > .about-top,
    body .page-container,
    body .pyq-page,
    body .mock-tests-page,
    body .test-series-page,
    body .subject-practice-page,
    body .exam-detail-page,
    body .exam-information-page,
    body .performance-page,
    body .performance-container,
    body .current-affairs-page,
    body .privacy-page,
    body .terms-page,
    body .account-page {
        width: calc(100% - 24px);
        max-width: 1320px;
    }
}

/* =========================================================
   ALL PAGE TITLE BANNERS — CONTACT PROPORTIONS
   Contact remains the visual reference and is excluded.
   ========================================================= */

.rankhub-page-banner:not(.contact-hero) {
    box-sizing: border-box;
    height: auto;
    min-height: 160px;
    max-height: none;
    padding: 24px 34px;
    overflow: visible;
}

/* Shared Contact banner treatment for every normal page title banner. */
.rankhub-page-banner.contact-hero,
.terms-hero.contact-hero {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 58px 45px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 70%, #fff5f5 100%);
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.rankhub-page-banner.contact-hero::before,
.terms-hero.contact-hero::before {
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    height: auto;
    background: linear-gradient(180deg, #dc2626, #ef4444);
}

.rankhub-page-banner.contact-hero::after,
.terms-hero.contact-hero::after {
    top: -190px;
    right: -180px;
    width: 340px;
    height: 340px;
    background: rgba(220, 38, 38, 0.045);
}

.rankhub-page-banner.contact-hero h1,
.terms-hero.contact-hero h1,
.rankhub-page-banner.contact-hero .page-title,
.terms-hero.contact-hero .terms-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rankhub-page-banner.contact-hero p,
.terms-hero.contact-hero .terms-subtitle {
    max-width: 650px;
    margin: 16px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}

.rankhub-page-banner.contact-hero .pyq-label,
.rankhub-page-banner.contact-hero .current-affairs-label,
.rankhub-page-banner.contact-hero .test-series-label,
.rankhub-page-banner.contact-hero .exam-information-label,
.rankhub-page-banner.contact-hero .page-eyebrow,
.rankhub-page-banner.contact-hero .header-label,
.rankhub-page-banner.contact-hero .privacy-eyebrow,
.rankhub-page-banner.contact-hero .account-eyebrow,
.rankhub-page-banner.contact-hero .about-eyebrow,
.rankhub-page-banner.contact-hero .contact-eyebrow,
.terms-hero.contact-hero .terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
    padding: 0;
    color: #E50914;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    .rankhub-page-banner.contact-hero,
    .terms-hero.contact-hero {
        min-height: 120px;
        height: auto;
        padding: 20px;
        border-radius: 16px;
        gap: 20px;
    }

    .rankhub-page-banner.contact-hero h1,
    .terms-hero.contact-hero h1,
    .rankhub-page-banner.contact-hero .page-title,
    .terms-hero.contact-hero .terms-title {
        font-size: 24px;
        line-height: 1.15;
    }

    .rankhub-page-banner.contact-hero p,
    .terms-hero.contact-hero .terms-subtitle {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 420px) {
    .rankhub-page-banner.contact-hero h1,
    .terms-hero.contact-hero h1,
    .rankhub-page-banner.contact-hero .page-title,
    .terms-hero.contact-hero .terms-title {
        font-size: 28px;
    }
}

.rankhub-page-banner:not(.contact-hero) > * {
    min-width: 0;
}

.mock-tests-page .pyq-header,
.pyq-page .pyq-header,
.subject-practice-page .subject-practice-header,
.test-series-page .test-series-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-tests-page .pyq-count-box,
.pyq-page .pyq-count-box,
.subject-practice-page .subject-count-box,
.test-series-page .test-series-icon {
    position: absolute;
    top: 50%;
    right: 34px;
    align-self: auto;
    margin-top: 0;
    transform: translateY(-50%);
}

.rankhub-page-banner:not(.contact-hero) .rh-page-banner-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
}

.rankhub-page-banner:not(.contact-hero) h1,
.rankhub-page-banner:not(.contact-hero) .page-title {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rankhub-page-banner:not(.contact-hero) p,
.rankhub-page-banner:not(.contact-hero) .page-description {
    display: block;
    max-width: 720px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}

@media (max-width: 767px) {
    .rankhub-page-banner:not(.contact-hero) {
        min-height: 120px;
        height: auto;
        padding: 20px;
        border-radius: 16px;
        gap: 16px;
    }

    .rankhub-page-banner:not(.contact-hero) h1,
    .rankhub-page-banner:not(.contact-hero) .page-title {
        margin-bottom: 6px;
        font-size: 24px;
        line-height: 1.15;
    }

    .rankhub-page-banner:not(.contact-hero) p,
    .rankhub-page-banner:not(.contact-hero) .page-description {
        margin: 0;
        font-size: 13px;
        line-height: 1.4;
    }

    .rankhub-page-banner:not(.contact-hero) .pyq-count-box,
    .rankhub-page-banner:not(.contact-hero) .test-series-icon,
    .rankhub-page-banner:not(.contact-hero) .exam-information-icon {
        flex: 0 0 auto;
    }
}
@media (max-width: 1024px) {
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: calc(100% - 32px);
    }
}

/* =========================================================
   GLOBAL PAGE CONTAINER AND ALIGNMENT
   Keeps normal page content centered with equal gutters.
   ========================================================= */
:root {
    --rh-page-max-width: 1320px;
    --rh-page-gutter: 24px;
    --rh-page-section-gap: 20px;
}

.rh-page-container,
.page-container,
.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page,
.contact-container,
.about-page > .about-top,
.privacy-page,
.terms-page {
    width: min(var(--rh-page-max-width), calc(100% - (var(--rh-page-gutter) * 2)));
    max-width: var(--rh-page-max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page-container,
.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page {
    padding-left: 0;
    padding-right: 0;
}

.about-page > .about-top {
    max-width: var(--rh-page-max-width);
}

.current-affairs-page > .current-affairs-toolbar,
.current-affairs-page > .current-affairs-summary,
.current-affairs-page > .current-affairs-grid,
.current-affairs-page > .current-affairs-empty {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.rh-page-container > *,
.page-container > *,
.pyq-page > *,
.pyq-paper-page > *,
.mock-tests-page > *,
.test-series-page > *,
.subject-practice-page > *,
.exam-detail-page > *,
.exam-information-page > *,
.performance-page > *,
.current-affairs-page > * {
    min-width: 0;
    box-sizing: border-box;
}

.rh-page-container img,
.page-container img,
.pyq-page img,
.mock-tests-page img,
.subject-practice-page img,
.exam-detail-page img,
.exam-information-page img,
.performance-page img,
.current-affairs-page img,
.contact-container img,
.about-page img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    :root {
        --rh-page-gutter: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --rh-page-gutter: 16px;
    }

    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top,
    .privacy-page,
    .terms-page {
        width: calc(100% - (var(--rh-page-gutter) * 2));
    }

    .contact-page {
        padding-left: 0;
        padding-right: 0;
    }
}

.rh-card-header,
.rh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rh-card-header { margin-bottom: 14px; }
.rh-card-footer { margin-top: 16px; }
.rh-card-body { min-width: 0; }
.rh-card-title { margin: 0 0 10px; font-size: var(--rh-card-title-size); line-height: 1.55; font-weight: 700; }
.rh-card-meta { color: var(--rh-card-muted); font-size: 12px; line-height: 1.5; }
.rh-card-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: rgba(220, 38, 38, 0.08); color: var(--color-rankhub-red); font-size: 11px; font-weight: 700; }
.rh-card-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border: 1px solid var(--color-rankhub-red); border-radius: 10px; background: var(--color-rankhub-red); color: #ffffff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.rh-card-action:hover { background: var(--color-rankhub-red-hover); }
.rh-card-action:focus-visible,
.rh-card a:focus-visible,
.rh-card button:focus-visible { outline: 3px solid rgba(220, 38, 38, 0.35); outline-offset: 3px; }

/* Legacy component names retain their content-specific layout while sharing the master surface. */
.exam-card,
.rh-exam-card,
.subject-card,
.subject-practice-card,
.mock-test-card,
.test-series-card,
.test-card,
.live-test-card,
.pyq-card,
.note-card,
.information-card,
.exam-option-card,
.current-affair-card,
.current-affairs-question {
    border: 1px solid var(--rh-card-border);
    border-radius: var(--rh-card-radius);
    background: var(--rh-card-surface);
    box-shadow: var(--rh-card-shadow);
}

.exam-card:hover,
.rh-exam-card:hover,
.subject-card:hover,
.subject-practice-card:hover,
.mock-test-card:hover,
.test-series-card:hover,
.test-card:hover,
.live-test-card:hover,
.pyq-card:hover,
.note-card:hover,
.information-card:hover,
.exam-option-card:hover,
.current-affair-card:hover,
.current-affairs-question:hover {
    transform: translateY(-3px);
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.08);
}

.current-affair-card { color: inherit; }
.current-affairs-question-top { margin-bottom: 14px; }
.current-affairs-question h3 { margin: 0 0 18px; font-size: var(--rh-card-title-size); }
.current-affairs-question .current-affair-category { padding: 5px 9px; background: rgba(220, 38, 38, 0.08); color: var(--color-rankhub-red); }
.current-affairs-question .current-affair-options { gap: 9px; }
.current-affairs-question .current-affairs-options label { min-height: 42px; }

@media (max-width: 600px) {
    .rh-card { padding: 18px; }
    .rh-card:hover,
    .rh-card:focus-within,
    .exam-card:hover,
    .rh-exam-card:hover,
    .subject-card:hover,
    .subject-practice-card:hover,
    .mock-test-card:hover,
    .test-series-card:hover,
    .test-card:hover,
    .live-test-card:hover,
    .pyq-card:hover,
    .note-card:hover,
    .information-card:hover,
    .exam-option-card:hover,
    .current-affair-card:hover,
    .current-affairs-question:hover { transform: none; }
}

/* =========================================================
   RANKHUB — SIDEBAR
   ========================================================= */


/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
  position: fixed;
  inset: 0;

  z-index: 1100;

  background: rgb(15 23 42 / 0.42);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.sidebar-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   SIDEBAR DRAWER
   ========================================================= */

.app-sidebar {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 1200;

  width: min(340px, 88vw);
  height: 100vh;
  height: 100dvh;

  display: flex;
  flex-direction: column;

  background: var(--color-surface);

  border-right: 1px solid var(--color-border);

  box-shadow:
    12px 0 40px rgb(15 23 42 / 0.12);

  transform: translateX(-105%);

  visibility: hidden;

  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

.app-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
}


/* =========================================================
   SIDEBAR HEADER
   ========================================================= */

.sidebar-header {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;

  border-bottom: 1px solid var(--color-border);

  flex-shrink: 0;
}


/* Brand */

.sidebar-brand {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 11px;
}

.sidebar-brand-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: var(--color-rankhub-red);

  background: rgb(220 38 38 / 0.08);

  border: 1px solid rgb(220 38 38 / 0.12);
  border-radius: var(--radius-md);
}

.sidebar-brand-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.sidebar-brand-subtitle {
  color: var(--color-text-muted);

  font-size: 0.68rem;
  font-weight: 500;

  white-space: nowrap;
}


/* Close */

.sidebar-close-btn {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: var(--color-text-secondary);

  border: 1px solid transparent;
  border-radius: var(--radius-md);

  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.sidebar-close-btn:hover {
  color: var(--color-text-primary);

  background: var(--color-surface-hover);

  border-color: var(--color-border);
}

.sidebar-close-btn:active {
  transform: scale(0.93);
}

.sidebar-close-btn:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.18);
  outline-offset: 2px;
}


/* =========================================================
   USER CARD
   ========================================================= */

.sidebar-user-card {
  margin: 16px;

  padding: 13px;

  display: flex;
  align-items: center;

  gap: 11px;

  background:
    linear-gradient(135deg,
      rgb(248 250 252 / 1),
      rgb(241 245 249 / 0.72));

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.sidebar-user-avatar {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: var(--color-text-inverse);

  background: var(--color-navy);

  border-radius: var(--radius-full);

  font-size: 0.9rem;
  font-weight: 800;
}

.sidebar-user-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.sidebar-user-welcome {
  color: var(--color-text-muted);

  font-size: 0.7rem;
  font-weight: 600;
}

.sidebar-user-name {
  color: var(--color-text-primary);

  font-size: 0.78rem;
  font-weight: 700;

  line-height: 1.3;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   SIDEBAR BODY
   ========================================================= */

.sidebar-body {
  flex: 1;

  min-height: 0;

  overflow-y: auto;

  padding: 2px 10px 18px;

  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.sidebar-body::-webkit-scrollbar {
  width: 5px;
}

.sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}


/* =========================================================
   NAV GROUP
   ========================================================= */

.sidebar-nav-group {
  margin-bottom: 22px;
}

.sidebar-nav-group:last-child {
  margin-bottom: 0;
}

.sidebar-nav-title {
  margin: 0 10px 7px;

  color: var(--color-text-muted);

  font-size: 0.66rem;
  font-weight: 800;

  letter-spacing: 0.09em;
}


/* =========================================================
   NAV LIST
   ========================================================= */

.sidebar-nav-list {
  display: flex;
  flex-direction: column;

  gap: 3px;
}


/* =========================================================
   NAV ITEM
   ========================================================= */

.sidebar-nav-item {
  position: relative;

  width: 100%;
  min-height: 44px;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 11px;

  color: var(--color-text-secondary);

  background: transparent;

  border: 1px solid transparent;
  border-radius: var(--radius-md);

  font-size: 0.84rem;
  font-weight: 600;

  text-align: left;

  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.sidebar-nav-item:hover {
  color: var(--color-text-primary);

  background: var(--color-surface-hover);

  border-color: var(--color-border);
}

.sidebar-nav-item:active {
  transform: scale(0.985);
}


/* =========================================================
   NAV ICON
   ========================================================= */

.sidebar-nav-icon {
  flex-shrink: 0;

  color: var(--color-text-muted);

  transition: color 0.18s ease;
}

.sidebar-nav-item:hover .sidebar-nav-icon {
  color: var(--color-text-primary);
}


/* =========================================================
   ACTIVE ITEM
   ========================================================= */

.sidebar-nav-item.active {
  color: var(--color-rankhub-red);

  background: rgb(220 38 38 / 0.07);

  border-color: rgb(220 38 38 / 0.12);
}

.sidebar-nav-item.active .sidebar-nav-icon {
  color: var(--color-rankhub-red);
}

.sidebar-nav-item.active::before {
  content: "";

  position: absolute;

  left: -10px;

  width: 3px;
  height: 22px;

  background: var(--color-rankhub-red);

  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}


/* =========================================================
   LIVE / PRO BADGES
   ========================================================= */

.sidebar-nav-badge {
  margin-left: auto;

  padding: 3px 7px;

  border-radius: var(--radius-full);

  font-size: 0.58rem;
  font-weight: 800;

  letter-spacing: 0.04em;

  line-height: 1;
}

.badge-live {
  color: #047857;
  background: #D1FAE5;
}

.badge-pro {
  color: #B45309;
  background: #FEF3C7;
}


/* =========================================================
   RANKHUB PRO ITEM
   ========================================================= */

.sidebar-nav-pro:hover {
  background: #FFFBEB;
  border-color: #FDE68A;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.sidebar-logout-btn {
  color: var(--color-rankhub-red);
}

.sidebar-logout-btn .sidebar-nav-icon {
  color: var(--color-rankhub-red);
}

.sidebar-logout-btn:hover {
  color: #B91C1C;

  background: rgb(220 38 38 / 0.07);

  border-color: rgb(220 38 38 / 0.12);
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
  flex-shrink: 0;

  padding: 14px 18px 16px;

  text-align: center;

  border-top: 1px solid var(--color-border);

  background: var(--color-surface);
}

.sidebar-footer-brand {
  color: var(--color-text-secondary);

  font-size: 0.7rem;
  font-weight: 700;
}

.sidebar-footer-tagline {
  margin-top: 3px;

  color: var(--color-text-muted);

  font-size: 0.64rem;
  font-weight: 500;
}


/* =========================================================
   LOGOUT MODAL OVERLAY
   ========================================================= */

.logout-modal-overlay {
  position: fixed;
  inset: 0;

  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: rgb(15 23 42 / 0.45);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.logout-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   LOGOUT MODAL
   ========================================================= */

.logout-modal {
  width: 100%;
  max-width: 380px;

  padding: 24px;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);

  box-shadow: var(--shadow-lg);

  transform: translateY(10px) scale(0.98);

  transition: transform 0.2s ease;
}

.logout-modal-overlay.is-visible .logout-modal {
  transform: translateY(0) scale(1);
}


/* Modal Icon */

.logout-modal-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  color: var(--color-rankhub-red);

  background: rgb(220 38 38 / 0.08);

  border-radius: var(--radius-md);
}

.logout-modal h2 {
  margin: 0 0 7px;

  color: var(--color-text-primary);

  font-size: 1.08rem;
  font-weight: 800;
}

.logout-modal p {
  margin: 0;

  color: var(--color-text-secondary);

  font-size: 0.84rem;
  line-height: 1.5;
}


/* Modal Buttons */

.logout-modal-actions {
  display: flex;

  gap: 10px;

  margin-top: 22px;
}

.logout-cancel-btn,
.logout-confirm-btn {
  flex: 1;

  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius-md);

  font-size: 0.82rem;
  font-weight: 700;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.logout-cancel-btn {
  color: var(--color-text-secondary);

  background: var(--color-surface-hover);

  border: 1px solid var(--color-border);
}

.logout-cancel-btn:hover {
  color: var(--color-text-primary);

  background: #E2E8F0;
}

.logout-confirm-btn {
  color: var(--color-text-inverse);

  background: var(--color-rankhub-red);

  border: 1px solid var(--color-rankhub-red);
}

.logout-confirm-btn:hover {
  background: #B91C1C;
  border-color: #B91C1C;
}

.logout-cancel-btn:active,
.logout-confirm-btn:active {
  transform: scale(0.97);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .app-sidebar {
    width: min(330px, 90vw);
  }

  .sidebar-header {
    min-height: 66px;

    padding: 12px 14px;
  }

  .sidebar-user-card {
    margin: 14px;
  }

  .sidebar-body {
    padding-left: 8px;
    padding-right: 8px;
  }

  .sidebar-nav-item {
    min-height: 45px;

    font-size: 0.82rem;
  }

  .sidebar-footer {
    padding-bottom: 14px;
  }

  .logout-modal {
    padding: 20px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .sidebar-overlay,
  .app-sidebar,
  .sidebar-nav-item,
  .sidebar-close-btn,
  .logout-modal-overlay,
  .logout-modal {
    transition: none;
  }
}

/* =========================================================
   RANKHUB — MOBILE BOTTOM NAVIGATION
   ========================================================= */

.mobile-bottom-nav {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 1050;

  height: 64px;

  display: none;
  align-items: stretch;
  justify-content: space-around;

  padding:
    6px 8px max(6px, env(safe-area-inset-bottom));

  background: rgb(255 255 255 / 0.97);

  border-top: 1px solid var(--color-border);

  box-shadow:
    0 -8px 24px rgb(15 23 42 / 0.08);

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}


/* =========================================================
   NAV ITEM
   ========================================================= */

.mobile-nav-item {
  position: relative;

  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;

  color: var(--color-text-muted);

  border-radius: var(--radius-md);

  text-decoration: none;

  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.mobile-nav-item:active {
  transform: scale(0.94);
}


/* =========================================================
   ICON
   ========================================================= */

.mobile-nav-icon {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}


/* =========================================================
   LABEL
   ========================================================= */

.mobile-nav-label {
  font-size: 0.62rem;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;
}


/* =========================================================
   NORMAL ACTIVE ITEM
   ========================================================= */

.mobile-nav-item.active {
  color: var(--color-rankhub-red);
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-1px);
}


/* =========================================================
   PRACTICE — CENTER HIGHLIGHTED BUTTON
   ========================================================= */

.mobile-nav-practice .mobile-nav-icon {
  width: 40px;
  height: 40px;

  margin-top: -14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-inverse);

  background: var(--color-rankhub-red);

  border: 4px solid var(--color-surface);

  border-radius: var(--radius-full);

  box-shadow:
    0 4px 14px rgb(220 38 38 / 0.24);
}

.mobile-nav-practice .mobile-nav-label {
  margin-top: 1px;
}

.mobile-nav-practice.active {
  color: var(--color-rankhub-red);
}

.mobile-nav-practice.active .mobile-nav-icon {
  transform: translateY(-1px);
}


/* =========================================================
   MOBILE ONLY
   ========================================================= */

@media (max-width: 767px) {

  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom:
      calc(64px + env(safe-area-inset-bottom));
  }

}


/* =========================================================
   TABLET + DESKTOP
   ========================================================= */

@media (min-width: 768px) {

  .mobile-bottom-nav {
    display: none;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .mobile-bottom-nav {
    height: 60px;

    padding-left: 4px;
    padding-right: 4px;
  }

  .mobile-nav-label {
    font-size: 0.58rem;
  }

  .mobile-nav-icon {
    width: 23px;
    height: 23px;
  }

  .mobile-nav-practice .mobile-nav-icon {
    width: 37px;
    height: 37px;

    margin-top: -12px;
  }

  body {
    padding-bottom:
      calc(60px + env(safe-area-inset-bottom));
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .mobile-bottom-nav,
  .mobile-nav-item,
  .mobile-nav-icon {
    transition: none;
  }

}

/* =========================================================
   RANKHUB HOME PAGE
   PREMIUM / PROFESSIONAL TEST SERIES UI
   ========================================================= */


/* =========================================================
   HOME PAGE BASE
   ========================================================= */

.home-page {
  width: 100%;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text-primary);
  overflow-x: hidden;
}

.home-page .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}


/* =========================================================
   PREMIUM WELCOME BOARD
   ========================================================= */

.welcome-board-section {
  padding: 28px 0 12px;
}

.welcome-board {
  position: relative;
  min-height: 340px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
  padding: 60px;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 85% 15%,
      rgba(220, 38, 38, 0.15),
      transparent 30%),
    radial-gradient(circle at 65% 100%,
      rgba(37, 99, 235, 0.08),
      transparent 35%),
    linear-gradient(135deg,
      #0b1220 0%,
      #111827 55%,
      #0f172a 100%);

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}


/* Decorative Grid */

.welcome-board::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px,
      transparent 1px),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px);

  background-size: 32px 32px;

  pointer-events: none;

  mask-image: linear-gradient(to right,
      black,
      transparent 90%);

  z-index: -1;
}


/* Red Glow */

.welcome-board::after {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  right: -100px;
  top: -120px;

  border-radius: 50%;

  background: rgba(220, 38, 38, 0.12);

  filter: blur(45px);

  pointer-events: none;

  z-index: -1;
}


/* =========================================================
   WELCOME CONTENT
   ========================================================= */

.welcome-board-content {
  position: relative;
  z-index: 2;

  max-width: 700px;
}

.welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 14px;

  color: #f87171;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-eyebrow::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #ef4444;

  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.08),
    0 0 14px rgba(239, 68, 68, 0.8);
}


.welcome-title {
  margin: 0;

  color: #ffffff;

  font-size: clamp(2.1rem,
      4vw,
      3.7rem);

  font-weight: 800;

  line-height: 1.04;

  letter-spacing: -0.05em;
}

.welcome-title span {
  color: #ef4444;
}


.welcome-text {
  max-width: 620px;

  margin: 18px 0 28px;

  color: #cbd5e1;

  font-size: 1rem;

  line-height: 1.7;
}


/* =========================================================
   WELCOME BUTTONS
   ========================================================= */

.welcome-actions {
  display: flex;
  align-items: center;

  gap: 12px;

  flex-wrap: wrap;
}

.welcome-primary-btn,
.welcome-secondary-btn {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 0 21px;

  border-radius: 11px;

  font-size: 0.9rem;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.welcome-primary-btn {
  color: #ffffff;

  background: var(--color-rankhub-red);

  box-shadow:
    0 10px 25px rgba(220, 38, 38, 0.25);
}

.welcome-primary-btn:hover {
  background: #ef4444;

  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(220, 38, 38, 0.32);
}

.welcome-secondary-btn {
  color: #e2e8f0;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(12px);
}

.welcome-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.10);

  transform: translateY(-2px);
}


/* =========================================================
   WELCOME VISUAL
   ========================================================= */

.welcome-board-visual {
  position: relative;

  width: 310px;
  min-width: 310px;

  height: 240px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-glow {
  position: absolute;

  width: 210px;
  height: 210px;

  border-radius: 50%;

  background: rgba(220, 38, 38, 0.16);

  filter: blur(45px);
}


/* =========================================================
   SCORE CARD
   ========================================================= */

.welcome-score-card {
  position: relative;
  z-index: 2;

  width: 275px;

  padding: 22px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.075);

  border: 1px solid rgba(255, 255, 255, 0.13);

  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.28);

  backdrop-filter: blur(18px);

  transform: rotate(2deg);

  transition:
    transform 0.3s ease;
}

.welcome-score-card:hover {
  transform:
    rotate(0deg) translateY(-4px);
}

.score-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #94a3b8;

  font-size: 0.72rem;
  font-weight: 600;
}

.score-status {
  color: #34d399;
}

.score-main {
  display: flex;
  flex-direction: column;

  margin: 28px 0 20px;
}

.score-main strong {
  color: #ffffff;

  font-size: 2rem;

  line-height: 1;
}

.score-main span {
  margin-top: 7px;

  color: #94a3b8;

  font-size: 0.82rem;
}

.score-progress {
  width: 100%;
  height: 7px;

  overflow: hidden;

  border-radius: 99px;

  background: rgba(255, 255, 255, 0.08);
}

.score-progress span {
  display: block;

  width: 72%;
  height: 100%;

  border-radius: inherit;

  background: var(--color-rankhub-red);
}

.score-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 15px;

  color: #94a3b8;

  font-size: 0.7rem;
}


/* =========================================================
   QUICK STATS
   ========================================================= */

.home-stats-section {
  padding: 20px 0 12px;
}

.home-stats-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;
}

.stat-card {
  min-height: 104px;

  display: flex;
  align-items: center;

  gap: 15px;

  padding: 18px;

  background: var(--color-surface);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);

  border-color: #cbd5e1;

  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: #fef2f2;

  color: var(--color-rankhub-red);

  font-size: 1.2rem;
  font-weight: 800;
}

.stat-content {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.stat-value {
  color: var(--color-text-primary);

  font-size: 1.35rem;
  font-weight: 800;

  line-height: 1;
}

.stat-label {
  color: var(--color-text-secondary);

  font-size: 0.78rem;
  font-weight: 500;
}


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

.home-section {
  padding: 52px 0;

  background: var(--color-background);
}

.home-section-muted {
  background: #f1f5f9;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;
}

.section-heading {
  min-width: 0;
}

.section-label {
  display: block;

  margin-bottom: 7px;

  color: var(--color-rankhub-red);

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.section-label-live {
  color: #dc2626;
}

.section-heading h2 {
  margin: 0;

  color: var(--color-text-primary);

  font-size: clamp(1.35rem,
      2.5vw,
      1.9rem);

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: -0.025em;
}

.section-heading p {
  margin-top: 7px;

  color: var(--color-text-secondary);

  font-size: 0.88rem;

  line-height: 1.5;
}

.section-view-all {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;

  gap: 7px;

  color: var(--color-rankhub-red);

  font-size: 0.82rem;
  font-weight: 700;

  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.section-view-all:hover {
  gap: 10px;

  color: var(--color-electric-blue);
}


/* =========================================================
   DYNAMIC CONTENT GRIDS
   ========================================================= */

.exam-grid,
.test-grid,
.live-test-grid,
.pyq-grid,
.notes-grid,
.current-affairs-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}


/*
   Firebase cards inserted by home.js
   Generic styling so dynamically generated
   Admin Panel content looks professional.
*/

.exam-grid>*,
.test-grid>*,
.live-test-grid>*,
.pyq-grid>*,
.notes-grid>*,
.current-affairs-grid>* {
  min-width: 0;

  background: var(--color-surface);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.exam-grid>*:hover,
.test-grid>*:hover,
.live-test-grid>*:hover,
.pyq-grid>*:hover,
.notes-grid>*:hover,
.current-affairs-grid>*:hover {
  transform: translateY(-4px);

  border-color: #cbd5e1;

  box-shadow: var(--shadow-md);
}

.home-coming-soon {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 190px;
    padding: 32px 24px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.home-coming-soon-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 14px;

    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.home-coming-soon-label {
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-coming-soon p {
    max-width: 440px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}


/* =========================================================
   FIREBASE CARD FALLBACK
   ========================================================= */

.exam-card,
.test-card,
.live-test-card,
.pyq-card,
.note-card,
.current-affair-card {
  overflow: hidden;

  background: var(--color-surface);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.exam-card:hover,
.test-card:hover,
.live-test-card:hover,
.pyq-card:hover,
.note-card:hover,
.current-affair-card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-md);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.content-empty-state {
  width: 100%;

  padding: 42px 24px;

  text-align: center;

  background: var(--color-surface);

  border: 1px dashed var(--color-border);

  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 14px;

  border-radius: 14px;

  background: #f1f5f9;

  color: var(--color-text-secondary);

  font-size: 1.3rem;
  font-weight: 700;
}

.content-empty-state h3 {
  margin: 0;

  color: var(--color-text-primary);

  font-size: 1rem;
  font-weight: 700;
}

.content-empty-state p {
  max-width: 460px;

  margin: 7px auto 0;

  color: var(--color-text-secondary);

  font-size: 0.82rem;

  line-height: 1.6;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.home-cta {
  padding: 20px 0 60px;

  background: var(--color-background);
}

.cta-card {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 38px 42px;

  overflow: hidden;

  border-radius: var(--radius-xl);

  background:
    radial-gradient(circle at 90% 30%,
      rgba(220, 38, 38, 0.14),
      transparent 30%),
    #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.07);

  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.15);
}

.cta-label {
  display: block;

  margin-bottom: 8px;

  color: #f87171;

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.15em;
}

.cta-content h2 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(1.35rem,
      3vw,
      2rem);

  font-weight: 800;

  letter-spacing: -0.025em;
}

.cta-content p {
  max-width: 600px;

  margin-top: 8px;

  color: #94a3b8;

  font-size: 0.86rem;

  line-height: 1.6;
}

.cta-action {
  flex: 0 0 auto;
}

.cta-button {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 0 20px;

  border-radius: 10px;

  color: #ffffff;

  background: var(--color-rankhub-red);

  font-size: 0.85rem;
  font-weight: 700;

  box-shadow:
    0 8px 22px rgba(220, 38, 38, 0.25);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.cta-button:hover {
  background: #ef4444;

  transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .welcome-board {
    padding: 40px;
  }

  .welcome-board-visual {
    width: 270px;
    min-width: 270px;
  }

  .welcome-score-card {
    width: 245px;
  }

  .home-stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .exam-grid,
  .test-grid,
  .live-test-grid,
  .pyq-grid,
  .notes-grid,
  .current-affairs-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .rankhub-light-card {
    max-width: 100%;
    width: 100%;
    padding: 16px 14px;
    border-radius: 14px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .rankhub-light-card .card-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }

  .rankhub-light-card .card-badge {
    padding: 4px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.36px;
  }

  .rankhub-light-card .card-status {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .rankhub-light-card .exam-save-button {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    margin-left: auto;
  }

  .rankhub-light-card .card-title-wrapper {
    gap: 10px;
    min-width: 0;
    align-items: flex-start;
  }

  .rankhub-light-card .exam-logo-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .rankhub-light-card .card-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .rankhub-light-card .card-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .rankhub-light-card .progress-info {
    font-size: 0.76rem;
  }

  .rankhub-light-card .card-btn {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {

  .home-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }


  /* Welcome */

  .welcome-board-section {
    padding: 16px 0 8px;
  }

  .welcome-board {
        height: auto;
    min-height: auto;

    flex-direction: column;
    align-items: flex-start;

    padding: 28px 22px;

    gap: 25px;

    border-radius: 20px;
  }

  .welcome-board-content {
    max-width: none;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .welcome-text {
    margin: 14px 0 21px;

    font-size: 0.88rem;

    line-height: 1.65;
  }

  .welcome-actions {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .welcome-primary-btn,
  .welcome-secondary-btn {
    flex: 1;

    min-width: 130px;
  }


  /* Welcome Visual */

  .welcome-board-visual {
        display: none;
  }

    .welcome-score-card {
        width: min(275px, 90%);
        display: none;
    }


  /* Stats */

  .home-stats-section {
    padding: 15px 0 8px;
  }

  .home-stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .stat-card {
    min-height: 88px;

    padding: 14px;

    gap: 11px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;

    border-radius: 11px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }


  /* Sections */

  .home-section {
    padding: 38px 0;
  }

  .section-header {
    align-items: flex-start;

    margin-bottom: 18px;
  }

  .section-heading p {
    font-size: 0.8rem;
  }

  .section-view-all {
    font-size: 0.75rem;
  }


  /* Cards */

  .exam-grid,
  .test-grid,
  .live-test-grid,
  .pyq-grid,
  .notes-grid,
  .current-affairs-grid {
    grid-template-columns:
      1fr;

    gap: 12px;
  }


  /* CTA */

  .home-cta {
    padding: 10px 0 90px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;

    padding: 28px 22px;

    gap: 22px;

    border-radius: 18px;
  }

  .cta-action {
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .welcome-board {
    padding: 24px 18px;
  }

  .welcome-title {
    font-size: 1.75rem;
  }

  .welcome-eyebrow {
    font-size: 0.62rem;
  }

  .welcome-actions {
    flex-direction: row;
  }

  .welcome-primary-btn,
  .welcome-secondary-btn {
    width: 100%;

    flex: 1;
  }

  .welcome-board-visual {
    height: 170px;
  }

  .welcome-score-card {
    width: 250px;

    padding: 18px;
  }

  .home-stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 12px;

    gap: 9px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }

  .section-header {
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 1.25rem;
  }

  .section-heading p {
    display: none;
  }
}







/* =========================================================
   RANKHUB — EXAMS PAGE (COMBINED & UPDATED)
   ========================================================= */


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.page-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 28px 100px 70px; /* Left padding added for right shift */
}


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

.page-header {
    margin-bottom: 28px;
}

.page-header-content {
    max-width: 760px;
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;

    color: #e53935;
}

.page-header h1 {
    margin: 0;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 800;

    color: #111111;
}

.page-header p {
    margin: 12px 0 0;

    font-size: 16px;
    line-height: 1.6;

    color: #6b7280;
}


/* =========================================================
   SEARCH
   ========================================================= */

.exam-search-section {
    margin-bottom: 24px;
}

.exam-search-box {
    width: 100%;
    max-width: 620px;

    min-height: 52px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 17px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.05);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.exam-search-box:focus-within {
    border-color: #e53935;

    box-shadow:
        0 0 0 4px rgba(229, 57, 53, 0.10);
}

.exam-search-box svg {
    flex: 0 0 auto;
    color: #9ca3af;
}

.exam-search-box input {
    width: 100%;
    height: 50px;

    border: 0;
    outline: 0;

    background: transparent;

    font-family: inherit;
    font-size: 15px;

    color: #111111;
}

.exam-search-box input::placeholder {
    color: #9ca3af;
}


/* =========================================================
   CATEGORY FILTER
   ========================================================= */

.exam-categories-section {
    margin-bottom: 30px;
}

.exam-category-list {
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;

    padding: 4px 2px 10px;

    scrollbar-width: none;
}

.exam-category-list::-webkit-scrollbar {
    display: none;
}

.exam-category-btn {
    flex: 0 0 auto;

    min-height: 40px;

    padding: 0 17px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: #ffffff;

    color: #4b5563;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.exam-category-btn:hover {
    border-color: #e53935;
    color: #e53935;

    transform: translateY(-1px);
}

.exam-category-btn.active {
    background: #e53935;
    border-color: #e53935;

    color: #ffffff;
}


/* ============================================================
   RANKHUB — 3D PREMIUM EXAM CARDS
   ============================================================ */

#examGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    perspective: 1400px;
}


/* ============================================================
   3D CARD
   ============================================================ */

.exam-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 290px;
    padding: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fafafa 55%,
            #f2f2f2 100%
        );

    border: 1px solid #e5e5e5;
    border-radius: 22px;

    box-shadow:
        0 2px 0 #ffffff inset,
        0 4px 0 #e1e1e1,
        0 10px 18px rgba(0, 0, 0, 0.07),
        0 25px 45px rgba(0, 0, 0, 0.08);

    transform:
        translateY(0)
        rotateX(0)
        rotateY(0);

    transform-style: preserve-3d;

    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}


/* Top 3D highlight */

.exam-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5966,
            #e11d2e
        );

    box-shadow:
        0 2px 8px rgba(225, 29, 46, 0.28);

    z-index: 5;
}


/* Background 3D glow */

.exam-card::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -85px;
    right: -75px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.14),
            rgba(225, 29, 46, 0)
        );

    transform: translateZ(-5px);

    pointer-events: none;
}


/* ============================================================
   HOVER 3D EFFECT
   ============================================================ */

.exam-card:hover {
    transform:
        translateY(-12px)
        rotateX(2deg)
        rotateY(-1deg);

    border-color:
        rgba(225, 29, 46, 0.25);

    box-shadow:
        0 3px 0 #ffffff inset,
        0 6px 0 #d9d9d9,
        0 18px 25px rgba(0, 0, 0, 0.10),
        0 35px 65px rgba(0, 0, 0, 0.14);
}


/* ============================================================
   ICON — 3D
   ============================================================ */

.exam-card-icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 18px;

    background:
        linear-gradient(
            145deg,
            #fff8f8,
            #ffe4e7
        );

    border: 1px solid #ffcdd2;

    border-radius: 17px;

    color: #e11d2e;

    font-size: 29px;

    box-shadow:
        0 3px 0 #efc4c7,
        0 7px 12px rgba(225, 29, 46, 0.12),
        inset 0 2px 3px rgba(255, 255, 255, 0.9);

    transform: translateZ(28px);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.exam-card:hover .exam-card-icon {
    transform:
        translateZ(45px)
        translateY(-3px);

    box-shadow:
        0 4px 0 #efc4c7,
        0 12px 22px rgba(225, 29, 46, 0.18),
        inset 0 2px 4px rgba(255, 255, 255, 1);
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.exam-card-content {
    position: relative;
    z-index: 2;

    flex: 1;

    min-width: 0;

    transform: translateZ(20px);
}


/* ============================================================
   CATEGORY
   ============================================================ */

.exam-card-category {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;

    padding: 6px 11px;

    background:
        linear-gradient(
            145deg,
            #f7f7f7,
            #ededed
        );

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    color: #666666;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    box-shadow:
        0 2px 0 #ffffff inset,
        0 2px 4px rgba(0, 0, 0, 0.05);
}


/* ============================================================
   TITLE
   ============================================================ */

.exam-card-title {
    margin: 0 0 9px;

    color: #111111;

    font-size: 21px;

    font-weight: 850;

    line-height: 1.25;

    letter-spacing: -0.45px;

    transform: translateZ(25px);
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.exam-card-description {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #707070;

    font-size: 13px;

    line-height: 1.65;

    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* ============================================================
   BUTTON — 3D
   ============================================================ */

.exam-card-btn {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    margin-top: 22px;

    padding: 0 18px;

    background:
        linear-gradient(
            145deg,
            #242424,
            #0d0d0d
        );

    border: 1px solid #333333;

    border-radius: 12px;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 3px 0 #000000,
        0 7px 12px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    transform: translateZ(30px);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.exam-card-btn::after {
    content: "→";

    margin-left: 10px;

    font-size: 17px;

    transition:
        transform 0.2s ease;
}


.exam-card-btn:hover {
    background:
        linear-gradient(
            145deg,
            #ef2637,
            #c91425
        );

    border-color: #c91425;

    box-shadow:
        0 3px 0 #980e1c,
        0 9px 18px rgba(225, 29, 46, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    transform:
        translateZ(42px)
        translateY(-2px);
}


.exam-card-btn:hover::after {
    transform: translateX(5px);
}


.exam-card-btn:active {
    transform:
        translateZ(25px)
        translateY(2px);

    box-shadow:
        0 1px 0 #000000,
        0 4px 8px rgba(0, 0, 0, 0.15);
}


.exam-card-btn:focus-visible {
    outline: 3px solid rgba(225, 29, 46, 0.25);
    outline-offset: 3px;
}


/* ============================================================
   LOADING
   ============================================================ */

.exams-loading {
    grid-column: 1 / -1;
    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #6b7280;
}

.exams-loading p {
    margin: 0;

    font-size: 13px;
    font-weight: 600;
}

.loading-spinner {
    width: 34px;
    height: 34px;

    border: 3px solid #eeeeee;
    border-top-color: #e53935;

    border-radius: 50%;

    animation: rankhubSpin 0.8s linear infinite;
}

@keyframes rankhubSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.exam-empty {
    grid-column: 1 / -1;

    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: #ffffff;

    border: 1px dashed #d5d5d5;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.05);
}

.exam-empty::before {
    content: "📚";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 15px;

    background: #fff1f2;

    border-radius: 16px;

    font-size: 27px;

    box-shadow:
        0 4px 0 #f0d0d3;
}

.exam-empty h3 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;
    font-weight: 800;
}

.exam-empty p {
    margin: 0;

    color: #737373;

    font-size: 13px;
}


/* ============================================================
   ERROR
   ============================================================ */

.exam-error {
    grid-column: 1 / -1;

    padding: 28px;

    background: #fff5f5;

    border: 1px solid #ffd3d6;

    border-radius: 18px;

    text-align: center;
}

.exam-error h3 {
    margin: 0 0 7px;

    color: #b91524;

    font-size: 19px;

    font-weight: 800;
}

.exam-error p {
    margin: 0 0 15px;

    color: #777777;

    font-size: 13px;
}

.retry-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: #e53935;
}


/* ============================================================
   HIDDEN
   ============================================================ */

[hidden] {
    display: none !important;
}


/* ============================================================
   RESPONSIVE: TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .page-container {
        padding-left: 32px;
        padding-right: 22px;
    }

    #examGrid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .exam-card {
        min-height: 280px;

        padding: 20px;
    }
}


/* ============================================================
   RESPONSIVE: MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .page-container {
        padding: 24px 15px 100px;
    }

    .page-header {
        margin-bottom: 22px;
    }

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

    .page-header p {
        font-size: 14px;
    }

    .exam-search-box {
        min-height: 50px;
    }

    .exam-search-box input {
        height: 48px;
        font-size: 14px;
    }

    .exam-category-list {
        margin-right: -15px;
        padding-right: 15px;
    }

    #examGrid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .exam-card {
        min-height: 0;

        padding: 19px;

        border-radius: 18px;

        transform: none;
    }

    .exam-card:hover {
        transform: translateY(-5px);
    }

    .exam-card-icon {
        width: 55px;
        height: 55px;

        margin-bottom: 15px;

        transform: translateZ(15px);
    }

    .exam-card:hover .exam-card-icon {
        transform: translateZ(20px);
    }

    .exam-card-content {
        transform: none;
    }

    .exam-card-title {
        font-size: 19px;
    }

    .exam-card-description {
        font-size: 12.5px;

        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .exam-card-btn {
        min-height: 45px;

        margin-top: 18px;

        transform: none;
    }

    .exam-card-btn:hover {
        transform: translateY(-2px);
    }
}


/* ============================================================
   RESPONSIVE: SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .page-container {
        padding-left: 18px;
        padding-right: 12px;
    }

    #examGrid {
        gap: 13px;
    }

    .exam-card {
        padding: 17px;
    }

    .exam-card-icon {
        width: 50px;
        height: 50px;

        font-size: 25px;
    }

    .exam-card-title {
        font-size: 18px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .exam-card,
    .exam-card-icon,
    .exam-card-btn,
    .exam-card-btn::after {
        transition: none;
    }
}





/* Final page-width authority. */
.rh-page-container,
.page-container,
.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page,
.performance-page,
.current-affairs-page,
.contact-container,
.about-page > .about-top {
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: calc(100% - 32px);
    }
}


/* ============================================================
   RANKHUB — EXAM DETAIL PAGE
   Professional 3D Design
   ============================================================ */


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

.exam-detail-page {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        28px
        0
        100px;
}


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

.exam-detail-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-bottom: 22px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 11px;

    color: #444444;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 0 #e0e0e0,
        0 7px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}


.exam-detail-back:hover {
    color: #e11d2e;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #e0e0e0,
        0 10px 20px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   EXAM HERO
   ============================================================ */

.exam-detail-hero {
    position: relative;

    display: flex;

    align-items: center;

    gap: 24px;

    min-height: 190px;

    margin-bottom: 28px;

    padding: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f8
        );

    border: 1px solid #e3e3e3;

    border-radius: 24px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 0 #dedede,
        0 16px 30px rgba(0, 0, 0, 0.07);

    transform-style: preserve-3d;
}


/* Red top line */

.exam-detail-hero::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5b68,
            #e11d2e
        );
}


/* Background glow */

.exam-detail-hero::after {
    content: "";

    position: absolute;

    top: -100px;
    right: -70px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.12),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HERO ICON
   ============================================================ */

.exam-detail-icon {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 92px;
    height: 92px;

    background:
        linear-gradient(
            145deg,
            #fff8f8,
            #ffe1e4
        );

    border: 1px solid #ffc9ce;

    border-radius: 23px;

    font-size: 42px;

    box-shadow:
        0 4px 0 #efc4c7,
        0 12px 22px rgba(225, 29, 46, 0.14),
        inset 0 2px 5px rgba(255, 255, 255, 0.95);

    transform: translateZ(35px);
}


/* ============================================================
   HERO CONTENT
   ============================================================ */

.exam-detail-info {
    position: relative;

    z-index: 2;

    min-width: 0;
}


.exam-detail-category {
    display: inline-flex;

    align-items: center;

    margin-bottom: 9px;

    padding:
        6px
        11px;

    background: #f1f1f1;

    border: 1px solid #e4e4e4;

    border-radius: 8px;

    color: #666666;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    box-shadow:
        0 2px 0 #ffffff inset;
}


.exam-detail-info h1 {
    margin: 0 0 9px;

    color: #111111;

    font-size: clamp(28px, 5vw, 42px);

    font-weight: 850;

    line-height: 1.1;

    letter-spacing: -1px;
}


.exam-detail-info p {
    max-width: 680px;

    margin: 0;

    color: #707070;

    font-size: 14px;

    line-height: 1.65;
}


/* ============================================================
   OPTIONS GRID
   ============================================================ */

.exam-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    perspective: 1400px;
}


/* ============================================================
   OPTION CARD
   ============================================================ */

.exam-option-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 17px;

    min-height: 118px;

    padding: 20px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f7
        );

    border: 1px solid #e3e3e3;

    border-radius: 19px;

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 0 #dddddd,
        0 12px 24px rgba(0, 0, 0, 0.055);

    transform:
        translateY(0)
        rotateX(0);

    transform-style: preserve-3d;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}


/* Red side accent */

.exam-option-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #e11d2e,
            #ff5a66
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


/* Background glow */

.exam-option-card::after {
    content: "";

    position: absolute;

    right: -70px;
    bottom: -90px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   CARD HOVER
   ============================================================ */

.exam-option-card:hover {
    transform:
        translateY(-7px)
        rotateX(1deg);

    border-color:
        rgba(225, 29, 46, 0.22);

    box-shadow:
        0 4px 0 #ffffff inset,
        0 6px 0 #d7d7d7,
        0 18px 35px rgba(0, 0, 0, 0.10);
}


.exam-option-card:hover::before {
    opacity: 1;
}


/* ============================================================
   OPTION ICON
   ============================================================ */

.exam-option-icon {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background:
        linear-gradient(
            145deg,
            #fff7f7,
            #ffe8ea
        );

    border: 1px solid #ffd0d4;

    border-radius: 16px;

    font-size: 27px;

    box-shadow:
        0 3px 0 #efc8cb,
        0 7px 14px rgba(225, 29, 46, 0.10);

    transform: translateZ(25px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.exam-option-card:hover .exam-option-icon {
    transform:
        translateZ(38px)
        translateY(-2px);

    box-shadow:
        0 4px 0 #efc8cb,
        0 11px 20px rgba(225, 29, 46, 0.16);
}


/* ============================================================
   OPTION CONTENT
   ============================================================ */

.exam-option-content {
    position: relative;

    z-index: 2;

    flex: 1;

    min-width: 0;

    transform: translateZ(18px);
}


.exam-option-content h2 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.3;
}


.exam-option-content p {
    margin: 0;

    color: #777777;

    font-size: 12.5px;

    line-height: 1.55;
}


/* ============================================================
   ARROW
   ============================================================ */

.exam-option-arrow {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    background: #111111;

    border-radius: 10px;

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 3px 0 #000000,
        0 6px 10px rgba(0, 0, 0, 0.14);

    transform: translateZ(28px);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.exam-option-card:hover .exam-option-arrow {
    background: #e11d2e;

    transform:
        translateZ(40px)
        translateX(4px);

    box-shadow:
        0 3px 0 #a90f1d,
        0 7px 14px rgba(225, 29, 46, 0.22);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .exam-detail-page {
        width: calc(100% - 24px);

        padding:
            20px
            0
            90px;
    }


    .exam-detail-hero {
        flex-direction: column;

        align-items: flex-start;

        gap: 17px;

        min-height: auto;

        padding: 22px;

        border-radius: 20px;
    }


    .exam-detail-icon {
        width: 68px;
        height: 68px;

        border-radius: 17px;

        font-size: 31px;

        transform: none;
    }


    .exam-detail-info h1 {
        font-size: 29px;

        letter-spacing: -0.7px;
    }


    .exam-detail-info p {
        font-size: 13px;
    }


    .exam-options {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .exam-option-card {
        min-height: 100px;

        padding: 17px;

        border-radius: 16px;
    }


    .exam-option-icon {
        width: 52px;
        height: 52px;

        border-radius: 14px;

        font-size: 24px;

        transform: none;
    }


    .exam-option-card:hover .exam-option-icon {
        transform: translateY(-2px);
    }


    .exam-option-content {
        transform: none;
    }


    .exam-option-content h2 {
        font-size: 16px;
    }


    .exam-option-content p {
        font-size: 12px;
    }


    .exam-option-arrow {
        width: 34px;
        height: 34px;

        border-radius: 9px;

        font-size: 17px;

        transform: none;
    }


    .exam-option-card:hover .exam-option-arrow {
        transform: translateX(3px);
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .exam-detail-page {
        width: calc(100% - 18px);
    }


    .exam-option-card {
        gap: 12px;

        padding: 14px;
    }


    .exam-option-icon {
        width: 47px;
        height: 47px;

        font-size: 22px;
    }


    .exam-option-content h2 {
        font-size: 15px;
    }


    .exam-option-content p {
        font-size: 11.5px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .exam-detail-back,
    .exam-option-card,
    .exam-option-icon,
    .exam-option-arrow {
        transition: none;
    }
}





/* ============================================================
   RANKHUB — MOCK TESTS PAGE
   Professional 3D Design
   ============================================================ */


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

.mock-tests-page {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        28px
        0
        100px;
}


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

.mock-tests-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-bottom: 22px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 11px;

    color: #444444;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 0 #dfdfdf,
        0 7px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.mock-tests-back:hover {
    color: #e11d2e;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #dddddd,
        0 10px 20px rgba(0, 0, 0, 0.08);
}


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

.mock-tests-header {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 180px;

    margin-bottom: 28px;

    padding: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f7
        );

    border: 1px solid #e2e2e2;

    border-radius: 23px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 0 #dddddd,
        0 16px 32px rgba(0, 0, 0, 0.07);

    transform-style: preserve-3d;
}


/* Red top */

.mock-tests-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5966,
            #e11d2e
        );
}


/* Background glow */

.mock-tests-header::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -70px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.11),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HEADER LABEL
   ============================================================ */

.mock-tests-label {
    display: inline-flex;

    align-items: center;

    margin-bottom: 9px;

    padding: 6px 10px;

    background: #fff0f1;

    border: 1px solid #ffd2d5;

    border-radius: 8px;

    color: #d7192a;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* ============================================================
   TITLE
   ============================================================ */

.mock-tests-header h1 {
    position: relative;

    z-index: 2;

    margin: 0 0 8px;

    color: #111111;

    font-size: clamp(28px, 5vw, 40px);

    font-weight: 850;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.mock-tests-header p {
    position: relative;

    z-index: 2;

    max-width: 650px;

    margin: 0;

    color: #707070;

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   TEST COUNT
   ============================================================ */

.mock-tests-count {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eeeeee
        );

    border: 1px solid #dddddd;

    border-radius: 22px;

    box-shadow:
        0 4px 0 #d4d4d4,
        0 10px 18px rgba(0, 0, 0, 0.09);

    transform: translateZ(30px);
}


.mock-tests-count strong {
    color: #e11d2e;

    font-size: 32px;

    font-weight: 900;

    line-height: 1;
}


.mock-tests-count span {
    margin-top: 5px;

    color: #666666;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}


/* ============================================================
   TEST GRID
   ============================================================ */

.mock-tests-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    perspective: 1400px;
}


/* ============================================================
   DYNAMIC STAGE SELECTOR
   ============================================================ */

.mock-tests-stage-selector {
    display: flex;
    gap: 4px;

    width: fit-content;
    max-width: 100%;

    margin: 0 auto 24px;
    padding: 4px;

    overflow-x: auto;

    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}


.mock-tests-stage-tab {
    flex: 0 0 auto;

    min-width: 112px;
    min-height: 44px;

    padding: 0 22px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 9px;

    color: #444444;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.mock-tests-stage-tab:hover:not(.is-active) {
    border-color: #f0a1a8;
    color: #c91425;
}


.mock-tests-stage-tab.is-active {
    background: linear-gradient(145deg, #ef2637, #c91425);
    border-color: #c91425;
    color: #ffffff;
    box-shadow:
        0 3px 0 #980e1c,
        0 8px 16px rgba(225, 29, 46, 0.18);
}


.mock-tests-stage-tab:focus-visible {
    outline: 3px solid rgba(225, 29, 46, 0.28);
    outline-offset: 2px;
}


/* ============================================================
   MOCK TEST CARD
   ============================================================ */

.mock-test-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 220px;

    padding: 22px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f8
        );

    border: 1px solid #e3e3e3;

    border-radius: 19px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 0 #dddddd,
        0 12px 25px rgba(0, 0, 0, 0.06);

    transform-style: preserve-3d;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}


/* Red accent */

.mock-test-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #e11d2e,
            #ff5a66
        );
}


/* Decorative glow */

.mock-test-card::after {
    content: "";

    position: absolute;

    right: -70px;
    bottom: -80px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


/* Hover */

.mock-test-card:hover {
    transform:
        translateY(-8px)
        rotateX(1deg);

    border-color:
        rgba(225, 29, 46, 0.23);

    box-shadow:
        0 4px 0 #ffffff inset,
        0 6px 0 #d7d7d7,
        0 20px 38px rgba(0, 0, 0, 0.10);
}


/* ============================================================
   CARD TOP
   ============================================================ */

.mock-test-top {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 17px;
}


/* ============================================================
   TEST ICON
   ============================================================ */

.mock-test-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    background:
        linear-gradient(
            145deg,
            #fff7f7,
            #ffe5e8
        );

    border: 1px solid #ffd0d4;

    border-radius: 15px;

    font-size: 25px;

    box-shadow:
        0 3px 0 #efc8cb,
        0 7px 14px rgba(225, 29, 46, 0.10);

    transform: translateZ(25px);
}


/* ============================================================
   BADGE
   ============================================================ */

.mock-test-badge {
    display: inline-flex;

    align-items: center;

    padding: 6px 9px;

    background: #f1f1f1;

    border: 1px solid #e1e1e1;

    border-radius: 7px;

    color: #666666;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.mock-test-content {
    position: relative;

    z-index: 2;

    flex: 1;

    transform: translateZ(18px);
}


.mock-test-title {
    margin: 0 0 7px;

    color: #111111;

    font-size: 19px;

    font-weight: 850;

    line-height: 1.3;
}


.mock-test-description {
    margin: 0;

    color: #737373;

    font-size: 12.5px;

    line-height: 1.55;
}


/* ============================================================
   TEST META
   ============================================================ */

.mock-test-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 17px;
}


.mock-test-meta-item {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 9px;

    background: #f3f3f3;

    border: 1px solid #e6e6e6;

    border-radius: 7px;

    color: #666666;

    font-size: 10px;

    font-weight: 700;
}


/* ============================================================
   START BUTTON
   ============================================================ */

.mock-test-start {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 44px;

    margin-top: 18px;

    padding: 0 16px;

    background:
        linear-gradient(
            145deg,
            #222222,
            #0c0c0c
        );

    border: 1px solid #333333;

    border-radius: 11px;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 3px 0 #000000,
        0 7px 12px rgba(0, 0, 0, 0.16);

    transform: translateZ(25px);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.mock-test-start::after {
    content: "→";

    margin-left: 8px;

    font-size: 16px;

    transition:
        transform 0.2s ease;
}


.mock-test-start:hover {
    background:
        linear-gradient(
            145deg,
            #ef2637,
            #c91425
        );

    border-color: #c91425;

    box-shadow:
        0 3px 0 #980e1c,
        0 9px 18px rgba(225, 29, 46, 0.22);

    transform:
        translateZ(35px)
        translateY(-2px);
}


.mock-test-start:hover::after {
    transform: translateX(4px);
}

.mock-tests-loading p {
    margin: 0;

    font-size: 13px;

    font-weight: 600;
}


@keyframes rankhub-spin {

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   EMPTY
   ============================================================ */

.mock-tests-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 270px;

    padding: 30px;

    background: #ffffff;

    border: 1px dashed #d6d6d6;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.04);
}


.mock-tests-empty[hidden] {
    display: none;
}


.mock-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 15px;

    background: #fff1f2;

    border-radius: 16px;

    font-size: 28px;

    box-shadow:
        0 4px 0 #f0d0d3;
}


.mock-tests-empty h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;

    font-weight: 800;
}


.mock-tests-empty p {
    max-width: 420px;

    margin: 0;

    color: #737373;

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .mock-tests-page {
        width: calc(100% - 24px);

        padding:
            20px
            0
            90px;
    }


    .mock-tests-header {
        flex-direction: column;

        align-items: flex-start;

        min-height: auto;

        padding: 22px;

        border-radius: 20px;
    }


    .mock-tests-header h1 {
        font-size: 29px;

        letter-spacing: -0.7px;
    }


    .mock-tests-header p {
        font-size: 13px;
    }


    .mock-tests-count {
        width: 78px;
        height: 78px;

        border-radius: 17px;

        align-self: flex-end;
    }


    .mock-tests-count strong {
        font-size: 25px;
    }


    .mock-tests-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .mock-tests-stage-selector {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 20px;
    }


    .mock-tests-stage-tab {
        min-width: 104px;
        padding: 0 16px;
    }


    .mock-test-card {
        min-height: 210px;

        padding: 18px;

        border-radius: 17px;
    }


    .mock-test-title {
        font-size: 18px;
    }


    .mock-test-description {
        font-size: 12px;
    }


    .mock-test-icon {
        width: 50px;
        height: 50px;

        font-size: 23px;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .mock-tests-page {
        width: calc(100% - 18px);
    }


    .mock-test-card {
        padding: 16px;
    }


    .mock-test-meta {
        gap: 6px;
    }


    .mock-test-meta-item {
        padding: 5px 7px;

        font-size: 9px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .mock-test-card,
    .mock-test-start,
    .mock-test-start::after,
    .mock-test-icon {
        transition: none;
    }

}



/* ============================================================
   RANKHUB — SUBJECT PRACTICE
   Professional 3D Design
   ============================================================ */


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

.subject-practice-page {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding: 28px 0 100px;
}


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

.subject-practice-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-bottom: 22px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 11px;

    color: #444444;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 0 #dfdfdf,
        0 7px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.subject-practice-back:hover {
    color: #e11d2e;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #dddddd,
        0 10px 20px rgba(0, 0, 0, 0.08);
}


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

.subject-practice-header {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 180px;

    margin-bottom: 28px;

    padding: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f7
        );

    border: 1px solid #e2e2e2;

    border-radius: 23px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 0 #dddddd,
        0 16px 32px rgba(0, 0, 0, 0.07);

    transform-style: preserve-3d;
}


/* Red top line */

.subject-practice-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5966,
            #e11d2e
        );
}


/* Background glow */

.subject-practice-header::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -70px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.11),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HEADER LABEL
   ============================================================ */

.subject-practice-label {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    margin-bottom: 9px;

    padding: 6px 10px;

    background: #fff0f1;

    border: 1px solid #ffd2d5;

    border-radius: 8px;

    color: #d7192a;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* ============================================================
   TITLE
   ============================================================ */

.subject-practice-header h1 {
    position: relative;

    z-index: 2;

    margin: 0 0 8px;

    color: #111111;

    font-size: clamp(28px, 5vw, 40px);

    font-weight: 850;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.subject-practice-header p {
    position: relative;

    z-index: 2;

    max-width: 650px;

    margin: 0;

    color: #707070;

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   SUBJECT COUNT
   ============================================================ */

.subject-count-box {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eeeeee
        );

    border: 1px solid #dddddd;

    border-radius: 22px;

    box-shadow:
        0 4px 0 #d4d4d4,
        0 10px 18px rgba(0, 0, 0, 0.09);

    transform: translateZ(30px);
}


.subject-count-box strong {
    color: #e11d2e;

    font-size: 32px;

    font-weight: 900;

    line-height: 1;
}


.subject-count-box span {
    margin-top: 5px;

    color: #666666;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


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

.subject-practice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    perspective: 1400px;
}


/* ============================================================
   SUBJECT CARD
   ============================================================ */

.subject-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 17px;

    min-height: 125px;

    padding: 20px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f8
        );

    border: 1px solid #e3e3e3;

    border-radius: 19px;

    text-decoration: none;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 0 #dddddd,
        0 12px 25px rgba(0, 0, 0, 0.06);

    transform-style: preserve-3d;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}


/* Red side */

.subject-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #e11d2e,
            #ff5a66
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


/* Glow */

.subject-card::after {
    content: "";

    position: absolute;

    right: -65px;
    bottom: -75px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HOVER
   ============================================================ */

.subject-card:hover {
    transform:
        translateY(-7px)
        rotateX(1deg);

    border-color:
        rgba(225, 29, 46, 0.23);

    box-shadow:
        0 4px 0 #ffffff inset,
        0 6px 0 #d7d7d7,
        0 20px 38px rgba(0, 0, 0, 0.10);
}


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


/* ============================================================
   SUBJECT ICON
   ============================================================ */

.subject-card-icon {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    background:
        linear-gradient(
            145deg,
            #fff7f7,
            #ffe5e8
        );

    border: 1px solid #ffd0d4;

    border-radius: 16px;

    font-size: 27px;

    box-shadow:
        0 3px 0 #efc8cb,
        0 7px 14px rgba(225, 29, 46, 0.10);

    transform: translateZ(25px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.subject-card:hover .subject-card-icon {
    transform:
        translateZ(38px)
        translateY(-2px);

    box-shadow:
        0 4px 0 #efc8cb,
        0 11px 20px rgba(225, 29, 46, 0.16);
}


/* ============================================================
   SUBJECT CONTENT
   ============================================================ */

.subject-card-content {
    position: relative;

    z-index: 2;

    flex: 1;

    min-width: 0;

    transform: translateZ(18px);
}


.subject-card-content h2 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 18px;

    font-weight: 850;

    line-height: 1.3;
}


.subject-card-content p {
    margin: 0;

    color: #737373;

    font-size: 12.5px;

    line-height: 1.55;
}


/* ============================================================
   QUESTION COUNT
   ============================================================ */

.subject-question-count {
    display: inline-flex;

    align-items: center;

    margin-top: 9px;

    padding: 5px 8px;

    background: #f2f2f2;

    border: 1px solid #e4e4e4;

    border-radius: 7px;

    color: #666666;

    font-size: 10px;

    font-weight: 750;
}


/* ============================================================
   ARROW
   ============================================================ */

.subject-card-arrow {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: #111111;

    border-radius: 10px;

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 3px 0 #000000,
        0 6px 10px rgba(0, 0, 0, 0.14);

    transform: translateZ(28px);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.subject-card:hover .subject-card-arrow {
    background: #e11d2e;

    transform:
        translateZ(40px)
        translateX(4px);

    box-shadow:
        0 3px 0 #a90f1d,
        0 7px 14px rgba(225, 29, 46, 0.22);
}




/* ============================================================
   EMPTY
   ============================================================ */

.subject-practice-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 270px;

    padding: 30px;

    background: #ffffff;

    border: 1px dashed #d6d6d6;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.04);
}


.subject-practice-empty[hidden] {
    display: none;
}


.subject-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 15px;

    background: #fff1f2;

    border-radius: 16px;

    font-size: 28px;

    box-shadow:
        0 4px 0 #f0d0d3;
}


.subject-practice-empty h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;

    font-weight: 800;
}


.subject-practice-empty p {
    max-width: 420px;

    margin: 0;

    color: #737373;

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .subject-practice-page {
        width: calc(100% - 24px);

        padding: 20px 0 90px;
    }


    .subject-practice-header {
        flex-direction: column;

        align-items: flex-start;

        min-height: auto;

        padding: 22px;

        border-radius: 20px;
    }


    .subject-practice-header h1 {
        font-size: 29px;

        letter-spacing: -0.7px;
    }


    .subject-practice-header p {
        font-size: 13px;
    }


    .subject-count-box {
        width: 78px;
        height: 78px;

        align-self: flex-end;

        border-radius: 17px;
    }


    .subject-count-box strong {
        font-size: 25px;
    }


    .subject-practice-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .subject-card {
        min-height: 110px;

        padding: 17px;

        border-radius: 17px;
    }


    .subject-card-icon {
        width: 52px;
        height: 52px;

        border-radius: 14px;

        font-size: 24px;

        transform: none;
    }


    .subject-card:hover .subject-card-icon {
        transform: translateY(-2px);
    }


    .subject-card-content {
        transform: none;
    }


    .subject-card-content h2 {
        font-size: 16px;
    }


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


    .subject-card-arrow {
        width: 34px;
        height: 34px;

        border-radius: 9px;

        transform: none;
    }


    .subject-card:hover .subject-card-arrow {
        transform: translateX(3px);
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .subject-practice-page {
        width: calc(100% - 18px);
    }


    .subject-card {
        gap: 12px;

        padding: 14px;
    }


    .subject-card-icon {
        width: 47px;
        height: 47px;

        font-size: 22px;
    }


    .subject-card-content h2 {
        font-size: 15px;
    }


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


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .subject-card,
    .subject-card-icon,
    .subject-card-arrow {
        transition: none;
    }
}




/* ============================================================
   RANKHUB — PYQ / PREVIOUS YEAR PAPERS
   Professional 3D Design
   ============================================================ */


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

.pyq-page {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding: 28px 0 100px;
}


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

.pyq-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-bottom: 22px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 11px;

    color: #444444;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 0 #dfdfdf,
        0 7px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.pyq-back:hover {
    color: #e11d2e;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #dddddd,
        0 10px 20px rgba(0, 0, 0, 0.08);
}


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

.pyq-header {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 180px;

    margin-bottom: 28px;

    padding: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f7
        );

    border: 1px solid #e2e2e2;

    border-radius: 23px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 0 #dddddd,
        0 16px 32px rgba(0, 0, 0, 0.07);

    transform-style: preserve-3d;
}


/* Red top line */

.pyq-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5966,
            #e11d2e
        );
}


/* Background glow */

.pyq-header::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -70px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.11),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   LABEL
   ============================================================ */

.pyq-label {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    margin-bottom: 9px;

    padding: 6px 10px;

    background: #fff0f1;

    border: 1px solid #ffd2d5;

    border-radius: 8px;

    color: #d7192a;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* ============================================================
   TITLE
   ============================================================ */

.pyq-header h1 {
    position: relative;

    z-index: 2;

    margin: 0 0 8px;

    color: #111111;

    font-size: clamp(28px, 5vw, 40px);

    font-weight: 850;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.pyq-header p {
    position: relative;

    z-index: 2;

    max-width: 650px;

    margin: 0;

    color: #707070;

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   COUNT
   ============================================================ */

.pyq-count-box {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eeeeee
        );

    border: 1px solid #dddddd;

    border-radius: 22px;

    box-shadow:
        0 4px 0 #d4d4d4,
        0 10px 18px rgba(0, 0, 0, 0.09);

    transform: translateZ(30px);
}


.pyq-count-box strong {
    color: #e11d2e;

    font-size: 32px;

    font-weight: 900;

    line-height: 1;
}


.pyq-count-box span {
    margin-top: 5px;

    color: #666666;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


/* ============================================================
   PYQ GRID
   ============================================================ */

.pyq-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    perspective: 1400px;
}


/* ============================================================
   PYQ CARD
   ============================================================ */

.pyq-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 18px;

    min-height: 145px;

    padding: 21px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f8
        );

    border: 1px solid #e3e3e3;

    border-radius: 19px;

    text-decoration: none;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 0 #dddddd,
        0 12px 25px rgba(0, 0, 0, 0.06);

    transform-style: preserve-3d;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}


/* Red side */

.pyq-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #e11d2e,
            #ff5a66
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


/* Decorative glow */

.pyq-card::after {
    content: "";

    position: absolute;

    right: -65px;
    bottom: -75px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HOVER
   ============================================================ */

.pyq-card:hover {
    transform:
        translateY(-7px)
        rotateX(1deg);

    border-color:
        rgba(225, 29, 46, 0.23);

    box-shadow:
        0 4px 0 #ffffff inset,
        0 6px 0 #d7d7d7,
        0 20px 38px rgba(0, 0, 0, 0.10);
}


.pyq-card:hover::before {
    opacity: 1;
}


/* ============================================================
   PYQ ICON
   ============================================================ */

.pyq-card-icon {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 70px;

    background:
        linear-gradient(
            145deg,
            #fff7f7,
            #ffe5e8
        );

    border: 1px solid #ffd0d4;

    border-radius: 15px;

    color: #e11d2e;

    font-size: 27px;

    box-shadow:
        0 3px 0 #efc8cb,
        0 7px 14px rgba(225, 29, 46, 0.10);

    transform: translateZ(25px);

    transition:
        transform 0.3s ease;
}


.pyq-card:hover .pyq-card-icon {
    transform:
        translateZ(38px)
        translateY(-2px);
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.pyq-card-content {
    position: relative;

    z-index: 2;

    flex: 1;

    min-width: 0;

    transform: translateZ(18px);
}


.pyq-card-content h2 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 19px;

    font-weight: 850;

    line-height: 1.3;
}


.pyq-card-content p {
    margin: 0;

    color: #737373;

    font-size: 12.5px;

    line-height: 1.55;
}


/* ============================================================
   PAPER META
   ============================================================ */

.pyq-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 10px;
}


.pyq-meta-item {
    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    background: #f2f2f2;

    border: 1px solid #e4e4e4;

    border-radius: 7px;

    color: #666666;

    font-size: 10px;

    font-weight: 750;
}


/* ============================================================
   ARROW
   ============================================================ */

.pyq-card-arrow {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: #111111;

    border-radius: 10px;

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 3px 0 #000000,
        0 6px 10px rgba(0, 0, 0, 0.14);

    transform: translateZ(28px);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.pyq-card:hover .pyq-card-arrow {
    background: #e11d2e;

    transform:
        translateZ(40px)
        translateX(4px);

    box-shadow:
        0 3px 0 #a90f1d,
        0 7px 14px rgba(225, 29, 46, 0.22);
}



/* ============================================================
   EMPTY
   ============================================================ */

.pyq-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 270px;

    padding: 30px;

    background: #ffffff;

    border: 1px dashed #d6d6d6;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.04);
}


.pyq-empty[hidden] {
    display: none;
}


.pyq-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 15px;

    background: #fff1f2;

    border-radius: 16px;

    font-size: 28px;

    box-shadow:
        0 4px 0 #f0d0d3;
}


.pyq-empty h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;

    font-weight: 800;
}


.pyq-empty p {
    max-width: 420px;

    margin: 0;

    color: #737373;

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .pyq-page {
        width: calc(100% - 24px);

        padding: 20px 0 90px;
    }


    .pyq-header {
        flex-direction: column;

        align-items: flex-start;

        min-height: auto;

        padding: 22px;

        border-radius: 20px;
    }


    .pyq-header h1 {
        font-size: 29px;

        letter-spacing: -0.7px;
    }


    .pyq-header p {
        font-size: 13px;
    }


    .pyq-count-box {
        width: 78px;
        height: 78px;

        align-self: flex-end;

        border-radius: 17px;
    }


    .pyq-count-box strong {
        font-size: 25px;
    }


    .pyq-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .pyq-card {
        min-height: 125px;

        padding: 17px;

        gap: 13px;

        border-radius: 17px;
    }


    .pyq-card-icon {
        width: 53px;
        height: 61px;

        border-radius: 13px;

        font-size: 24px;

        transform: none;
    }


    .pyq-card:hover .pyq-card-icon {
        transform: translateY(-2px);
    }


    .pyq-card-content {
        transform: none;
    }


    .pyq-card-content h2 {
        font-size: 17px;
    }


    .pyq-card-content p {
        font-size: 12px;
    }


    .pyq-card-arrow {
        width: 34px;
        height: 34px;

        border-radius: 9px;

        transform: none;
    }


    .pyq-card:hover .pyq-card-arrow {
        transform: translateX(3px);
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .pyq-page {
        width: calc(100% - 18px);
    }


    .pyq-card {
        padding: 14px;

        gap: 10px;
    }


    .pyq-card-icon {
        width: 47px;
        height: 55px;

        font-size: 21px;
    }


    .pyq-card-content h2 {
        font-size: 15px;
    }


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


    .pyq-meta-item {
        font-size: 9px;

        padding: 4px 6px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .pyq-card,
    .pyq-card-icon,
    .pyq-card-arrow {
        transition: none;
    }
}






/* ============================================================
   RANKHUB — EXAM INFORMATION
   Professional 3D Design
   ============================================================ */


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

.exam-information-page {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding: 28px 0 100px;
}


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

.exam-information-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-bottom: 22px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 11px;

    color: #444444;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 0 #dfdfdf,
        0 7px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.exam-information-back:hover {
    color: #e11d2e;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #dddddd,
        0 10px 20px rgba(0, 0, 0, 0.08);
}


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

.exam-information-header {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 180px;

    margin-bottom: 28px;

    padding: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f7
        );

    border: 1px solid #e2e2e2;

    border-radius: 23px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 0 #dddddd,
        0 16px 32px rgba(0, 0, 0, 0.07);

    transform-style: preserve-3d;
}


/* Red top line */

.exam-information-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5966,
            #e11d2e
        );
}


/* Background glow */

.exam-information-header::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -70px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.11),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HEADER LABEL
   ============================================================ */

.exam-information-label {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    margin-bottom: 9px;

    padding: 6px 10px;

    background: #fff0f1;

    border: 1px solid #ffd2d5;

    border-radius: 8px;

    color: #d7192a;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* ============================================================
   TITLE
   ============================================================ */

.exam-information-header h1 {
    position: relative;

    z-index: 2;

    margin: 0 0 8px;

    color: #111111;

    font-size: clamp(28px, 5vw, 40px);

    font-weight: 850;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.exam-information-header p {
    position: relative;

    z-index: 2;

    max-width: 650px;

    margin: 0;

    color: #707070;

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   HEADER ICON
   ============================================================ */

.exam-information-icon {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eeeeee
        );

    border: 1px solid #dddddd;

    border-radius: 22px;

    font-size: 42px;

    box-shadow:
        0 4px 0 #d4d4d4,
        0 10px 18px rgba(0, 0, 0, 0.09);

    transform: translateZ(30px);
}


/* ============================================================
   INFORMATION GRID
   ============================================================ */

.exam-information-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    perspective: 1400px;
}


/* ============================================================
   INFORMATION CARD
   ============================================================ */

.information-card {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 17px;

    min-height: 175px;

    padding: 22px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f8
        );

    border: 1px solid #e3e3e3;

    border-radius: 19px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 0 #dddddd,
        0 12px 25px rgba(0, 0, 0, 0.06);

    transform-style: preserve-3d;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}


/* Red side */

.information-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #e11d2e,
            #ff5a66
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


/* Glow */

.information-card::after {
    content: "";

    position: absolute;

    right: -65px;
    bottom: -75px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.07),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HOVER
   ============================================================ */

.information-card:hover {
    transform:
        translateY(-6px)
        rotateX(1deg);

    border-color:
        rgba(225, 29, 46, 0.23);

    box-shadow:
        0 4px 0 #ffffff inset,
        0 6px 0 #d7d7d7,
        0 20px 38px rgba(0, 0, 0, 0.10);
}


.information-card:hover::before {
    opacity: 1;
}


/* ============================================================
   WIDE CARD
   ============================================================ */

.information-card-wide {
    grid-column: 1 / -1;

    min-height: 190px;
}


/* ============================================================
   CARD ICON
   ============================================================ */

.information-card-icon {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background:
        linear-gradient(
            145deg,
            #fff7f7,
            #ffe5e8
        );

    border: 1px solid #ffd0d4;

    border-radius: 15px;

    font-size: 25px;

    box-shadow:
        0 3px 0 #efc8cb,
        0 7px 14px rgba(225, 29, 46, 0.10);

    transform: translateZ(25px);

    transition:
        transform 0.3s ease;
}


.information-card:hover .information-card-icon {
    transform:
        translateZ(38px)
        translateY(-2px);
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.information-card > div:last-child {
    position: relative;

    z-index: 2;

    flex: 1;

    min-width: 0;

    transform: translateZ(18px);
}


/* ============================================================
   CARD LABEL
   ============================================================ */

.information-card-label {
    display: inline-flex;

    margin-bottom: 6px;

    color: #d7192a;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 0.8px;
}


/* ============================================================
   CARD TITLE
   ============================================================ */

.information-card h2 {
    margin: 0 0 10px;

    color: #111111;

    font-size: 19px;

    font-weight: 850;

    line-height: 1.3;
}


/* ============================================================
   INFORMATION CONTENT
   ============================================================ */

.information-content {
    color: #666666;

    font-size: 13px;

    line-height: 1.7;

    white-space: pre-line;
}


/* Lists inside Firestore content */

.information-content ul {
    margin: 8px 0 0;

    padding-left: 20px;
}


.information-content li {
    margin-bottom: 5px;
}


/* ============================================================
   LOADING
   ============================================================ */

.exam-information-loading {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 30px;

    color: #737373;

    text-align: center;
}


.exam-information-loading p {
    margin: 0;

    font-size: 13px;

    font-weight: 600;
}


/* ============================================================
   EMPTY
   ============================================================ */

.exam-information-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 270px;

    padding: 30px;

    background: #ffffff;

    border: 1px dashed #d6d6d6;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.04);
}


.exam-information-empty[hidden] {
    display: none;
}


.information-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 15px;

    background: #fff1f2;

    border-radius: 16px;

    font-size: 28px;

    box-shadow:
        0 4px 0 #f0d0d3;
}


.exam-information-empty h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;

    font-weight: 800;
}


.exam-information-empty p {
    max-width: 420px;

    margin: 0;

    color: #737373;

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .exam-information-page {
        width: calc(100% - 24px);

        padding: 20px 0 90px;
    }


    .exam-information-header {
        flex-direction: column;

        align-items: flex-start;

        min-height: auto;

        padding: 22px;

        border-radius: 20px;
    }


    .exam-information-header h1 {
        font-size: 29px;

        letter-spacing: -0.7px;
    }


    .exam-information-header p {
        font-size: 13px;
    }


    .exam-information-icon {
        width: 78px;
        height: 78px;

        align-self: flex-end;

        border-radius: 17px;

        font-size: 31px;
    }


    .exam-information-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .information-card,
    .information-card-wide {
        grid-column: auto;

        min-height: 150px;

        padding: 17px;

        gap: 13px;

        border-radius: 17px;
    }


    .information-card-icon {
        width: 51px;
        height: 51px;

        border-radius: 13px;

        font-size: 22px;

        transform: none;
    }


    .information-card:hover .information-card-icon {
        transform: translateY(-2px);
    }


    .information-card > div:last-child {
        transform: none;
    }


    .information-card h2 {
        font-size: 17px;
    }


    .information-content {
        font-size: 12px;

        line-height: 1.6;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .exam-information-page {
        width: calc(100% - 18px);
    }


    .information-card {
        padding: 14px;

        gap: 10px;
    }


    .information-card-icon {
        width: 46px;
        height: 46px;

        font-size: 20px;
    }


    .information-card h2 {
        font-size: 15px;
    }


    .information-content {
        font-size: 11.5px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .information-card,
    .information-card-icon {
        transition: none;
    }
}






/* ============================================================
   RANKHUB — TEST SERIES
   Professional 3D Design
   ============================================================ */


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

.test-series-page {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding: 28px 0 100px;
}


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

.test-series-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-bottom: 22px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #e4e4e4;

    border-radius: 11px;

    color: #444444;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 0 #dfdfdf,
        0 7px 15px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.test-series-back:hover {
    color: #e11d2e;

    transform: translateY(-2px);

    box-shadow:
        0 4px 0 #dddddd,
        0 10px 20px rgba(0, 0, 0, 0.08);
}


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

.test-series-header {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 180px;

    margin-bottom: 28px;

    padding: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f7
        );

    border: 1px solid #e2e2e2;

    border-radius: 23px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 5px 0 #dddddd,
        0 16px 32px rgba(0, 0, 0, 0.07);

    transform-style: preserve-3d;
}


/* Red top line */

.test-series-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #e11d2e,
            #ff5966,
            #e11d2e
        );
}


/* Glow */

.test-series-header::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -70px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.11),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HEADER LABEL
   ============================================================ */

.test-series-label {
    position: relative;

    z-index: 2;

    display: inline-flex;

    margin-bottom: 9px;

    padding: 6px 10px;

    background: #fff0f1;

    border: 1px solid #ffd2d5;

    border-radius: 8px;

    color: #d7192a;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* ============================================================
   TITLE
   ============================================================ */

.test-series-header h1 {
    position: relative;

    z-index: 2;

    margin: 0 0 8px;

    color: #111111;

    font-size: clamp(28px, 5vw, 40px);

    font-weight: 850;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.test-series-header p {
    position: relative;

    z-index: 2;

    max-width: 650px;

    margin: 0;

    color: #707070;

    font-size: 14px;

    line-height: 1.6;
}


/* ============================================================
   HEADER ICON
   ============================================================ */

.test-series-icon {
    position: relative;

    z-index: 3;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eeeeee
        );

    border: 1px solid #dddddd;

    border-radius: 22px;

    font-size: 42px;

    box-shadow:
        0 4px 0 #d4d4d4,
        0 10px 18px rgba(0, 0, 0, 0.09);

    transform: translateZ(30px);
}


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

.test-series-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    perspective: 1400px;
}


/* ============================================================
   CARD
   ============================================================ */

.test-series-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 245px;

    padding: 22px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f8
        );

    border: 1px solid #e3e3e3;

    border-radius: 19px;

    box-shadow:
        0 3px 0 #ffffff inset,
        0 4px 0 #dddddd,
        0 12px 25px rgba(0, 0, 0, 0.06);

    transform-style: preserve-3d;

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}


/* Red left line */

.test-series-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #e11d2e,
            #ff5966
        );

    opacity: 0;

    transition: opacity 0.25s ease;
}


/* Glow */

.test-series-card::after {
    content: "";

    position: absolute;

    right: -70px;
    bottom: -80px;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(225, 29, 46, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


/* ============================================================
   HOVER
   ============================================================ */

.test-series-card:hover {
    transform:
        translateY(-7px)
        rotateX(1deg);

    border-color:
        rgba(225, 29, 46, 0.23);

    box-shadow:
        0 4px 0 #ffffff inset,
        0 6px 0 #d7d7d7,
        0 20px 38px rgba(0, 0, 0, 0.10);
}


.test-series-card:hover::before {
    opacity: 1;
}


/* ============================================================
   CARD TOP
   ============================================================ */

.test-series-card-top {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 17px;

    transform: translateZ(20px);
}


/* ============================================================
   ICON
   ============================================================ */

.test-series-card-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background:
        linear-gradient(
            145deg,
            #fff7f7,
            #ffe5e8
        );

    border: 1px solid #ffd0d4;

    border-radius: 15px;

    font-size: 25px;

    box-shadow:
        0 3px 0 #efc8cb,
        0 7px 14px rgba(225, 29, 46, 0.10);

    transform: translateZ(25px);

    transition:
        transform 0.3s ease;
}


.test-series-card:hover .test-series-card-icon {
    transform:
        translateZ(38px)
        translateY(-2px);
}


/* ============================================================
   BADGE
   ============================================================ */

.test-series-badge {
    display: inline-flex;

    align-items: center;

    padding: 6px 9px;

    background: #111111;

    border-radius: 8px;

    color: #ffffff;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    box-shadow:
        0 3px 0 #000000;
}


/* Premium */

.test-series-badge.premium {
    background: #e11d2e;

    box-shadow:
        0 3px 0 #a90f1d;
}


/* Free */

.test-series-badge.free {
    background: #18864b;

    box-shadow:
        0 3px 0 #0e6337;
}


/* ============================================================
   CONTENT
   ============================================================ */

.test-series-card-content {
    position: relative;

    z-index: 2;

    flex: 1;

    transform: translateZ(18px);
}


.test-series-card-content h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;

    font-weight: 850;

    line-height: 1.3;
}


.test-series-card-content p {
    margin: 0;

    color: #737373;

    font-size: 12.5px;

    line-height: 1.6;
}


/* ============================================================
   META
   ============================================================ */

.test-series-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 13px;
}


.test-series-meta-item {
    display: inline-flex;

    align-items: center;

    padding: 6px 8px;

    background: #f2f2f2;

    border: 1px solid #e4e4e4;

    border-radius: 7px;

    color: #666666;

    font-size: 10px;

    font-weight: 750;
}


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

.test-series-btn {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 43px;

    margin-top: 18px;

    padding: 0 15px;

    background: #111111;

    border: 0;

    border-radius: 10px;

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 3px 0 #000000,
        0 7px 13px rgba(0, 0, 0, 0.12);

    transform: translateZ(25px);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.test-series-btn:hover {
    background: #e11d2e;

    transform:
        translateZ(38px)
        translateY(-2px);

    box-shadow:
        0 3px 0 #a90f1d,
        0 8px 15px rgba(225, 29, 46, 0.20);
}




/* ============================================================
   EMPTY
   ============================================================ */

.test-series-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 270px;

    padding: 30px;

    background: #ffffff;

    border: 1px dashed #d6d6d6;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.04);
}


.test-series-empty[hidden] {
    display: none;
}


.test-series-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 15px;

    background: #fff1f2;

    border-radius: 16px;

    font-size: 28px;

    box-shadow:
        0 4px 0 #f0d0d3;
}


.test-series-empty h2 {
    margin: 0 0 7px;

    color: #111111;

    font-size: 20px;

    font-weight: 800;
}


.test-series-empty p {
    max-width: 420px;

    margin: 0;

    color: #737373;

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .test-series-page {
        width: calc(100% - 24px);

        padding: 20px 0 90px;
    }


    .test-series-header {
        flex-direction: column;

        align-items: flex-start;

        min-height: auto;

        padding: 22px;

        border-radius: 20px;
    }


    .test-series-header h1 {
        font-size: 29px;

        letter-spacing: -0.7px;
    }


    .test-series-header p {
        font-size: 13px;
    }


    .test-series-icon {
        width: 78px;
        height: 78px;

        align-self: flex-end;

        border-radius: 17px;

        font-size: 31px;
    }


    .test-series-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .test-series-card {
        min-height: 225px;

        padding: 18px;

        border-radius: 17px;
    }


    .test-series-card-icon {
        width: 52px;
        height: 52px;

        border-radius: 13px;

        font-size: 22px;

        transform: none;
    }


    .test-series-card:hover .test-series-card-icon {
        transform: translateY(-2px);
    }


    .test-series-card-content {
        transform: none;
    }


    .test-series-card-content h2 {
        font-size: 17px;
    }


    .test-series-card-content p {
        font-size: 12px;
    }


    .test-series-btn {
        transform: none;
    }


    .test-series-btn:hover {
        transform: translateY(-2px);
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .test-series-page {
        width: calc(100% - 18px);
    }


    .test-series-card {
        padding: 14px;
    }


    .test-series-card-icon {
        width: 46px;
        height: 46px;

        font-size: 20px;
    }


    .test-series-card-content h2 {
        font-size: 15px;
    }


    .test-series-card-content p {
        font-size: 11.5px;
    }


    .test-series-meta-item {
        font-size: 9px;

        padding: 5px 6px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .test-series-card,
    .test-series-card-icon,
    .test-series-btn {
        transition: none;
    }
}









/* =========================================================
   RANKHUB — PROFESSIONAL CBT TEST INTERFACE
   Mobile + Tablet + Desktop
   test-interface.css
   ========================================================= */


/* =========================================================
   01. EXAM PAGE RESET
   ========================================================= */

.exam-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #f5f7fa;
    color: #17191c;
}

.exam-page #layout-container {
    display: none !important;
}

.exam-page *,
.exam-page *::before,
.exam-page *::after {
    box-sizing: border-box;
}

.exam-page button,
.exam-page input {
    font: inherit;
}

.exam-page button {
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-button,
.mobile-test-menu {
    display: none;
}


/* =========================================================
   02. EXAM HEADER
   ========================================================= */

.exam-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;

    height: 60px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    background: #ffffff;
    border-bottom: 1px solid #e6e8ec;

    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}


/* Brand */

.exam-brand {
    min-width: 260px;
    flex: 0 1 34%;

    display: flex;
    align-items: center;
    gap: 12px;
}

.rankhub-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    text-decoration: none;
    color: #111318;

    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #e11d2e;
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    box-shadow: 0 5px 14px rgba(225, 29, 46, 0.22);
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}


/* Exam title */

.exam-title {
    min-width: 0;
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.exam-title strong {
    max-width: none;

    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;

    font-size: 14px;
    font-weight: 750;
    color: #17191c;
}

.exam-title span {
    font-size: 11px;
    color: #7a818c;
}


/* Section */

.exam-section {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-width: 0;
}

.section-label {
    font-size: 11px;
    color: #8a919c;
}

.section-selector {
    min-width: 130px;

    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 0 12px;

    border: 1px solid #e2e5e9;
    border-radius: 8px;

    background: #ffffff;
    color: #30343a;

    cursor: pointer;
}

.section-selector span {
    max-width: 105px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 650;
}

.section-selector svg {
    width: 15px;
    height: 15px;
}


/* Actions */

.exam-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    min-width: 280px;
}


/* Timer */

.timer-box {
    min-width: 118px;
    height: 40px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 12px;

    border: 1px solid #e8d9db;
    border-radius: 9px;

    background: #fffafa;
}

.timer-box svg {
    width: 18px;
    height: 18px;

    color: #d7192b;
}

.timer-box div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.timer-box span {
    font-size: 9px;
    color: #8a7b7d;
}

.timer-box strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #c81729;
}

.exam-page #timer {
    min-width: 5ch;
    white-space: nowrap;
    text-align: right;
}

.timer-warning {
    border-color: #efb2b8;
    background: #fff3f4;
}


/* Icon button */

.icon-btn {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid #e4e7eb;
    border-radius: 9px;

    background: #ffffff;
    color: #4c535d;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.icon-btn:hover {
    background: #f7f8fa;
    border-color: #d6d9de;
}

.icon-btn:active {
    transform: scale(0.96);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
}


/* Submit */

.submit-test-btn {
    height: 40px;

    padding: 0 17px;

    border: 0;
    border-radius: 9px;

    background: #d7192b;
    color: #ffffff;

    font-size: 12px;
    font-weight: 750;

    cursor: pointer;

    box-shadow: 0 5px 14px rgba(215, 25, 43, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.submit-test-btn:hover {
    background: #bf1324;
}

.submit-test-btn:active {
    transform: scale(0.97);
}


/* =========================================================
   03. MAIN EXAM AREA
   ========================================================= */

.exam-main {
    position: fixed;

    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;

    min-width: 0;
    min-height: 0;

    z-index: 1;
}


/* =========================================================
   04. QUESTION WORKSPACE
   ========================================================= */

.question-workspace {
    position: relative;

    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    overflow: hidden;
}


/* =========================================================
   05. QUESTION TOPBAR
   ========================================================= */

.question-topbar {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    border-bottom: 1px solid #eceef1;

    background: #ffffff;
}

.question-number {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.question-number > span {
    font-size: 12px;
    color: #777f8a;
}

.question-number strong {
    font-size: 19px;
    font-weight: 800;
    color: #17191c;
}

.question-number small {
    font-size: 12px;
    font-weight: 500;
    color: #969ca5;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 7px;
}

.positive-mark,
.negative-mark {
    min-width: 40px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 750;
}

.positive-mark {
    color: #137a4b;
    background: #edf9f3;
}

.negative-mark {
    color: #bd2635;
    background: #fff0f2;
}

.language-btn {
    height: 34px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0 10px;

    border: 1px solid #e4e7eb;
    border-radius: 7px;

    background: #ffffff;
    color: #505761;

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
}

.language-btn svg {
    width: 14px;
    height: 14px;
}


/* =========================================================
   06. QUESTION CONTENT
   ========================================================= */

.question-content {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 24px 32px 28px;

    scrollbar-width: thin;
    scrollbar-color: #d8dce1 transparent;
}

.question-label {
    margin-bottom: 13px;

    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: #9a6065;
}

.question-text {
    width: min(100%, 980px);
    max-width: 980px;

    margin-bottom: 27px;

    padding: 22px 24px;

    border: 1px solid #e6e9ed;
    border-left: 4px solid #d7192b;
    border-radius: 12px;

    background: #fbfcfd;
    box-shadow: 0 5px 18px rgba(25, 30, 40, 0.04);

    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 500;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: normal;

    color: #18202a;
}

.question-text p,
.question-text div,
.question-text blockquote,
.question-text ul,
.question-text ol,
.question-text pre,
.question-text table {
    margin: 0 0 15px;
}

.question-text > :last-child {
    margin-bottom: 0;
}

.question-text strong,
.question-text b {
    color: #111827;
    font-weight: 800;
}

.question-text em,
.question-text i {
    font-style: italic;
}

.question-text ul,
.question-text ol {
    padding-left: 26px;
}

.question-text ul {
    list-style: disc;
}

.question-text ol {
    list-style: decimal;
}

.question-text li + li {
    margin-top: 6px;
}

.question-text blockquote {
    padding-left: 16px;
    border-left: 3px solid #d9dee5;
    color: #4b5563;
}

.question-text code,
.question-text pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.question-text pre {
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 8px;
    background: #f0f2f5;
    font-size: 0.9em;
    line-height: 1.55;
    white-space: pre-wrap;
}

.question-text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}

.question-text th,
.question-text td {
    padding: 8px 10px;
    border: 1px solid #dfe3e8;
    text-align: left;
}

.question-text th {
    background: #f0f2f5;
    font-weight: 750;
}

.question-loading {
    width: 70%;
    height: 18px;

    border-radius: 5px;

    background: #eef0f3;

    color: transparent;
}


/* =========================================================
   07. OPTIONS
   ========================================================= */

.options-list {
    max-width: 950px;

    display: flex;
    flex-direction: column;

    gap: 11px;
}

.option-item,
.option {
    position: relative;

    min-height: 57px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 12px 16px;

    border: 1px solid #e1e4e8;
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.option-item:hover,
.option:hover {
    border-color: #cbd0d7;
    background: #fbfcfd;
}

.option-item input,
.option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.option-indicator,
.option-letter {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: grid;
    place-items: center;

    border: 1px solid #d8dce1;
    border-radius: 50%;

    color: #5d646d;
    background: #ffffff;

    font-size: 12px;
    font-weight: 750;
}

.option-item .option-text,
.option .option-text {
    min-width: 0;

    color: #30343a;

    font-size: 14px;
    line-height: 1.55;
}

.option-item:has(input:checked),
.option:has(input:checked) {
    border-color: #d7192b;
    background: #fff8f9;
    box-shadow: 0 0 0 2px rgba(215, 25, 43, 0.06);
}

.option-item:has(input:checked) .option-indicator,
.option:has(input:checked) .option-letter {
    border-color: #d7192b;
    background: #d7192b;
    color: #ffffff;
}


/* =========================================================
   08. QUESTION CONTROLS
   ========================================================= */

.question-controls {
    min-height: 62px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 24px;

    border-top: 1px solid #e8eaed;

    background: #ffffff;

    flex-shrink: 0;
}

.control-btn {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 13px;

    border: 1px solid #e0e3e7;
    border-radius: 8px;

    background: #ffffff;
    color: #4d545e;

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.control-btn:hover {
    background: #f8f9fa;
    border-color: #d2d6dc;
}

.control-btn svg {
    width: 15px;
    height: 15px;
}

.review-btn {
    color: #8a5c0b;
}

.review-btn.active {
    border-color: #c58a16;
    background: #fff4c7;
    color: #704800;
    box-shadow: 0 0 0 2px rgba(197, 138, 22, 0.16);
}

.review-btn.active span {
    font-weight: 800;
}

.review-btn.active svg {
    color: #a66b00;
}

.review-status-toast {
    position: fixed;
    left: 50%;
    bottom: 82px;
    z-index: 3200;

    max-width: min(320px, calc(100vw - 32px));
    padding: 10px 14px;

    border: 1px solid #b9dfca;
    border-radius: 8px;

    background: #f0fff6;
    color: #17663c;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);

    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.review-status-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.clear-btn {
    color: #68707b;
}

.navigation-controls {
    margin-left: auto;

    display: flex;
    gap: 8px;
}

.previous-btn {
    min-width: 105px;
}

.next-btn {
    min-width: 125px;

    border-color: #d7192b;
    background: #d7192b;
    color: #ffffff;
}

.next-btn:hover {
    border-color: #bf1324;
    background: #bf1324;
}

.previous-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}


/* =========================================================
   09. DESKTOP QUESTION PANEL
   ========================================================= */

.question-panel {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 14px;

    background: #f8f9fb;
    border-left: 1px solid #e4e7eb;

    overflow: hidden;
}


/* Candidate */

.candidate-card {
    min-height: 67px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 11px;

    border: 1px solid #e2e5e9;
    border-radius: 10px;

    background: #ffffff;
}

.candidate-avatar {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f2e7e8;
    color: #b52130;

    font-size: 12px;
    font-weight: 800;
}

.candidate-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.candidate-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.candidate-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 750;

    color: #25292e;
}

.candidate-info span {
    font-size: 9px;
    color: #8b929b;
}

.candidate-menu {
    margin-left: auto;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 0;
    background: transparent;

    color: #7b828c;

    cursor: pointer;
}

.candidate-menu svg {
    width: 16px;
    height: 16px;
}


/* Progress */

.progress-card {
    margin-top: 13px;

    padding: 13px;

    border: 1px solid #e2e5e9;
    border-radius: 10px;

    background: #ffffff;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 9px;
}

.progress-header span {
    font-size: 10px;
    color: #747b85;
}

.progress-header strong {
    font-size: 11px;
    color: #c7192a;
}

.progress-track {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 99px;

    background: #eceef1;
}

.progress-track span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: #d7192b;

    transition: width 0.25s ease;
}


/* Palette */

.palette-header {
    margin-top: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.palette-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.palette-header strong {
    font-size: 12px;
    color: #24282d;
}

.palette-header span {
    font-size: 9px;
    color: #8a919b;
}

.palette-expand {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border: 1px solid #e0e3e7;
    border-radius: 7px;

    background: #ffffff;
    color: #6d747e;

    cursor: pointer;
}

.palette-expand svg {
    width: 14px;
    height: 14px;
}


/* Question palette */

#questionPalette,
.question-palette {
    min-height: 0;

    margin-top: 11px;

    padding: 3px;
    width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 8px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #d5d9de transparent;
}

.palette-btn,
.palette-number {
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1 / 1;

    min-width: 0;
    min-height: 34px;
    margin: 0;
    position: relative;
    transform: none;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 7px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    opacity: 1;
    cursor: pointer;

    transition: none;
}

.question-palette > .palette-btn:hover,
.question-palette > .palette-number:hover,
.mobile-question-palette > .palette-btn:hover,
.mobile-question-palette > .palette-number:hover {
    transform: none;
}


.palette-btn:focus-visible,
.palette-number:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}


/* Answered */

.palette-btn.answered,
.palette-number.answered {
    border-color: #16834f;

    background: #1f9d63;
    color: #ffffff;
}


/* Not answered */

.palette-btn.not-answered,
.palette-number.not-answered {
    border-color: #d04450;

    background: #fee2e2;
    color: #991b1b;
}


/* Review */

.palette-btn.review,
.palette-number.review {
    border-color: #d08a00;

    background: #fbbf24;
    color: #713f12;
}


/* Not visited */

.palette-btn.not-visited,
.palette-number.not-visited {
    border-color: #cbd5e1;

    background: #e5e7eb;
    color: #374151;
}


/* Current question always gets the active blue visual. */

#questionPalette > .palette-btn.current,
#questionPalette > .palette-number.current,
.question-palette > .palette-btn.current,
.question-palette > .palette-number.current,
#mobileQuestionPalette > .palette-btn.current,
#mobileQuestionPalette > .palette-number.current,
.mobile-question-palette > .palette-btn.current,
.mobile-question-palette > .palette-number.current {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px #ffffff;
}

#questionPalette > .palette-btn.answered:hover,
#questionPalette > .palette-number.answered:hover,
.mobile-question-palette > .palette-btn.answered:hover,
.mobile-question-palette > .palette-number.answered:hover {
    background: #1f9d63 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

#questionPalette > .palette-btn.review:hover,
#questionPalette > .palette-number.review:hover,
.mobile-question-palette > .palette-btn.review:hover,
.mobile-question-palette > .palette-number.review:hover {
    background: #fbbf24 !important;
    color: #713f12 !important;
    transform: none !important;
    box-shadow: none !important;
}

#questionPalette > .palette-btn.not-answered:hover,
#questionPalette > .palette-number.not-answered:hover,
.mobile-question-palette > .palette-btn.not-answered:hover,
.mobile-question-palette > .palette-number.not-answered:hover {
    background: #fee2e2 !important;
    color: #991b1b !important;
    transform: none !important;
    box-shadow: none !important;
}

#questionPalette > .palette-btn.not-visited:hover,
#questionPalette > .palette-number.not-visited:hover,
.mobile-question-palette > .palette-btn.not-visited:hover,
.mobile-question-palette > .palette-number.not-visited:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
    transform: none !important;
    box-shadow: none !important;
}

#questionPalette > .palette-btn.current:hover,
#questionPalette > .palette-number.current:hover,
.mobile-question-palette > .palette-btn.current:hover,
.mobile-question-palette > .palette-number.current:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: 0 0 0 2px #ffffff !important;
}


/* Legend */

.palette-legend {
    margin-top: auto;

    padding-top: 14px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    border-top: 1px solid #e5e7eb;
}

.legend-item {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 5px;
}

.legend-item span:not(.legend-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 9px;
    font-weight: 600;
    color: #4b5563;
}

.legend-item strong {
    margin-left: auto;

    min-width: 1.25rem;

    font-size: 11px;
    font-weight: 800;
    text-align: right;
    color: #111827;
}

.legend-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 8px;

    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 50%;
}

.legend-dot.answered {
    background: #1f9d63;
}

.legend-dot.not-answered {
    background: #ef4444;
}

.legend-dot.review {
    background: #fbbf24;
}

.legend-dot.not-visited {
    background: #d1d5db;
}


/* =========================================================
   10. MOBILE PALETTE
   ========================================================= */

.mobile-palette-btn,
.mobile-palette-overlay,
.mobile-palette-drawer {
    display: none;
}


/* =========================================================
   11. SUBMIT MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 18, 23, 0.58);

    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.exam-page #exitModal[aria-hidden="true"],
.exam-page #submitModal[aria-hidden="true"] {
    display: none !important;
}

.exam-page.cbt-modal-open {
    overflow: hidden;
}

.submit-modal {
    width: min(430px, 100%);

    padding: 26px;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.22);
}

.modal-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    border-radius: 12px;

    background: #fff0f2;
    color: #d7192b;
}

.modal-icon svg {
    width: 22px;
    height: 22px;
}

.submit-modal h2 {
    margin: 0 0 7px;

    font-size: 20px;
    color: #17191c;
}

.submit-modal p {
    margin: 0;

    font-size: 12px;
    line-height: 1.6;

    color: #777f89;
}

.submission-summary {
    margin-top: 19px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border: 1px solid #e7e9ec;
    border-radius: 10px;

    overflow: hidden;
}

.submission-summary div {
    padding: 12px 7px;

    text-align: center;

    border-right: 1px solid #e7e9ec;
}

.submission-summary div:last-child {
    border-right: 0;
}

.submission-summary span {
    display: block;

    margin-bottom: 4px;

    font-size: 8px;
    color: #8a919b;
}

.submission-summary strong {
    font-size: 16px;
    color: #25292e;
}

.modal-actions {
    margin-top: 20px;

    display: flex;

    gap: 8px;
}

.modal-cancel,
.modal-submit {
    flex: 1;

    height: 42px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.modal-cancel {
    border: 1px solid #dfe2e6;
    background: #ffffff;
    color: #555c65;
}

.modal-submit {
    border: 1px solid #d7192b;
    background: #d7192b;
    color: #ffffff;
}


/* =========================================================
   12. TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .exam-header {
        padding: 0 14px;
    }

    .exam-brand {
        min-width: 220px;
    }

    .exam-actions {
        min-width: 250px;
    }

    .question-panel {
        width: 290px;
    }

    .exam-main {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .question-content {
        padding: 20px 24px 24px;
    }

}


/* =========================================================
   13. MOBILE — MAIN
   ========================================================= */

@media (max-width: 768px) {

    .exam-page {
        min-height: 100dvh;

        overflow: hidden;
    }


    /* -----------------------------------------------------
       Header
    ----------------------------------------------------- */

    .exam-header {

        height: 56px;

        padding:
            0 10px;

        gap: 8px;
    }


    .exam-brand {
        min-width: 0;
        flex: 1;

        gap: 9px;
    }


    .exam-page .header-logo {
        gap: 6px;
        flex-shrink: 0;
    }


    .rankhub-logo {
        gap: 6px;
    }


    .logo-mark {
        width: 30px;
        height: 30px;

        border-radius: 8px;

        font-size: 15px;
    }


    .logo-text {
        display: inline;
        font-size: 13px;
    }


    .exam-title {
        min-width: 0;
    }


    .exam-title strong {

        max-width: none;
        min-width: 0;

        font-size: 11px;
    }


    .exam-title span {
        display: none;
    }


    /* -----------------------------------------------------
       Hide desktop section
    ----------------------------------------------------- */

    .exam-section {
        display: none;
    }


    /* -----------------------------------------------------
       Header actions
    ----------------------------------------------------- */

    .exam-actions {

        min-width: 0;
        flex: 0 0 auto;

        gap: 4px;
    }


    .exam-page #fullscreenBtn,
    .exam-page #exitTestBtn,
    .exam-page #submitTestBtn {
        display: none;
    }


    .timer-box {

        min-width: 74px;
        height: 34px;

        padding: 0 8px;

        gap: 6px;

        border-radius: 8px;
    }


    .timer-box svg {
        width: 15px;
        height: 15px;
    }


    .timer-box span {
        display: none;
    }


    .timer-box strong {

        font-size: 12px;
    }


    .icon-btn {

        width: 34px;
        height: 34px;

        border-radius: 8px;
    }


    .icon-btn svg {

        width: 15px;
        height: 15px;
    }


    .submit-test-btn {

        height: 34px;

        padding: 0 9px;

        border-radius: 8px;

        font-size: 10px;
    }


    .exam-page .exit-test-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        border-radius: 8px;
        white-space: nowrap;
    }


    .exam-page .exit-test-btn svg {
        width: 15px;
        height: 15px;
    }


    .mobile-menu-button {
        min-width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0 8px;
        border: 1px solid #e1e4e8;
        border-radius: 8px;
        background: #ffffff;
        color: #30343a;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
    }


    .mobile-menu-button svg {
        width: 15px;
        height: 15px;
    }


    .mobile-menu-button span {
        display: none;
    }


    .mobile-test-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2200;
        display: block;
        width: min(290px, 86vw);
        padding: 18px 14px;
        border-left: 1px solid #e2e5e9;
        background: #ffffff;
        box-shadow: -12px 0 30px rgba(15, 23, 42, 0.16);
        transform: translateX(105%);
        visibility: hidden;
        transition:
            transform 0.28s cubic-bezier(.22, .61, .36, 1),
            visibility 0.28s ease;
    }


    .mobile-test-menu.active {
        transform: translateX(0);
        visibility: visible;
    }


    .mobile-test-menu-header {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #eceef1;
    }


    .mobile-test-menu-header strong {
        color: #17191c;
        font-size: 14px;
    }


    .mobile-test-menu-header button {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #30343a;
        cursor: pointer;
    }


    .mobile-test-menu-header button:hover {
        background: #f7f8fa;
    }


    .mobile-test-menu button {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        gap: 9px;
        margin-top: 6px;
        padding: 0 9px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: #ffffff;
        color: #30343a;
        font-size: 11px;
        font-weight: 650;
        text-align: left;
        cursor: pointer;
    }


    .mobile-test-menu button:hover {
        background: #f7f8fa;
        border-color: #e4e7eb;
    }


    .mobile-test-menu button svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }


    /* -----------------------------------------------------
       Main
    ----------------------------------------------------- */

    .exam-main {

        position: fixed;

        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;

        display: block;

        overflow: hidden;
    }


    /* -----------------------------------------------------
       Question workspace
    ----------------------------------------------------- */

    .question-workspace {

        width: 100%;
        height: 100%;

        min-height: 0;

        display: flex;

        overflow: hidden;
    }


    /* -----------------------------------------------------
       Hide desktop panel
    ----------------------------------------------------- */

    .question-panel {
        display: none;
    }


    /* -----------------------------------------------------
       Question topbar
    ----------------------------------------------------- */

    .question-topbar {

        position: relative;
        z-index: 50;

        min-height: 48px;

        padding:
            0 12px;

        flex-shrink: 0;
    }


    .question-number {

        gap: 6px;
    }


    .question-number > span {

        font-size: 10px;
    }


    .question-number strong {

        font-size: 16px;
    }


    .question-number small {

        font-size: 10px;
    }


    .question-meta {

        gap: 4px;
    }


    .positive-mark,
    .negative-mark {

        min-width: 31px;
        height: 24px;

        padding: 0 6px;

        border-radius: 5px;

        font-size: 9px;
    }


    .language-btn {

        position: relative;
        z-index: 100;

        width: auto;
        min-width: 76px;
        height: 44px;
        min-height: 44px;

        pointer-events: auto;
        touch-action: manipulation;

        justify-content: center;

        flex-shrink: 0;
        padding: 0 12px;
        overflow: visible;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1;
    }


    .language-btn span {

        display: none;
    }


    .language-btn svg {

        width: 14px;
        height: 14px;
    }


    /* -----------------------------------------------------
       Question content
    ----------------------------------------------------- */

    .question-content {

        flex: 1;

        min-height: 0;

        overflow-y: auto;

        padding:
            14px 12px 78px;
    }


    .question-label {

        margin-bottom: 9px;

        font-size: 9px;
    }


    .question-text {

        margin-bottom: 19px;

        padding: 16px 15px;

        font-size: 15px;

        line-height: 1.6;

        border-left-width: 3px;
    }


    .question-loading {

        width: 90%;
        height: 16px;
    }


    /* -----------------------------------------------------
       Options
    ----------------------------------------------------- */

    .options-list {

        width: 100%;

        gap: 9px;
    }


    .option-item,
    .option {

        width: 100%;

        min-height: 53px;

        padding:
            10px 11px;

        gap: 10px;

        border-radius: 9px;
    }


    .option-indicator,
    .option-letter {

        width: 29px;
        height: 29px;

        flex: 0 0 29px;

        font-size: 11px;
    }


    .option-item .option-text,
    .option .option-text {

        font-size: 13px;

        line-height: 1.48;
    }


    /* -----------------------------------------------------
       Bottom controls
    ----------------------------------------------------- */

    .question-controls {

        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 50;

        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;

        min-height: 58px;

        padding:
            8px 10px;

        gap: 6px;

        border-top:
            1px solid #e3e6ea;

        box-shadow:
            0 -4px 15px rgba(20, 25, 30, 0.06);
    }


    .control-btn {

        height: 43px;

        padding:
            0 10px;

        border-radius: 8px;

        font-size: 10px;
    }


    .control-btn svg {

        width: 15px;
        height: 15px;
    }


    .review-btn span,
    .clear-btn span {

        display: none;
    }


    .language-btn span {

        display: inline;
        white-space: nowrap;
    }


    .review-btn,
    .clear-btn {

        position: relative;
        z-index: 100;

        width: 44px;
        min-width: 44px;
        min-height: 44px;

        padding: 0;

        pointer-events: auto;
        touch-action: manipulation;
    }


    #clearAnswerBtn {

        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;

        padding: 0;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
    }


    .review-btn.active {
        border-color: #c58a16;
        background: #fff1b8;
        box-shadow: 0 0 0 2px rgba(197, 138, 22, 0.2);
    }


    .review-btn:active,
    .clear-btn:active,
    .language-btn:active {

        transform: scale(0.98);
    }


    .review-status-toast {
        bottom: 72px;
    }


    .navigation-controls {

        flex: 1;

        margin-left: 0;

        display: flex;

        gap: 6px;
    }


    .previous-btn,
    .next-btn {

        flex: 1;

        min-width: 0;
    }


    .previous-btn span,
    .next-btn span {

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       Mobile palette button
    ----------------------------------------------------- */

    .mobile-palette-btn {

        display: none !important;

        position: fixed;

        right: 12px;
        bottom: 78px;

        z-index: 80;

        height: 38px;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        gap: 6px;

        padding:
            0 11px;

        border:
            1px solid #ead0d3;

        border-radius: 20px;

        background: #ffffff;

        color: #c7192a;

        box-shadow:
            0 6px 18px rgba(25, 30, 40, 0.13);

        font-size: 10px;
        font-weight: 750;

        cursor: pointer;
    }


    .mobile-palette-btn svg {

        width: 14px;
        height: 14px;
    }


    /* -----------------------------------------------------
       Overlay
    ----------------------------------------------------- */

    .mobile-palette-overlay {

        position: fixed;

        inset: 0;

        z-index: 150;

        display: block;

        background:
            rgba(10, 14, 20, 0.48);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }


    .mobile-palette-overlay.active {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    /* -----------------------------------------------------
       Drawer
    ----------------------------------------------------- */

    .mobile-palette-drawer {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 160;

        display: flex;

        flex-direction: column;

        height: min(78dvh, 600px);

        padding:
            0 14px 18px;

        border-radius:
            18px 18px 0 0;

        background: #ffffff;

        box-shadow:
            0 -15px 45px rgba(0, 0, 0, 0.18);

        transform:
            translateY(105%);

        visibility: hidden;

        transition:
            transform 0.28s cubic-bezier(.22, .61, .36, 1),
            visibility 0.28s ease;
    }


    .mobile-palette-drawer.active {

        transform:
            translateY(0);

        visibility: visible;
    }


    /* Drawer header */

    .drawer-header {

        min-height: 62px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        border-bottom:
            1px solid #e8eaed;
    }


    .drawer-header > div {

        display: flex;

        flex-direction: column;

        gap: 3px;
    }


    .drawer-header strong {

        font-size: 14px;

        color: #20242a;
    }


    .drawer-header span {

        font-size: 9px;

        color: #858c96;
    }


    .drawer-header button {

        width: 34px;
        height: 34px;

        display: grid;

        place-items: center;

        border:
            1px solid #e1e4e8;

        border-radius: 8px;

        background: #ffffff;

        color: #626a74;

        cursor: pointer;
    }


    .drawer-header button svg {

        width: 17px;
        height: 17px;
    }


    /* Mobile palette */

    .mobile-question-palette {

        flex: 1;

        min-height: 0;

        overflow-y: auto;

        padding:
            16px 2px 20px;

        width: 100%;
        box-sizing: border-box;

        display: grid;

        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        align-content: start;

        gap: 8px;
    }


    .mobile-question-palette
    .palette-btn,
    .mobile-question-palette
    .palette-number {

        width: 100%;

        aspect-ratio: 1 / 1;

        min-height: 42px;

        border-radius: 8px;

        font-size: 11px;
    }


    /* -----------------------------------------------------
       Modal
    ----------------------------------------------------- */

    .modal-overlay {

        align-items: flex-end;

        padding: 0;
    }


    .submit-modal {

        width: 100%;

        padding:
            22px 16px
            calc(22px + env(safe-area-inset-bottom));

        border-radius:
            18px 18px 0 0;
    }


    .modal-icon {

        width: 42px;
        height: 42px;

        margin-bottom: 12px;
    }


    .submit-modal h2 {

        font-size: 18px;
    }


    .submit-modal p {

        font-size: 11px;
    }


    .submission-summary {

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


    .submission-summary div:nth-child(2) {

        border-right: 0;
    }


    .submission-summary div:nth-child(-n + 2) {

        border-bottom:
            1px solid #e7e9ec;
    }


    .modal-actions {

        flex-direction: column-reverse;
    }


    .modal-cancel,
    .modal-submit {

        width: 100%;

        height: 44px;
    }


    /* Exit confirmation stays compact and centered on mobile. */
    #exitModal {

        position: fixed;
        inset: 0;

        width: 100%;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 16px;
        box-sizing: border-box;
        z-index: 9999;

        overflow-y: auto;
    }


    #exitModal .submit-modal {

        width: min(380px, calc(100vw - 32px));
        max-width: 380px;
        max-height: calc(100dvh - 32px);

        margin: 0 auto;
        box-sizing: border-box;
        overflow-y: auto;

        padding: 20px;
        border-radius: 16px;
    }


    #exitModal .modal-actions {

        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }


    #exitModal .modal-actions button {

        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 44px;
        height: 44px;
        padding: 0 10px;
        white-space: nowrap;
    }


    #submitModal {

        position: fixed;
        inset: 0;

        width: 100%;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 12px;
        box-sizing: border-box;
        z-index: 9999;

        overflow-y: auto;
    }


    #submitModal .submit-modal {

        width: min(420px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);

        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        margin: auto;

        padding: 20px;
        border-radius: 16px;
    }


    #submitModal .modal-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }


    #submitModal .submit-modal h2 {
        margin-bottom: 6px;
        font-size: 18px;
    }


    #submitModal .submit-modal p {
        font-size: 11px;
        line-height: 1.45;
    }


    #submitModal .submission-summary {
        margin-top: 14px;
    }


    #submitModal .submission-summary div {
        padding: 10px 6px;
    }


    #submitModal .modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
        width: 100%;
    }


    #submitModal .modal-actions button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        height: 44px;
        padding: 0 8px;
        white-space: nowrap;
    }

}


@media (max-width: 360px) {

    #submitModal .submit-modal {
        padding: 16px;
    }


    #submitModal .modal-actions {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   14. SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .exam-header {

        padding:
            0 7px;
    }


    .exam-title strong {

        max-width: none;

        font-size: 10px;
    }


    .timer-box {

        min-width: 69px;

        padding:
            0 6px;
    }


    .timer-box strong {

        font-size: 11px;
    }


    .submit-test-btn {

        padding:
            0 7px;

        font-size: 9px;
    }


    .question-content {

        padding-left: 10px;
        padding-right: 10px;
    }


    .question-controls {

        padding-left: 7px;
        padding-right: 7px;
    }


    .review-btn {

        width: 44px;
        min-width: 44px;
    }


    .clear-btn {

        width: 112px;
        min-width: 112px;
    }


    .control-btn {

        height: 41px;

        padding:
            0 8px;
    }


    .mobile-question-palette {

        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

}


@media (max-width: 420px) {

    .exam-page .brand-logo-text {
        display: none;
    }


    .exam-page .exit-test-btn span {
        display: none;
    }


    .exam-page .exit-test-btn {
        width: 34px;
        padding: 0;
    }


    .mobile-menu-button {
        width: 34px;
        padding: 0;
    }


    .mobile-menu-button span {
        display: none;
    }


    .mobile-test-menu {
        top: 64px;
        right: 7px;
        width: min(220px, calc(100vw - 14px));
    }


    .exam-title strong {
        max-width: none;
    }

}


/* =========================================================
   15. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 340px) {

    .exam-brand {
        flex: 1 1 auto;
        min-width: 0;
    }


    .question-meta
    .negative-mark {

        display: none;
    }


    .mobile-palette-btn span {

        display: none;
    }


    .mobile-palette-btn {

        width: 38px;

        padding: 0;
    }


    .question-text {

        font-size: 14px;
    }


    .option-text {

        font-size: 12px;
    }

}


/* =========================================================
   16. LANDSCAPE MOBILE
   ========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

    .exam-header {

        height: 54px;
    }


    .exam-main {

        top: 54px;
    }


    .question-topbar {

        min-height: 48px;
    }


    .question-content {

        padding-top: 13px;
        padding-bottom: 80px;
    }


    .question-controls {

        min-height: 55px;
    }


    .mobile-palette-drawer {

        height: 90dvh;
    }

}


/* =========================================================
   17. SAFE AREA
   ========================================================= */

@supports (padding: env(safe-area-inset-bottom)) {

    @media (max-width: 768px) {

        .question-controls {

            padding-bottom:
                calc(
                    8px +
                    env(safe-area-inset-bottom)
                );
        }

        .mobile-palette-drawer {

            padding-bottom:
                calc(
                    18px +
                    env(safe-area-inset-bottom)
                );
        }

    }

}


/* =========================================================
   18. TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .option-item,
    .option {

        min-height: 56px;
    }


    .control-btn,
    .submit-test-btn,
    .mobile-palette-btn {

        -webkit-user-select: none;
        user-select: none;
    }

}


/* =========================================================
   19. REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .exam-page *,
    .exam-page *::before,
    .exam-page *::after {

        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;
    }

}




/* =========================================================
   RANKHUB — 3D PREMIUM MOCK TEST CARD
   TOP LEVEL UI
   ========================================================= */

.mock-tests-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(320px, 1fr)
    );

    gap: 28px;

    perspective: 1200px;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.mock-test-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 390px;

    overflow: hidden;

    border-radius: 24px;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.75
    );

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8f8fa 48%,
            #eeeeF1 100%
        );

    box-shadow:
        0 2px 3px rgba(0,0,0,.04),
        0 10px 18px rgba(0,0,0,.07),
        0 25px 50px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.95);

    transform-style: preserve-3d;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease;
}


/* =========================================================
   3D HOVER
   ========================================================= */

.mock-test-card:hover {
    transform:
        translateY(-10px)
        rotateX(2deg)
        rotateY(-2deg);

    box-shadow:
        0 4px 8px rgba(0,0,0,.05),
        0 15px 30px rgba(0,0,0,.10),
        0 35px 70px rgba(0,0,0,.16);
}


/* =========================================================
   RED 3D TOP LIGHT
   ========================================================= */

.mock-test-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #b8000a,
            #ff1522,
            #ff4b55,
            #e50914,
            #a80008
        );

    box-shadow:
        0 2px 10px rgba(
            229,
            9,
            20,
            .40
        );

    z-index: 5;
}


/* =========================================================
   GLOW
   ========================================================= */

.mock-test-card::after {
    content: "";

    position: absolute;

    top: -100px;
    right: -90px;

    width: 210px;
    height: 210px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                229,
                9,
                20,
                .12
            ),
            transparent 68%
        );

    pointer-events: none;
}


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

.mock-test-card-header {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        24px
        24px
        16px;
}


/* =========================================================
   TEST NUMBER
   ========================================================= */

.mock-test-number {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 32px;

    padding:
        0
        12px;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #e8e8eb
        );

    border: 1px solid #dedee2;

    color: #44444a;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    box-shadow:
        0 3px 6px rgba(0,0,0,.08),
        inset 0 1px 0 #ffffff;
}


/* =========================================================
   ACTIVE BADGE
   ========================================================= */

.mock-test-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 30px;

    padding:
        0
        11px;

    border-radius: 999px;

    background:
        linear-gradient(
            145deg,
            #f5fff9,
            #e4f8ed
        );

    border: 1px solid #bfe8cf;

    color: #148348;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .8px;

    box-shadow:
        0 3px 8px rgba(
            22,
            150,
            78,
            .10
        );
}


.mock-test-status::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #18a957;

    box-shadow:
        0 0 0 3px rgba(
            24,
            169,
            87,
            .12
        ),
        0 0 10px rgba(
            24,
            169,
            87,
            .35
        );
}


/* =========================================================
   BODY
   ========================================================= */

.mock-test-card-body {
    position: relative;

    z-index: 3;

    display: flex;

    flex-direction: column;

    flex: 1;

    padding:
        0
        24px
        24px;
}


/* =========================================================
   TITLE
   ========================================================= */

.mock-test-title {
    margin:
        5px
        0
        8px;

    color: #111114;

    font-size: 20px;

    line-height: 1.35;

    font-weight: 900;

    letter-spacing: -.35px;

    text-shadow:
        0 1px 0 #ffffff;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.mock-test-description {
    margin:
        0
        0
        22px;

    color: #77777d;

    font-size: 12.5px;

    line-height: 1.65;

    font-weight: 500;
}


/* =========================================================
   3D META PANEL
   ========================================================= */

.mock-test-meta {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-bottom: 22px;

    padding: 7px;

    border-radius: 17px;

    border: 1px solid #dedee2;

    background:
        linear-gradient(
            145deg,
            #fdfdfd,
            #eeeeF1
        );

    box-shadow:
        inset 0 2px 4px rgba(0,0,0,.05),
        inset 0 -1px 0 rgba(255,255,255,.9),
        0 5px 12px rgba(0,0,0,.05);
}


/* =========================================================
   META ITEM
   ========================================================= */

.mock-meta-item {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 68px;

    padding: 7px 4px;

    text-align: center;
}


.mock-meta-item:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 18px;
    right: 0;

    width: 1px;
    height: 32px;

    background:
        linear-gradient(
            transparent,
            #d7d7da,
            transparent
        );
}


.mock-meta-item span {
    margin-bottom: 7px;

    color: #89898f;

    font-size: 8px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: .55px;

    text-transform: uppercase;
}


.mock-meta-item strong {
    color: #17171a;

    font-size: 15px;

    line-height: 1;

    font-weight: 900;
}


/* =========================================================
   START BUTTON — 3D
   ========================================================= */

.mock-test-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.mock-test-actions .mock-start-btn,
.mock-result-btn {
    min-height: 52px;
    margin-top: 0;
}

.mock-result-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 12px;
    border: 1px solid #d7192b;
    border-radius: 14px;
    background: #ffffff;
    color: #d7192b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .25px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.mock-result-btn:hover {
    background: #fff1f2;
    transform: translateY(-2px);
}

.mock-result-btn:active {
    transform: translateY(1px);
}

.mock-result-btn:focus-visible {
    outline: 3px solid rgba(229, 9, 20, .20);
    outline-offset: 4px;
}

.mock-start-btn {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 52px;

    margin-top: auto;

    overflow: hidden;

    border: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #ff2633 0%,
            #e50914 48%,
            #b90009 100%
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: .25px;

    cursor: pointer;

    box-shadow:
        0 5px 0 #8e0007,
        0 10px 18px rgba(
            229,
            9,
            20,
            .25
        ),
        inset 0 1px 0 rgba(
            255,
            255,
            255,
            .35
        );

    transform: translateY(0);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}


/* BUTTON LIGHT */

.mock-start-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(
                255,
                255,
                255,
                .25
            ),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left .55s ease;
}


.mock-start-btn:hover::before {
    left: 140%;
}


/* ARROW */

.mock-start-btn::after {
    content: "→";

    margin-left: 10px;

    font-size: 18px;

    transition:
        transform .2s ease;
}


.mock-start-btn:hover {
    filter: brightness(1.04);

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 0 #8e0007,
        0 15px 25px rgba(
            229,
            9,
            20,
            .30
        ),
        inset 0 1px 0 rgba(
            255,
            255,
            255,
            .40
        );
}


.mock-start-btn:hover::after {
    transform:
        translateX(5px);
}


.mock-start-btn:active {
    transform:
        translateY(4px);

    box-shadow:
        0 1px 0 #8e0007,
        0 5px 10px rgba(
            229,
            9,
            20,
            .20
        );
}


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

.mock-start-btn:focus-visible {
    outline:
        3px solid rgba(
            229,
            9,
            20,
            .20
        );

    outline-offset: 4px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .mock-tests-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        perspective: none;
    }


    .mock-test-card {
        min-height: 0;

        border-radius: 21px;
    }


    .mock-test-card:hover {
        transform:
            translateY(-4px);
    }


    .mock-test-card-header {
        padding:
            21px
            19px
            14px;
    }


    .mock-test-card-body {
        padding:
            0
            19px
            20px;
    }


    .mock-test-title {
        font-size: 18px;
    }


    .mock-test-meta {
        margin-bottom: 19px;
    }


    .mock-meta-item {
        min-height: 63px;
    }


    .mock-start-btn {
        min-height: 50px;
    }

    .mock-test-actions .mock-start-btn,
    .mock-result-btn {
        min-height: 50px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

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

    .mock-test-actions {
        grid-template-columns: 1fr;
    }


    .mock-meta-item {
        min-height: 60px;
    }


    .mock-meta-item:not(:last-child)::after {
        display: none;
    }


    .mock-meta-item:nth-child(1),
    .mock-meta-item:nth-child(2) {
        border-bottom:
            1px solid #dedee1;
    }


    .mock-test-title {
        font-size: 17px;
    }

}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mock-test-card,
    .mock-start-btn,
    .mock-start-btn::before,
    .mock-start-btn::after {
        transition: none;
    }

}


/* =========================================================
   RANKHUB — UI CONSISTENCY PASS
   Shared visual rules kept at the end so existing page
   selectors and JavaScript hooks remain unchanged.
   ========================================================= */

:root {
    --color-rankhub-red: #E50914;
    --color-rankhub-red-dark: #B20710;
    --color-background: #f5f7fa;
    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-text-primary: #17202a;
    --color-text-secondary: #5f6b76;
    --color-text-muted: #84909b;
    --color-border: #dfe5eb;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
    --shadow-md: 0 8px 22px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 18px 42px rgb(15 23 42 / 0.12);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--color-background);
    color: var(--color-text-primary);
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(217 45 63 / 0.22);
    outline-offset: 2px;
}

input,
select,
textarea {
    border-color: var(--color-border);
    border-radius: var(--radius-md);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-rankhub-red);
    box-shadow: 0 0 0 3px rgb(217 45 63 / 0.10);
    outline: none;
}

.container,
.home-page .container {
    max-width: 1320px;
}

.page-container {
    max-width: 1320px;
    padding-left: 28px;
}

.welcome-board,
.cta-card,
.exam-detail-hero,
.exam-information-header,
.mock-tests-header,
.test-series-header,
.pyq-header,
.pyq-paper-header {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.exam-card,
.mock-test-card,
.pyq-card,
.test-card,
.live-test-card,
.note-card,
.current-affair-card,
.exam-option-card,
.information-card,
.subject-card,
.test-series-card {
    border-color: var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.exam-card:hover,
.mock-test-card:hover,
.pyq-card:hover,
.test-card:hover,
.live-test-card:hover,
.note-card:hover,
.current-affair-card:hover,
.exam-option-card:hover,
.information-card:hover,
.subject-card:hover,
.test-series-card:hover {
    border-color: rgb(217 45 63 / 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.exam-card::before,
.mock-test-card::before,
.pyq-card::before,
.test-card::before {
    background: var(--color-rankhub-red);
    box-shadow: none;
}

.exam-card-btn,
.mock-start-btn,
.pyq-start-test,
.test-start-btn,
.primary-btn,
.cta-button,
.welcome-primary-btn {
    background: var(--color-rankhub-red);
    border-color: var(--color-rankhub-red);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 14px rgb(217 45 63 / 0.18);
}

.exam-card-btn:hover,
.mock-start-btn:hover,
.pyq-start-test:hover,
.test-start-btn:hover,
.primary-btn:hover,
.cta-button:hover,
.welcome-primary-btn:hover {
    background: var(--color-rankhub-red-dark);
    border-color: var(--color-rankhub-red-dark);
    box-shadow: 0 8px 18px rgb(180 35 53 / 0.22);
}

.exam-card-btn:active,
.mock-start-btn:active,
.pyq-start-test:active,
.test-start-btn:active,
.primary-btn:active,
.cta-button:active,
.welcome-primary-btn:active {
    transform: translateY(1px);
}

.pyq-page,
.pyq-paper-page,
.mock-tests-page,
.test-series-page,
.subject-practice-page,
.exam-detail-page,
.exam-information-page {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.pyq-grid,
.mock-tests-grid,
.test-series-grid,
.subject-practice-grid,
.exam-options,
.exam-information-grid {
    gap: 16px;
}

.pyq-card,
.pyq-paper-content {
    overflow: hidden;
}

.pyq-card:hover .pyq-card-arrow,
.exam-option-card:hover .exam-option-arrow {
    background: var(--color-rankhub-red);
}

.pyq-empty,
.mock-tests-empty,
.test-series-empty,
.subject-practice-empty,
.exam-empty,
.exam-error,
.content-empty-state {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.loading-spinner,
.pyq-loading-spinner {
    border-top-color: var(--color-rankhub-red);
}

.modal-overlay,
.logout-modal-overlay {
    z-index: 2000;
}

.exam-page .modal-overlay {
    z-index: 3000;
}

@media (max-width: 768px) {
    .page-container,
    .home-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page {
        width: calc(100% - 24px);
    }

    .welcome-board,
    .cta-card,
    .exam-detail-hero,
    .exam-information-header,
    .mock-tests-header,
    .test-series-header,
    .pyq-header,
    .pyq-paper-header {
        border-radius: var(--radius-lg);
    }

    .exam-card:hover,
    .mock-test-card:hover,
    .pyq-card:hover,
    .test-card:hover,
    .live-test-card:hover,
    .note-card:hover,
    .current-affair-card:hover,
    .exam-option-card:hover,
    .information-card:hover,
    .subject-card:hover,
    .test-series-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 380px) {
    .page-container,
    .home-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page {
        width: calc(100% - 18px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Exam Cards Grid */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-6);
    padding: var(--spacing-6);
}

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

@media (min-width: 1024px) {
    .exams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Exam Card */
.exam-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-rankhub-red);
}

.exam-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-2);
}

.exam-card-category {
    color: var(--color-rankhub-red);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-2);
}

.exam-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2);
}

.exam-card-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-4);
    flex-grow: 1;
}

.exam-card-btn {
    background: var(--color-rankhub-red);
    color: var(--color-text-inverse);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.exam-card-btn:hover {
        background: var(--color-rankhub-red-hover);
}

/* Final brand-color normalization for legacy component rules. */
:root {
    --color-rankhub-red: #E50914;
    --color-rankhub-red-hover: #B20710;
    --color-rankhub-red-light: #FFF1F2;
    --color-rankhub-red-border: #E50914;
    --color-rankhub-red-text: #E50914;
}

.rh-btn-primary,
.welcome-primary-btn,
.cta-button,
.primary-btn,
.exam-card-btn,
.mock-start-btn,
.test-start-btn,
.pyq-start-test,
.test-series-btn {
    background: var(--color-rankhub-red);
    border-color: var(--color-rankhub-red-border);
    color: #ffffff;
}

.rh-btn-primary:hover,
.welcome-primary-btn:hover,
.cta-button:hover,
.primary-btn:hover,
.exam-card-btn:hover,
.mock-start-btn:hover,
.test-start-btn:hover,
.pyq-start-test:hover,
.test-series-btn:hover {
    background: var(--color-rankhub-red-hover);
    border-color: var(--color-rankhub-red-hover);
}

.sidebar-nav-item.active,
.mobile-nav-item.active,
.sidebar-nav-item.active .sidebar-nav-icon,
.sidebar-logout-btn,
.sidebar-logout-btn .sidebar-nav-icon,
.logo-accent,
.brand-logo-icon,
.section-label,
.section-view-all,
.exam-card-category,
.pyq-label,
.pyq-card-icon,
.mock-tests-label,
.mock-tests-count strong,
.test-series-label,
.subject-practice-label,
.exam-information-label {
    color: var(--color-rankhub-red-text);
}

.sidebar-nav-item.active,
.sidebar-brand-icon,
.logout-modal-icon,
.stat-icon,
.pyq-empty-icon,
.mock-empty-icon {
    background-color: var(--color-rankhub-red-light);
    border-color: var(--color-rankhub-red-border);
}

.sidebar-nav-item.active:before,
.header-notif-dot,
.score-progress span,
.loading-spinner,
.pyq-loading-spinner {
    background-color: var(--color-rankhub-red);
}

input:focus,
select:focus,
textarea:focus,
.exam-search-box:focus-within {
    border-color: var(--color-rankhub-red-border);
    box-shadow: 0 0 0 3px rgb(229 9 20 / 0.14);
}

/* =========================================================
   AUTHORITATIVE GLOBAL CARD SYSTEM
   Current Affairs cards are the visual source of truth.
   ========================================================= */
:root {
    --rh-card-bg: #fff;
    --rh-card-border: rgba(0, 0, 0, 0.07);
    --rh-card-radius: 16px;
    --rh-card-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    --rh-card-padding: 22px;
    --rh-primary: #dc2626;
    --rh-muted: #777;
    --rh-soft: #f5f5f5;
}

.rh-card,
.exam-card,
.rh-exam-card,
.subject-card,
.subject-practice-card,
.practice-card,
.topic-card,
.mock-test-card,
.test-card,
.live-test-card,
.test-series-card,
.pyq-card,
.note-card,
.current-affair-card,
.current-affairs-question,
.exam-option-card,
.information-card,
.contact-form-card,
.account-card,
.summary-card,
.chart-card,
.accuracy-card,
.filter-card,
.history-card,
.privacy-summary-card,
.terms-summary-card,
.founder-card,
.highlight-card,
.why-card,
.mission-card,
.score-card,
.performance-card,
.detail-card,
.stat-card,
.welcome-score-card {
    box-sizing: border-box;
    padding: var(--rh-card-padding);
    background: var(--rh-card-bg);
    border: 1px solid var(--rh-card-border);
    border-radius: var(--rh-card-radius);
    box-shadow: var(--rh-card-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rh-card-header,
.current-affair-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.rh-card-title,
.current-affair-question {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 700;
}

.rh-card-subtitle,
.rh-card-meta,
.rh-card-description {
    color: var(--rh-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rh-card-badge,
.current-affair-category,
.test-card-badge,
.mock-test-status,
.live-test-badge,
.test-series-badge,
.exam-card-category,
.rh-exam-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--rh-soft);
    color: #555;
    font-size: 11px;
    font-weight: 700;
}

.rh-card-number,
.current-affair-number {
    color: var(--rh-primary);
    font-size: 13px;
    font-weight: 800;
}

.rh-card-action,
.rh-card button:not(.icon-btn),
.rh-card a[class*="btn"],
.rh-card a[class*="button"],
.rh-card .exam-card-btn,
.rh-card .mock-start-btn,
.rh-card .test-start-btn,
.rh-card .test-series-btn,
.rh-card .practice-btn {
    border-radius: 10px;
}

.rh-card:hover,
.exam-card:hover,
.rh-exam-card:hover,
.subject-card:hover,
.subject-practice-card:hover,
.practice-card:hover,
.topic-card:hover,
.mock-test-card:hover,
.test-card:hover,
.live-test-card:hover,
.test-series-card:hover,
.pyq-card:hover,
.note-card:hover,
.current-affair-card:hover,
.current-affairs-question:hover,
.exam-option-card:hover,
.information-card:hover,
.contact-form-card:hover,
.account-card:hover,
.summary-card:hover,
.score-card:hover,
.performance-card:hover,
.detail-card:hover {
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.rh-card:focus-within,
.rh-card a:focus-visible,
.rh-card button:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.28);
    outline-offset: 3px;
}

.rh-card::before,
.rh-card::after,
.exam-card::before,
.exam-card::after,
.rh-exam-card::before,
.rh-exam-card::after,
.subject-card::before,
.subject-card::after,
.subject-practice-card::before,
.subject-practice-card::after,
.pyq-card::before,
.pyq-card::after,
.mock-test-card::before,
.mock-test-card::after,
.test-card::before,
.test-card::after,
.test-series-card::before,
.test-series-card::after {
    background: none;
    box-shadow: none;
}

.rh-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 800px) {
    .rh-card-grid,
    .current-affairs-grid,
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rh-card,
    .current-affair-card,
    .current-affairs-question {
        padding: 18px;
    }

    .rh-card:hover,
    .exam-card:hover,
    .rh-exam-card:hover,
    .subject-card:hover,
    .subject-practice-card:hover,
    .practice-card:hover,
    .topic-card:hover,
    .mock-test-card:hover,
    .test-card:hover,
    .live-test-card:hover,
    .test-series-card:hover,
    .pyq-card:hover,
    .note-card:hover,
    .current-affair-card:hover,
    .current-affairs-question:hover,
    .exam-option-card:hover,
    .information-card:hover,
    .contact-form-card:hover,
    .account-card:hover,
    .summary-card:hover,
    .score-card:hover,
    .performance-card:hover,
    .detail-card:hover {
        transform: none;
    }
}





    /* Final cascade: the Support banner is the shared page-header source of truth. */
    .rankhub-page-banner {
        box-sizing: border-box;
        height: 120px;
        min-height: 120px;
        align-items: center;
        padding: 20px 34px;
    }

    .rankhub-page-banner .rh-page-banner-content,
    .rankhub-page-banner .pyq-header-content,
    .rankhub-page-banner .page-header-content,
    .rankhub-page-banner .header-content,
    .rankhub-page-banner .test-series-header-content,
    .rankhub-page-banner .exam-information-header-content {
        min-width: 0;
    }

    .rankhub-page-banner h1,
    .rankhub-page-banner .page-title {
        margin-bottom: 4px;
        font-size: clamp(24px, 3vw, 32px);
        line-height: 1.15;
    }

    .rankhub-page-banner p,
    .rankhub-page-banner .page-description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.35;
    }

    .rankhub-page-banner::before {
        width: 4px;
    }

    .rankhub-page-banner::after {
        width: 150px;
        height: 150px;
    }

    .rh-page-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding: 34px;
        border: 1px solid rgba(220, 38, 38, 0.12);
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(255, 255, 255, 0.96));
    }

    .rh-page-banner::before {
        position: absolute;
        z-index: 0;
        content: "";
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        background: #dc2626;
    }

    .rh-page-banner::after {
        position: absolute;
        z-index: -1;
        content: "";
        top: -60px;
        right: -50px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(220, 38, 38, 0.08);
        pointer-events: none;
    }

    .rh-page-banner-content,
    .rh-page-banner > * {
        position: relative;
        z-index: 1;
    }

    .rh-page-banner-content { max-width: 720px; }

    .rh-page-banner h1,
    .rh-page-banner .page-title {
        margin: 0 0 8px;
        color: #222;
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 800;
        line-height: 1.15;
    }

    .rh-page-banner p,
    .rh-page-banner .page-description {
        max-width: 720px;
        margin: 0;
        color: #666;
        font-size: 15px;
        line-height: 1.55;
    }

    @media (max-width: 600px) {
        .rankhub-page-banner {
            height: 120px;
            min-height: 120px;
            padding: 16px 20px;
        }

        .rankhub-page-banner h1,
        .rankhub-page-banner .page-title {
            font-size: 24px;
        }

        .rankhub-page-banner p,
        .rankhub-page-banner .page-description {
            font-size: 12px;
            -webkit-line-clamp: 2;
        }

        .rh-page-banner {
            align-items: flex-start;
            flex-direction: column;
            padding: 24px 20px;
            border-radius: 16px;
        }
    }




/* =========================================================
   STUDENT ALL EXAMS — REFERENCE EXAM CARD
   Scoped to the All Exams grid only.
   ========================================================= */

.exams-grid > .exam-card {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    min-height: 0;
    justify-self: stretch;
    gap: 0;
    padding: 20px;
    overflow: visible;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: none;
    transform-style: flat;
}

.exams-grid > .exam-card::before,
.exams-grid > .exam-card::after {
    display: none;
}

.exams-grid > .exam-card:hover {
    transform: translateY(-2px);
    border-color: #e5e7eb;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
}

.exams-grid > .exam-card .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.exams-grid > .exam-card .exam-title-group {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 12px;
}

.exams-grid > .exam-card .exam-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 21px;
    line-height: 1;
}

.exams-grid > .exam-card .exam-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.exams-grid > .exam-card .exam-title-group h2 {
    min-width: 0;
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.exams-grid > .exam-card .explore-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.exams-grid > .exam-card .explore-btn:hover {
    color: #b91c1c;
}

.exams-grid > .exam-card .explore-btn span:last-child {
    font-size: 17px;
    line-height: 1;
}

.exams-grid > .exam-card .test-count {
    margin: 0 0 6px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.exams-grid > .exam-card .exam-pattern {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.exams-grid > .exam-card .sub-series-badge {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding: 10px 14px;
    color: #dc2626;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.exams-grid > .exam-card .sub-series-badge > span:first-child {
    flex: 0 0 auto;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .exams-grid > .exam-card {
        max-width: none;
    }

    .exams-grid > .exam-card .card-header {
        gap: 12px;
    }

    .exams-grid > .exam-card .explore-btn {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .exams-grid > .exam-card {
        padding: 18px;
    }

    .exams-grid > .exam-card .card-header {
        align-items: flex-start;
    }

    .exams-grid > .exam-card .exam-title-group h2 {
        font-size: 20px;
    }
}

/* Final cascade: keep the shared header fixed on every layout page. */
:root {
    --rh-global-header-height: 64px;
}

body:has(.global-header) {
    padding-top: var(--rh-global-header-height);
}

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    height: var(--rh-global-header-height);
}

.app-sidebar {
    z-index: 3100;
}

@media (max-width: 600px) {
    :root {
        --rh-global-header-height: 64px;
    }
}

/* Compact banner sizing: scoped to banner containers only. */
.banner-container,
.page-banner,
.rankhub-page-banner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 160px;
    height: 160px;
    max-height: 160px;
    padding: 24px 34px;
    overflow: hidden;
}

.banner-container > *,
.page-banner > *,
.rankhub-page-banner > * {
    min-width: 0;
}

.banner-container h1,
.page-banner h1,
.rankhub-page-banner h1 {
    margin: 0 0 6px;
    font-size: 2.2rem;
    line-height: 1.15;
}

.banner-container p,
.page-banner p,
.rankhub-page-banner p {
    max-width: 720px;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 600px) {
    .banner-container,
    .page-banner,
    .rankhub-page-banner {
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        height: auto;
        min-height: 160px;
        max-height: none;
        padding: 24px 20px;
        gap: 12px;
        text-align: left;
    }

    .banner-container h1,
    .page-banner h1,
    .rankhub-page-banner h1 {
        font-size: 1.8rem;
    }

    .banner-container p,
    .page-banner p,
    .rankhub-page-banner p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}



/* =========================================================
   MOBILE TITLE BANNERS — SHARED SUPPORT PROPORTIONS
   ========================================================= */

@media (max-width: 767px) {
    .rankhub-page-banner {
        box-sizing: border-box;
        width: 100%;
        min-height: 120px;
        height: auto;
        max-height: none;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
        overflow: hidden;
        text-align: left;
    }

    .rankhub-page-banner > * {
        min-width: 0;
    }

    .rankhub-page-banner .rh-page-banner-content,
    .rankhub-page-banner .page-header-content,
    .rankhub-page-banner .header-content,
    .rankhub-page-banner .pyq-header-content,
    .rankhub-page-banner .test-series-header-content,
    .rankhub-page-banner .exam-information-header-content {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .rankhub-page-banner h1,
    .rankhub-page-banner .page-title {
        margin: 0 0 6px;
        font-size: 24px;
        line-height: 1.15;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .rankhub-page-banner p,
    .rankhub-page-banner .page-description {
        display: block;
        max-width: none;
        margin: 0;
        font-size: 13px;
        line-height: 1.4;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-line-clamp: unset;
    }

    .rankhub-page-banner .pyq-count-box,
    .rankhub-page-banner .test-series-icon,
    .rankhub-page-banner .exam-information-icon {
        flex: 0 0 auto;
    }

    .rankhub-page-banner .page-header,
    .rankhub-page-banner .back-btn {
        min-width: 0;
    }
}




    /* Final page-width authority. */
    .rh-page-container,
    .page-container,
    .pyq-page,
    .pyq-paper-page,
    .mock-tests-page,
    .test-series-page,
    .subject-practice-page,
    .exam-detail-page,
    .exam-information-page,
    .performance-page,
    .current-affairs-page,
    .contact-container,
    .about-page > .about-top {
        width: min(1320px, calc(100% - 48px));
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    @media (max-width: 1024px) {
        .rh-page-container,
        .page-container,
        .pyq-page,
        .pyq-paper-page,
        .mock-tests-page,
        .test-series-page,
        .subject-practice-page,
        .exam-detail-page,
        .exam-information-page,
        .performance-page,
        .current-affairs-page,
        .contact-container,
        .about-page > .about-top {
            width: calc(100% - 40px);
        }
    }

    @media (max-width: 768px) {
        .rh-page-container,
        .page-container,
        .pyq-page,
        .pyq-paper-page,
        .mock-tests-page,
        .test-series-page,
        .subject-practice-page,
        .exam-detail-page,
        .exam-information-page,
        .performance-page,
        .current-affairs-page,
        .contact-container,
        .about-page > .about-top {
            width: calc(100% - 32px);
        }
    }

    @media (max-width: 767px) {
        .home-page .exam-grid,
        .page-container .exams-grid {
            grid-template-columns: minmax(0, 1fr);
            gap: 14px;
            min-width: 0;
        }

        .home-page .exam-grid > .rankhub-light-card,
        .page-container .exams-grid > .rankhub-light-card {
            width: 100%;
            max-width: none;
            min-width: 0;
            padding: 16px;
            border-radius: 16px;
            box-sizing: border-box;
        }

        .rankhub-light-card .card-header {
            gap: 8px;
            margin-bottom: 12px;
        }

        .rankhub-light-card .card-badge,
        .rankhub-light-card .card-status {
            min-width: 0;
            max-width: 68%;
            overflow-wrap: anywhere;
        }

        .rankhub-light-card .card-badge {
            padding: 4px 8px;
            font-size: 0.68rem;
        }

        .rankhub-light-card .card-status {
            gap: 5px;
            font-size: 0.72rem;
            white-space: nowrap;
        }

        .rankhub-light-card .card-title-wrapper {
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 8px;
        }

        .rankhub-light-card .exam-logo-box {
            width: 48px;
            height: 48px;
        }

        .rankhub-light-card .exam-logo-box svg {
            width: 48px;
            height: 48px;
        }

        .rankhub-light-card .card-title {
            min-width: 0;
            font-size: 17px;
            line-height: 1.3;
            overflow-wrap: anywhere;
        }

        .rankhub-light-card .card-desc {
            margin-bottom: 16px;
            font-size: 13.5px;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        .rankhub-light-card .progress-wrapper {
            margin-bottom: 16px;
        }

        .rankhub-light-card .progress-info {
            margin-bottom: 7px;
            font-size: 0.78rem;
        }

        .rankhub-light-card .progress-bar-bg {
            height: 6px;
        }

        .rankhub-light-card .card-btn {
            min-height: 44px;
            padding: 11px 12px;
            box-sizing: border-box;
        }
    }

    /* =========================================================
       EXAM CATEGORY SLIDER
       ========================================================= */

    .exam-category-slider {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .exam-category-slider .exam-category-list {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .exam-category-slider .exam-category-btn {
        white-space: nowrap;
    }

    .exam-category-nav {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        padding: 0;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        color: #4b5563;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    }

    .exam-category-nav:hover:not(:disabled) {
        border-color: var(--color-rankhub-red, #e53935);
        background: #fff7f7;
        color: var(--color-rankhub-red, #e53935);
    }

    .exam-category-nav:active:not(:disabled) {
        transform: scale(0.94);
    }

    .exam-category-nav:disabled {
        opacity: 0.38;
        cursor: default;
        box-shadow: none;
    }

    @media (max-width: 767px) {
        .exam-category-slider {
            display: block;
        }

        .exam-category-slider .exam-category-list {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .exam-category-nav {
            display: none;
        }
    }

    /* =========================================================
       MOCK TEST CARD - REFERENCE CARD SYSTEM
       ========================================================= */

    .mock-tests-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: 24px;
        min-width: 0;
    }

    .mock-tests-grid .mock-test-card {
        box-sizing: border-box;
        min-width: 0;
        min-height: 0;
        padding: 32px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
        transform: none;
        transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    }

    .mock-tests-grid .mock-test-card:hover {
        border-color: rgba(217, 45, 63, 0.3);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11), 0 0 0 3px rgba(217, 45, 63, 0.04);
        transform: translateY(-4px);
    }

    .mock-tests-grid .mock-test-card::before,
    .mock-tests-grid .mock-test-card::after {
        display: none;
    }

    .mock-tests-grid .mock-test-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 0;
        margin-bottom: 22px;
    }

    .mock-tests-grid .mock-test-number {
        min-height: 30px;
        max-width: 55%;
        padding: 0 10px;
        overflow: hidden;
        border: 1px solid #bfdbfe;
        border-radius: 8px;
        background: #eff6ff;
        color: #1d4ed8;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
        box-shadow: none;
    }

    .mock-tests-grid .mock-test-status {
        min-height: 28px;
        padding: 0 10px;
        border: 1px solid #bbf7d0;
        border-radius: 999px;
        background: #f0fdf4;
        color: #15803d;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        white-space: nowrap;
        box-shadow: none;
    }

    .mock-tests-grid .mock-test-status::before {
        display: none;
    }

    .mock-tests-grid .mock-test-status-dot {
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
        border-radius: 50%;
        background: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12), 0 0 8px rgba(34, 197, 94, 0.35);
        animation: mock-status-pulse 2.4s ease-in-out infinite;
    }

    .mock-tests-grid .mock-test-status-upcoming {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .mock-tests-grid .mock-test-status-upcoming .mock-test-status-dot {
        background: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

    .mock-tests-grid .mock-test-status-completed {
        border-color: #d1d5db;
        background: #f9fafb;
        color: #4b5563;
    }

    .mock-tests-grid .mock-test-status-completed .mock-test-status-dot {
        background: #6b7280;
        box-shadow: none;
        animation: none;
    }

    .mock-tests-grid .mock-test-status-locked {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

    .mock-tests-grid .mock-test-status-locked .mock-test-status-dot {
        background: #ef4444;
        box-shadow: none;
        animation: none;
    }

    @keyframes mock-status-pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.58; }
    }

    .mock-tests-grid .mock-test-card-body {
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 0;
    }

    .mock-tests-grid .mock-test-title {
        margin: 0 0 10px;
        color: #111827;
        font-size: 23px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: -0.02em;
        overflow-wrap: anywhere;
        text-shadow: none;
    }

    .mock-tests-grid .mock-test-description {
        min-height: 0;
        margin: 0 0 22px;
        color: #6b7280;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .mock-tests-grid .mock-test-meta {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin: 0 0 24px;
        padding: 16px;
        border: 1px solid #e0e7ff;
        border-radius: 16px;
        background: #f8f9fa;
        box-shadow: none;
    }

    .mock-tests-grid .mock-meta-item {
        min-width: 0;
        min-height: 70px;
        padding: 12px 8px;
        border: 1px solid #dbeafe;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 2px 7px rgba(15, 23, 42, 0.04);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .mock-tests-grid .mock-meta-item:hover {
        box-shadow: 0 5px 12px rgba(37, 99, 235, 0.08);
        transform: translateY(-2px);
    }

    .mock-tests-grid .mock-meta-item:not(:last-child)::after {
        display: none;
    }

    .mock-tests-grid .mock-meta-item span {
        margin-bottom: 8px;
        color: #2563eb;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.06em;
        line-height: 1.2;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .mock-tests-grid .mock-meta-item strong {
        color: #172554;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .mock-tests-grid .mock-test-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: auto;
    }

    .mock-tests-grid .mock-result-btn,
    .mock-tests-grid .mock-start-btn {
        min-width: 0;
        min-height: 48px;
        margin: 0;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        white-space: normal;
    }

    .mock-tests-grid .mock-result-btn {
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #374151;
        box-shadow: 0 2px 7px rgba(15, 23, 42, 0.04);
    }

    .mock-tests-grid .mock-result-btn:hover:not(:disabled) {
        border-color: #9ca3af;
        background: #f9fafb;
        color: #111827;
        transform: translateY(-2px);
    }

    .mock-tests-grid .mock-result-btn:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

    .mock-tests-grid .mock-start-btn {
        border: 0;
        background: linear-gradient(135deg, #ef3340, #c81e2d);
        color: #ffffff;
        box-shadow: 0 7px 16px rgba(217, 45, 63, 0.2);
    }

    .mock-tests-grid .mock-start-btn::before {
        display: none;
    }

    .mock-tests-grid .mock-start-btn::after {
        margin-left: 8px;
        font-size: 16px;
    }

    .mock-tests-grid .mock-start-btn:hover {
        background: linear-gradient(135deg, #dc2636, #ad1725);
        box-shadow: 0 10px 20px rgba(217, 45, 63, 0.26);
        filter: none;
        transform: translateY(-2px);
    }

    .mock-tests-grid .mock-start-btn:active,
    .mock-tests-grid .mock-result-btn:active {
        transform: translateY(1px);
    }

    @media (max-width: 700px) {
        .mock-tests-grid {
            grid-template-columns: minmax(0, 1fr);
            gap: 14px;
        }

        .mock-tests-grid .mock-test-card {
            padding: 18px;
            border-radius: 20px;
        }

        .mock-tests-grid .mock-test-card-header {
            margin-bottom: 18px;
        }

        .mock-tests-grid .mock-test-title {
            font-size: 18px;
        }

        .mock-tests-grid .mock-test-description {
            margin-bottom: 16px;
            font-size: 13.5px;
            line-height: 1.5;
        }

        .mock-tests-grid .mock-test-meta {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 18px;
            padding: 12px;
        }

        .mock-tests-grid .mock-meta-item {
            min-height: 62px;
            padding: 10px 6px;
        }

        .mock-tests-grid .mock-meta-item strong {
            font-size: 15px;
        }

        .mock-tests-grid .mock-test-actions {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .mock-tests-grid .mock-result-btn,
        .mock-tests-grid .mock-start-btn {
            min-height: 46px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .mock-tests-grid .mock-test-status-dot {
            animation: none;
        }
    }

/* =========================================================
   COMMON PAGE TITLE BANNER
   Shared hierarchy for page-level title banners.
   ========================================================= */

.rh-common-banner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 20px !important;
    padding: 28px 34px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    color: #0f172a;
    overflow: hidden;
}

.rh-common-banner > .rh-common-banner-content,
.rh-common-banner > .account-profile,
.rh-common-banner > .header-left {
    width: min(100%, 760px);
    min-width: 0;
}

.rh-common-banner > .rh-common-banner-content {
    align-self: flex-start;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.rh-page-banner,
.rankhub-page-banner,
.current-affairs-hero,
.pyq-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border-left: 0 !important;
    padding-left: 28px !important;
}

.rh-page-banner::before,
.rankhub-page-banner::before,
.current-affairs-hero::before,
.pyq-header::before {
    width: 3px;
}

.rh-page-banner-content,
.rh-common-banner-content,
.subject-header-content,
.test-series-header-content,
.pyq-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.rh-common-banner.rankhub-page-banner :is(.page-eyebrow, .header-label, .pyq-label, .current-affairs-label, .test-series-label, .exam-information-label, .privacy-eyebrow, .account-eyebrow, .about-eyebrow, .contact-eyebrow, .terms-eyebrow),
.rh-common-banner.terms-hero :is(.terms-eyebrow),
.rh-common-banner .saved-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin: 0 0 8px !important;
    color: #dc2626;
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.rh-common-banner.rankhub-page-banner :is(h1, .page-title),
.rh-common-banner.terms-hero :is(h1, .terms-title),
.rh-common-banner :is(.saved-page-title) {
    margin: 0 !important;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
    overflow-wrap: normal;
}

.rh-common-banner.rankhub-page-banner :is(p, .page-description, .privacy-subtitle, .privacy-updated),
.rh-common-banner.terms-hero :is(.terms-subtitle, .terms-updated),
.rh-common-banner :is(.saved-page-subtitle) {
    display: block;
    max-width: 760px;
    margin: 8px 0 0 !important;
    color: #475569;
    font-size: 15px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: normal;
}

.rh-common-banner :is(.pyq-count-box, .test-series-icon, .exam-information-icon, .subject-count-box, .mock-tests-count) {
    position: absolute;
    right: 24px;
    top: 50%;
    align-self: auto;
    margin-top: 0;
    transform: translateY(-50%);
}

.rh-common-banner :is(.pyq-count-box, .subject-count-box, .mock-tests-count) {
    display: none !important;
}

@media (max-width: 767px) {
    .mock-tests-page .pyq-header,
    .pyq-page .pyq-header,
    .subject-practice-page .subject-practice-header,
    .test-series-page .test-series-header {
        align-items: flex-start;
    }

    .rh-common-banner :is(.pyq-count-box, .test-series-icon, .exam-information-icon, .subject-count-box, .mock-tests-count) {
        position: relative;
        top: auto;
        right: auto;
        align-self: flex-end;
        margin-top: 14px;
        transform: translateZ(30px);
    }

    .rh-common-banner {
        margin-bottom: 16px !important;
        padding: 20px 22px !important;
        border-radius: 18px !important;
    }

    .rh-common-banner.rankhub-page-banner :is(h1, .page-title),
    .rh-common-banner.terms-hero :is(h1, .terms-title),
    .rh-common-banner :is(.saved-page-title) {
        font-size: 30px;
        line-height: 1.12;
    }

    .rh-common-banner.rankhub-page-banner :is(p, .page-description, .privacy-subtitle, .privacy-updated),
    .rh-common-banner.terms-hero :is(.terms-subtitle, .terms-updated),
    .rh-common-banner :is(.saved-page-subtitle) {
        margin-top: 6px !important;
        font-size: 13px;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .rh-common-banner { padding: 22px 18px !important; }
    .rh-common-banner.rankhub-page-banner :is(h1, .page-title),
    .rh-common-banner.terms-hero :is(h1, .terms-title),
    .rh-common-banner :is(.saved-page-title) { font-size: 27px; }
}




