/* ==========================================================================
   HimExam.com - Modern Government Exam & Job Portal Design System
   ========================================================================== */

:root {
  /* Core Color Palette */
  --primary-deep-blue: #0D3B82;
  --primary-navy: #08214D;
  --primary-blue-glow: rgba(13, 59, 130, 0.2);
  --accent-crimson: #D32F2F;
  --accent-crimson-dark: #B71C1C;
  --accent-crimson-glow: rgba(211, 47, 47, 0.25);
  --accent-yellow: #FFD200;
  --accent-gold: #F59E0B;
  
  /* Neutral & Surface Tones */
  --bg-body: #F4F7FB;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F0F5FA;
  --bg-surface-elevated: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #3B82F6;
  
  /* Typography Colors */
  --text-main: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  
  /* Status & Accents */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #0284C7;
  
  /* Typography Families */
  --font-heading: 'Outfit', 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions & Shadows */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 59, 130, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px rgba(13, 59, 130, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 20px 40px rgba(13, 59, 130, 0.18);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: #0B1120;
  --bg-surface: #131E32;
  --bg-surface-soft: #1B2945;
  --bg-surface-elevated: #1F3052;
  --border-color: #243555;
  --text-main: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

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

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, #071C3F 0%, #0D3B82 50%, #0A2B63 100%);
  color: #FFFFFF;
  font-size: 0.825rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 210, 0, 0.3);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-crimson);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-container {
  flex: 1;
  overflow: hidden;
  height: 20px;
  position: relative;
}

.ticker-item {
  display: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #E2E8F0;
  animation: fadeIn 0.4s ease-out;
}

.ticker-item.active {
  display: block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lang-switch .active-lang {
  color: var(--accent-yellow);
  font-weight: 700;
}

.telegram-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0088CC;
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.telegram-pill:hover {
  transform: translateY(-1px);
  background: #0099E6;
}

/* ==========================================================================
   Main Header Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-deep-blue);
  line-height: 1.1;
  display: block;
}

[data-theme="dark"] .logo-title {
  color: #60A5FA;
}

.logo-title .highlight {
  color: var(--accent-crimson);
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface-soft);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background-color: var(--bg-surface);
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--text-main);
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--primary-deep-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-btn:hover {
  background: #1E40AF;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 120;
  display: none;
}

.search-results-dropdown.show {
  display: block;
}

.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.search-item:hover {
  background: var(--bg-surface-soft);
}

.search-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.search-item-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(13, 59, 130, 0.08);
  color: var(--primary-deep-blue);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
}

.theme-toggle-btn .sun-icon {
  width: 18px;
  height: 18px;
  display: none;
}

.theme-toggle-btn .moon-icon {
  width: 18px;
  height: 18px;
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-crimson {
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px var(--accent-crimson-glow);
}

.btn-crimson:hover {
  background: linear-gradient(135deg, #EF5350 0%, #D32F2F 100%);
  box-shadow: 0 5px 14px rgba(211, 47, 47, 0.4);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #0D3B82 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px var(--primary-blue-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-surface-soft);
  border-color: var(--text-muted);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Category Navigation Sub-bar */
.category-nav {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.nav-items-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
}

.nav-item {
  padding: 10px 14px;
  font-size: 0.835rem;
  font-weight: 500;
  color: #E2E8F0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.app-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #34D399;
  font-weight: 600;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-elevated);
  z-index: 200;
  transition: left var(--transition-medium);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-deep-blue);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-main);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.drawer-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 0;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.drawer-link.download-btn {
  margin-top: 12px;
  background: var(--accent-crimson);
  color: #FFFFFF;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-md);
  border: none;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

/* ==========================================================================
   Banners & Promotional Cards System
   ========================================================================== */
.banner-hero-section {
  padding: 24px 0 16px;
}

.app-download-section {
  padding: 8px 0 20px;
}

.test-series-section {
  padding: 24px 0;
}

.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  cursor: pointer;
  background: #000;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Dynamic Interactive Hotspot Overlays on Banners */
.banner-overlay-action {
  position: absolute;
  right: 2.2%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.action-hotspot-btn {
  position: relative;
  background: linear-gradient(180deg, #E53935 0%, #B71C1C 100%);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-hotspot-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(180deg, #F44336 0%, #C62828 100%);
}

.hotspot-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius-md) + 2px);
  animation: pulseRipple 1.8s infinite;
  pointer-events: none;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.18); opacity: 0; }
}

