/* ============================================================
   SmartMock — Main Stylesheet
   Teal/Emerald professional theme, card-based, mobile responsive
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #0D9488;
  --primary-dark:  #0F766E;
  --secondary:     #059669;
  --accent:        #F59E0B;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --dark:          #1E293B;
  --gray:          #64748B;
  --light-gray:    #F1F5F9;
  --white:         #FFFFFF;
  --gradient:      linear-gradient(135deg, #0F766E 0%, #059669 100%);
  --gradient-soft: linear-gradient(135deg, #F0FDFA 0%, #ECFDF5 100%);
  --shadow-sm:     0 2px 8px rgba(13,148,136,0.08);
  --shadow-md:     0 4px 20px rgba(13,148,136,0.12);
  --shadow-lg:     0 8px 40px rgba(13,148,136,0.18);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    all 0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--gray); }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(13,148,136,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,148,136,0.4); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #059669; transform: translateY(-1px); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-warning:hover { background: #D97706; color: var(--white); }
.btn-danger  { background: var(--danger);  color: var(--white); }
.btn-danger:hover  { background: #DC2626;  color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem;   }
.btn-block { width: 100%; justify-content: center; }

/* ── Section ── */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p  { max-width: 540px; margin: 0 auto; }
.section-badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gradient-soft);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(13,148,136,0.15);
}

