 :root {
     --black: #000000;
     --white: #ffffff;
     --green: #149954;
     --green-hover: #0e6b38;
     --red: #E4312b;
     --grey-light: #f9f9f9;
     --grey-dark: #444444;
     --bg-warm: #fefcf8;
     --card-bg: #faf7f2;
     --bg-accent: #f5f2ed;
 }

 html {
     overflow-x: hidden;
     width: 100%;
     box-sizing: border-box;
     max-width: 100vw;
 }

 body {
     font-family: "Roboto", sans-serif;
     margin: 0;
     background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-accent) 100%);
     color: var(--black);
     line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
 }

 * {
     box-sizing: border-box;
     max-width: 100%;
 }

 /* Prevent horizontal scroll on zoom */
 @media (max-width: 768px) {
     html, body {
         overflow-x: hidden;
         width: 100%;
         max-width: 100vw;
     }
     
     .verification,
     .survival-guides,
     .work-gallery,
     .testimonials,
     .families,
     .faq-section,
     .cta-section {
         width: 100%;
         max-width: 100vw;
         overflow-x: hidden;
     }
 }

 header {
     background-color: var(--black);
     color: var(--white);
     text-align: center;
     padding: 3rem 1rem;
     width: 100%;
     box-sizing: border-box;
 }

 header h1 {
     margin: 0;
     font-weight: 700;
     font-size: 3rem;
     line-height: 1.2;
     font-family: "Bricolage Grotesque Variable"
 }

 /* Add the .text-gradient class */
 .text-gradient {
     background: linear-gradient(to right, #ee0979, #ff6a00);
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     display: inline-block;
 }

 /* Hero Section */
 .hero {
     background: #000000;
     color: var(--white);
     padding: 0rem 2rem 6rem 2rem;
     text-align: center;
     border-radius: 0 0 60px 60px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
     margin-bottom: 0;
     position: relative;
     z-index: 2;
     text-align: center;
     padding: 0rem 1rem 5rem 1rem;
     max-width: 100%;
     box-sizing: border-box;
 }

 .hero h2 {
     font-weight: 700;
     font-size: 2.3rem;
     margin: 0 0 1rem 0;
     line-height: 1.2;
     font-family: "Bricolage Grotesque Variable"
 }

 .hero p {
     font-size: 1.2rem;
     max-width: 600px;
     margin: 0 auto 2rem auto;
     font-family: "Bricolage Grotesque Variable"
 }

 .hero-buttons {
     display: flex;
     justify-content: center;
     gap: 1rem;
     flex-wrap: wrap;
     max-width: 100%;
 }

 .btn {
     background-color: var(--green);
     color: var(--white);
     border: none;
     padding: 0.75rem 1.5rem;
     font-weight: 700;
     font-size: 1rem;
     cursor: pointer;
     border-radius: 4px;
     transition: background-color 0.3s ease;
     text-decoration: none;
     display: inline-block;
     font-family: "Bricolage Grotesque Variable"
 }

 .btn:hover {
     background-color: var(--green-hover);
 }

 /* Add after .hero */
 .merged-hero {
     background: #242222;
     /* Very dark green/black for Gaza theme */
     color: var(--white);
     border-bottom: 4px solid var(--green);
 }

 .merged-hero h1 {
     font-size: 2.5rem;
     font-weight: 900;
     letter-spacing: -1px;
     margin-bottom: 1rem;
     font-family: "Bricolage Grotesque Variable"
 }

 .merged-hero h2 {
     font-size: 1.5rem;
     font-weight: 700;
     margin-bottom: 1rem;
     font-family: "Bricolage Grotesque Variable"
 }

 /* Families Section */
 .families {
     padding: 4rem 1rem;
     background-color: var(--white);
     border-radius: 0;
     margin-top: 0;
     margin-bottom: 0;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     position: relative;
     z-index: 1;
     border-top: 1px solid rgba(0, 0, 0, 0.05);
     width: 100%;
     box-sizing: border-box;
 }

 .families h3 {
     text-align: center;
     font-size: 2.4rem;
     margin-bottom: 0.4rem;
     color: var(--green);
     font-family: "Bricolage Grotesque Variable";
     line-height: 1.2;
     max-width: 100%;
     overflow-wrap: break-word;
     word-wrap: break-word;
 }

 .section-description {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    margin: 0 auto;
    margin-bottom: 2rem;
    color: var(--grey-dark);
    font-family: "Bricolage Grotesque Variable"
 }

 /* .family-list {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
     gap: 1.5rem;
     align-items: center;
     border: 1px solid red;
 } */
 .family-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Horizontally center rows */
    gap: 1.5rem;
    align-items: stretch; /* Makes all cards equal height if needed */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Sticky Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--black);
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-family: "Bricolage Grotesque Variable";
    font-size: 1.05rem;
  }

  .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background-color: rgba(255,255,255,0.08);
  }

  .nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
  }

  .nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  @media (max-width: 820px) {
    .nav-toggle {
      display: inline-block;
      z-index: 1001; /* ensure hamburger is always clickable */
    }
    .nav-links {
      position: fixed;
      top: 90px; /* pushed down to account for Google Translate widget */
      right: 0;
      left: 0;
      padding-block: 1rem;
      background: var(--black);
      display: none;
      flex-direction: column;
      gap: 4;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      z-index: 999; /* ensure it's above other elements */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* add shadow for better visibility */
    }
    .nav-links.open {
      display: flex;
    }
    .nav-links li a {
      padding: 0.1rem 0 0.1rem 0rem;
      margin-left: 2rem;
      text-decoration: underline;
      border-radius: 0;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
  }

  /* Additional mobile adjustments for very small screens */
  @media (max-width: 480px) {
    .nav-links {
      top: 140px; /* even more space for smaller screens */
    }
  }

  /* Smooth anchor scrolling and offset for sticky nav */
  html {
    scroll-behavior: smooth;
  }

  /* Adjust header spacing since nav is sticky */
  header {
      margin-top: 0;
  }

  /* About page hero */
  .about-hero {
      background: var(--black);
      color: var(--white);
      text-align: center;
      padding: 4rem 1.5rem 3rem 1.5rem;
  }
  .about-hero h1 {
      font-family: "Bricolage Grotesque Variable";
      font-size: 3.4rem;
      margin: 0 0 0.5rem 0;
  }
  .about-subheading  {
      font-size: 1.1rem;
      max-width: 760px;
      margin: 0 auto;
  }

  /* Mission section */
  .mission {
      background: var(--card-bg);
      padding: 2.5rem 1.5rem;
  }
  .mission-inner {
      max-width: 900px;
      margin: 0 auto;
  }
  .mission h2 {
      color: var(--green);
      font-family: "Bricolage Grotesque Variable";
      font-size: 2.2rem;
  }
  .mission p {
      color: var(--grey-dark);
      font-size: 1.05rem;
      line-height: 1.7;
      margin-top: -20px;
  }

  /* Legal / Terms section */
  .legal,
  .terms {
      background: var(--white);
      padding: 2.5rem 1.5rem;
      width: 100%;
      box-sizing: border-box;
  }

  .legal-inner {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 0.5rem;
      overflow-wrap: anywhere;
      word-break: break-word;
  }

  .legal-inner h2 {
      color: var(--green);
      font-family: "Bricolage Grotesque Variable";
      font-size: 1.6rem;
      margin: 2rem 0 0.5rem 0;
      line-height: 1.3;
  }

  .legal-inner p,
  .legal-inner li {
      color: var(--grey-dark);
      font-size: 1.05rem;
      line-height: 1.7;
  }

  .legal-inner ul {
      padding-left: 1.25rem;
      margin: 0 0 1rem 0;
  }

  @media (max-width: 768px) {
      .legal,
      .terms {
          padding: 2rem 1rem;
      }
      .legal-inner {
          padding: 0;
          max-width: 100%;
      }
      .legal-inner h2 {
          font-size: 1.35rem;
          margin-top: 1.25rem;
      }
      .legal-inner ul {
          padding-left: 1rem;
      }
  }

  @media (max-width: 480px) {
      .legal,
      .terms {
          padding: 1.5rem 0.75rem;
      }
      .legal-inner h2 {
          font-size: 1.25rem;
      }
  }

  /* Team section */
  .team {
      max-width: 900px;
      margin: 0 auto;
      padding: 2rem 1.5rem 4rem 1.5rem;
  }
  .team h2 {
      color: var(--green);
      text-align: center;
      font-family: "Bricolage Grotesque Variable";
      margin-bottom: 1.5rem;
  }
  .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.25rem;
  }
  .team-card {
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
      padding: 3.25rem 1.25rem;
      text-align: center;
  }
  .team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        transition: 0.4s;
  }
  .team-avatar {
      width: 96px;
      height: 96px;
      object-fit: cover;
      border-radius: 50%;
      margin-bottom: 0.75rem;
      background: #f3f3f3;
      display: inline-block;
    }
  .team-name {
      font-weight: 700;
      margin-bottom: 0.25rem;
  }
  .team-role {
      color: var(--grey-dark);
      font-size: 0.95rem;
  }

  /* Partners page */
  .partners-hero {
      background: var(--black);
      color: var(--white);
      text-align: center;
      padding: 4rem 1.5rem 3rem 1.5rem;
  }
  .partners-hero h1 {
      font-family: "Bricolage Grotesque Variable";
      font-size: 3.0rem;
      margin: 0 0 0.5rem 0;
  }
  .partners-subheading {
      font-size: 1.1rem;
      max-width: 760px;
      margin: 0 auto;
  }
  .partners-list {
      max-width: 1000px;
      margin: 0 auto;
      padding: 2rem 1rem 4rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  .partner-card {
      background: var(--card-bg);
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 1rem;
      align-items: center;
      border-radius: 12px;
      box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
      padding: 1rem;
    }
  .partner-logo img {
      width: 120px;
      height: 120px;
      object-fit: contain;
      border-radius: 8px;
      background: #f3f3f3;
      display: block;
    }
  .partner-name {
      margin: 0 0 0.25rem 0;
      font-size: 1.25rem;
  }
  .partner-desc {
      margin: 0 0 0.5rem 0;
      color: var(--grey-dark);
      line-height: 1.6;
    }
  .partner-link {
      color: var(--green);
      text-decoration: underline;
      font-weight: 600;
    }
  @media (max-width: 700px) {
    .partner-card {
      grid-template-columns: 1fr;
      text-align: left;
    }
    .partner-logo img {
      width: 100px;
      height: 100px;
    }
  }

  /* Gallery page */
  .gallery-hero {
      background: var(--black);
      color: var(--white);
      text-align: center;
      padding: 4rem 1.5rem 3rem 1.5rem;
  }
  .gallery-hero h1 {
      font-family: "Bricolage Grotesque Variable";
      font-size: 3.0rem;
      margin: 0 0 0.5rem 0;
  }
  .gallery-subheading {
      font-size: 1.1rem;
      max-width: 760px;
      margin: 0 auto;
  }
  .media-gallery {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem 4rem 1rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
  }
  .media-card {
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 4px 6px rgb(0 0 0 / 0.08);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
  .media-thumb img, .media-thumb video {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
    }
  .media-caption {
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
      color: var(--grey-dark);
      border-top: 1px solid #eee;
    }

.family-card {
    flex: 1 1 330px; /* Grow/Shrink but with base width of 380px */
    max-width: 330px; /* Prevent overflow in tight screens */
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.family-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.15);
    /* border-color: var(--green); */
}

 .family-info {
     margin-bottom: 1rem;
 }

 .family-name {
     font-weight: 700;
     font-size: 1.1rem;
     color: var(--red);
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 0.5rem;
 }

 .family-id {
     background-color: transparent;
     color: var(--red);
     font-size: 0.75rem;
     font-weight: 600;
     padding: 0.25rem 0.5rem;
     border-radius: 12px;
     border: 2px solid var(--red);
     font-family: "Bricolage Grotesque Variable", sans-serif;
     line-height: 1;
     flex-shrink: 0;
 }

 .family-brief {
     font-size: 0.9rem;
     color: var(--grey-dark);
     margin-top: 0.25rem;
 }

 .whatsapp-btn {
     background-color: var(--green);
     color: var(--white);
     border: none;
     padding: 0.5rem 1.2rem;
     font-size: 1rem;
     font-weight: 700;
     border-radius: 6px;
     cursor: pointer;
     transition: all 0.3s ease;
     text-align: center;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5em;
     position: relative;
     overflow: hidden;
 }

 .wa-icon {
     display: inline-flex;
     align-items: center;
     height: 1.2em;
     transition: transform 0.3s ease;
 }

 .whatsapp-btn:hover {
     background-color: var(--green-hover);
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(20, 153, 84, 0.4);
 }

 .whatsapp-btn:hover .wa-icon {
     transform: scale(1.1);
 }

 /* Testimonials Section */
 .testimonials {
     background-color: var(--card-bg);
     padding: 4rem 0;
     margin: 0;
     border-radius: 0;
     box-shadow: 0 6px 20px rgba(255, 193, 7, 0.1);
     width: 100%;
     border-top: 1px solid rgba(0, 0, 0, 0.05);
 }

 .testimonials h3 {
     color: var(--green);
     text-align: center;
     font-size: 2rem;
     margin-bottom: 0.4rem;
     line-height: 1.2;
     font-family: "Bricolage Grotesque Variable";
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 2rem;
 }
/* 
 .testimonial-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
     gap: 1.5rem;
 }

 .testimonial-card {
     background-color: var(--grey-light);
     border-radius: 12px;
     padding: 1.25rem;
     box-shadow: 0 0 6px rgb(0 0 0 / 0.1);
     display: flex;
     flex-direction: column;
     justify-content: flex-start;
 } */

 .testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ⬅️ center incomplete rows */
    gap: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.testimonial-card {
    flex: 1 1 330px;   /* Minimum 380px, grows if there's space */
    max-width: 330px;   /* Prevent overflow */
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 0 6px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

 .testimonial-media {
     width: 100%;
     border-radius: 10px;
     margin-bottom: 1rem;
     object-fit: cover;
 }

 .testimonial-text {
     font-style: italic;
     color: var(--black);
     flex-grow: 1;
 }

 .testimonial-author {
     font-weight: 700;
     color: var(--red);
     margin-top: 0.75rem;
     text-align: right;
 }

 /* FAQ Section */
 .faq-section {
     max-width: 1200px;
     padding: 3rem 2rem;
     margin: 2rem auto;
     background-color: var(--bg-warm);
     border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
 }

 .faq-section h3 {
     color: var(--green);
     margin-bottom: 0.5rem;
     text-align: center;
     font-size: 2rem;
     font-family: "Bricolage Grotesque Variable";
     line-height: 1.2;
 }

 

 details {
     margin-bottom: 1rem;
     padding: 1rem;
     border-radius: 8px;
     background-color: var(--card-bg);
     cursor: pointer;
     border: 1px solid #b5b5b5;
 }

 summary {
     font-weight: 700;
     font-size: 1.1rem;
 }

 /* Verification Section */
 .verification {
     padding: 4rem 0;
     margin: 0;
     border-radius: 0;
     background-color: #f0f8f0;
     box-shadow: 0 6px 20px rgba(20, 153, 84, 0.1);
     width: 100%;
     border-top: 1px solid rgba(0, 0, 0, 0.05);
     box-sizing: border-box;
 }

 .verification-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     /* horizontall centered */
     justify-content: center;
     align-items: center;
     gap: 2rem;
     padding: 0;
     margin: 2rem 0 0 0;
     justify-content: center;
     max-width: 1100px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 2rem;
     box-sizing: border-box;
 }

 .verification-step {
     background: var(--card-bg);
     border-radius: 14px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
     padding: 1.5rem 1.25rem 1rem 1.25rem;
     display: flex;
     align-items: flex-start;
     font-size: 1.12rem;
     color: var(--black);
     min-height: unset;
     position: relative;
     transition: box-shadow 0.2s;
     width: 100%;
     max-width: 420px;
     margin-left: auto;
     margin-right: auto;
     box-sizing: border-box;
     overflow-wrap: break-word;
     word-wrap: break-word;
 }

 .verification-step:hover {
     box-shadow: 0 4px 16px rgba(20, 153, 84, 0.12);
 }

 @media (max-width: 900px) {
     .verification {
         padding: 3rem 1.5rem;
     }
     
     .verification-grid {
         grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
         gap: 1.2rem;
         max-width: 100%;
         padding: 0 1rem;
         width: 100%;
     }

     .verification-step {
         max-width: 100%;
         font-size: 1rem;
         padding: 1rem 0.5rem 0.75rem 0.5rem;
         width: 100%;
         box-sizing: border-box;
     }
 }

 @media (max-width: 600px) {
     .verification {
         padding: 2.5rem 1rem;
     }
     
     .verification-grid {
         grid-template-columns: 1fr;
         gap: 1rem;
         max-width: 100%;
         padding: 0 0.5rem;
         width: 100%;
     }

     .verification-step {
         max-width: 100%;
         font-size: 0.98rem;
         padding: 1rem 0.5rem 0.75rem 0.5rem;
         width: 100%;
         box-sizing: border-box;
     }
 }

 /* Work Gallery Section */
 .work-gallery {
     padding: 4rem 0;
     background-color: var(--bg-accent);
     border-radius: 0;
     margin-top: 0;
     margin-bottom: 0;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     position: relative;
     z-index: 1;
     border-top: 1px solid rgba(0, 0, 0, 0.05);
     width: 100%;
 }

 .work-gallery h3 {
     color: var(--green);
     text-align: center;
     font-size: 2rem;
     margin-bottom: 0.4rem;
     font-family: "Bricolage Grotesque Variable";
     line-height: 1.2;
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 2rem;
 }

 /* .gallery-media {
    max-width: 380px;
    height: 0 auto;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
 } */

 /* .gallery-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
     gap: 1rem;
 }

 .gallery-item img,
 .gallery-item video {
     width: 100%;
     height: auto;
     border-radius: 12px;
     box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
 } */

 .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Horizontally center wrapped rows */
    gap: 1rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.gallery-item {
    flex: 1 1 380px;  /* Base width of 380px, responsive */
    max-width: 380px;  /* Prevent overflow on smaller screens */
}

 .gallery-item img,
 .gallery-item video {
     width: 380px;
     height: auto;
     border-radius: 12px;
     box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
     display: block;
 }

 /* Survival Guides Section */
 .survival-guides {
     padding: 4rem 0;
     margin: 0;
     background-color: var(--white);
     width: 100%;
     border-top: 1px solid rgba(0, 0, 0, 0.05);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     box-sizing: border-box;
 }

 .survival-guides h3 {
     color: var(--green);
     text-align: center;
     font-size: 2rem;
     margin-bottom: 0.4rem;
     font-family: "Bricolage Grotesque Variable";
     line-height: 1.2;
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 2rem;
     box-sizing: border-box;
 }

 .survival-content {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 2rem;
     margin-top: 2rem;
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 2rem;
     box-sizing: border-box;
 }
@media (min-width: 1100px) {
  .survival-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

 .survival-section {
     padding: 1.5rem 2rem;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     box-sizing: border-box;
     width: 100%;
     overflow-wrap: break-word;
     word-wrap: break-word;
 }

 .survival-section:hover {
     transform: translateY(-4px);
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
 }

 .survival-section h4 {
     color: var(--black);
     font-size: 1.4rem;
     margin-bottom: 1rem;
     margin-top: 0;
     font-family: "Bricolage Grotesque Variable";
     font-weight: 600;
 }

 .app-description {
     color: var(--grey-dark);
     font-size: 0.95rem;
     margin-bottom: 1rem;
     font-style: italic;
 }

 .resource-list {
     list-style: circle;
     padding: 0;
     margin: 0;
 }

 .resource-list li {
     margin-bottom: 0.5rem;
     padding-left: 0;
 }

 .resource-list a {
     color: var(--green);
     text-decoration: none;
     font-weight: 500;
     transition: color 0.3s ease;
     display: block;
     padding: 0.4em 0;
     border-bottom: 1px solid transparent;
     overflow-wrap: break-word;
     word-wrap: break-word;
 }

 .resource-list a:hover {
     color: var(--green-hover);
     /* border-bottom: 1px solid var(--green-hover); */
 }

 @media (max-width: 768px) {
     .survival-guides {
         padding: 2rem 1rem;
     }
     
     .survival-guides h3 {
         padding: 0 1rem;
         font-size: 1.5rem;
     }
     
     .survival-content {
         grid-template-columns: 1fr;
         gap: 1.5rem;
         padding: 0 1rem;
         max-width: 100%;
     }
     
     .survival-section {
         padding: 1.5rem 1.5rem;
         width: 100%;
         box-sizing: border-box;
     }
 }

 @media (max-width: 600px) {
     .survival-guides {
         padding: 2rem 0.5rem;
     }
     
     .survival-guides h3 {
         padding: 0 0.5rem;
         font-size: 1.5rem;
     }
     
     .survival-content {
         padding: 0 0.5rem;
         gap: 1rem;
     }
     
     .survival-section {
         padding: 1.5rem 1rem;
     }
     
     .survival-section h4 {
         font-size: 1.2rem;
     }
 }

 /* Footer */
 footer {
     background-color: var(--black);
     color: var(--white);
     text-align: center;
     padding: 1.5rem 2rem;
    margin-top: auto; /* Sticky footer in flex layout */
 }

 footer a {
     color: var(--green);
     text-decoration: none;
     font-size: small;
 }

 footer a:hover {
     text-decoration: underline;
 }

 /* Family card media */
 .family-media {
     width: 100%;
     max-height: 200px;
     object-fit: cover;
     border-radius: 10px;
     margin-bottom: 1rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     background: #f3f3f3;
     display: block;
 }

 @media (max-width: 600px) {
     .family-media {
         max-height: 140px;
     }

     .family-card {
         padding: 1.25rem 1rem;
     }
 }

 @media (max-width: 600px) {
     .hero h2 {
         font-size: 1.8rem;
         font-family: "Bricolage Grotesque Variable"
     }

     .hero p {
         font-size: 1rem;
     }
 }

 /* Verification Process Grid */
 .verification-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 1.5rem;
     padding: 0;
     margin: 2rem 0 0 0;
 }

 .verification-step {
     background: var(--card-bg);
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
     padding: 1.5rem 1rem 1rem 1rem;
     display: flex;
     align-items: flex-start;
     font-size: 1.05rem;
     color: var(--black);
     min-height: 120px;
     position: relative;
     transition: box-shadow 0.2s;
 }

 .verification-step:hover {
     box-shadow: 0 4px 16px rgba(20, 153, 84, 0.12);
 }

 .verification-icon {
     font-size: 2rem;
     margin-right: 0.75rem;
     flex-shrink: 0;
     margin-top: -0.2rem;
 }

 @media (max-width: 600px) {
     .verification-grid {
         grid-template-columns: 1fr;
         gap: 1rem;
     }

     .verification-step {
         padding: 1rem 0.5rem 0.75rem 0.5rem;
         font-size: 0.98rem;
     }

     .verification-icon {
         font-size: 1.5rem;
         margin-right: 0.5rem;
     }
 }

 .verification-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 2rem;
     padding: 0;
     margin: 2rem 0 0 0;
     justify-content: center;
     max-width: 1100px;
     margin-left: auto;
     margin-right: auto;
 }

 @media (max-width: 1100px) {
     .verification-grid {
         grid-template-columns: repeat(2, 1fr);
         max-width: 700px;
     }
 }

 @media (max-width: 700px) {
     .verification-grid {
         grid-template-columns: 1fr;
         max-width: 100vw;
         gap: 1rem;
     }
 }

 .verification h3 {
     color: var(--green);
     font-size: 2rem;
     text-align: center;
     margin-bottom: 0.5rem;
     font-family: "Bricolage Grotesque Variable";
     line-height: 1.2;
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 2rem;
 }

 /* Footer Grid Layout */
 .footer-grid {
     display: grid;
     grid-template-columns: 1fr 1.2fr 1fr;
     gap: 1rem;
     align-items: center;
     max-width: 1200px;
     margin: 0 auto;
     padding: 2.5rem 2rem;
 }

 .footer-col {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     color: var(--white);
     font-size: 1rem;
     gap: 0.5rem;
 }

 .footer-center {
     align-items: center;
     text-align: center;
 }

 .footer-title {
     font-weight: 700;
     margin-bottom: 0.25rem;
     color: var(--green);
     font-size: 1.1rem;
 }

 .footer-social-icons {
     display: flex;
     gap: 0.5rem;
     align-items: center;
 }

