/* ────────────────────────────────────────────────── */
/*  SECOND SECTION LAYOUT                           */
/* ────────────────────────────────────────────────── */

.third-section-content {
  display: flex;
  align-items: center;
  /* gap: 2rem; */
  margin-top: 2rem;
}

/* image side */
.image-container {
  flex: 1;
}
.image-container img {
  display: block;
  width: 70%;
  margin-right: auto;
  height: auto;
  border-radius: 16px;
}

/* text side */
.text-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  padding: 2rem;
  border-radius: 16px;
  max-width: 40%;
}

/* decorative dot */
.decor-circle {
  /* put it in the normal flow: remove top/right */
  position: relative; /* ← make this the containing block for ::after */
  display: inline-block; /* or block, depending on how you want it to flow */
  width: 60px;
  height: 60px;
  background: #e6e0f3; /* pale purple */
  border-radius: 50%;
}

.decor-circle::after {
  content: "";
  position: absolute; /* now absolutely positioned ​within .decor-circle */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #000;
  border-radius: 50%;
}

/* section title & text */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-text-color);
}
.section-description {
  font-size: 20px;
  margin: 0 0 1.5rem;
  color: #666;
  line-height: 1.5;
}

/* learn-more button */
.learn-more-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0px 10px 0px 0px;
  background: #f7f5ff;
  color: var(--primary-text-color);
  border: 1px solid #ccc;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}

@media (max-width: 575px) {
  .learn-more-btn {
    text-align: center;
  }
}
.learn-more-btn svg {
  color: var(--primary-blue);
}
.learn-more-btn:hover {
  background: var(--primary-blue);
  color: #fff;
}
.learn-more-btn:hover svg {
  color: #fff;
}

/* ─── Responsive ───────────────────────────────────────────────── */

/* Tablets & below: stack columns */
@media (max-width: 1024px) {
  .third-section-content {
    flex-direction: column;
    margin-top: 0px;
  }
  .section-title {
    margin-bottom: 20px;
  }
  .text-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    max-width: 100%;
    text-align: center;
  }
  .image-container img {
    margin: 0 auto;
  }
}

/* Mobile: tighten spacing */
@media (max-width: 480px) {
  .third-section-content {
    gap: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .decor-circle {
    width: 24px;
    height: 24px;
  }
  .decor-circle::after {
    width: 8px;
    height: 8px;
  }
}

/*-----------------------------------------------bottom-third-section-------------------------------------------*/

.services-list-container {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ─── Row ─────────────────────────────────────────────────────────────────── */

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 5%;
  width: 100%;
}

/* alternating stripe */
.service-item:nth-child(odd) {
  background-color: #eff7fc;
}

/* ─── Blue “indicator” dot ─────────────────────────────────────────────────── */

.blue-circle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 80px;
}

/* ─── Avatar ───────────────────────────────────────────────────────────────── */

.s3-person-image {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ─── Text ─────────────────────────────────────────────────────────────────── */

.service-item-text {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-align: right;
}

/* ─── Arrow in circle ──────────────────────────────────────────────────────── */

.left-arrow-container {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.left-arrow-container img:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.left-arrow-container img:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ─── Tablet (≤768px) ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .service-item {
    padding: 8px 12px;
    gap: 12px;
  }
  .blue-circle {
    width: 20px;
    height: 20px;
    margin-left: 20px;
  }
  .s3-person-image {
    width: 32px;
    height: 32px;
  }
  .service-item-text {
    font-size: 14px;
  }
  .left-arrow-container {
    width: 28px;
    height: 28px;
  }
  .left-arrow-container img:last-child {
    width: 14px;
    height: 14px;
  }
}

/* ─── Mobile (≤480px) ─────────────────────────────────────────────────────── */

/* keep row layout, just scale down */
@media (max-width: 480px) {
  .service-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
  }

  .blue-circle {
    width: 18px;
    height: 18px;
    margin-left: 2px;
  }
  .s3-person-image {
    width: 28px;
    height: 28px;
  }
  .left-arrow-container {
    width: 26px;
    height: 26px;
  }
  .left-arrow-container img:last-child {
    width: 12px;
    height: 12px;
  }

  .service-item-text {
    flex: 1 1 auto;
    font-size: 12px;
    margin: 0;
  }
}
