/* Initiative Page Specific Styles */

.initiative-content {
  padding-top: 70px;
  opacity: 1;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for multiple elements */
.animate-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.5s;
}

.animate-on-scroll:nth-child(6) {
  transition-delay: 0.6s;
}

.animate-on-scroll:nth-child(7) {
  transition-delay: 0.7s;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transform: none;
    transition: opacity 0.3s ease;
  }

  .animate-on-scroll:nth-child(1),
  .animate-on-scroll:nth-child(2),
  .animate-on-scroll:nth-child(3),
  .animate-on-scroll:nth-child(4),
  .animate-on-scroll:nth-child(5),
  .animate-on-scroll:nth-child(6),
  .animate-on-scroll:nth-child(7) {
    transition-delay: 0s;
  }
}

.nav-link.active {
  color: #007a55;
  font-weight: 600;
}

/* Content Sections */
.content-section {
  padding: 60px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.section-container.single-column {
  justify-content: center;
}

/* Text Content */
.text-content {
  flex: 1;
  min-width: 0;
}

.text-content.full-width {
  width: 100%;
  text-align: center;
}

.text-content h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-content h3 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin: 24px 0 12px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-content h3:first-of-type {
  margin-top: 16px;
}

.text-content p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 400;
}

.text-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.text-content ul li {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 22px;
  position: relative;
  font-weight: 400;
}

.text-content ul li::before {
  content: '•';
  color: #007a55;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* CTA Button */
.cta-button {
  background-color: #007a55;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 24px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: #008b61;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image Content */
.image-content {
  flex: 1;
  min-width: 0;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Reverse Layout */
.content-section.reverse .section-container {
  flex-direction: row-reverse;
}

/* Mission Section Styling */
.mission-section {
  background-color: #f9fafb;
}

/* Image Content */
.image-content img {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
}

/* FAQ Items */
.faq-item {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Steps Container */
.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 32px 0 40px 0;
}

.step-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #007a55;
  transform: translateY(-2px);
}

.step-item:focus-within {
  outline: 2px solid #007a55;
  outline-offset: 2px;
}

.step-item h3 {
  color: #007a55;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.step-item p {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

/* Enhanced styling for content sections with better spacing */
.content-section .text-content ul {
  margin: 24px 0;
}

.content-section .text-content ul li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.content-section .text-content ul li strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Background variations for sections */
.content-section:nth-child(even) {
  background-color: #fafbfc;
}

.content-section:nth-child(odd) {
  background-color: #ffffff;
}

/* Large Screen Enhancements */
@media (min-width: 1025px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }

  .step-item:nth-child(odd) {
    border-left: 3px solid #007a55;
  }

  .step-item:nth-child(even) {
    border-left: 3px solid #10b981;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .section-container {
    gap: 40px;
    padding: 0 20px;
  }

  .text-content h2 {
    font-size: 2.2rem;
  }

  .content-section {
    padding: 50px 0;
  }

  .steps-container {
    gap: 24px;
    margin: 28px 0 36px 0;
  }

  .step-item {
    padding: 24px;
  }

  .step-item h3 {
    font-size: 1.2rem;
  }

  .cta-section {
    margin-top: 40px;
    padding-top: 28px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .initiative-content {
    padding-top: 60px;
  }

  /* Reduce animation distance on mobile for better performance */
  .animate-on-scroll {
    transform: translateY(30px);
    transition-duration: 0.6s;
  }

  .section-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .content-section.reverse .section-container {
    flex-direction: column;
  }

  .text-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .text-content h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
  }

  .text-content p {
    font-size: 1rem;
  }

  .text-content ul li {
    font-size: 1rem;
  }

  .content-section {
    padding: 40px 0;
  }

  .image-content img {
    border-radius: 8px;
  }

  .faq-item {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .steps-container {
    gap: 20px;
    margin: 24px 0 32px 0;
  }

  .step-item {
    padding: 20px;
    border-radius: 10px;
  }

  .step-item h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .step-item p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .cta-section {
    margin-top: 32px;
    padding-top: 24px;
  }

  .content-section .text-content ul li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .initiative-content {
    padding-top: 55px;
  }

  .section-container {
    gap: 25px;
    padding: 0 15px;
  }

  .text-content h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .text-content h3 {
    font-size: 1rem;
    margin: 16px 0 8px 0;
  }

  .text-content p {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .text-content ul li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .content-section {
    padding: 30px 0;
  }

  .cta-button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .faq-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .steps-container {
    gap: 16px;
    margin: 20px 0 28px 0;
  }

  .step-item {
    padding: 16px;
    border-radius: 8px;
  }

  .step-item h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .step-item p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .cta-section {
    margin-top: 28px;
    padding-top: 20px;
  }

  .section-container.single-column {
    padding: 0 15px;
  }
}
