#section-5 {
    display: flex;
    padding: 120px 28px 80px;   
    flex-direction: row;
    box-sizing: border-box;
    align-items: center;        
    min-height: 60vh;           
    padding-top: 0;
  }

.sec5-con {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sec5-con, .sec5-con > *, .sec5-img-con, .sec5-img-con > * {
  box-sizing: border-box;
  min-width: 0;
}

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

.text-main-con {
    display: flex;
    flex-direction: column;
}

.text-con {
    display: flex;
    flex-direction: column;
}

.text-con h2 {
    color: #642E11 !important;
    padding: 12px 8px;
    font-size: x-large;
    text-align: center;     
    margin: 10;
    margin-top: 10%;
}

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

.sec5-img-con {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;  
}

.sec5-img-con img {
   width: 100%;            
    max-width: 520px;          
    height: 400px;           
    border-radius: 5%;
    margin-top: 0%;
}

@media (max-width: 1200px) {
  #section-5 { padding: 28px;}
  .sec5-con { gap: 16px;}
 
  .sec5-con > .text-main-con,
  .sec5-con > .sec5-img-con {
    flex: 1 1 45%;
    min-width: 45%;
    max-width: 45%;
    box-sizing: border-box;
  }

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

  .sec5-img-con { padding: 12px; }
  .sec5-img-con img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }
}


@media (max-width: 900px) {
  #section-5, .sec5-con { flex-direction: column; padding: 18px ; gap: 12px; }

  .sec5-con > .text-main-con,
  .sec5-con > .sec5-img-con {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
  }

  .text-con h2 { font-size: 1.5rem; padding: 8px; text-align: center; }
  .text-con p { font-size: 1.65; padding: 8px; line-height: 1.5; text-align: justify; }

  .sec5-img-con { padding: 6px 0; justify-content: center; }
  .sec5-img-con img { width: 100%; height: auto; padding: 0; max-width: 100%; }
}

@media (max-width: 520px) {
  #section-5, .sec5-con { padding: 14px 10px; gap: 10px; }

  .sec5-text-con h2 { padding: 6px 2px; }
  .sec5-text-con p { font-size: 1.1rem; padding: 6px 2px; line-height: 1.45; text-align: justify;}

  .sec5-img-con { gap: 10px; padding: 4px 0; }
  .sec5-img-con img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
  }
}

@media (max-width: 375px) {
  #section-5, .sec5-con { padding: 10px 8px; gap: 8px; }

  .sec5-text-con h2 {  padding: 4px 2px; }
  .sec5-text-con p { padding: 4px 2px; line-height: 1.4;  font-size: 1.05rem;
    line-height: 1.65;}

  .sec5-img-con img { border-radius: 6px; width: 100%; height: auto; }
}

/* ===== REMOVE GAP BETWEEN SECTION-2A & SECTION-3 (MOBILE ONLY) ===== */
@media (max-width: 768px) {

  
  /* Section-3 top space */
  #section-5 {
    margin-top: -10% !important;
    padding-top: 12px !important;
  }

  /* REMOVE negative heading margin causing gap */
  #section-5 .text-con h2 {
    margin-top: 0 !important;
  }
   #section-5 .text-con p {
    margin-top: -10px !important;   /* 🔼 adjust if needed */
    padding-top: 8px !important;
  }

}

