/* css/blog.css - Updated with proper dark/light mode support */

:root {
  /* Base colors - work in both modes */
  --gradient-primary: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
  --gradient-accent: linear-gradient(135deg, #4895ef 0%, #f72585 100%);
  
  /* Light mode defaults */
  --bg-primary: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.9);
  --bg-surface-light: rgba(248, 249, 250, 0.8);
  --text-primary: #121826;
  --text-secondary: rgba(18, 24, 38, 0.8);
  --text-muted: rgba(18, 24, 38, 0.6);
  --border-primary: rgba(67, 97, 238, 0.2);
  --border-secondary: rgba(67, 97, 238, 0.1);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.12);
  
  /* For cards and surfaces */
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(67, 97, 238, 0.15);
  --code-bg: rgba(18, 24, 38, 0.05);
  --alert-bg: rgba(248, 249, 250, 0.95);
  
  /* Input and form elements */
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: rgba(18, 24, 38, 0.15);
  --input-text: #121826;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0d1117;
    --bg-surface: rgba(18, 24, 38, 0.9);
    --bg-surface-light: rgba(28, 35, 52, 0.7);
    --text-primary: #f8f9fa;
    --text-secondary: rgba(248, 249, 250, 0.85);
    --text-muted: rgba(248, 249, 250, 0.6);
    --border-primary: rgba(67, 97, 238, 0.3);
    --border-secondary: rgba(67, 97, 238, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.24);
    --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.32);
    
    --card-bg: rgba(18, 24, 38, 0.95);
    --card-border: rgba(67, 97, 238, 0.25);
    --code-bg: rgba(0, 0, 0, 0.3);
    --alert-bg: rgba(28, 35, 52, 0.95);
    
    --input-bg: rgba(13, 17, 23, 0.8);
    --input-border: rgba(67, 97, 238, 0.3);
    --input-text: #f8f9fa;
  }
}

/* Body with explicit color mode support */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Blog Container */
.bg-container {
  max-width: min(1200px, 94%);
  margin: 0 auto;
  padding: 40px 0 120px;
  position: relative;
}

/* Hero Section - Fixed for both modes */
.bg-hero {
  padding: 48px 32px;
  border-radius: 24px;
  border: 1px solid var(--border-primary);
  background: linear-gradient(135deg, 
    rgba(67, 97, 238, 0.08) 0%, 
    rgba(114, 9, 183, 0.04) 100%);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.bg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #4361ee 50%, 
    transparent 100%);
}

.bg-kicker {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(67, 97, 238, 0.3);
  background: rgba(67, 97, 238, 0.1);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #4895ef;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.bg-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(135deg, 
    var(--text-primary) 0%, 
    #4895ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.bg-lead {
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.8;
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Meta Information */
.bg-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.bg-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(67, 97, 238, 0.05);
  color: var(--text-muted);
  font-size: 14px;
}

.bg-meta i {
  color: #4895ef;
}

/* Call to Action Buttons */
.bg-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.bg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: white;
}

.bg-btn--primary {
  background: var(--gradient-primary);
  color: white;
  border-color: rgba(67, 97, 238, 0.3);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.2);
}

.bg-btn--ghost {
  background: rgba(67, 97, 238, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(10px);
}

.bg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.bg-btn--primary:hover {
  background: linear-gradient(135deg, #3a56d4, #6408a1);
}

.bg-btn--ghost:hover {
  background: rgba(67, 97, 238, 0.1);
  border-color: #4361ee;
}

/* Article Content */
.bg-article {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  margin-top: 24px;
}

.bg-article h2 {
  margin: 32px 0 20px;
  font-size: clamp(24px, 2.8vw, 36px);
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.bg-article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.bg-article p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 16px;
}

/* Lists */
.bg-list {
  margin: 20px 0 32px;
  padding-left: 24px;
}

.bg-list li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  padding-left: 8px;
}

.bg-list li::before {
  content: '▸';
  color: #4895ef;
  position: absolute;
  left: -20px;
  font-weight: bold;
}

.bg-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Steps Grid */
.bg-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.bg-step {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-secondary);
  background: var(--bg-surface-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bg-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(67, 97, 238, 0.3) 50%, 
    transparent 100%);
}

.bg-step:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 97, 238, 0.3);
  box-shadow: var(--shadow-soft);
}

