/* Section 2 Styles */
.section2-container {
  width: 100%;
  overflow: hidden;
}

/* Heading Section */
.heading-section {
  background: rgba(217, 217, 217, 1);
  padding: 4rem 2rem;
  text-align: center;
}

.heading-section h1 {
  font-size: 48px;
  color: #333;
  margin-bottom: 2rem;
}

.heading-content {
  font-size: 1.7rem;
  background: white;
  padding: 2rem;
  border-radius: 62px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.heading-content:hover {
  transform: translateY(-5px);
}

/* Alternating Section */
.alternating-section {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.content-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.text-content-section {
  flex: 1;
  max-width: 600px;
}

.text-content-section h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: #333;
  font-weight: 600;
  line-height: 1.2;
}

.text-content-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
}

.image-container {
  flex: 1;
  max-width: 777px;
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: scale(1.02);
}

.image-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 777/531;
  object-fit: cover;
  border-radius: 12px;
}

/* Fade In Animation Styles */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet Styles */
@media screen and (max-width: 1200px) {
  .content-row {
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .text-content-section h2 {
    font-size: 2rem;
  }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .heading-section {
    padding: 2rem 1rem;
  }

  .heading-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .heading-content {
    font-size: 1.125rem;
    padding: 1.5rem;
    border-radius: 30px;
    width: 100%;
  }

  .alternating-section {
    padding: 2rem 1rem;
  }

  .content-row {
    flex-direction: column !important;
    margin-bottom: 3rem;
    gap: 1.5rem;
  }

  .content-row.reverse {
    flex-direction: column !important;
  }

  .image-container {
    order: -1;
    width: 100%;
    max-width: 100%;
  }

  .text-content-section {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .text-content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .image-container:hover {
    transform: none;
  }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
  .heading-section h1 {
    font-size: 1.75rem;
  }

  .heading-content {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .text-content-section h2 {
    font-size: 1.5rem;
  }

  .text-content-section p {
    font-size: 0.9375rem;
  }
}

/* Extra Small Mobile */
@media screen and (max-width: 320px) {
  .heading-section {
    padding: 1.5rem 0.75rem;
  }

  .heading-section h1 {
    font-size: 1.5rem;
  }

  .content-row {
    padding: 0 0.75rem;
    margin-bottom: 2.5rem;
  }

  .text-content-section h2 {
    font-size: 1.25rem;
  }
}
