/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
li,
a {
  font-family: "Segoe UI", sans-serif;
}
body {
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}
.container {
  max-width: 1000px;
  margin: auto;
  padding: 0.25rem;
}
h1,
h2 {
  color: #2c3e50;
}
a.btn {
  background: #ff6f00;
  color: white;
  padding: 1rem 2rem;
  display: inline-block;
  border-radius: 5px;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: bold;
}
a.btn:hover {
  background: #e65100;
}
section {
  padding: 1rem 0;
}
.hero {
  background: linear-gradient(135deg, #f57c00, #ffca28);
  color: white;
  text-align: center;
  padding: 2rem 2rem;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
  justify-content: center; /* centers cards horizontally */
}

.card {
  background: white;
  padding: 0.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex: 0 1 220px; /* do not grow, can shrink, basis 220px */
  max-width: 220px; /* limit max width */
  transition: transform 0.3s;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  object-position: top center;
  object-fit: cover; /* Prevents stretching */
}

.card.selected {
  border: 2px solid #007bff;
  background-color: #f0f8ff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}
.card-img-container {
  height: 140px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-top: 1rem;
}
blockquote {
  font-style: italic;
  margin: 1.5rem 0;
  background: #fff3e0;
  padding: 0.25rem;
  border-left: 5px solid #ff9800;
  border-radius: 5px;
}

.site-footer {
  width: 100%;
  background-color: #2563eb; /* Blue background */
  color: white; /* White text */
  padding: 1rem 0; /* Vertical padding for spacing */
  text-align: center;
}

.footer-content a {
  color: white;
  text-decoration: underline;
}

.footer-content a:hover {
  color: #f1f1f1; /* Slight lightening effect on hover */
}

.footer-content p {
  margin: 0.5rem 0; /* Margin for separation */
}

.language-switcher {
  text-align: right;
  margin-bottom: 10px;
}

.language-switcher select {
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.category-selector {
  padding: 3rem 1rem;
  text-align: center;
}

/* Styling for the teacher category */
.category-content {
  padding: 2rem 0;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.category-content h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.category-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.category-content a.cta-button {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.125rem;
  transition: background-color 0.3s ease;
}

.category-content a.cta-button:hover {
  background-color: #0056b3;
}

/* Styling for general layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Container styling for the teacher section */
.styled-lesson-section {
  padding: 20px;
  background-color: #f9f9f9; /* Light background for emphasis */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 20px auto;
}

/* Button styling following industry best practices */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  color: #fff;
  background-color: #007bff; /* Bootstrap primary blue */
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

.guided-narrative {
  background: #fffbea;
  padding: 50px 20px;
  font-family: "Segoe UI", sans-serif;
}

.guided-narrative .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#narrative-box {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  transition: all 0.4s ease-in-out;
}

#narrative-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}

#next-btn {
  margin-top: 20px;
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#next-btn:hover {
  background-color: #e68900;
}

.progress-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ff9800;
}

/* Responsive */
@media (max-width: 600px) {
  #narrative-text {
    font-size: 1rem;
  }

  #next-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Fullscreen Intro Overlay */
/* CSS Variables for colors and spacing */
:root {
  --color-primary: #ff9800;
  --color-primary-dark: #e68900;
  --color-gray-light: #ddd;
  --color-gray-medium: #ccc;
  --color-text: #333;
  --color-bg-light: #fff8e1;
  --color-bg-lighter: #fff3e0;
  --spacing-xs: 10px;
  --spacing-sm: 15px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  --border-radius: 20px;
  --btn-radius: 30px;
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.2rem;
  --font-size-xl: 1.3rem;
  --font-size-sm: 0.9rem;
}

/* Fullscreen Intro Overlay */
.intro-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg-light),
    var(--color-bg-lighter)
  );
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  overflow-y: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.overlay-content {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 700px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.step-text {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* For lists inside step text (replace inline styles) */
.step-text ul {
  text-align: left;
  margin: var(--spacing-md) auto;
  max-width: 400px;
  padding-left: 20px;
  list-style: none;
}

.step-text ul li {
  margin-bottom: 8px;
  font-size: var(--font-size-base);
  position: relative;
  padding-left: 25px;
}

/* Custom bullet icons for list items */
.step-text ul li::before {
  content: "📈"; /* default icon, can be overridden */
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  line-height: 1;
}

/* Override icons for specific list items if needed */
/* Example: */
.step-text ul li:nth-child(2)::before {
  content: "🌱";
}
.step-text ul li:nth-child(3)::before {
  content: "🧩";
}
.step-text ul li:nth-child(4)::before {
  content: "✨";
}

/* Controls (buttons) */
.controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.controls .btn {
  padding: 12px 24px;
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

/* Focus styles for accessibility */
.controls .btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip button */
.skip-btn {
  background-color: var(--color-gray-medium);
  color: var(--color-text);
}

.skip-btn:hover,
.skip-btn:focus-visible {
  background-color: var(--color-gray-light);
}

/* Next button */
.next-btn {
  background-color: var(--color-primary);
  color: white;
}

.next-btn:hover,
.next-btn:focus-visible {
  background-color: var(--color-primary-dark);
}

/* Progress indicator dots */
.progress-indicator {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.progress-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gray-light);
  transition: background-color 0.3s ease;
}

.progress-indicator .dot.active {
  background-color: var(--color-primary);
}

/* FadeIn animation */
@keyframes fadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive styles */
@media (max-width: 600px) {
  .overlay-content {
    padding: 30px 16px;
  }

  .step-text {
    font-size: var(--font-size-base);
  }

  .controls .btn {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
  }

  .step-text ul {
    max-width: 100%;
    padding-left: 15px;
  }
}

/* Prevent body scroll when overlay or choice screen is active */
body.no-scroll {
  overflow: hidden;
}

/* User Choice Screen */
.user-choice-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  background: linear-gradient(
    to bottom,
    var(--color-bg-light),
    var(--color-bg-lighter)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.user-choice-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.choice-box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.choice-box h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

/* Buttons inside choice box */
.choice-box .btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  font-size: var(--font-size-base);
  margin: 10px 0;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

/* Focus styles */
.choice-box .btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary button */
.choice-box .btn.primary {
  background-color: var(--color-primary);
  color: white;
}

.choice-box .btn.primary:hover,
.choice-box .btn.primary:focus-visible {
  background-color: var(--color-primary-dark);
}

/* Secondary button */
.choice-box .btn.secondary {
  background-color: var(--color-gray-light);
  color: var(--color-text);
}

.choice-box .btn.secondary:hover,
.choice-box .btn.secondary:focus-visible {
  background-color: var(--color-gray-medium);
}

/* Responsive adjustments for choice box */
@media (max-width: 600px) {
  .choice-box {
    padding: 30px 16px;
  }

  .choice-box h2 {
    font-size: 1.1rem;
  }

  .choice-box .btn {
    font-size: var(--font-size-sm);
    padding: 10px 20px;
  }
}

/* vedic primer related */
.vedic-primer {
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 80, 0.1);
  box-sizing: border-box;
  color: #1a1a1a;
}

.vedic-primer .container {
  max-width: 700px;
  margin: 0 auto;
}

.primer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.primer-icon {
  width: 28px;
  height: 28px;
  color: #3a6ef8; /* brand primary color */
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.primer-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #2c3e8f; /* slightly darker brand shade */
}

.primer-header:hover .primer-icon {
  transform: rotate(15deg);
}

.vedic-primer p {
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 400;
  text-align: left;
  color: #333333;
}

.vedic-primer strong {
  font-weight: 700;
  color: #2c3e8f;
}

.vedic-primer .highlight {
  font-weight: 600;
  color: #3a6ef8;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .vedic-primer {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }

  .primer-header h2 {
    font-size: 1.4rem;
  }

  .vedic-primer p {
    font-size: 1rem;
  }

  .primer-icon {
    width: 22px;
    height: 22px;
  }
}
