/* HERO SECTION - START */
.hero-content {
  max-width: 900px;
}
.hero-body {
  max-width: 800px;
}
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/hero.png") center/cover no-repeat;
  min-height: 84vh;
  position: relative;
}
.hero-strip {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 200px;
  background: rgba(31, 61, 43, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(8px);
}
.strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-weight: 500;
}
.strip-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  line-height: 1;
}
.strip-item i {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}
.strip-item h6 {
  margin: 0;
}
.divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
}
/* HERO SECTION - END */

/* WHO WE ARE SECTION - START*/
.top-content {
  max-width: 560px;
  margin-left: -80px;
}
.bottom-content {
  position: relative;
  top: 35px;
  padding-left: 80px;
}
.custom-img {
  height: 550px;
  width: 640px;
  object-fit: contain;
}
.learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.learn-btn .text {
  position: relative;
}
.learn-btn .text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}
.learn-btn .arrow {
  transition: transform 0.3s ease;
}
/* Hover effects */
.learn-btn:hover .text::after {
  width: 100%;
}
.learn-btn:hover .arrow {
  transform: translateX(6px);
}
/* WHO WE ARE SECTION - END*/

/* WHERE WE SERVE SECTION - START */
.custom-divider {
  border: 0;
  height: 2px;
  background-color: #25412d;
  margin: 10px 0 20px 0;
}
/* Map icon positioning */
.map-icon {
  position: absolute;
  cursor: pointer;
  transform: translate(-180%, -90%);
}
/* Tooltip hidden by default */
.map-icon .tooltip {
  position: absolute;
  bottom: 120%; /* above the icon */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
/* Tooltip arrow */
.map-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}
/* Show tooltip on hover */
.map-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
/* WHERE WE SERVE SECTION - END */

/* WHAT WE DO SECTION - START */
.timeline-label {
  width: 140px;
  color: #5a7a6e;
}

.timeline-marker {
  width: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-line {
  position: absolute;
  top: 24px;
  bottom: -40px;
  width: 2px;
  background: #4a6b5c;
  left: 50%;
  height: 195px;
  transform: translateX(-50%);
}

.timeline-circle {
  width: 16px;
  height: 16px;
  border: 3px solid #4a6b5c;
  border-radius: 50%;
  background: #f5f8f6;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.timeline-connector {
  position: absolute;
  width: 30px;
  height: 2px;
  background: #4a6b5c;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-content {
  border-radius: 4px;
  max-width: 800px;
}
/* WHAT WE DO SECTION - END */

/* OUR IMPACT SECTION - START */
/* Intro paragraph */
.impact-intro {
  max-width: 600px;
}
/* Impact card */
.impact-card {
  border: none;
}
/* Impact stats area */
.impact-stats {
  padding-right: 40px;
}
/* Numbers */
.impact-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #25412d;
  margin-bottom: 5px;
  line-height: 1;
}
/* Stat text */
.stat p {
  font-size: 0.95rem;
  margin: 0;
}
/* Divider between rows */
.impact-divider {
  border: none;
  height: 1px;
  background: #25412d;
  margin: 20px 0;
}
/* Right side image */
.impact-right img {
  width: 80%;
  object-fit: cover;
}
/* OUR IMPACT SECTION - END */

