/* ===== CSS Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-bg: #4a7c59;
  --nav-hover: #3d6a4a;
  --title-color: #1a3c6e;
  --text-color: #333333;
  --secondary-text: #666666;
  --border-color: #e0e0e0;
  --visual-color: #3498db;
  --aural-color: #e67e22;
  --readwrite-color: #2ecc71;
  --kinesthetic-color: #9b59b6;
  --footer-bg: #f5f5f5;
  --primary-btn: #4a7c59;
  --primary-btn-hover: #3d6a4a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fafafa;
}

a {
  color: var(--nav-bg);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
  background-color: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

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

.navbar-links li a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  display: inline-block;
}

.navbar-links li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary-btn);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-btn-hover);
}

.btn-secondary {
  background-color: #fff;
  color: var(--nav-bg);
  border: 2px solid var(--nav-bg);
}

.btn-secondary:hover {
  background-color: var(--nav-bg);
  color: #fff;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.15rem;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 60px 20px 50px;
  background: linear-gradient(135deg, #f0f8f1, #e8f0ed);
}

.hero-title {
  font-size: 3rem;
  color: var(--title-color);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--secondary-text);
  margin-bottom: 24px;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* ===== Section Styles ===== */
.section {
  padding: 50px 20px;
}

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

.section-text {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.8;
}

.section-text.secondary {
  color: var(--secondary-text);
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.style-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.style-card.visual {
  border-top-color: var(--visual-color);
}

.style-card.aural {
  border-top-color: var(--aural-color);
}

.style-card.readwrite {
  border-top-color: var(--readwrite-color);
}

.style-card.kinesthetic {
  border-top-color: var(--kinesthetic-color);
}

.style-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.style-card.visual .style-card-icon {
  background-color: rgba(52, 152, 219, 0.1);
}

.style-card.aural .style-card-icon {
  background-color: rgba(230, 126, 34, 0.1);
}

.style-card.readwrite .style-card-icon {
  background-color: rgba(46, 204, 113, 0.1);
}

.style-card.kinesthetic .style-card-icon {
  background-color: rgba(155, 89, 182, 0.1);
}

.style-card-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--title-color);
}

.style-card-desc {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.5;
}

/* ===== About Section (Home) ===== */
.about-section {
  background-color: #fff;
  text-align: center;
}

.about-links {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Questionnaire Page ===== */
.questionnaire-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.questionnaire-header {
  text-align: center;
  margin-bottom: 30px;
}

.questionnaire-header h1 {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 12px;
}

.questionnaire-instructions {
  font-size: 1.05rem;
  color: var(--secondary-text);
  margin-bottom: 8px;
}

.progress-bar-container {
  background-color: var(--border-color);
  border-radius: 10px;
  height: 8px;
  margin: 20px 0 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--nav-bg);
  border-radius: 10px;
  transition: width 0.3s;
  width: 0%;
}

.progress-counter {
  text-align: center;
  font-size: 0.95rem;
  color: var(--secondary-text);
  margin-bottom: 30px;
}

.question-block {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.question-number {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--nav-bg);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.1rem;
  color: var(--title-color);
  margin-bottom: 16px;
  font-weight: 600;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.option-item:hover {
  border-color: var(--nav-bg);
  background-color: #f0f8f1;
}

.option-item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--nav-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.option-item label {
  cursor: pointer;
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
}

.error-message {
  display: none;
  background-color: #fff3f3;
  border: 1px solid #e74c3c;
  color: #c0392b;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.error-message.show {
  display: block;
}

.questionnaire-submit {
  text-align: center;
  margin-top: 30px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--secondary-text);
  font-size: 0.95rem;
}

/* ===== Results Page ===== */
.results-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.results-header {
  text-align: center;
  margin-bottom: 30px;
}

.results-header h1 {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 8px;
}

.score-chart {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.score-chart-title {
  font-size: 1.2rem;
  color: var(--title-color);
  margin-bottom: 20px;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.score-bar-label {
  width: 110px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: right;
  flex-shrink: 0;
}

.score-bar-track {
  flex: 1;
  height: 32px;
  background-color: var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 32px;
}

.score-bar-fill.visual {
  background-color: var(--visual-color);
}

.score-bar-fill.aural {
  background-color: var(--aural-color);
}

.score-bar-fill.readwrite {
  background-color: var(--readwrite-color);
}

.score-bar-fill.kinesthetic {
  background-color: var(--kinesthetic-color);
}

.total-responses {
  text-align: center;
  font-size: 0.95rem;
  color: var(--secondary-text);
  margin-top: 10px;
}

.modal-type-box {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  text-align: center;
}

.modal-type-label {
  font-size: 0.9rem;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.modal-type-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--title-color);
}

.style-description-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border-left: 4px solid var(--border-color);
}

