/* SevaGuide Premium Custom Stylesheet */
/* Font is loaded via <link rel="preconnect"> in index.html's <head>, not @import
   here - @import blocks CSS parsing on an extra round-trip before it can even
   start fetching the font, which Google's own PageSpeed guidance flags. */

:root {
  /* Color Palette - Premium Indigo & Amber Theme */
  --primary-color: #312e81; /* Deep Trust Indigo */
  --primary-rgb: 49, 46, 129;
  --primary-light: #4f46e5; /* Modern Indigo */
  --accent-color: #d97706; /* Vibrant Saffron/Amber */
  --accent-hover: #b45309;
  --bg-main: #f8fafc; /* Crisp Slate Light background */
  --bg-card: #ffffff; /* Card background */
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --border-color: rgba(79, 70, 229, 0.08); /* Indigo-tinted borders */
  --glass-bg: rgba(255, 255, 255, 0.85);
  
  /* Shared Layout constants */
  --card-shadow: 0 10px 30px rgba(49, 46, 129, 0.03);
  --card-hover-shadow: 0 20px 40px rgba(49, 46, 129, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #1e1b4b; /* Midnight Deep Indigo */
  --primary-light: #6366f1; /* Neon Indigo */
  --accent-color: #f59e0b; /* Amber */
  --accent-hover: #d97706;
  --bg-main: #0b0f19; /* Deep Midnight */
  --bg-card: #111827; /* Charcoal */
  --text-main: #f1f5f9; /* Slate 100 */
  --text-muted: #94a3b8; /* Slate 400 */
  --border-color: rgba(99, 102, 241, 0.15);
  --glass-bg: rgba(17, 24, 39, 0.85);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(79, 70, 229, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(217, 119, 6, 0.03) 0%, transparent 35%);
  background-attachment: fixed;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

.chat-body::-webkit-scrollbar {
  width: 5px;
}
.chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Header styling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .site-header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .logo-text {
  background: linear-gradient(to right, #ffffff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  padding-left: 0.75rem;
  font-weight: 500;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-card);
  min-width: 240px;
  box-shadow: var(--card-hover-shadow), 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 0;
  z-index: 1000;
  animation: dropdownFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-main) !important;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--primary-light) !important;
  padding-left: 1.5rem;
}

[data-theme="dark"] .dropdown-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Custom dropdown and buttons */
.lang-selector {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.lang-selector:focus, .lang-selector:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.btn-toggle:hover {
  background-color: rgba(79, 70, 229, 0.05);
  border-color: var(--primary-light);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.03) 0%, rgba(217, 119, 6, 0.03) 100%);
  padding: 3rem 2rem;
  text-align: center;
}

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

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--primary-color);
}

[data-theme="dark"] .hero-title {
  color: #ffffff;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Guide Search Section - sits below the Info Hub, its own distinct block */
.search-section {
  background: var(--bg-card);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.search-section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.search-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.search-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Search Bar + Live Results Panel */
.search-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
}

.search-results-panel {
  flex: 0 1 380px;
  width: 100%;
  max-width: 380px;
  max-height: 420px;
  overflow-y: auto;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-hover-shadow);
  padding: 0.6rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background-color: rgba(var(--primary-rgb), 0.06);
  color: var(--text-main);
}

.search-result-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.search-result-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-view-all-link {
  display: block;
  text-align: center;
  margin-top: 0.35rem;
  padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
}

.search-view-all-link:hover {
  color: var(--accent-color);
}

.search-result-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .search-results-panel {
    max-width: 650px;
  }
}

/* Trending Topics chip strip */
.trending-topics-container {
  max-width: 900px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.trending-topics-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.trending-topics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.trending-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.trending-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--card-hover-shadow);
}

.search-input {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 10px 40px -10px rgba(49, 46, 129, 0.12);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 10px 40px -10px rgba(79, 70, 229, 0.22), 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  pointer-events: none;
  opacity: 0.6;
}

/* Categories Bar */
.categories-container {
  max-width: 1400px;
  margin: 2.5rem auto 1rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.category-btn:hover {
  background-color: rgba(79, 70, 229, 0.05);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary-light), #6366f1);
  color: white;
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.30);
}

