#section-6{
    display: flex;
    flex-direction: row-reverse;
    padding: 28px;
    margin-top: 0;
    padding-top: 0;
 }

.sec6-con{
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.sec6-text-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0 10px;
    flex: 1;
}
.sec6-text-con h2 {
    color: #642E11 !important;
    padding: 15px;
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}

.sec6-text-con li {
    padding: 5px;
    line-height: 1.5;
    font-size: small;
    text-align: justify;
}

.sec6-img-con{
    display: flex;
    flex-direction: right;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    flex-wrap: nowrap;
    flex: 1;
}

.sec6-img-con img {
    width: 100%;
    height: 360px;
   
}

@media (max-width: 1200px) {
  #section-6 { padding: 28px; }
  .sec6-con { gap: 14px; }

  .sec6-text-con {
    padding: 10 12px;
  }
  .sec6-text-con h2 {
    font-size: 1.75rem;
    padding: 12px 0;
  }
  .sec6-text-con p {
    font-size: 15px;
    padding: 10px 0;
    line-height: 1.6;
  }


  /* prevent flex children from forcing horizontal overflow */
  .sec6-con, .sec6-con > * { box-sizing: border-box; min-width: 0; }
}

/* <= 900px */
@media (max-width: 900px) {
  #section-6, .sec6-con {
    flex-direction: column;
    padding: 18px;
    gap: 12px;
  }

  .sec6-text-con {
    align-items: flex-start;
    text-align: left;
    padding: 6px 4px;
  }
  .sec6-text-con h2 { font-size: 1.35rem; padding: 8px 0; }
  .sec6-text-con p { font-size: 15px; padding: 6px 0; line-height: 1.55; }

  /* stack images vertically so they fit the viewport width */
  .sec6-img-con {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px 0;
  }
  .sec6-img-con img {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0;
  }
}

/* <= 520px (phones) */
@media (max-width: 520px) {
  #section-6, .sec6-con {
    padding: 14px 10px;
    gap: 10px;
  }

  .sec6-text-con h2 { padding: 6px 0; }
  .sec6-text-con p { font-size: small; padding: 6px 0; line-height: 1.45; text-align: justify; }

  .sec6-img-con { gap: 8px; padding: 4px 0; }
  
  /* ensure no horizontal scroll on phones */
  /* avoid horizontal scroll for this section only */
    #section-6 { overflow-x: hidden; }

  /* ensure flex children can shrink instead of forcing width */
  .sec6-con, .sec6-con > * { min-width: 100%; box-sizing: border-box; }

  .sec6-img-con { gap: 8px; padding: 4px 0; }
  .sec6-img-con img {
  width: 100%;
  max-width: 100%;
  height: auto;       /* taller image on phones — change 250 to 280/300 if you want more */
  max-height: 250px;
  object-fit: cover;
  border-radius: 0px;
  display: block;
}

}

/* <= 375px (very small phones) */
@media (max-width: 375px) {
  #section-6, .sec6-con { padding: 10px 8px; gap: 8px; }

  .sec6-text-con h2 { padding: 4px 0; }
  .sec6-text-con p { padding: 4px 0; line-height: 1.4; }

.sec6-img-con img {
  width: 100%;
  max-width: 100%;
  height: 220px;       /* slightly shorter for very small phones */
  max-height: 220px;
  object-fit: cover;
  display: block;
}

}