
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body, html {
      height: 100%;
      margin: 0;
    }

    body {
      font-family: 'Outfit', serif;
      background: #0d0d0d;
      color: #405927;
      line-height: 1.6;
      display: flex;
      flex-direction: column;
    }
        a {
      text-decoration: none;
      list-style-type: none;
      color: #405927;
    }
  
      li {
      text-decoration: none;
      list-style-type: none;
    }

    .superfood-search-container {
      margin: 2rem;
      text-align: center;
    }

    .superfood-search-container input {
      padding: 0.5rem;
      width: 50%;
      font-size: 1rem;
    }

    .container {
      display: flex;
      gap: 2rem;
      padding: 2rem;
      justify-content: center;
      flex-wrap: wrap;
      background-color: #fff;
    }
    .main {
      flex:1;
    }

    .superfood-list {
      flex: 1;
      max-width: 300px;
    }
    #search {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 20px;
}

#search:focus {
  border-color: #6ee7b7;
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.3);
}
.sidebar {
  padding-right: 10px;
  border-right: solid;
  border-color: #8a868a;
}
.sidebar h1 {
  color: #8a868a;
}

    .superfood-card {
      flex: 2;
      border: 1px solid #ddd;
      padding: 1rem;
      background: #f9f9f9;
      white-space: pre-wrap;
    }
    #superfood-card {
      color: #405927;
    }
    #superfood-card li {
      list-style-type: none;
    }

    #superfood-card img {
      width: 50vh;
      display: block;
      margin-bottom: 1rem;
      text-align: center;
      margin: 0 auto 1rem auto; /* center image horizontally with margin below */
 
    }
    #superfood-list {
      color: white;
    }

    .category {
      font-weight: bold;
      cursor: pointer;
      margin-bottom: 1rem;
      color: #8a868a;
      font-size: 2rem;

    }

    .scrollable {
      max-height: 200px;
      overflow-y: auto;
    }
    .superfood-benefit {
      margin-bottom: 1rem;
    }

    .down-arrow {
  background-color: #fff;
  text-align: center;
  align-items: center;
  color: black;
  font-size: 5vh;
}
    

    .hero {
      position: relative;
      background: url('zenzen.jpg') no-repeat center center;
      background-size: cover;
      width: 100%;
      min-height: 80vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 2rem;
      color: #fff;
overflow: hidden; /* Prevent scrollbars or text escape */
  padding-top: 6rem; /* Adds breathing room at top */
  padding-bottom: 6rem; /* Makes space for downward shift */
    }

    .hero header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      padding: 1.5rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
    }
.hero-text {
  font-family: "Roboto", Sans-serif;
  position: relative;
  z-index: 5;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

    .logo {
      font-size: 2rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 1.5rem;
    }

    nav ul li a {
      text-decoration: none;
      color: #405927;
      font-weight: 500;
      position: relative;
    }

    nav ul li a::after {
      content: '';
      display: block;
      height: 2px;
      background: #6ee7b7;
      width: 0;
      transition: 0.3s;
      position: absolute;
      bottom: -4px;
      left: 0;
    }

    nav ul li a:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      font-size: 2rem;
      color: #407925;
      cursor: pointer;
    }

    .hero-title {
      font-size: 58px;
      font-weight: 700;
      color: #fff;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .hero-subtitle {
      font-size: 2rem;
      font-weight: 400;
      color: #fff;
      text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    }
   
    .about-parallax {
      background: url('floral.png') center center / cover repeat fixed;
      background-color: #f5f5f5;
      color: #405927;
      text-align: center;
    }

    .about-parallax h2 {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
    }

    .about-parallax p {
      max-width: 800px;
      margin: 0 auto;
      font-size: 1.2rem;
      line-height: 1.8;
    }


  .grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 0; /* vertical gap between rows only */
  width: 100%;
  margin: 0;
  padding: 10px 0px 10px 0px;
  background-color: #fff;
}

section {
  margin: 0;
  padding: 0;
}

.image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.subject-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  opacity: 0.8;
  display: block;
  transition: transform 3s ease, filter 2s ease;
}

.image-container:hover .subject-image {
  transform: scale(1.4); /* zoom in */
  filter: brightness(10%); /* even darker */
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  max-width: 90%;
}

h2 {
  margin-top: 0;
}



.about-container {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Makes all child boxes equal in height */m                                  
  gap: 2rem;
  flex-wrap: wrap;
}

.about-box {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


.about-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #8a868a;
}

.about-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #8a868a;
}

.wellness-intro {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  color: #405927;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #405927;
}

.wellness-intro h1 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 600;
}

.wellness-intro p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

* Footer */
.site-footer {
  background-color: #111;
  color: #eee;
  padding: 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 200px;
}

.footer-logo-text {
  font-size: 1.8rem;
  color: #36b37e;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  width: 100px;
  height: 100px;
  /*border-radius: 50%;*/
}