/* Main Dashboard layout */
.main-container {
  max-width: 1400px;
  margin: 1.5rem auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 2.5rem;
}

/* Single column dashboard when viewing active guide details */
.main-container.active-detail-view {
  grid-template-columns: 65% 35%;
}

/* Dashboard listing of cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.guide-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow), 0 12px 24px -10px rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.18);
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--accent-color));
  opacity: 0.8;
}

.card-icon {
  font-size: 2.2rem;
  background-color: rgba(79, 70, 229, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: var(--transition);
}

.guide-card:hover .card-icon {
  background-color: var(--primary-light);
  color: white;
  transform: scale(1.05);
}

.card-details {
  flex-grow: 1;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-badge {
  background-color: rgba(79, 70, 229, 0.06);
  color: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-light);
}

.guide-card:hover .card-link {
  color: var(--accent-color);
}

/* Prominent link to the guide's real government portal (SPA widget + static SEO pages) */
.official-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  background-color: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: var(--transition);
}

.official-portal-link:hover {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Empty/No Results design */
.no-results-card {
  background-color: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Sidebar Dashboard widgets */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.widget-item a:hover {
  background-color: rgba(79, 70, 229, 0.04);
  color: var(--primary-light);
  padding-left: 0.75rem;
}

.widget-item-icon {
  font-size: 1.15rem;
}

/* Interactive Walkthrough View Styling */
.guide-detail-header {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  cursor: pointer;
  color: var(--primary-light);
}

.btn-back:hover {
  color: var(--accent-color);
  transform: translateX(-4px);
}

.detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .detail-title {
  color: white;
}

.detail-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Progress Tracker Styling */
.progress-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.progress-percentage {
  font-weight: 800;
  color: var(--primary-light);
}

.progress-bar-container {
  height: 8px;
  background-color: rgba(79, 70, 229, 0.08);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary-light), var(--accent-color));
  border-radius: 50px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps list */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
}

.step-card.completed {
  border-color: rgba(16, 185, 129, 0.2);
  background-color: rgba(16, 185, 129, 0.01);
}

.step-card.completed::before {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background-color: #10b981;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-card.completed .step-number {
  background-color: #10b981;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Custom checkbox wrapper */
.step-checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
}

.step-card.completed .step-checkbox-wrapper {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.step-checkbox-wrapper:hover {
  background-color: rgba(79, 70, 229, 0.1);
}

.step-checkbox-wrapper input {
  display: none;
}

/* Required Documents widget inside details */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.doc-status-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Pro Tips widget inside details */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tip-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.tip-item::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 0;
}

/* Simulated Helper Bot Widget */
.chat-widget {
  display: flex;
  flex-direction: column;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.7rem;
  opacity: 0.8;
}

.chat-body {
  flex-grow: 1;
  background-color: var(--bg-main);
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: msgSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgSlide {
  0% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.chat-msg.agent {
  background-color: var(--bg-card);
  color: var(--text-main);
  align-self: flex-start;
  border-top-left-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--primary-light), #6366f1);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.chat-suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.suggested-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.suggested-btn:hover {
  background-color: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

.chat-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.chat-input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  outline: none;
  background-color: var(--bg-main);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary-light);
}

