/* ============================================
   NityaHub - Main Stylesheet
   Version: 1.0.0
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 8px 40px rgba(79, 70, 229, 0.15);
  --transition: all 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ---- Utility ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-primary-soft { background: rgba(79, 70, 229, 0.1); }
.bg-success-soft { background: rgba(16, 185, 129, 0.1); }
.bg-warning-soft { background: rgba(245, 158, 11, 0.1); }
.bg-danger-soft  { background: rgba(239, 68, 68, 0.1); }

.badge-primary-soft {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 500;
}

.gap-3 { gap: 1rem; }

/* ---- Top Bar ---- */
.topbar {
  background: var(--dark);
  color: var(--gray-400);
  font-size: 0.8rem;
  padding: 6px 0;
}
.topbar a {
  color: var(--gray-400);
  margin-left: 12px;
  font-size: 0.85rem;
}
.topbar a:hover { color: var(--white); }

/* ---- Navbar ---- */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1000;
}
#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: var(--gray-600) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
  font-size: 0.92rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: rgba(79, 70, 229, 0.06);
}

/* Mega Dropdown */
.dropdown-menu-apps {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 280px;
}
.dropdown-menu-apps .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--gray-800);
}
.dropdown-menu-apps .dropdown-item:hover {
  background: var(--gray-100);
}
.dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 50%, #f0fdf4 100%);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.min-vh-80 { min-height: 80vh; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 500px;
  line-height: 1.8;
}

.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0;
  font-family: var(--font-heading);
}
.hero-stats .stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
}
.hero-circle {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(79,70,229,0.3);
}
.hero-logo-text {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  animation: float 3s ease-in-out infinite;
}
.floating-card i { font-size: 1.2rem; }
.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { top: 10%; right: 0; animation-delay: 0.5s; }
.card-3 { bottom: 10%; left: 0; animation-delay: 1s; }
.card-4 { bottom: 10%; right: 0; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave { margin-top: 60px; line-height: 0; }
.hero-wave svg { display: block; }

/* ---- Section Styles ---- */
.section-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- App Cards ---- */
.app-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(79,70,229,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.app-card:hover::before { transform: scaleX(1); }

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.app-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.app-desc {
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.app-features li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-features li i { font-size: 0.7rem; }

/* ---- Why Section ---- */
.why-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.stat-card p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.9rem;
}

/* ---- Blog Cards ---- */
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(79,70,229,0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-header {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.blog-card-body {
  padding: 20px 24px;
  flex: 1;
}
.blog-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.5;
}
.blog-title a { color: var(--dark); }
.blog-title a:hover { color: var(--primary); }
.blog-date { font-size: 0.8rem; }
.blog-card-footer {
  padding: 12px 24px 20px;
}
.blog-card-footer .btn-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---- CTA Section ---- */
.cta-section { background: var(--gray-100); }
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-title {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.cta-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 0;
}
.btn-white {
  background: white;
  color: var(--primary);
  border: 2px solid white;
  font-weight: 600;
}
.btn-white:hover {
  background: transparent;
  color: white;
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
}
.btn-outline-white:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* ---- Footer ---- */
.footer { background: var(--dark); }
.footer-top { padding: 60px 0 40px; }
.footer p,
.footer .text-muted {
  font-family: var(--font-main);
  color: #94a3b8 !important;
  font-size: 0.88rem;
  line-height: 1.75;
}
.footer-brand p,
.footer-brand-desc {
  font-family: var(--font-main);
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 0;
}
.footer-heading {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-400);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-newsletter .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 8px 0 0 8px;
}
.footer-newsletter .form-control::placeholder { color: var(--gray-400); }
.footer-newsletter .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary);
  box-shadow: none;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.footer-bottom p,
.footer-bottom .text-muted {
  font-family: var(--font-main);
  color: #64748b !important;
  font-size: 0.82rem;
}
.footer-bottom a { color: #64748b !important; transition: var(--transition); }
.footer-bottom a:hover { color: white !important; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 10px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.btn-success { border-radius: 10px; font-weight: 600; }
.btn-warning { border-radius: 10px; font-weight: 600; }
.btn-danger  { border-radius: 10px; font-weight: 600; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-title {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero-subtitle { color: rgba(255,255,255,0.7); font-size: 1rem; }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.6); }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Legal Pages ---- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(79,70,229,0.1);
}
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal-content p, .legal-content li { color: var(--gray-600); line-height: 1.9; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content ul li { margin-bottom: 6px; }
.legal-last-updated {
  background: rgba(79,70,229,0.06);
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* ---- Contact Form ---- */
.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(79,70,229,0.08);
}
.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--gray-800); margin-bottom: 6px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-illustration { width: 280px; height: 280px; }
  .hero-circle { width: 130px; height: 130px; }
  .hero-logo-text { font-size: 1.8rem; }
  .floating-card { padding: 8px 12px; font-size: 0.78rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hero-section { padding: 50px 0 0; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 1.5rem !important; }
  .cta-box { padding: 40px 24px; }
  .contact-card { padding: 24px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 575px) {
  .hero-illustration { width: 240px; height: 240px; }
  .hero-circle { width: 110px; height: 110px; }
  .floating-card { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-card h3 { font-size: 1.5rem; }
}

/* ============================================
   NityaHub v2 — Blog, Mock Test & Feature Flags
   ============================================ */

/* ---- Soft color utilities (info, secondary) ---- */
.bg-info-soft      { background: rgba(6, 182, 212, 0.1); }
.bg-secondary-soft { background: rgba(100, 116, 139, 0.1); }

/* ---- Nav Search ---- */
.nav-search { border-radius: 8px 0 0 8px; font-size: 0.85rem; min-width: 160px; }

/* ---- Blog Mega Dropdown ---- */
.dropdown-menu-blog {
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 260px;
}
.dropdown-menu-blog .dropdown-header-item {
  padding: 4px 12px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}
.dropdown-menu-blog .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--gray-800);
  font-size: 0.88rem;
}
.dropdown-menu-blog .dropdown-item:hover { background: var(--gray-100); }

/* ---- Category Cards (homepage) ---- */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,70,229,0.08);
  transition: var(--transition);
  color: var(--dark);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--primary);
}
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.category-name { font-weight: 700; font-size: 0.92rem; margin: 0; }
.category-desc  { font-size: 0.78rem; margin: 4px 0 0; }

