/* Health Section Styles */
.health-section {
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 40px 20px;
  margin-top: 50px;
}

.partners-section-title {
  color: #05395b;
  font-size: 50px;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.health-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0;
}

.health-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Overlay Box */
.health-box {
  position: absolute;
  width: 45%;
  padding: 15px;
  border-radius: 8px;
  color: white;
}

.health-box h3 {
  font-weight: 800;
  font-size: 3.2vw;
  margin-bottom: 10px;
  color: white;
}

.health-box p {
  font-style: italic;
  font-weight: 400;
  font-size: 2vw;
  line-height: 1.4;
  color: white;
}

/* Desktop specific positions */
.farmer-wealth {
  position: absolute;
  top: 30%;
  left: 1%;
}

.human-health {
  position: absolute;
  top: 45%;
  right: 8%;
}

.health-note {
  margin-top: 20px;
  border-radius: 10px;
}

.health-note p {
  font-size: 2.2vw;
  line-height: 1.2;
}

/* Health Container */
.health-container {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  width: 90%;
  margin: auto;
  margin-top: -4%;
  overflow: hidden;
  border: 5px solid #007ea7;
  height: 50%;
}

.health-card {
  position: relative;
  width: 50%;
  height: 550px;
  overflow: hidden;
}

.health-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 51, 102, 0.7);
  color: #fff;
  padding: 15px;
  font-size: 14px;
  text-align: left;
}

.text-overlay h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.health-card.left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: white;
  transform: rotate(-20deg);
  transform-origin: top;
}

.health-note {
  background: #f7db74;
  padding: 20px;
  margin: 20px 75px 0;
  font-style: italic;
  color: #444;
  font-size: 16px;
  border-radius: 5px;
}

/* Partners Section */
.partners-section {
  width: 90vw;
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  font-family: Arial, sans-serif;
  margin: 0 auto;
}