footer {
    background-color: var(--black);
    color: var(--white);
    text-align: left;
    padding: 0;
    margin-top: auto; /* ensure sticky footer even with later override */
}

 footer a {
     color: var(--green);
     text-decoration: none;
     font-weight: 500;
 }

 footer a:hover {
     text-decoration: underline;
 }

 @media (max-width: 900px) {
     .footer-grid {
         grid-template-columns: 1fr;
         gap: 1.5rem;
         text-align: center;
         padding: 1rem 1rem;
     }

     .footer-col,
     .footer-center {
         align-items: center;
         text-align: center;
     }
 }

 /* Footer Two-Column Layout */
 .footer-grid-2 {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr;
     gap: 0;
     align-items: start;
     justify-content: space-between;
     max-width: 1200px;
     margin: 0 auto;
     padding: 2.5rem 2rem;
 }

 .footer-col-2 {
     display: flex;
     flex-direction: column;
     gap: 0.2rem;
     flex: 1;
 }

 .footer-col-2:nth-child(1) {
     padding-right: 2rem;
 }

 .footer-col-2:nth-child(2) {
     padding: 0 2rem;
     text-align: center;
 }

 .footer-col-2:nth-child(3) {
     padding-left: 2rem;
 }

 .footer-title-2 {
     color: var(--white);
     font-size: 1rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     letter-spacing: 0.5px;
     font-family: "Bricolage Grotesque Variable", sans-serif;
 }

 .footer-contact-item {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--white);
     font-size: 0.9rem;
     margin-bottom: 0.2rem;
 }

 .footer-contact-item a {
     color: var(--white);
     text-decoration: none;
     font-weight: 400;
     transition: color 0.2s;
     font-family: "Bricolage Grotesque Variable", sans-serif;
     font-size: 0.9rem;
     /* Prevent long emails/links from overflowing on small screens */
     overflow-wrap: anywhere;
     word-break: break-word;
 }

 .footer-contact-item a:hover {
     color: var(--green);
     text-decoration: underline;
 }

 .footer-copyright {
     color: var(--white);
     font-size: 0.98rem;
     margin-top: 1.2rem;
     font-weight: 400;
 }

 .footer-social-2 {
     align-items: center;
     text-align: center;
     gap: 0.2rem;
 }

 .footer-social-link {
     margin-bottom: 0.2rem;
 }

 .footer-social-link a {
     color: var(--green);
     text-decoration: none;
     font-weight: 500;
     font-size: 0.9rem;
     transition: color 0.2s;
     font-family: "Bricolage Grotesque Variable", sans-serif;
 }

 .footer-social-link a:hover {
     color: var(--green-hover);
     text-decoration: underline;
 }

 .footer-legal-2 {
     align-items: flex-end;
     text-align: right;
     gap: 0.2rem;
 }

 .footer-legal-link {
     margin-bottom: 0.2rem;
 }

 .footer-legal-link a {
     color: var(--white);
     text-decoration: none;
     font-weight: 500;
     font-size: 0.9rem;
     transition: color 0.2s;
     font-family: "Bricolage Grotesque Variable", sans-serif;
 }

 .footer-legal-link a:hover {
     color: var(--green);
     text-decoration: underline;
 }

 /* Social Media Icons with Labels */
 .footer-social-icons {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     margin-top: 0.3rem;
     align-items: center;
     width: 100%;
 }

 .footer-social-item {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     color: var(--white);
     text-decoration: underline;
     transition: color 0.2s;
     font-family: "Bricolage Grotesque Variable", sans-serif;
     font-size: 0.9rem;
     width: fit-content;
     margin-left: auto;
     margin-right: auto;
 }

 .footer-social-item:hover {
     color: var(--green);
 }

 .footer-social-icon {
     width: 16px;
     height: 16px;
     flex-shrink: 0;
     background: var(--white);
     border-radius: 3px;
     padding: 1px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .footer-social-label {
     color: var(--white);
     font-weight: 500;
     font-size: 0.9rem;
     text-decoration: underline;
 }

 .footer-social-item:hover .footer-social-label {
     color: var(--green);
 }

 .footer-social-icon svg {
     width: 100%;
     height: 100%;
     fill: currentColor;
 }

 .funds-required-label {
    margin: 0.7em 0 0 0;
  }
  
.funds-required-list {
margin-bottom: 0.3em;
margin-left: -1em;
font-size: 0.9rem;
}

/* Responsive footer layout */
@media (max-width: 900px) {
    .footer-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 2rem 1.5rem;
    }
    
    .footer-col-2:nth-child(1) {
        padding-right: 1.5rem;
    }
    
    .footer-col-2:nth-child(2) {
        padding: 0 1.5rem;
    }
    
    .footer-col-2:nth-child(3) {
        padding: 0;
        grid-column: 1 / -1;
        margin-top: 1.5rem;
        text-align: center;
        align-items: center;
    }
    
    .footer-legal-2 {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 2rem 1rem;
    }
    
    .footer-col-2:nth-child(1),
    .footer-col-2:nth-child(2),
    .footer-col-2:nth-child(3) {
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .footer-legal-2 {
        text-align: center;
        align-items: center;
    }
    
    .footer-social-icons {
        align-items: center;
    }
}

/* How It Works Page Styles */
.how-it-works-hero {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.how-it-works-hero h1 {
  font-family: "Bricolage Grotesque Variable", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: "Bricolage Grotesque Variable", sans-serif;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Timeline Section */
.timeline-section {
  padding: 4rem 0;
  background: var(--white);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-number {
  background: var(--green);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Bricolage Grotesque Variable", sans-serif;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 153, 84, 0.3);
}

.timeline-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 2rem;
  flex: 1;
  max-width: 400px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  color: var(--green);
  font-family: "Bricolage Grotesque Variable", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.timeline-content p {
  color: var(--grey-dark);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Call to Action Section */
.cta-section {
  background: var(--bg-accent);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-family: "Bricolage Grotesque Variable", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 1rem 0;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--grey-dark);
  margin: 0 0 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(20, 153, 84, 0.3);
}

.btn-large:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 153, 84, 0.4);
}

/* Mobile Responsiveness for Timeline */
@media (max-width: 768px) {
  .how-it-works-hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .timeline::before {
    left: 25px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-left: 0;
    position: relative;
    padding-right: 1rem;
  }
  
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-left: 0;
    position: relative;
    z-index: 2;
  }
  
  .timeline-content {
    margin: 0 0 0 75px;
    max-width: none;
    width: calc(100% - 95px);
    box-sizing: border-box;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .how-it-works-hero {
    padding: 3rem 1rem;
  }
  
  .how-it-works-hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    padding: 1.5rem;
    margin-left: 70px;
    width: calc(100% - 90px);
    box-sizing: border-box;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}