/* ---- Blog Card Image ---- */
.blog-card-img {
  height: 180px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

/* ---- Featured Blog Card ---- */
.blog-card-featured { border-color: var(--primary); }
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  z-index: 1;
}

/* ---- Blog Category Tabs ---- */
.blog-cat-tabs { gap: 8px; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  background: white;
  border: 1.5px solid #e2e8f0;
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.cat-tab-count {
  background: rgba(0,0,0,0.1);
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.72rem;
}
.cat-tab.active .cat-tab-count { background: rgba(255,255,255,0.25); }

/* ---- Blog Post Article ---- */
.post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; }
.post-meta { font-size: 0.88rem; }
.author-avatar-sm {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.author-avatar-lg {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Post Content Typography */
.post-content { font-size: 1.05rem; line-height: 1.9; color: var(--gray-800); }
.post-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--dark); }
.post-content h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.post-content p  { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  background: rgba(79,70,229,0.04);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-600);
}
.post-content img { border-radius: var(--radius); margin: 1rem 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}
.post-content pre {
  background: var(--dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ---- Blog Sidebar ---- */
.sidebar-widget { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid rgba(79,70,229,0.08); }
.sidebar-widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-100); }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { border-bottom: 1px solid var(--gray-100); }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--gray-600);
  font-size: 0.88rem;
  transition: var(--transition);
}
.sidebar-cat-list a:hover { color: var(--primary); padding-left: 4px; }
.recent-posts-list { list-style: none; padding: 0; margin: 0; }
.recent-posts-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-post-title { font-size: 0.82rem; font-weight: 600; color: var(--dark); display: block; line-height: 1.4; }
.recent-post-title:hover { color: var(--primary); }

/* ---- Newsletter Section ---- */
.newsletter-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.newsletter-box { max-width: 600px; margin: 0 auto; }
.newsletter-input { border-radius: 10px 0 0 10px; border: none; padding: 12px 16px; min-width: 280px; }
.newsletter-input:focus { box-shadow: none; }