h2.partners-section {
  color: #003366;
  margin-bottom: 20px;
  font-size: 45px;
  font-weight: bold;
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.partner {
  width: 320px;
  height: 250px;
  max-width: 33%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.partner:hover img {
  transform: scale(1.05);
}

/* Quality Assurance */
.quality-assurance {
  width: 75vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qa-header {
  width: 75vw;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.qa-banner {
  background: linear-gradient(to right, #f9a825, #eb7c0c);
  padding: 10px 25px;
  color: #003366;
  font-weight: bold;
  font-size: 20px;
  border-radius: 30px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  width: 85vw;
}

.qa-image {
  width: 250px;
  height: auto;
}

.qa-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 60px;
  padding: 20px;
  width: 97vw;
}

.qa-row.reverse {
  flex-direction: row-reverse;
}

.qa-box {
  flex: 1;
  min-width: 250px;
  max-width: 15%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  background-color: #007ea7;
  border-radius: 10px;
}

.qa-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 48px;
}

.qa-circle {
  display: flex;
  flex-direction: column;
  background-color: #003366;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}

.qa-title {
  display: flex;
  flex-direction: column;
  background-color: #55c1e7;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.5;
  flex: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qa-desc {
  background-color: #032b52;
  padding: 15px;
  border: 3px solid #55c1e7;
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.qa-desc p {
  color: inherit;
  margin: 0;
}

.quality-assurance {
  position: relative;
}

/* Line from box 4 to box 5 */
.line-4-5 {
  position: absolute;
  top: 189px; /* adjust according to spacing between rows */
  left: 93.5%;
  width: 120px;
  height: 530px;
  border-right: 3px solid #55c1e7;
  border-bottom: 3px solid #55c1e7;
  border-radius: 0 0 0 20px;
}

/* Line from box 6 to box 7 */
.line-6-7 {
  position: absolute;
  top: 823px; /* adjust according to spacing */
  left: -1%;
  width: 80px;
  height: 500px;
  border-left: 3px solid #55c1e7;
  border-bottom: 3px solid #55c1e7;
  border-radius: 0 0 20px 0;
}
.qa-horizontal-line {
  width: 60vw;
  height: 3px;
  background-color: #55c1e7;
   /* spacing from above and center align */
  border-radius: 4px;
  margin-right: -320px;
}

.qa-horizontal-line_1 {
  width: 60vw;
  height: 3px;
  background-color: #55c1e7;
  border-radius: 2px;
  margin-left: -250px; /* Move to the left */
  margin-top: -20px;
}
.qa-horizontal-line_2 {
  width: 50vw;
  height: 3px;
  background-color: #55c1e7;
  border-radius: 2px;
  margin-left: 50px; /* Move to the left */
  margin-top: -20px;
}


/* Hide lines on mobile */
@media screen and (max-width: 768px) {
  .line-4-5,
  .line-6-7,
  .qa-horizontal-line,
  .qa-horizontal-line_1,
  .qa-horizontal-line_2 {
    display: none;
  }
}

/* Contact Section */
.contact-card {
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
  margin: auto;
}

.contact-card h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  padding: 14px 18px;
  border-radius: 8px;
  color: black;
  font-size: 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: black;
  border-radius: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.3);
}

.contact-form textarea {
  resize: none;
  height: 140px;
}

.contact-form button {
  padding: 14px;
  background-color: #03AED3;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 150px;
  /* align-content: center; */
  margin-left: 130px;
}

/* .contact-form button:hover {
  background-color: #e0e0ff;
} */

/* Commitment Section */
.commitment-section {
  position: relative;
  overflow: hidden;
  background-color: #f4f4f4;
  justify-content: center;
  align-items: center;
  margin: 0 50px 0 40px;
  border-radius: 30px;
}

.section-wrapper.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.col-xl-4 {
  flex: 1;
  min-width: 300px;
}

.post-item {
  margin-bottom: 20px;
}

.post-title h4 {
  color: #0a2c4d;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
  /* Header and General Layout */
  .header-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 20px;
  }

  /* Push content down below fixed header */
  .health-section,
  .health-container,
  .partners-section,
  .quality-assurance,
  #contact,
  .contact-section {
    padding-top: 70px !important;
  }

  /* Health Section */
  .partners-section-title {
    font-size: 28px;
    margin-bottom: 0px;
    padding-top: 0;
  }

  h2.partners-section-title {
    margin: -70px;
  }

  .health-box h3 {
    font-size: 10px;
  }

  .health-box p {
    font-size: 10px;
    line-height: 1;
  }
  
  .farmer-wealth {
    top: 45%;
    left: 1%;
  }

  .human-health {
    top: 45%;
    right: 5%;
  }

  /* Health Container */
  .health-container {
    flex-direction: column;
    width: 115%;
    border: none;
  }

  .health-card {
    width: 100%;
    height: auto;
  }

  .health-note {
    margin: 0 10px 0 50px;
    font-size: 0;
  }

  .health-note p {
    font-size: 16px !important;
  }

  .text-overlay {
    font-size: 13px;
    padding: 10px;
  }

  /* Partners Section */
  .partners-grid {
    gap: 15px;
    align-items: center;
  }

  .partner img {
    width: 200%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }

  .partner {
    width: 100%;
    height: auto;
  }

  .partners-section {
    width: 85vw;
    padding: 8px;
    margin: 10% 5% 0 6%;
  }

  h2.partners-section {
    font-size: 26px !important;
  }

  /* Quality Assurance */
  .qa-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 10px;
  }

  .qa-banner {
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 40px;
    white-space: normal;
    text-align: center;
  }

  .qa-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .qa-row.reverse {
    flex-direction: row;
  }

  .qa-box {
    max-width: 90%;
    min-width: 90%;
  }

  .qa-title {
    font-size: 20px;
    padding: 10px 15px;
  }

  .qa-desc {
    font-size: 16px;
    padding: 20px;
  }

  /* Contact Section - Fix for footer overlap */
  #contact {
    padding-bottom: 80px;
    margin-bottom: 0;
  }

  .contact-section {
    margin-bottom: 40px;
  }

  .contact-form-container {
    margin-bottom: 40px;
    padding: 20px;
    max-width: 90vw;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  }

  /* Footer Adjustments */
  .footer {
    position: relative;
    margin-top: 40px;
    z-index: 1;
    clear: both;
  }

  /* Commitment Section */
  .qa-heading {
    font-size: 24px;
    margin: 5% 15px 0 80px;
    text-align: center;
  }

  .footer-top {
    padding: 30px 15px;
  }

  .section-wrapper.row {
    flex-direction: column;
    gap: 30px;
  }

  .col-xl-4 {
    min-width: 100%;
  }

  .post-title h4 {
    font-size: 16px;
  }

  .commitment-heading {
    font-size: 23px !important;
    padding: 15px 10px 0;
  }
}

/* Additional Fixes for Very Small Screens */
@media (max-width: 480px) {
  .contact-card {
    padding: 20px 15px;
  }
  
  .contact-card h2 {
    font-size: 22px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  #contact {
    padding-bottom: 60px;
  }
  
  .footer {
    margin-top: 30px;
  }
}