/* ============================================
   CivilSphere – UPSC & BPSC Preparation Platform
   Main Stylesheet (style.css)
   ============================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #0A192F;
  --accent: #FF7A00;
  --bg: #F5F7FA;
  --text: #1F2937;
  --white: #FFFFFF;
  --accent-light: #FFF3E6;
  --border: #E2E8F0;
  --shadow: 0 2px 12px rgba(10, 25, 47, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 25, 47, 0.12);
  --shadow-lg: 0 8px 30px rgba(10, 25, 47, 0.15);
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #64748B;
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #E56D00;
  border-color: #E56D00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(10, 25, 47, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 68px;
}

.navbar-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.navbar-logo span {
  color: var(--accent);
}

/* Hamburger toggle (CSS-only via checkbox) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-links li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-links li a:hover,
.navbar-links li a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-links li a.active {
  color: var(--accent);
}

/* Dropdown for UPSC/BPSC submenu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  color: var(--text) !important;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
}

.nav-dropdown-menu li a:hover {
  background: var(--bg) !important;
  color: var(--accent) !important;
}

/* Dropdown arrow */
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Hero Section ---------- */
.hero {
  background: var(--primary);
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 122, 0, 0.15);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

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

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ---------- Page Banner ---------- */
.page-banner {
  background: var(--primary);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.breadcrumb .current {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 700;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 10px;
}

.card-link::after {
  content: '\2192';
}

/* Exam selection cards (large) */
.exam-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.exam-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid var(--border);
  text-align: center;
}

.exam-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.exam-card-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
}

.exam-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.exam-card p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.exam-card-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Subject cards grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.subject-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.subject-card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 18px;
  color: var(--accent);
  font-weight: 700;
}

.subject-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.subject-card p {
  color: #64748B;
  font-size: 0.85rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ---------- Features Section ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-light), #FFE8CC);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--primary);
  padding: 72px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Mock Test Section ---------- */
.mock-test-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.mock-test-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.mock-test-section p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.mock-test-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mock-test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.mock-test-item:hover {
  background: var(--accent-light);
}

.mock-test-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
}

.mock-test-item-info span {
  font-size: 0.8rem;
  color: #64748B;
}

/* ---------- Test Series Cards ---------- */
.test-series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.test-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.test-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.test-card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-easy {
  background: #DCFCE7;
  color: #166534;
}

.badge-medium {
  background: #FEF3C7;
  color: #92400E;
}

.badge-hard {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-word-limit {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.test-card-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.test-card-meta span {
  color: #64748B;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-card-meta span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Answer Writing Section ---------- */
.answer-writing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.answer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.answer-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.answer-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.answer-card p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Model answer preview */
.model-answer {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}

.model-answer h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.model-answer p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Essay practice */
.essay-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.essay-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.essay-section > p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.essay-topics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.essay-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  flex-wrap: wrap;
  gap: 8px;
}

.essay-topic:hover {
  background: var(--accent-light);
}

.essay-topic span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

/* ---------- Current Affairs ---------- */
.current-affairs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ca-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.ca-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), #1a2d4a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ca-card-image span {
  font-size: 2.5rem;
  opacity: 0.3;
  color: var(--white);
}

.ca-card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ca-card-body {
  padding: 24px;
}

.ca-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.ca-card-body p {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ca-card-tag {
  display: inline-block;
  background: var(--bg);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 12px;
}

/* ---------- Login Page ---------- */
.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px - 280px);
  padding: 60px 24px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 440px;
}

.login-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}

.login-card .login-subtitle {
  text-align: center;
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: #64748B;
  cursor: pointer;
}

.form-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

.form-link:hover {
  text-decoration: underline;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #64748B;
}

.login-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Bihar Topics Section ---------- */
.bihar-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bihar-topic-item {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.bihar-topic-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.bihar-topic-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.bihar-topic-item p {
  font-size: 0.825rem;
  color: #64748B;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Responsive: Tablet (max-width: 992px) ---------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .current-affairs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-series-grid {
    grid-template-columns: 1fr;
  }

  .mock-test-list {
    grid-template-columns: 1fr;
  }

  .answer-writing {
    grid-template-columns: 1fr;
  }

  .bihar-topics {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive: Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
  /* Mobile navbar */
  .nav-toggle-label {
    display: flex;
    z-index: 10;
  }

  .navbar-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
  }

  .nav-toggle:checked ~ .navbar-links {
    max-height: 500px;
    padding: 16px 24px;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links li a {
    padding: 12px 16px;
    width: 100%;
  }

  /* Dropdown on mobile */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px 0;
    display: none;
  }

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

  .nav-dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 10px 24px !important;
  }

  .nav-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--accent) !important;
  }

  /* Hero */
  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Cards */
  .exam-cards {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .current-affairs-grid {
    grid-template-columns: 1fr;
  }

  /* Page banner */
  .page-banner h1 {
    font-size: 1.7rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Login */
  .login-card {
    padding: 36px 24px;
  }

  /* Form row */
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Test cards */
  .test-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Essay topics */
  .essay-topic {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Responsive: Small Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .card,
  .subject-card,
  .exam-card {
    padding: 24px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .mock-test-section {
    padding: 24px;
  }
}