/* ---- Why Cards ---- */
.why-card { padding: 24px; background: white; border-radius: var(--radius-lg); border: 1px solid rgba(79,70,229,0.08); transition: var(--transition); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

/* ---- Exam Category Cards ---- */
.exam-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(79,70,229,0.08);
  transition: var(--transition);
  color: var(--dark);
}
.exam-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--primary); }
.exam-cat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exam-cat-name { font-weight: 700; font-size: 0.88rem; margin: 0; }
.exam-cat-count { font-size: 0.75rem; }

/* Larger version for mocktest index */
.exam-cat-card-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,70,229,0.08);
  transition: var(--transition);
  color: var(--dark);
}
.exam-cat-card-lg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--primary); }
.exam-cat-icon-lg { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }

/* ---- Exam Cards ---- */
.exam-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,70,229,0.08);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.exam-card-header { padding: 20px 20px 0; }
.exam-title { font-size: 1rem; font-weight: 700; margin: 8px 0; line-height: 1.4; }
.exam-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: var(--gray-100);
  margin: 12px 0 0;
}
.exam-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--gray-600); }
.exam-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  margin-top: auto;
}
.exam-hero-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exam-stat-pill { display: flex; align-items: center; gap: 6px; background: white; border: 1px solid #e2e8f0; border-radius: 50px; padding: 5px 12px; font-size: 0.82rem; font-weight: 600; }

/* ---- Exam Interface ---- */
.exam-header-bar { background: white; border-radius: var(--radius-lg); padding: 20px 24px; border: 1px solid rgba(79,70,229,0.08); }
.question-card { background: white; border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(79,70,229,0.08); }
.question-number { font-size: 0.82rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.question-text { font-size: 1.05rem; font-weight: 600; color: var(--dark); line-height: 1.6; margin-bottom: 20px; }
.options-list { display: flex; flex-direction: column; gap: 10px; }
.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.option-label:hover { border-color: var(--primary); background: rgba(79,70,229,0.03); }
.option-label input[type="radio"] { display: none; }
.option-label:has(input:checked) { border-color: var(--primary); background: rgba(79,70,229,0.06); }
.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.option-label:has(input:checked) .option-letter { background: var(--primary); color: white; }

/* Question Palette */
.question-palette { background: white; border-radius: var(--radius); padding: 16px; border: 1px solid rgba(79,70,229,0.08); }
.palette-header { font-weight: 700; font-size: 0.88rem; margin-bottom: 10px; }
.palette-legend { font-size: 0.75rem; color: var(--gray-400); }
.palette-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.palette-dot.answered  { background: var(--success); }
.palette-dot.unanswered { background: #e2e8f0; }
.palette-dot.review    { background: var(--warning); }
.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.palette-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  transition: var(--transition);
}
.palette-btn.answered  { background: var(--success); color: white; border-color: var(--success); }
.palette-btn.unanswered { background: white; color: var(--gray-600); }
.palette-btn.review    { background: var(--warning); color: white; border-color: var(--warning); }
.palette-btn.current   { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Result Page ---- */
.result-summary-card { background: white; border-radius: var(--radius-lg); padding: 40px; border: 1px solid rgba(79,70,229,0.08); box-shadow: var(--shadow); }
.result-header { padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.result-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.result-pass { background: rgba(16,185,129,0.1); color: var(--success); }
.result-fail { background: rgba(239,68,68,0.1); color: var(--danger); }
.result-score-circle { position: relative; width: 160px; height: 160px; }
.score-svg { width: 100%; height: 100%; }
.score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.score-value { display: block; font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.score-label { display: block; font-size: 0.82rem; color: var(--gray-400); }
.result-stat-box { border-radius: var(--radius); padding: 16px 8px; }
.result-stat-num { font-size: 1.6rem; font-weight: 800; }
.result-stat-label { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }

/* Answer Review */
.answer-review-card { background: white; border-radius: var(--radius); padding: 20px; border-left: 4px solid; }
.answer-review-card.border-success { border-left-color: var(--success); }
.answer-review-card.border-danger  { border-left-color: var(--danger); }
.answer-review-card.border-warning { border-left-color: var(--warning); }
.answer-review-header { display: flex; gap: 12px; }
.q-num-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.options-review .option-review-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.option-review-item.option-correct { border-color: var(--success); background: rgba(16,185,129,0.06); }
.option-review-item.option-wrong   { border-color: var(--danger);  background: rgba(239,68,68,0.06); }
.option-letter-sm { width: 22px; height: 22px; border-radius: 5px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.explanation-box { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; color: var(--gray-600); }

/* ---- How It Works ---- */
.how-step { padding: 24px; }
.step-number { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; margin: 0 auto; }

/* ---- Feature Flags Admin ---- */
.feature-flag-card { transition: var(--transition); }
.feature-flag-card:hover { box-shadow: var(--shadow); }

/* ---- Timer danger ---- */
#timerDisplay.text-danger { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ---- Responsive additions ---- */
@media (max-width: 767px) {
  .exam-header-bar .d-flex { flex-direction: column; align-items: flex-start !important; }
  .question-palette { position: static !important; }
  .palette-grid { grid-template-columns: repeat(6, 1fr); }
  .result-summary-card { padding: 24px 16px; }
}

/* ============================================
   NityaHub Hub Modules — Complete Styles
   ============================================ */

/* ---- Hub Module Cards ---- */
.hub-module-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,70,229,0.08);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  color: var(--dark);
  position: relative;
}
.hub-module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,70,229,0.2);
  color: var(--dark);
}
.hub-module-card.coming-soon {
  opacity: 0.72;
  cursor: default;
  background: #f8f9fa;
}
.hub-module-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}
.hub-module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 16px;
}
.hub-module-body {
  padding: 0 24px 16px;
  flex: 1;
}
.hub-module-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.hub-module-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 10px;
}
.hub-module-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hub-module-badge.live {
  background: rgba(16,185,129,0.12);
  color: #059669;
}
.hub-module-badge.soon {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}
.hub-module-badge.new {
  background: rgba(79,70,229,0.12);
  color: var(--primary);
}
.hub-module-footer {
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

/* ---- Tutorials Section ---- */
.tutorial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,70,229,0.08);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tutorial-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---- Stats Strip ---- */
.stats-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 40px 0;
}
.stats-strip .stat-box {
  text-align: center;
  color: #fff;
}
.stats-strip .stat-box h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.stats-strip .stat-box p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- AdSense Ad Slots ---- */
.ad-slot {
  text-align: center;
  margin: 20px auto;
  overflow: hidden;
}
.ad-slot-placeholder {
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #adb5bd;
  font-size: 0.8rem;
}

