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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f8f9fa;
}

/* Header matching Auxtoria style */
.header {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.header .subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.hero-section {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.hero-section h2 {
  color: #ff6b35;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.story-image {
  width: 100%;
  max-width: 600px;
  height: 400px;
  background: linear-gradient(135deg, #ffe5b4 0%, #ffd700 100%);
  border-radius: 15px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 1rem 2rem;
  background: white;
  border: 2px solid #ff6b35;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ff6b35;
  font-family: "Poppins", sans-serif;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 53, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  border-color: #ff6b35;
}

.content-section {
  display: none;
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 5px solid #ff6b35;
}

.chapter h3 {
  color: #ff6b35;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.chapter p {
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Vocabulary word highlighting */
.vocab-word {
  color: #ff6b35;
  font-weight: 600;
  cursor: help;
  border-bottom: 2px dotted #ff6b35;
  position: relative;
  transition: all 0.2s ease;
}

.vocab-word:hover {
  color: #ff8c42;
  border-bottom-color: #ff8c42;
}

/* Tooltip styling */
.vocab-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: normal;
  width: 250px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vocab-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #333;
}

.vocab-word:hover .vocab-tooltip {
  opacity: 1;
  visibility: visible;
}

.lesson-card {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.lesson-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.lesson-card p {
  line-height: 1.8;
}

.name-meaning {
  background: #fff8e7;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  border-left: 5px solid #ffd700;
}

.name-meaning h4 {
  color: #ff6b35;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.name-meaning p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.word-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border-top: 4px solid #ff6b35;
  transition: transform 0.3s ease;
}

.word-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

.word-card strong {
  color: #ff6b35;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cta-section {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.footer {
  background: white;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
  color: #666;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.note-section {
  background: #fff8e7;
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
  border-left: 5px solid #ff6b35;
}

.note-section h3 {
  color: #ff6b35;
  margin-bottom: 1rem;
  font-weight: 700;
}

.note-section ul {
  list-style: none;
  padding-left: 0;
}

.note-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.note-section li:before {
  content: "✓";
  color: #ff6b35;
  font-weight: bold;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .content-section {
    padding: 2rem 1rem;
  }

  .chapter {
    padding: 1.5rem;
  }

  .vocab-tooltip {
    width: 200px;
    font-size: 0.85rem;
  }

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