.image-text-section:first-of-type {
  margin-top: 0;
}

.image-text-section {
  width: min(1200px, 94%);
  margin: 0.5rem auto;
  padding: 2rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.image-text-section.reverse {
  flex-direction: row-reverse;
}

.img-side img {
  width: 480px;
  max-width: 100%;
  box-shadow: 0 10px 24px rgba(15, 45, 84, 0.14);
}

.two-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  max-width: 100%;
}

.two-images img {
  width: 100%;
  object-fit: cover;
}

.text-side {
  max-width: 560px;
}

.text-side h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: var(--primary-dark);
}

.text-side h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: #2e4763;
}

.text-side p {
  line-height: 1.8;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.slideshow-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.dots {
  text-align: center;
  padding-top: 10px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background: #b5c2d3;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.active-dot {
  background: var(--primary);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  transform: translateY(-50%);
  background: rgba(11, 35, 62, 0.68);
  border-radius: 50%;
  user-select: none;
  transition: background 0.2s ease;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background: rgba(9, 29, 52, 0.95);
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.footer-sections {
  width: min(1200px, 94%);
  margin: 0.9rem auto;
  padding: 1.6rem 0.35rem;
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
}

.footer-half {
  width: 50%;
}

.footer-half h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.footer-half p {
  margin-bottom: 0.55rem;
  color: #2f4358;
}

@media (max-width: 768px) {
  .image-text-section,
  .footer-sections {
    width: calc(100% - 18px);
    padding: 1rem 0.2rem;
    margin: 0.9rem auto;
  }

  .image-text-section,
  .footer-sections {
    flex-direction: column !important;
    text-align: center;
  }

  .img-side img,
  .two-images {
    width: 100%;
  }

  .footer-half {
    width: 100%;
  }
}