.footer-tagline {
  color: #aaa;
}

.social-icons a {
  width: 30px;
  height: 30px;
  margin: 5px;
  color: #f5fafa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icons svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.social-icons a:hover {
  color: #36b37e;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #333;
  color: #777;
}


/* ========== timeline section ========== */

* {
  margin: 0;
  padding: 0;
}

/* Timeline Container */
.timeline {
  background: var(--primary-color);
  margin: 20px auto;
  padding: 20px;
}

/* Card container */
.time-card {
  position: relative;
  max-width: 400px;
}

/* setting padding based on even or odd */
.time-card:nth-child(odd) {
  padding: 30px 0 30px 30px;
}
.time-card:nth-child(even) {
  padding: 30px 30px 30px 0;
}
/* Global ::before */
.time-card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid orangered;
}

/* Setting the border of top, bottom, left */
.time-card:nth-child(odd)::before {
  left: 0px;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}
.time-card h3 {
  color: yellow;
}

/* Setting the top and bottom to "-5px" because earlier it was out of a pixel in mobile devices */
@media only screen and (max-width: 400px) {
  .time-card:nth-child(odd)::before {
    top: -5px;
    bottom: -5px;
  }
}

/* Setting the border of top, bottom, right */
.time-card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.time-card:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.time-card:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.time-card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

/* Information about the timeline */
.info {
  display: flex;
  flex-direction: column;
  background: #333;
  color: gray;
  border-radius: 10px;
  padding: 10px;
}

/* Title of the card */
.time-title {
  color: orangered;
  position: relative;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 999px;
  border: 3px solid orangered;
}

/* text right if the card is even  */
.time-card:nth-child(even) > .info > .title {
  text-align: right;
}

/* setting dot to the left if the card is odd */
.time-card:nth-child(odd) > .info > .title::before {
  left: -5px;
}

/* setting dot to the right if the card is odd */
.time-card:nth-child(even) > .info > .title::before {
  right: -5px;
}
    /* Responsive Styles */
    @media only screen and (max-width: 854px) {
      nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding-left: 0;
        position: absolute;
        top: 70px;
        left: 0;
        background: #111;
        z-index: 9999;
      }
      .hero {
        z-index: 1;
         overflow: visible !important;
      }

      nav ul li {
        width: 100%;
        text-align: center;
      }

      .hamburger {
        display: block;
      }

   #nav-links.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding-left: 0;
  position: absolute;
  top: 70px;
  left: 0;
  background: #111;
  z-index: 1;
}

      .logo {
        color: #405927;
      }
      .social-icons a{
      display: flex;
      flex-direction: column; /* Stack icons vertically */
      align-items: center; /* Center the icons horizontally */
      gap: 20px; /* Space between the icons */
      }
    }

    @media only screen and (max-width: 1025px) {
      .hero {
        min-height: 60vh;
      }

      .hero-title {
        font-size: 3rem;
      }

      .hero-subtitle {
        font-size: 1.4rem;
      }

      .logo {
        color: #fff;
      }
      .social-icons a{
      display: flex;
      flex-direction: column; /* Stack icons vertically */
      align-items: center; /* Center the icons horizontally */
      gap: 20px; /* Space between the icons */
      }
    }

    @media only screen and (max-width: 600px) {
      .logo {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #405927;
      }

      .hero-title {
        font-size: 2.4rem;
      }

      .hero-subtitle {
        font-size: 1.2rem;
      }
      .social-icons a{
      display: flex;
      flex-direction: column; /* Stack icons vertically */
      align-items: center; /* Center the icons horizontally */
      gap: 20px; /* Space between the icons */
      }
    }
    /* Base layout for larger screens */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
  box-sizing: border-box;
}

.footer-logo-text,
.footer-tagline,
.footer-bottom {
  text-align: center;
  line-height: 1.5;
}

.footer-logo-img {
  max-width: 120px;
  height: auto;
  margin: 1rem auto;
  display: block;
}

.footer-tagline {
  font-size: 1rem;
  word-wrap: break-word;
  padding: 0 1rem;
}

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.social-icons a i {
  font-size: 1.4rem;
  color: #fff;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: #111;
  color: #ccc;
}

/* Responsive for tablet and phone */
@media (max-width: 1025px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .footer-logo-img {
    max-width: 100px;
  }

  .footer-tagline {
    font-size: 0.95rem;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-logo-text {
    font-size: 1.4rem;
  }

  .social-icons a i {
    font-size: 1.2rem;
  }
  .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  box-sizing: border-box;
}

/* Ensure image containers handle their text well */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Make sure the image fits the container */
.subject-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Keep overlay text inside and clean */
.overlay-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
}

/* Optional heading formatting */
.overlay-text h2 {
  margin-top: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;     /* horizontal center */
  justify-content: center; /* vertical center */
  text-align: center;
  gap: 0.5rem;
}
}