/* MOBILE RESPONSIVENESS */
@media (max-width: 760px) {
  .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  /* HERO SECTION - START*/
  /* Reduce hero height a bit */
  .hero {
    min-height: 75vh;
    padding: 40px 0;
  }

  /* Heading smaller */
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  /* Paragraph smaller */
  .hero-body {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Buttons spacing */
  .hero .btn {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* HERO STRIP FIX */
  .hero-strip {
    padding: 10px 0px; /* reduce side padding */
  }

  .strip-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .strip-item {
    flex: 1;
    gap: 4px;
  }

  .strip-item h6 {
    font-size: 0.7rem;
  }

  .strip-item i {
    font-size: 0.9rem;
  }

  .divider {
    height: 14px;
  }
  /* HERO SECTION - END*/

  /* WHO WE ARE SECTION - START*/
  /* Remove image */
  .custom-img {
    display: none;
  }

  /* Make text take full width */
  .top-content {
    max-width: 100%;
    margin-left: 0; /* remove negative margin */
  }

  .bottom-content {
    padding-left: 0;
    top: 0;
  }

  /* Match hero typography */
  .top-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .top-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .top-content h5 {
    font-size: 0.9rem;
  }

  /* List text */
  .bottom-content li {
    font-size: 0.9rem;
  }

  /* Button */
  .learn-btn {
    font-size: 0.85rem;
  }
  /* WHO WE ARE SECTION - END*/

  /* WHERE WE SERVE SECTION - START*/
  /* Hide map section completely */
  .col-md-6.position-relative {
    display: none;
  }

  /* Make text full width */
  .col-md-6 {
    width: 100%;
  }

  /* Typography consistency */
  .py-5 h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .py-5 h5 {
    font-size: 0.9rem;
  }

  .py-5 p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Improve spacing */
  .custom-divider {
    margin: 15px 0;
  }

  /* Button */
  .learn-btn {
    font-size: 0.85rem;
  }
  /* WHERE WE SERVE SECTION - END*/

  /* WHAT WE DO - START*/
  /* Stack everything */
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  /* Remove timeline visuals */
  .timeline-label,
  .timeline-marker,
  .timeline-line,
  .timeline-circle,
  .timeline-connector {
    display: none;
  }

  /* Content full width */
  .timeline-content {
    margin-left: 0;
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
  }

  /* Typography (match hero) */
  .timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .timeline-content small {
    font-size: 0.8rem;
  }

  /* Add subtle separation between items */
  .timeline-item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
  }
  /* WHAT WE DO - END*/

  /* OUR IMPACT - START */
  .impact-card {
    padding: 1.5rem 1rem;
  }

  /* STACK MAIN LAYOUT */
  .impact-card .row.align-items-center {
    flex-direction: column;
    text-align: center;
  }

  /* 🔥 FIX STATS LAYOUT */
  .impact-stats {
    padding-right: 0;
    margin-bottom: 1.5rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    text-align: center;
  }

  /* 🔥 BREAK OUT OF BOOTSTRAP ROWS */
  .impact-stats > .row {
    display: contents;
  }

  /* REMOVE DIVIDER (it breaks layout) */
  .impact-divider {
    display: none;
  }

  /* ENSURE EACH STAT FITS GRID */
  .impact-stats .col-6 {
    width: 100%;
  }

  /* Numbers */
  .impact-number {
    font-size: 1.6rem;
  }

  .stat p {
    font-size: 0.85rem;
    margin: 0;
  }

  /* IMAGE */
  .impact-right img {
    max-width: 100%;
    margin: 0 auto 1rem auto;
  }

  /* TEXT */
  .impact-right h4 {
    font-size: 1.3rem;
  }

  .impact-right p {
    font-size: 0.95rem;
  }

  .impact-intro {
    font-size: 0.95rem;
  }

  .impact-right,
  .impact-stats {
    text-align: center;
  }
  /* OUR IMPACT - END */

  /* HOW TO HELP - START */
  /* Fix intro paragraph width */
  .py-5 .w-50 {
    width: 100% !important;
  }

  /* Typography */
  .py-5 h3 {
    font-size: 1.4rem;
  }

  .py-5 h5 {
    font-size: 0.9rem;
  }

  .py-5 p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Cards spacing */
  .py-5 .card {
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  /* Card titles */
  .card h3 {
    font-size: 1.2rem;
  }

  .card h5 {
    font-size: 0.8rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* Buttons */
  .card .btn {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .py-5 .row {
    gap: 15px;
  }
  /* HOW TO HELP - END */
}

/* TABLET RESPONSIVENESS */
@media (min-width: 761px) and (max-width: 1024px) {
  /* GENERAL SECTION SPACING */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* HERO SECTION */
  .hero {
    min-height: 90vh;
    padding: 50px 0;
  }
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  .hero-body {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
  .hero-strip {
    padding: 10px 10px;
  }
  .strip-content {
    gap: 6px;
  }
  .strip-item h6 {
    font-size: 0.8rem;
  }
  .strip-item i {
    font-size: 1rem;
  }

  /* WHO WE ARE SECTION */
  .who-we{
    min-width: 800px;
  }
  .custom-img {
    position: relative;
    height: 430px;
    width: 520px;
    left: -40px;
    top: 10px;
  }
  .bottom-content{
    position: relative;
    top: -10px;
    left: -30px;
  }

  /* WHERE WE SERVE SECTION */

  /* WHAT WE DO SECTION */
  .timeline-line {
    height: 215px;
  }
  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .timeline-label {
    width: 120px;
    font-size: 0.95rem;
  }
  .timeline-marker {
    display: flex;
  }
  .timeline-line,
  .timeline-circle,
  .timeline-connector {
    display: block;
  }
  .timeline-content {
    max-width: 70%;
    margin-left: 20px;
    padding: 10px;
  }
  .timeline-content h4 {
    font-size: 1.3rem;
  }
  .timeline-content p {
    font-size: 1rem;
  }

  /* OUR IMPACT SECTION */
  .impact-card .row.align-items-center {
    flex-direction: row;
    text-align: left;
  }
  .impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 20px;
    padding-right: 20px;
    margin-bottom: 0;
  }
  .impact-stats .col-6 {
    width: 100%;
  }
  .impact-number {
    font-size: 2rem;
  }
  .stat p {
    font-size: 0.9rem;
  }
  .impact-divider {
    display: block;
  }
  .impact-right img {
    max-width: 90%;
    margin: 0 auto 1rem auto;
  }

  /* HOW TO HELP SECTION */
   /* Make cards take half width */
  .how-to .col-md-4 {
    width: 50%;
  }

  /* Center the third card */
  .how-to .col-md-4:nth-child(3) {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