/* ── Gradient text ── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 24px; }

/* ── Alert / Flash ── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-danger  { background: #FEF2F2; color: #991B1B; border-left: 4px solid var(--danger); }
.alert-success { background: #F0FDF4; color: #166534; border-left: 4px solid var(--success); }
.alert-info    { background: #F0FDFA; color: #0F766E; border-left: 4px solid var(--primary); }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-locked  { background: #FEE2E2; color: #991B1B; }
.badge-unlocked{ background: #DCFCE7; color: #166534; }
.badge-type    { background: var(--gradient-soft); color: var(--primary); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13,148,136,0.08);
  padding: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
}
.navbar-brand .logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.navbar-brand .brand-name { color: var(--dark); }
.navbar-brand .brand-name span { color: var(--primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--gradient-soft);
  color: var(--primary);
}
.nav-link-cta {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
}
.nav-link-cta:hover { background: var(--gradient) !important; color: var(--white) !important; opacity: 0.88; transform: translateY(-1px); }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;  right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 { color: white; margin-bottom: 18px; }
.hero p   { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover { background: var(--light-gray); transform: translateY(-2px); color: var(--primary); }
.btn-glass {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); color: white; }
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: white; }
.hero-stat span   { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 30px;
  width: 320px;
}
.hero-card-title {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mini-test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.mini-test-item:last-child { margin-bottom: 0; }
.mini-test-name { color: white; font-size: 0.88rem; font-weight: 500; }
.mini-test-pill {
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50px;
  font-size: 0.72rem;
  padding: 3px 10px;
  font-weight: 600;
}

/* ============================================================
   CATEGORIES — Attractive card with colored header
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}
.category-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: block;
  text-decoration: none;
}
.category-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  transform: translateY(-8px);
}
.cat-header {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Per-colour header gradients */
.cat-blue   .cat-header { background: linear-gradient(135deg,#1D4ED8,#60A5FA); }
.cat-purple .cat-header { background: linear-gradient(135deg,#6D28D9,#A78BFA); }
.cat-green  .cat-header { background: linear-gradient(135deg,#065F46,#34D399); }
.cat-orange .cat-header { background: linear-gradient(135deg,#B45309,#FCD34D); }
.cat-red    .cat-header { background: linear-gradient(135deg,#9F1239,#FB7185); }
.cat-teal   .cat-header { background: linear-gradient(135deg,#0F766E,#2DD4BF); }

/* Category cover image — fills header fully, aligned from top */
.cat-cover-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Hide icon when a cover image is present */
.category-card:has(.cat-cover-img) .category-icon { display: none; }

/* No overlay — image shows fully clear */
.category-card:has(.cat-cover-img) .cat-header::after {
  display: none;
}
.category-icon {
  position: relative;
  z-index: 2;
  width: 66px; height: 66px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.category-card:hover .category-icon { transform: scale(1.1) rotate(-4deg); }

.cat-body {
  padding: 18px 16px 20px;
  text-align: center;
}
.category-card h3 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 5px;
}
.category-card p  {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.category-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.cat-blue   .category-count { background:#DBEAFE; color:#1D4ED8; }
.cat-purple .category-count { background:#EDE9FE; color:#6D28D9; }
.cat-green  .category-count { background:#D1FAE5; color:#065F46; }
.cat-orange .category-count { background:#FEF3C7; color:#B45309; }
.cat-red    .category-count { background:#FFE4E6; color:#9F1239; }
.cat-teal   .category-count { background:#CCFBF1; color:#0F766E; }

/* ============================================================
   BOOKS / STUDY MATERIAL
   ============================================================ */
.books-section { background: var(--light-gray); }
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.book-cover {
  aspect-ratio: 3 / 4;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.book-price-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--warning);
  color: white;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 1;
}
.book-body { padding: 20px; }
.book-body h3 { font-size: 1rem; margin-bottom: 8px; }
.book-body p  { font-size: 0.83rem; margin-bottom: 16px; }
.book-author  { font-size: 0.8rem; color: var(--gray); margin-bottom: 14px; }
.book-actions { display: flex; gap: 8px; }

/* ============================================================
   FEATURES (Why SmartMock) — 4-card grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 70px; height: 70px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(13,148,136,0.25);
}
.feature-card h3 { margin-bottom: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .navbar-brand { margin-bottom: 16px; }
.footer-brand .navbar-brand .brand-name { color: white; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: white; margin-bottom: 18px; font-size: 0.95rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.88rem; margin-bottom: 12px;
}
.footer-contact-item i { color: var(--accent); margin-top: 3px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); transform: translateY(-2px); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ============================================================
   TESTS PAGE
   ============================================================ */
.page-hero {
  background: var(--gradient);
  padding: 50px 0 40px;
  color: white;
}
.page-hero h1 { color: white; font-size: 2rem; margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,0.8); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

.tests-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 88px;
}
.filter-sidebar h4 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--light-gray); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  margin-bottom: 4px;
  transition: var(--transition);
}
.filter-option:hover { background: var(--light-gray); }
.filter-option.active { background: var(--gradient-soft); color: var(--primary); font-weight: 600; }

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.test-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
}
.test-card:hover { box-shadow: var(--shadow-md); border-color: rgba(13,148,136,0.2); }
.test-card.locked { opacity: 0.85; }
.test-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.test-card h3 { font-size: 1rem; margin-bottom: 6px; flex: 1; }
.test-meta { display: flex; gap: 14px; margin-bottom: 16px; }
.test-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--gray); }
.test-meta-item i { color: var(--primary); }
.test-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--light-gray); }
.lock-icon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.78rem; color: var(--gray);
}
.lock-icon i { font-size: 1.2rem; color: #CBD5E1; }

/* Pagination */
.pagination {
  display: flex; gap: 6px; justify-content: center; margin-top: 30px;
}
.page-item {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  border: 2px solid var(--light-gray);
  color: var(--gray);
}
.page-item:hover { border-color: var(--primary); color: var(--primary); }
.page-item.active { background: var(--gradient); color: white; border-color: transparent; }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}
.auth-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem;
  margin: 0 auto 14px;
}
.auth-logo h2 { font-size: 1.3rem; }
.auth-logo p  { font-size: 0.85rem; }
.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: var(--gray);
  font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #E2E8F0;
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--gray); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ============================================================
   EXAM / RESULT PAGES
   ============================================================ */
.result-header {
  background: var(--gradient);
  padding: 50px 0 40px;
  color: white;
  text-align: center;
}
.result-header h1 { color: white; font-size: 1.8rem; }
.score-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 24px auto 10px;
}
.score-value { font-size: 2rem; font-weight: 800; color: white; }
.score-label { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.score-percentage { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 4px; }
.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.result-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.82rem; color: var(--gray); margin-top: 4px; }
.stat-correct { border-top: 4px solid var(--success); }
.stat-correct .stat-value { color: var(--success); }
.stat-wrong   { border-top: 4px solid var(--danger); }
.stat-wrong   .stat-value { color: var(--danger); }
.stat-skipped { border-top: 4px solid var(--gray); }
.stat-skipped .stat-value { color: var(--gray); }

/* Grade badges */
.result-grade {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 8px;
}
.grade-excellent { background: rgba(16,185,129,0.2); color: #ECFDF5; border: 1px solid rgba(16,185,129,0.4); }
.grade-good      { background: rgba(245,158,11,0.2); color: #FFFBEB; border: 1px solid rgba(245,158,11,0.4); }
.grade-average   { background: rgba(99,102,241,0.2); color: #EEF2FF; border: 1px solid rgba(99,102,241,0.4); }
.grade-poor      { background: rgba(239,68,68,0.2);  color: #FEF2F2; border: 1px solid rgba(239,68,68,0.4); }

/* Analysis table */
.analysis-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.analysis-table th { background: #F8FAFC; padding: 10px 16px; text-align: left; font-weight: 600; color: #475569; border-bottom: 2px solid #E2E8F0; }
.analysis-table td { padding: 12px 16px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.answer-correct { color: var(--success); font-weight: 600; }
.answer-wrong   { color: var(--danger);  font-weight: 600; }
.answer-skipped { color: var(--gray);    font-style: italic; }
.answer-icon    { margin-right: 4px; }
.explanation-text { font-size: 0.8rem; color: #0F766E; background: #F0FDFA; padding: 6px 10px; border-radius: 6px; margin-top: 6px; border-left: 3px solid var(--primary); }

/* ============================================================
   FILTER TABS  (shared by Products & Videos page)
   ============================================================ */
.filter-tabs-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 36px;
  scrollbar-width: none;
}
.filter-tabs-wrap::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid #E2E8F0;
  background: white;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-tab:hover  { border-color: #0D9488; color: #0D9488; }
.filter-tab.active {
  background: linear-gradient(135deg, #0F766E, #059669);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}

/* ============================================================
   PRODUCTS / TEST SERIES SECTION
   ============================================================ */
.products-section { background: #F8FAFC; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border: 1.5px solid #F1F5F9;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.13);
  transform: translateY(-7px);
  border-color: rgba(13,148,136,0.18);
}
.product-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, #0F766E, #059669);
  position: relative;
  flex-shrink: 0;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,0.6);
}
.product-img-placeholder i    { font-size: 2.8rem; }
.product-img-placeholder span { font-size: 0.8rem; font-weight: 600; }
.product-exam-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
  color: white;
  padding: 3px 11px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
  margin-bottom: 2px;
}
.product-subtitle {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-bottom: 10px;
}
.product-pricing {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.product-price-original {
  font-size: 0.8rem;
  color: #94A3B8;
  text-decoration: line-through;
}
.product-price-off {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 700;
}
.product-price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0D9488;
  display: block;
}
.product-validity {
  font-size: 0.76rem;
  color: #64748B;
  margin-bottom: 12px;
}
.product-free {
  font-size: 1rem;
  font-weight: 800;
  color: #10B981;
  margin-bottom: 12px;
}
.btn-product {
  display: block;
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #0F766E, #059669);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: auto;
}
.btn-product:hover { opacity: 0.88; color: white; }

/* ============================================================
   VIDEOS SECTION
   ============================================================ */
.videos-section { background: #F8FAFC; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: all 0.3s ease;
}
.video-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
  transform: translateY(-6px);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background 0.25s;
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.42); }
.video-play-btn i {
  font-size: 3.8rem;
  color: white;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.45));
  transition: transform 0.25s ease, color 0.25s;
}
.video-card:hover .video-play-btn i {
  transform: scale(1.18);
  color: #FF0000;
}
.video-body { padding: 16px 18px 20px; }
.video-body h3 {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 5px;
}
.video-body p { font-size: 0.82rem; line-height: 1.5; }

/* Video lightbox modal */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.yt-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  cursor: pointer;
}
.yt-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  background: #000;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.yt-modal-close {
  position: absolute;
  top: -16px; right: -16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: background 0.2s;
}
.yt-modal-close:hover { background: #f1f1f1; }
.yt-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}
.yt-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner   { grid-template-columns: 1fr; text-align: center; }
  .hero-visual  { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .tests-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
}
@media (max-width: 600px) {
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow-md); }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: block; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 50px 0; }
  .books-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