.banner-meta-badge {
  position: absolute;
  bottom: 8px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.badge-tag {
  background: rgba(13, 59, 130, 0.85);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-tag.bilingual-tag {
  background: rgba(183, 28, 28, 0.9);
  color: var(--accent-yellow);
}

/* App Download Banner Specifics */
.app-hotspot-container {
  position: absolute;
  left: 45%;
  top: 60%;
  transform: translate(-50%, -50%);
}

.btn-play-store {
  background: transparent;
  border: none;
  width: 140px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.play-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid rgba(255, 210, 0, 0.6);
  animation: pulseRipple 2s infinite;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Test Series Banners Stack */
.test-banners-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-deep-blue);
  line-height: 1.25;
}

[data-theme="dark"] .section-title {
  color: #93C5FD;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge-pill {
  background: linear-gradient(135deg, var(--accent-crimson) 0%, #991B1B 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.view-toggle-wrap {
  display: flex;
  background: var(--bg-surface-soft);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: var(--bg-surface);
  color: var(--primary-deep-blue);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Quick Navigation Category Cards (10 Items)
   ========================================================================== */
.category-section {
  padding: 24px 0 20px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #93C5FD;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform var(--transition-fast);
}

.category-card:hover .card-icon-wrap {
  transform: scale(1.1);
}

.card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

/* Pastel Tint Colors Matching Icons */
.icon-blue    { background: #EFF6FF; color: #2563EB; }
.icon-orange  { background: #FFF7ED; color: #EA580C; }
.icon-yellow  { background: #FEFCE8; color: #CA8A04; }
.icon-purple  { background: #FAF5FF; color: #9333EA; }
.icon-red     { background: #FEF2F2; color: #DC2626; }
.icon-cyan    { background: #ECFEFF; color: #0891B2; }
.icon-emerald { background: #ECFDF5; color: #059669; }
.icon-indigo  { background: #EEF2FF; color: #4F46E5; }
.icon-amber   { background: #FFFBEB; color: #D97706; }
.icon-rose    { background: #FFF1F2; color: #E11D48; }

.card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.card-count.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.card-count.badge-popular {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

.card-count.badge-alert {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

.category-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.full-category-img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   Jobs Table Section
   ========================================================================== */
.jobs-list-section {
  padding: 24px 0 28px;
}

.table-search-box input {
  padding: 7px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.85rem;
  width: 240px;
}

.job-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.job-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.job-tab-btn:hover, .job-tab-btn.active {
  background: var(--primary-deep-blue);
  color: #FFFFFF;
  border-color: var(--primary-deep-blue);
}

.table-responsive {
  overflow-x: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.jobs-table th {
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--border-color);
}

.jobs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  vertical-align: middle;
}

.jobs-table tr:hover {
  background-color: rgba(59, 130, 246, 0.03);
}

.job-cell-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.badge-tag-live {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  animation: pulseDot 2s infinite;
}

.posts-count {
  font-weight: 700;
  color: var(--primary-deep-blue);
}

[data-theme="dark"] .posts-count {
  color: #60A5FA;
}

.date-highlight {
  color: #D97706;
  font-weight: 600;
}

.btn-apply {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  color: var(--primary-deep-blue);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-apply:hover {
  background: var(--primary-deep-blue);
  color: #FFFFFF;
  border-color: var(--primary-deep-blue);
}

/* ==========================================================================
   Daily HP GK Quiz Card
   ========================================================================== */
.gk-quiz-section {
  padding: 20px 0 28px;
}

.quiz-card-wrapper {
  background: var(--bg-surface);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .quiz-card-wrapper {
  border-color: #1E3A8A;
}

.quiz-header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.quiz-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-icon-badge svg {
  width: 24px;
  height: 24px;
}

.quiz-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #D97706;
  letter-spacing: 0.6px;
}

.quiz-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.quiz-points {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(13, 59, 130, 0.08);
  color: var(--primary-deep-blue);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.question-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.q-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.option-btn {
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-btn:hover {
  border-color: var(--primary-deep-blue);
  background: rgba(13, 59, 130, 0.04);
}

.option-btn.correct {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #065F46 !important;
  font-weight: 600;
}

.option-btn.wrong {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
}

.option-key {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.quiz-explanation {
  background: var(--bg-surface-soft);
  border-left: 4px solid var(--primary-deep-blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.quiz-footer-actions {
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Portal Stats Section
   ========================================================================== */
.stats-section {
  padding: 24px 0 32px;
}

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

.stat-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-soft) 100%);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-deep-blue);
  line-height: 1.1;
  margin-bottom: 4px;
}

[data-theme="dark"] .stat-number {
  color: #60A5FA;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   CBT Mock Test Simulator Modal (HPRCA Standard Style)
   ========================================================================== */
.cbt-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}

.cbt-modal-window {
  background: var(--bg-surface);
  width: 100%;
  max-width: 1160px;
  height: 92vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.cbt-header {
  background: #0D3B82;
  color: #FFFFFF;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cbt-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.cbt-subtitle {
  font-size: 0.75rem;
  color: #CBD5E1;
}

.cbt-timer-box {
  background: #08214D;
  border: 1px solid #FFD200;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-label {
  font-size: 0.75rem;
  color: #E2E8F0;
}

.timer-countdown {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.cbt-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* CBT Body Layout */
.cbt-body-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.cbt-question-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid var(--border-color);
  background: var(--bg-surface);
}

.cbt-pane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-surface-soft);
  border-bottom: 1px solid var(--border-color);
}

.cbt-q-badge {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-deep-blue);
}

.cbt-marks {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cbt-lang-toggle select {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.cbt-question-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.cbt-q-statement {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--text-main);
}

.cbt-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbt-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cbt-option-item:hover {
  background: var(--bg-surface-soft);
  border-color: #93C5FD;
}

.cbt-option-item.selected {
  border-color: var(--primary-deep-blue);
  background: rgba(13, 59, 130, 0.05);
  font-weight: 600;
}

.cbt-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-deep-blue);
}

.cbt-pane-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cbt-footer-left, .cbt-footer-right {
  display: flex;
  gap: 10px;
}

.cbt-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mark {
  background: #F3E8FF;
  border-color: #D8B4FE;
  color: #7E22CE;
}

.btn-mark:hover {
  background: #E9D5FF;
}

.btn-clear {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.btn-prev {
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-save-next {
  background: #10B981;
  color: #FFFFFF;
  border-color: #059669;
}

.btn-save-next:hover {
  background: #059669;
}

/* Palette Pane */
.cbt-palette-pane {
  width: 290px;
  background: var(--bg-surface-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.candidate-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  background: var(--primary-deep-blue);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.candidate-roll {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.palette-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.dot-answered { background: #10B981; }
.dot-not-answered { background: #EF4444; }
.dot-not-visited { background: #E2E8F0; border: 1px solid #CBD5E1; }
.dot-marked { background: #9333EA; }

.palette-grid-header {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cbt-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.pal-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  background: #FFFFFF;
  transition: transform var(--transition-fast);
}

.pal-btn:hover {
  transform: scale(1.08);
}

.pal-btn.answered {
  background: #10B981;
  color: #FFFFFF;
  border-color: #059669;
}

.pal-btn.not-answered {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #DC2626;
}

.pal-btn.marked {
  background: #9333EA;
  color: #FFFFFF;
  border-color: #7E22CE;
}

.pal-btn.active-q {
  box-shadow: 0 0 0 2.5px var(--accent-yellow);
}

.palette-submit-area {
  margin-top: auto;
}

.cbt-btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(183, 28, 28, 0.4);
  transition: transform var(--transition-fast);
}

.cbt-btn-submit:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Scorecard & Result Modal
   ========================================================================== */
.scorecard-window, .app-modal-window, .job-modal-window {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  text-align: center;
  animation: scaleUp 0.25s ease-out;
}

.trophy-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.scorecard-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-deep-blue);
}

[data-theme="dark"] .scorecard-title {
  color: #93C5FD;
}

.scorecard-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.scorecard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  padding: 14px 8px;
  border-radius: var(--radius-md);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  display: block;
}

.score-total .metric-value { color: #2563EB; }
.score-accuracy .metric-value { color: #10B981; }
.score-rank .metric-value { color: #D97706; }

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.scorecard-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-surface-soft);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.8rem;
}

.text-green { color: #059669; }
.text-red { color: #DC2626; }
.text-amber { color: #D97706; }
.text-blue { color: #2563EB; }

.scorecard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* App Download Modal */
.app-modal-preview {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.app-features-checklist {
  text-align: left;
  background: var(--bg-surface-soft);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 16px 0 20px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: #1E293B;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out;
}

.toast-msg.success { border-left: 4px solid #10B981; }
.toast-msg.info { border-left: 4px solid #3B82F6; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #071733;
  color: #CBD5E1;
  padding: 48px 0 0;
  border-top: 3px solid var(--accent-yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand-col .logo-title {
  color: #FFFFFF;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94A3B8;
  margin: 14px 0 18px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-crimson);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-yellow);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-col a {
  font-size: 0.85rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--accent-yellow);
  padding-left: 4px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 6px;
}

.footer-newsletter input {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #1E293B;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.85rem;
}

.footer-bottom {
  background: #040D1D;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: #64748B;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links {
  display: flex;
  gap: 16px;
}

.legal-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Animations & Responsive Breakpoints
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .category-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .category-nav, .header-search {
    display: none;
  }
  .category-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cbt-body-layout {
    flex-direction: column;
  }
  .cbt-palette-pane {
    width: 100%;
    max-height: 220px;
  }
  .banner-overlay-action {
    right: 10px;
    bottom: 10px;
    top: auto;
    transform: none;
  }
  .action-hotspot-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-actions .telegram-pill {
    display: none;
  }
  .start-cbt-header span {
    display: none;
  }
}