/* ---- Responsive Hub ---- */
@media (max-width: 575px) {
  .hub-module-icon { padding: 20px 16px 12px; }
  .hub-module-body { padding: 0 16px 12px; }
  .hub-module-footer { padding: 10px 16px 16px; }
}

/* ---- Hub Mega Dropdown ---- */
.dropdown-menu-hub {
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 300px;
}
.dropdown-menu-hub .dropdown-header-item {
  padding: 4px 12px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}
.dropdown-menu-hub .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--gray-800);
  font-size: 0.88rem;
}
.dropdown-menu-hub .dropdown-item:hover { background: var(--gray-100); }
.dropdown-menu-hub .dropdown-item strong { font-size: 0.88rem; }

/* ---- Blog Mega Dropdown ---- */
.dropdown-menu-blog {
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 260px;
}
.dropdown-menu-blog .dropdown-header-item {
  padding: 4px 12px 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}
.dropdown-menu-blog .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--gray-800);
  font-size: 0.88rem;
}
.dropdown-menu-blog .dropdown-item:hover { background: var(--gray-100); }

/* ============================================
   Shop Module Styles
   ============================================ */
.shop-product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79,70,229,0.08);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.shop-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.shop-product-img {
  height: 180px;
  overflow: hidden;
}
.shop-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.shop-product-card:hover .shop-product-img img { transform: scale(1.05); }
.shop-product-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-product-body { padding: 14px 16px 8px; flex: 1; }
.shop-product-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.shop-product-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.shop-product-title a { color: var(--dark); }
.shop-product-title a:hover { color: var(--primary); }
.shop-product-desc { font-size: 0.8rem; margin: 0; }
.shop-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.shop-product-meta {
  display: flex;
  gap: 12px;
  padding: 6px 16px 10px;
  font-size: 0.72rem;
}
.shop-product-price { display: flex; align-items: center; gap: 6px; }
.price-free     { color: #059669; font-weight: 800; font-size: 1rem; }
.price-regular  { color: var(--dark); font-weight: 800; }
.price-sale     { color: var(--primary); font-weight: 800; }
.price-original { color: var(--gray-400); text-decoration: line-through; font-size: 0.85rem; }