.bg-step h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bg-step h3::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.bg-step p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Callout Box */
.bg-callout {
  margin: 40px 0;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  background: linear-gradient(135deg, 
    rgba(67, 97, 238, 0.08) 0%, 
    rgba(114, 9, 183, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

.bg-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.bg-callout h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 700;
}

.bg-callout p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.bg-calloutBtns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer Links */
.bg-footerLinks {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-secondary);
  text-align: right;
}

.bg-footerLinks a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #4895ef;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.bg-footerLinks a:hover {
  background: rgba(67, 97, 238, 0.1);
  color: #4361ee;
}

/* ==============================
   KJV QUESTION BANK STYLES
   ============================== */

/* Search Section */
.bg-search-section {
  margin: 40px 0;
}

.bg-search-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--alert-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.bg-search-box {
  position: relative;
  width: 100%;
}

.bg-search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #4895ef;
  font-size: 18px;
}

.bg-search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--input-text);
  font-size: 15px;
  transition: all 0.3s ease;
}

.bg-search-box input:focus {
  outline: none;
  border-color: #4361ee;
  background: rgba(67, 97, 238, 0.05);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.bg-quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.bg-quick-links span {
  color: var(--text-muted);
}

.bg-quick-link {
  color: #4895ef;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.bg-quick-link:hover {
  background: rgba(67, 97, 238, 0.1);
  color: #4361ee;
}

/* Alert Styles */
.bg-alert {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.1), 
    rgba(234, 179, 8, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  color: var(--text-primary);
}

.bg-alert-icon {
  display: flex;
  align-items: flex-start;
  font-size: 24px;
  color: #ef4444;
}

.bg-alert-content h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 18px;
}

.bg-alert-content p {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.bg-alert-muted {
  font-size: 14px;
  color: var(--text-muted);
}

.bg-alert-muted code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-primary);
}

/* Results Header */
.bg-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(67, 97, 238, 0.05);
  border: 1px solid rgba(67, 97, 238, 0.1);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 32px 0;
  color: var(--text-secondary);
}

.bg-results-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.bg-results-count i {
  color: #4895ef;
}

.bg-results-count strong {
  color: var(--text-primary);
}

.bg-page-info {
  font-size: 15px;
}

.bg-page-info strong {
  color: #4895ef;
  font-weight: 700;
}

/* Questions Grid */
.bg-questions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

.bg-question-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bg-question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bg-question-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 97, 238, 0.3);
  box-shadow: var(--shadow-soft);
}

.bg-question-card:hover::before {
  opacity: 1;
}