.style-description-box.visual {
  border-left-color: var(--visual-color);
}

.style-description-box.aural {
  border-left-color: var(--aural-color);
}

.style-description-box.readwrite {
  border-left-color: var(--readwrite-color);
}

.style-description-box.kinesthetic {
  border-left-color: var(--kinesthetic-color);
}

.style-description-box h3 {
  color: var(--title-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.style-description-box p {
  color: var(--text-color);
  line-height: 1.7;
}

.strategy-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border-left: 4px solid var(--border-color);
}

.strategy-box.visual {
  border-left-color: var(--visual-color);
}

.strategy-box.aural {
  border-left-color: var(--aural-color);
}

.strategy-box.readwrite {
  border-left-color: var(--readwrite-color);
}

.strategy-box.kinesthetic {
  border-left-color: var(--kinesthetic-color);
}

.strategy-box h3 {
  color: var(--title-color);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.strategy-subtitle {
  font-weight: bold;
  color: var(--secondary-text);
  font-size: 0.95rem;
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strategy-box ul {
  list-style: none;
  padding-left: 4px;
}

.strategy-box ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.6;
}

.strategy-box ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--nav-bg);
  font-size: 1rem;
}

.results-actions {
  text-align: center;
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results h1 {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 16px;
}

.no-results p {
  font-size: 1.1rem;
  color: var(--secondary-text);
  margin-bottom: 24px;
}

/* ===== Introduction Page ===== */
.intro-section {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.style-border-section {
  border-left: 4px solid var(--border-color);
  padding: 16px 20px;
  margin-bottom: 20px;
  background-color: #fafafa;
  border-radius: 0 8px 8px 0;
}

.style-border-section.visual {
  border-left-color: var(--visual-color);
}

.style-border-section.aural {
  border-left-color: var(--aural-color);
}

.style-border-section.readwrite {
  border-left-color: var(--readwrite-color);
}

.style-border-section.kinesthetic {
  border-left-color: var(--kinesthetic-color);
}

.style-border-section h3 {
  color: var(--title-color);
  margin-bottom: 8px;
}

.style-border-section ul {
  margin-left: 20px;
  margin-top: 8px;
}

.style-border-section ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.cta-box {
  background: linear-gradient(135deg, #f0f8f1, #e8f0ed);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin: 30px 0;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 20px;
}

/* ===== Study Strategies Page ===== */
.strategy-section {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.strategy-section-header {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
}

.strategy-section-header.visual {
  background-color: var(--visual-color);
}

.strategy-section-header.aural {
  background-color: var(--aural-color);
}

.strategy-section-header.readwrite {
  background-color: var(--readwrite-color);
}

.strategy-section-header.kinesthetic {
  background-color: var(--kinesthetic-color);
}

.strategy-label {
  font-weight: bold;
  font-size: 1rem;
  margin: 16px 0 8px;
  color: var(--title-color);
}

.strategy-list {
  list-style: none;
  padding-left: 4px;
}

.strategy-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.6;
}

.strategy-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--nav-bg);
  font-size: 1.2rem;
}

/* ===== Teachers Page ===== */
.teacher-section {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.teacher-section h2 {
  color: var(--title-color);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.teacher-section ul {
  margin-left: 20px;
  margin-top: 8px;
}

.teacher-section ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.teacher-section ol {
  margin-left: 20px;
  margin-top: 8px;
}

.teacher-section ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ===== FAQ Page ===== */
.faq-list {
  margin-top: 20px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title-color);
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--nav-bg);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px;
}

.faq-answer p {
  color: var(--secondary-text);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-links {
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.footer-copy {
  font-size: 0.85rem;
  color: #999;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .navbar-links.show {
    display: flex;
  }

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

  .navbar-links li a {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
  }

  .navbar-links li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .questionnaire-header h1,
  .results-header h1 {
    font-size: 1.5rem;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero {
    padding: 40px 16px 30px;
  }

  .section {
    padding: 30px 16px;
  }

  .questionnaire-page,
  .results-page {
    padding: 24px 16px;
  }

  .question-block {
    padding: 18px 14px;
  }

  .score-bar-label {
    width: 80px;
    font-size: 0.85rem;
  }

  .cta-box {
    padding: 24px 16px;
  }
}
