/* How It Works Page Styles */

.page-header {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, #F4F6F0 0%, #E8F5E9 100%);
  text-align: center;
}

.page-header h1 {
  color: var(--color-primary);
  font-size: 44px;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.timeline-section {
  padding: 80px 0;
  background-color: white;
}

.timeline-section .timeline {
  position: relative;
  display: grid;
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
}

.timeline-section .timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 23px;
  width: 4px;
  background-color: #E0EDE0;
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 26px;
  align-items: start;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.12);
}

.timeline-dot.weedcut,
.timeline-badge.weedcut {
  background-color: var(--color-weedcut);
}

.timeline-dot.nemato,
.timeline-badge.nemato {
  background-color: var(--color-nemato);
}

.timeline-dot.grow,
.timeline-badge.grow {
  background-color: var(--color-grow);
}

.timeline-content {
  background: white;
  border: 1px solid #E2E8DC;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(27, 94, 32, 0.08);
  padding: 28px;
}

.timeline-badge {
  display: inline-block;
  color: white;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.timeline-content h3 {
  color: var(--color-primary);
  font-size: 25px;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.timeline-details {
  background: #F7FAF5;
  border-radius: 8px;
  padding: 18px;
}

.timeline-details h4 {
  margin-bottom: 10px;
}

.timeline-details li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.timeline-check.weedcut { color: var(--color-weedcut); }
.timeline-check.nemato { color: var(--color-nemato); }
.timeline-check.grow { color: var(--color-grow); }

.combo-box {
  margin-top: 18px;
  background: #FFF8E1;
  border-left: 4px solid var(--color-cta);
  border-radius: 6px;
  padding: 16px;
  color: var(--color-text-dark);
}

.combo-box i {
  color: var(--color-cta);
}

.notes-section {
  background-color: var(--color-bg);
}

.notes-container {
  max-width: 820px;
  margin: 0 auto;
  background: white;
  border: 1px solid #E2E8DC;
  border-radius: 8px;
  padding: 30px;
}

.notes-container h3 {
  color: var(--color-primary);
  font-size: 26px;
  margin-bottom: 16px;
}

.notes-container li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.notes-container li::before {
  content: '';
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cta);
}

.hiw-hero {
  padding: 120px 0 60px;
  background-color: var(--color-bg);
  text-align: center;
}

.hiw-hero h1 {
  color: var(--color-primary);
  font-size: 42px;
  margin-bottom: 20px;
}

.hiw-hero p {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Vertical Timeline */
.vertical-timeline {
  padding: 80px 0;
  background-color: white;
  position: relative;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 50%;
  width: 4px;
  background-color: #E8F5E9;
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
}

.timeline-row:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: white;
  border: 4px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  z-index: 2;
  box-shadow: 0 0 0 5px white;
}

.timeline-content h3 {
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--color-text-muted);
}

.step-number {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 80px;
  font-weight: 800;
  color: rgba(27, 94, 32, 0.05);
  line-height: 1;
}

.timeline-row:nth-child(even) .step-number {
  left: 20px;
  right: auto;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  background-color: var(--color-bg);
}

.faq-section .section-title {
  color: var(--color-primary);
}

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

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  font-size: 18px;
  font-family: var(--font-telugu);
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--color-cta);
}

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

.faq-answer p {
  padding-bottom: 20px;
  color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-question i {
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 50px;
  }
  .page-header h1 {
    font-size: 34px;
  }
  .timeline-section .timeline::before {
    left: 18px;
  }
  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 18px;
  }
  .timeline-dot {
    width: 40px;
    height: 40px;
  }
  .timeline-content {
    padding: 22px;
  }
  .vertical-timeline::before {
    left: 30px;
  }
  .timeline-icon {
    left: 30px;
  }
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: auto !important;
  }
}

/* Overrides for the current timeline markup on this page. */
.timeline-section .timeline-content {
  width: auto;
  margin-left: 0 !important;
  background: white;
  border: 1px solid #E2E8DC;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(27, 94, 32, 0.08);
  padding: 28px;
  position: relative;
}

.timeline-section .timeline-content h3 {
  color: var(--color-primary);
  font-size: 25px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .timeline-section .timeline-content {
    padding: 22px;
  }
}
