/* --- Modern Homepage Enhancements --- */
.hero-bg-animated {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 60% 40%, #c53030 0%, rgba(36,59,83,0.7) 60%, rgba(36,59,83,0.95) 100%);
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  animation: heroGradientMove 8s ease-in-out infinite alternate;
}
@keyframes heroGradientMove {
  0% { background-position: 60% 40%; }
  100% { background-position: 40% 60%; }
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  z-index: 2;
}
.feature-icon {
  font-size: 2.8rem;
  color: var(--accent-color);
  background: #fff3f3;
  border-radius: 50%;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem auto;
  box-shadow: 0 2px 8px rgba(197,48,48,0.08);
}
.feature-card:hover .feature-icon {
  background: var(--accent-color);
  color: #fff;
  transform: scale(1.08);
  transition: all 0.3s;
}
.news-gradient-bg {
  background: linear-gradient(120deg, #f8f9fa 60%, #ffe5e5 100%);
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,59,83,0.07);
  border: 1px solid #f3f3f3;
}
.why-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.pricing-card {
  box-shadow: 0 2px 16px rgba(36,59,83,0.08);
  border-radius: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 32px rgba(36,59,83,0.13);
}
.premium-card {
  border: 2px solid var(--accent-color) !important;
}
.ribbon {
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: absolute;
  top: -10px; right: -10px;
  z-index: 10;
}
.ribbon span {
  position: absolute;
  display: block;
  width: 160px;
  padding: 8px 0;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  text-align: center;
  transform: rotate(45deg);
  top: 28px; right: -36px;
  box-shadow: 0 2px 8px rgba(197,48,48,0.13);
  font-size: 0.95rem;
}
.footer-gradient-bg {
  background: linear-gradient(120deg, var(--primary-dark) 60%, #c53030 100%);
  color: #fff;
}
.social-animate {
  transition: transform 0.2s, color 0.2s;
}
.social-animate:hover {
  color: #ffe5e5 !important;
  transform: scale(1.18) rotate(-8deg);
}
:root {
  --primary-color: #243b53;
  --primary-dark: #1a2d3f;
  --accent-color: #c53030;
  --success-color: #28a745;
  --danger-color: #c53030;
  --warning-color: #ffc107;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Header */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .btn {
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s;
}

.hero .btn-light {
  background-color: white;
  color: var(--primary-color);
}

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

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  padding: 1.25rem;
  font-weight: 600;
}

/* Quiz Styles */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.question-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-number {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.answer-box {
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.answer-box:hover {
  border-color: var(--primary-color);
  background-color: #e7f3ff;
}

.answer-box.correct {
  border-color: var(--success-color);
  background-color: #d4edda;
}

.answer-box.incorrect {
  border-color: var(--danger-color);
  background-color: #f8d7da;
}

.answer-box.show-correct {
  border-color: var(--success-color);
  background-color: #d4edda;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress {
  height: 8px;
  border-radius: 10px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--primary-color);
  transition: width 0.3s;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 8px;
  padding: 10px 30px;
  font-weight: 600;
  transition: all 0.3s;
}

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

.btn-secondary {
  border-radius: 8px;
  padding: 10px 30px;
  font-weight: 600;
}

.btn-lg {
  padding: 12px 40px;
  font-size: 1.1rem;
}

/* Score Display */
.score-display {
  text-align: center;
  padding: 3rem 2rem;
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.score-pass {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.score-fail {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
}

/* Study Page */
.question-list {
  list-style: none;
  padding: 0;
}

.question-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.question-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.question-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.badge-government {
  background-color: #e7f3ff;
  color: var(--primary-color);
}

.badge-history {
  background-color: #fff3cd;
  color: #856404;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

.disclaimer {
  background-color: #ffc107;
  color: #212529;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

.lang-btn {
  padding: 8px 20px;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.lang-btn.active,
.lang-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

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

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

  .question-text {
    font-size: 1.25rem;
  }

  .score-circle {
    width: 150px;
    height: 150px;
    font-size: 2.5rem;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--bg-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