.bg-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bg-question-number {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.bg-question-reference {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4895ef;
  font-weight: 600;
  font-size: 14px;
  background: rgba(67, 97, 238, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
}

.bg-question-title {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Question Options */
.bg-question-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.bg-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(67, 97, 238, 0.03);
  border: 1px solid rgba(67, 97, 238, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.bg-option:hover {
  background: rgba(67, 97, 238, 0.08);
  border-color: rgba(67, 97, 238, 0.2);
}

.bg-option-correct {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.2) !important;
}

.bg-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(67, 97, 238, 0.1);
  border: 2px solid rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  color: #4895ef;
  font-weight: 700;
  font-size: 14px;
}

.bg-option-correct .bg-option-letter {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.bg-option-text {
  flex: 1;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.bg-option-correct .bg-option-text {
  color: var(--text-primary);
  font-weight: 500;
}

.bg-correct-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Question Details */
.bg-question-details {
  margin-top: 20px;
}

.bg-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(67, 97, 238, 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  color: #4895ef;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(67, 97, 238, 0.03);
}

.bg-details-toggle:hover {
  background: rgba(67, 97, 238, 0.08);
  border-color: #4361ee;
}

.bg-details-toggle i {
  transition: transform 0.3s ease;
}

.bg-details-toggle.active i {
  transform: rotate(180deg);
}

.bg-details-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-details-content.open {
  max-height: 1000px;
  margin-top: 20px;
}

.bg-verse-section,
.bg-explanation-section {
  background: rgba(67, 97, 238, 0.03);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(67, 97, 238, 0.1);
}

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

.bg-section-header i {
  color: #4895ef;
  font-size: 18px;
}

.bg-section-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.bg-verse-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  font-size: 16px;
  border-left: 3px solid rgba(67, 97, 238, 0.3);
  padding-left: 20px;
}

.bg-explanation-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

/* Pagination */
.bg-pagination {
  background: var(--alert-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 20px;
  padding: 32px;
  margin: 40px 0;
}

.bg-pagination-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.bg-pagination-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(67, 97, 238, 0.1);
  color: #4895ef;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  transition: all 0.3s ease;
}

.bg-pagination-btn:hover:not(.bg-pagination-disabled) {
  background: rgba(67, 97, 238, 0.2);
  border-color: #4361ee;
  transform: translateY(-2px);
}

.bg-pagination-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.bg-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bg-page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: rgba(67, 97, 238, 0.05);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.bg-page-number:hover:not(.bg-page-current) {
  background: rgba(67, 97, 238, 0.1);
  color: #4895ef;
}

.bg-page-current {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.bg-page-ellipsis {
  color: var(--text-muted);
  padding: 0 8px;
}

.bg-pagination-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.bg-page-jump {
  display: flex;
  gap: 8px;
}

.bg-page-jump input {
  width: 60px;
  padding: 8px 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--input-text);
  text-align: center;
}

.bg-page-jump button {
  background: rgba(67, 97, 238, 0.1);
  color: #4895ef;
  border: 1px solid rgba(67, 97, 238, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bg-page-jump button:hover {
  background: rgba(67, 97, 238, 0.2);
  border-color: #4361ee;
}

/* Featured Callout */
.bg-callout-featured {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bg-callout-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bg-callout-content p {
  color: var(--text-secondary);
}

.bg-callout-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bg-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(67, 97, 238, 0.1);
  color: #4895ef;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
}

.bg-callout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Search Results */
.bg-no-results {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
  font-size: 18px;
  background: var(--alert-bg);
  border-radius: 20px;
  border: 1px solid var(--border-secondary);
}

.bg-no-results i {
  font-size: 48px;
  margin-bottom: 20px;
  color: rgba(67, 97, 238, 0.3);
}

.bg-no-results h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  height: 4px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, #4361ee, #7209b7);
  transition: width 0.2s ease;
}

/* Responsive Design for all pages */
@media (max-width: 768px) {
  .bg-container {
    padding: 20px 0 140px;
  }
  
  .bg-hero {
    padding: 32px 20px;
    margin-bottom: 24px;
  }
  
  .bg-article {
    padding: 32px 20px;
  }
  
  .bg-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .bg-step {
    padding: 20px;
  }
  
  .bg-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .bg-btn {
    width: 100%;
    justify-content: center;
  }
  
  .bg-meta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .bg-results-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .bg-pagination-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .bg-pagination-pages {
    order: 2;
  }
  
  .bg-callout-featured {
    padding: 24px 20px;
  }
  
  .bg-callout-actions {
    flex-direction: column;
  }
  
  .bg-question-card {
    padding: 24px 20px;
  }
  
  .bg-question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .bg-search-container {
    padding: 20px;
  }
  
  .bg-quick-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .bg-hero h1 {
    font-size: 28px;
  }
  
  .bg-lead {
    font-size: 16px;
  }
  
  .bg-article h2 {
    font-size: 22px;
  }
  
  .bg-callout {
    padding: 24px 20px;
  }
  
  .bg-question-title {
    font-size: 18px;
  }
  
  .bg-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .bg-pagination {
    padding: 24px 20px;
  }
  
  .bg-page-jump {
    flex-direction: column;
    align-items: center;
  }
  
  .bg-footerLinks a {
    font-size: 14px;
    padding: 10px 16px;
  }
}
/* FAQ Section - Modern Styling */
.faq-section {
  margin: 4rem 0 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
  border-radius: 16px;
  border: 1px solid rgba(41, 103, 182, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-header h2 {
  font-size: 2rem;
  color: #2967b6;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.faq-subtitle {
  font-size: 1.1rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 1px solid #e1e5e9;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #2967b6;
  box-shadow: 0 4px 12px rgba(41, 103, 182, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background-color: #f8fafc;
  color: #2967b6;
}

.faq-question span {
  flex: 1;
  text-align: left;
  padding-right: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: #2967b6;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  opacity: 0;
}

.faq-answer[aria-hidden="false"] {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
  opacity: 1;
}

.faq-answer p {
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  font-size: 1.05rem;
}

.faq-answer a {
  color: #2967b6;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(41, 103, 182, 0.2);
  transition: all 0.2s ease;
}

.faq-answer a:hover {
  color: #1e4a8a;
  border-bottom-color: #2967b6;
}

/* FAQ Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeIn 0.4s ease-out;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
  .faq-section {
    padding: 1.5rem;
    margin: 3rem 0 2rem;
  }
  
  .faq-header h2 {
    font-size: 1.75rem;
  }
  
  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
  }
  
  .faq-answer p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-answer[aria-hidden="false"] {
    padding: 0 1rem 1rem;
  }
}