.chat-send-btn {
  background-color: var(--primary-light);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.chat-send-btn:hover {
  background-color: var(--accent-color);
}

/* Footer structure */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Sectors Grid Layouts */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.sector-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow), 0 8px 20px -10px rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.sector-card.active {
  background: linear-gradient(135deg, var(--primary-light), #6366f1);
  color: white;
  border-color: var(--primary-light);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.sector-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sector-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.sector-card.active .sector-name {
  color: white;
}

/* Responsive grid layout */
@media (max-width: 1024px) {
  .main-container, .main-container.active-detail-view {
    grid-template-columns: 1fr;
  }
  
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logo-wrapper {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .logo-tagline {
    border-left: none;
    padding-left: 0;
  }
  
  .hero-banner {
    padding: 2.5rem 1rem;
  }

  .search-section {
    padding: 2.5rem 1rem;
  }

  .categories-container {
    padding: 0 1rem;
  }
  
  .main-container {
    padding: 0 1rem;
  }
  
  .guide-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .detail-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* Info Hub Styles */
.top-info-hub-container {
  max-width: 1400px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1.5rem;
}

.top-info-hub-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.hub-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .hub-header-title {
  color: white;
}

.pulse-icon {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); opacity: 0.5; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hub-updated-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.info-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-board-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.info-board-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.card-column-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.card-column-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 0.35rem;
}

.board-news-viewport {
  height: 260px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
}

.board-news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: news-ticker-scroll 30s linear infinite;
}

.board-news-viewport:hover .board-news-list,
.board-news-viewport:focus-within .board-news-list {
  animation-play-state: paused;
}

@keyframes news-ticker-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.board-news-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-main);
  border-left: 3px solid rgba(var(--primary-rgb), 0.2);
  padding: 0.35rem 0 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.board-news-list li:hover,
.board-news-list li:focus-within {
  border-left-color: var(--primary-light);
  background-color: rgba(var(--primary-rgb), 0.06);
}

.board-news-list .bullet {
  flex-shrink: 0;
}

.board-news-list .board-news-link {
  display: flex;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.board-news-list .board-news-link:hover .text,
.board-news-list .board-news-link:focus .text {
  text-decoration: underline;
}

.board-news-list .board-news-link:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .board-news-list {
    animation: none !important;
    transform: none !important;
  }
  .board-news-list li[aria-hidden="true"] {
    display: none !important;
  }
  .board-news-viewport {
    height: auto !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

.board-listicle {
  background: rgba(79, 70, 229, 0.03);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid var(--border-color);
  margin-top: auto;
}

.listicle-sub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.listicle-sub-ol {
  list-style: none;
  counter-reset: sub-counter;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.listicle-sub-li {
  counter-increment: sub-counter;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.listicle-sub-li::before {
  content: counter(sub-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
}

/* Quiz Styling */
.board-quiz {
  background: rgba(245, 158, 11, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.quiz-q {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.quiz-action-area {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.reveal-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.reveal-btn:hover {
  background-color: var(--accent-hover);
}

.quiz-a {
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 700;
}

/* Career Roadmap Intro inside grid */
.board-career {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.quiz-mocktest-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: none;
}

.quiz-mocktest-link:hover {
  text-decoration: underline;
}

.board-quiz-viewport,
.board-career-viewport {
  height: 190px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
}

.board-career-viewport {
  margin-top: auto;
}

.board-quiz-list,
.board-career-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: news-ticker-scroll 45s linear infinite;
}

.board-quiz-viewport:hover .board-quiz-list,
.board-quiz-viewport:focus-within .board-quiz-list,
.board-career-viewport:hover .board-career-list,
.board-career-viewport:focus-within .board-career-list {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .board-quiz-list,
  .board-career-list {
    animation: none !important;
    transform: none !important;
  }
  .board-quiz-list > [aria-hidden="true"],
  .board-career-list > [aria-hidden="true"] {
    display: none !important;
  }
  .board-quiz-viewport,
  .board-career-viewport {
    height: auto !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

.career-sub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.4rem;
}

.career-sub-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.read-roadmap-btn {
  background: none;
  border: 1px solid #10b981;
  color: #10b981;
  padding: 0.4rem 0.80rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.read-roadmap-btn:hover {
  background-color: #10b981;
  color: white;
}

/* Alerts Card Styling */
.board-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.board-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
  align-self: flex-start;
}

.badge-alert {
  background-color: #ef4444;
  color: white;
}

.alert-sub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #b45309;
  line-height: 1.3;
}

[data-theme="dark"] .alert-sub-title {
  color: #fbbf24;
}

.alert-sub-desc {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
}

.alert-source-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.alert-source-link:hover {
  text-decoration: underline;
}

.board-job {
  background: rgba(79, 70, 229, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.board-alert-viewport,
.board-job-viewport {
  height: 190px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
}

.board-job-viewport {
  margin-top: auto;
}

.board-alert-list,
.board-job-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: news-ticker-scroll 45s linear infinite;
}

.board-alert-viewport:hover .board-alert-list,
.board-alert-viewport:focus-within .board-alert-list,
.board-job-viewport:hover .board-job-list,
.board-job-viewport:focus-within .board-job-list {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .board-alert-list,
  .board-job-list {
    animation: none !important;
    transform: none !important;
  }
  .board-alert-list > [aria-hidden="true"],
  .board-job-list > [aria-hidden="true"] {
    display: none !important;
  }
  .board-alert-viewport,
  .board-job-viewport {
    height: auto !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

.badge-job {
  background-color: var(--primary-light);
  color: white;
}

.job-sub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

[data-theme="dark"] .job-sub-title {
  color: white;
}

.job-sub-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-sub-meta strong {
  color: var(--text-main);
}

/* Modal Core Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  padding: 2.25rem;
  position: relative;
  z-index: 2001;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  line-height: 1.3;
}

[data-theme="dark"] .modal-title {
  color: white;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Async guide-detail fetch loading state */
.steps-loading {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Typing indicator pulse for the Seva Mitra chat assistant */
.chat-msg.typing-indicator {
  animation: msgSlide 0.3s ease, typingPulse 1.2s ease-in-out infinite;
}

@keyframes typingPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Media Query Responsive adaptation for Widescreen board */
@media (max-width: 992px) {
  .info-board-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .top-info-hub-container {
    padding: 0 1rem;
  }
}

/* Mock Test Layout */
.test-layout {
  display: grid;
  grid-template-columns: 72% 28%;
  gap: 1.5rem;
  align-items: start;
}

.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .test-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .result-summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   PREMIUM INTERACTIVE COURSES & SYLLABUS DIRECTORY SYSTEM STYLING
   ========================================================================== */

/* Category Filter Pills */
.syllabus-category-pills {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.syllabus-category-pills .category-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.syllabus-category-pills .category-btn:hover {
  border-color: var(--primary-light);
  background-color: rgba(79, 70, 229, 0.02);
  transform: translateY(-1px);
}

.syllabus-category-pills .category-btn.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Exams Responsive Grid */
.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.exam-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.exam-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(79, 70, 229, 0.18);
  border-color: var(--primary-light);
}

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

.exam-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.exam-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.exam-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.exam-meta-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--primary-light);
  text-transform: uppercase;
}

.exam-meta-pill.cat-badge {
  background-color: rgba(245, 158, 11, 0.05);
  color: var(--accent-color);
}

/* Exam Blueprint Detailed Panel */
.blueprint-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  margin-top: 1.5rem;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.blueprint-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.blueprint-header-left {
  flex-grow: 1;
}

.blueprint-category {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.blueprint-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
}

[data-theme="dark"] .blueprint-title {
  color: white;
}

.blueprint-close-btn {
  background-color: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blueprint-close-btn:hover {
  background-color: #ef4444;
  color: white;
}

/* Tabbed sub-navigation inside Blueprint */
.blueprint-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.75rem;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.blueprint-tabs::-webkit-scrollbar {
  display: none;
}

.blueprint-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.blueprint-tab-btn:hover {
  color: var(--primary-light);
}

.blueprint-tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* Blueprint Content Tabs */
.blueprint-tab-content {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.blueprint-tab-content.active {
  display: block;
}

/* Tab 1: Overview Metadata Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.overview-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 4px solid var(--primary-light);
}

.overview-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.overview-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

/* Tab 2: Pattern Table styling */
.pattern-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
}

.pattern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.pattern-table th {
  background-color: var(--bg-card);
  color: var(--text-main);
  font-weight: 800;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-color);
}

.pattern-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  line-height: 1.5;
}

.pattern-table tr:last-child td {
  border-bottom: none;
}

.pattern-table tr:nth-child(even) {
  background-color: rgba(79, 70, 229, 0.01);
}

/* Tab 4: Books Checklist and custom styling */
.books-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.book-item {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-item:hover {
  border-color: var(--primary-light);
  background-color: rgba(79, 70, 229, 0.02);
}

.book-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-light);
  cursor: pointer;
}

.book-title-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.book-item.checked {
  border-color: rgba(16, 185, 129, 0.3);
  background-color: rgba(16, 185, 129, 0.02);
}

.book-item.checked .book-title-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Tab 5: Practice Launcher Card */
.practice-launcher-card {
  border: 2px dashed var(--primary-light);
  background-color: rgba(79, 70, 229, 0.02);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.launcher-icon {
  font-size: 3rem;
}

.launcher-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.launcher-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}


