#section-3 {
  display: flex;
  flex-direction: row;
  padding: 28px;
}

.sec3-con {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
}

.sec3-con > .sec3-text-con,
.sec3-con > .sec3-img-con {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
}

.sec3-text-con {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sec3-text-con h2 {
  color: var(--teritary-col);
  padding: 15px;
  font-size: x-large;
}

.sec3-text-con p {
  padding: 15px;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.sec3-img-con {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.sec3-img-con img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 5%;
  margin-bottom: 0%;
}

@media (max-width: 1200px) {
  #section-3 {
    padding: 28px;
  }
  .sec3-con {
    gap: 16px;
    align-items: stretch;
  }

  /* allow columns to share space but avoid forcing wide minimums */
  .sec3-con > .sec3-text-con,
  .sec3-con > .sec3-img-con {
    flex: 1 1 50%;
    min-width: 0; /* prevents overflow */
    box-sizing: border-box;
  }

  .sec3-text-con h2 {
    font-size: 1.6rem;
    padding: 12px;
  }
  .sec3-text-con p {
    font-size: 0.95rem;
    padding: 12px;
    line-height: 1.55;
  }

  .sec3-img-con {
    padding: 12px;
  }
  .sec3-img-con img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 5%;
  }
}

/* <= 900px: stack the two columns vertically, keep content compact */
@media (max-width: 900px) {
  #section-3,
  .sec3-con {
    flex-direction: column;
    padding: 18px;
  }
  .sec3-con > .sec3-text-con,
  .sec3-con > .sec3-img-con {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 100%;
  }

  .sec3-text-con h2 {
    font-size: 1.35rem;
    padding: 10px;
  }
  .sec3-text-con p {
    font-size: 0.95rem;
    padding: 10px;
    line-height: 1.5;
    text-align: left;
  }

  .sec3-img-con {
    padding: 8px 0;
  }
  .sec3-img-con img {
    border-radius: 20px;
  }
}

/* <= 520px: phone portrait — tighten paddings/fonts and make CTA full width */
@media (max-width: 520px) {
  #section-3,
  .sec3-con {
    padding: 14px;
    gap: 12px;
  }
  .sec3-text-con h2 {
    padding: 8px;
    text-align: center;
  }
  .sec3-text-con p {
    font-size: 0.95rem;
    padding: 8px;
    line-height: 1.5;
    text-align: justify;
  }

  .sec3-img-con {
    padding: 6px 0;
  }
  .sec3-img-con img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
  }
}

/* <= 375px: very small phones — smallest comfortable sizes */
@media (max-width: 375px) {
  #section-3,
  .sec3-con {
    padding: 10px;
    gap: 10px;
  }
  .sec3-text-con h2 {
    padding: 6px;
  }
  .sec3-text-con p {
    padding: 6px;
    line-height: 1.4;
  }

  .sec3-img-con img {
    height: auto;
    max-width: 100%;
    border-radius: 5%;
  }
}
