/* === General Reset for Consistency === */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

/* === Heading === */
#fruitjuices_heading {
  text-align: center;
  font-size: 25px;
  color: black;
  margin-top: 2px;
}
/* 
 === Swiper Styles === 
.swiper {
  width: 100%;
  max-width: 1400px;
  margin: 10px auto 10vh auto;
  padding: 12px;
  box-sizing: border-box;
  padding-bottom: 50px;
  position: relative;
}

.swiper-wrapper {
  box-sizing: border-box;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  border-radius: 16px;
  cursor: pointer;
  height: auto;
  padding: 10px;
  transition: transform 0.4s ease-in-out;
}

.swiper-slide:hover {
  transform: scale(1.05);
}

.swiper-slide.active-slide {
  transform: scale(1.2);
  z-index: 2;
}

.profile-pic {
  width: 100%;
  aspect-ratio: 4 / 4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-color: #fff;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.swiper-slide h1 {
  padding: 11px;
  text-align: center;
  font-size: 14px;
  color: black;
  transition: color 0.3s ease-in;
}

.swiper-slide h1:hover {
  color: rgb(146, 21, 21);
} */

/* Overlay on image */
.profile-pic .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 30%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  border-radius: 0 0 16px 16px;
}

.profile-pic:hover .overlay {
  opacity: 1;
  transform: translateY(0%);
}

.profile-pic .overlay h1 {
  color: white;
  font-size: 14px;
  background: #c95a5a;
  padding: 9px;
  border-radius: 11px;
  transition: background 0.3s;
}

.profile-pic .overlay h1:hover {
  background: #e64a19;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  background: none;
  width: 35px !important;
  height: 35px !important;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 25px !important;
}

.swiper-pagination-bullet-active {
  background: #466af3;
}

/* === Responsive: Swiper === */
@media (max-width: 1024px) {
  .swiper {
    padding: 8px;
    margin-bottom: 8vh;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .swiper {
    padding: 6px;
  }

  .swiper-slide {
    padding: 6px;
  }

  .profile-pic {
    width: 90%;
    aspect-ratio: 3 / 3;
    margin: 0 auto;
  }

  .swiper-slide h1 {
    font-size: 12px;
    padding: 6px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .swiper-slide {
    padding: 4px;
  }

  .profile-pic {
    width: 95%;
    aspect-ratio: 4 / 4;
  }

  .swiper-slide h1 {
    font-size: 11px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 28px;
    height: 28px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 13px;
  }
}

/* === Content Section === */
 .content-section {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
  position: relative;
}

.main-heading {
  color: black;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 25px;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 32px;
  margin-top: -25px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 32px;
}

/* ===== Image===== */
.image-section img {
  max-width: 470px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
 
/* ======= Table ===== */ 
.table-section {
  width: 420px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

#content-table {
  width: 100%;
  border: 2px solid white;
  border-radius: 16px;
  overflow: hidden;
  background-clip: padding-box;
  border-spacing: 0;
}

.Nutrient_heading {
  color: black;
  text-align: center;
  margin: 12px 0;
  font-size: 17px;
}

#content-table tr.table-mainheading {
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
}

#content-table th {
  color: black;
  font-weight: bold;
  text-align: center;
  padding: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white !important;
}

#content-table td {
  color: black;
  padding: 6px;
  text-align: center;
  border-left: 2px solid white;
}

.fruitjuice_conent_table td {
  padding: 10px !important;
}

#content-table th:first-child,
#content-table td:first-child {
  border-left: none;
}

#content-table tr {
  border: none;
} 

/* Responsive Table */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
  }

  .image-section img {
    max-width: 100%;
  }

  .table-section {
    width: 100%;
    padding: 0 10px;
    overflow-x: auto;
  }

  #content-table {
    min-width: 500px;
  }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 25px;
  background: none;
  color: black;
  font-size: 30px;
  border: none;
  width: 30px;
  height: 37px;
  border-radius: 30%;
  cursor: pointer;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.close-btn:hover {
  background: #cc0000;
  color: white;
}


/* General Styles */
.discover__container {
  width: 100%;           /* almost full width on small screens */
  max-width: 1400px;    /* max width on large screens */
  margin: 0 auto;       /* center horizontally */
  padding: 0 15px;      /* some horizontal padding */
  box-sizing: border-box;
}
.discover__grid {
  margin-top: -6rem;
  display: flex;
  flex-direction: column;
 
  gap: 4rem;
  padding: 22px;
}

/* Card Styles */
.discover__card {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.308);
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* For large screens */
@media (min-width: 1200px) {
 
  .discover__card {
    max-width: 1400px;
  }
}

.image-wrapper {
  flex: 1;
  min-width: 300px;
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.discover__card__content {
  flex: 1;
  padding: 1rem;
}

.discover__card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  text-align: center;
}

.discover__card__content p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.discover__card:nth-child(1),
.discover__card:nth-child(3),
.discover__card:nth-child(5),
.discover__card:nth-child(8) {
  flex-direction: row-reverse;
  text-align: left;
}

.discover__card:nth-child(1) .discover__card__content,
.discover__card:nth-child(3) .discover__card__content,
.discover__card:nth-child(5) .discover__card__content,
.discover__card:nth-child(8) .discover__card__content {
  text-align: left;
}

/* Tablet: Stack content */
@media (max-width: 1024px) {
  .discover__card {
    flex-direction: column;
    gap: 1.5rem;
  }

  .discover__card:nth-child(1),
  .discover__card:nth-child(3), 
  .discover__card:nth-child(5),
   .discover__card:nth-child(8){
    flex-direction: column;
  }

  .discover__card__content {
    text-align: center;
  }

  .discover__card__content p {
    max-width: 100%;
  }

  .image-wrapper {
    width: 100%;
    min-height: 300px;
  }
}

/* Mobile: Optimize for small screens */
@media (max-width: 480px) {
  .discover__grid {
    padding: 12px;
    gap: 2rem;
  }

  .discover__card {
    padding: 1rem;
  }

  .discover__card h4 {
    font-size: 1.25rem;
  }

  .discover__card__content p {
    font-size: 1rem;
  }

  .image-wrapper {
    min-height: 200px;
  }
}






 .energy-card-overlay {
      position: absolute;
      bottom: -100%;
      left: 0;
      width: 100%;
      height: 35%;
      background: rgba(0, 0, 0, 0.212);
      
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.1rem;
      font-weight: bold;
      transition: bottom 0.4s ease;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      text-align: center;
      padding: 0.5rem;
    }

    .home-card:hover .energy-card-overlay {
      bottom: 0;
    }

    .energy-card-overlay h1{
 
color: white;
  font-size: 14px;
  background: #c95a5a;
  padding: 9px;
  border-radius: 11px;
  transition: background 0.3s;
    }
    .energy-card-overlay h1:hover{
background: #e64a19;
    }
    
    /* new */

 
  .Fruit_juice_heading{
    text-align: left;
    font-size: 2.5rem;
    padding-left: 20px;
    margin-bottom:6rem;
 
  }

.home_juice_heading{
 text-align: center;
    font-size: 3rem;
    margin-bottom:-3rem; 
  
}

.Energy_Juice_heading{
 text-align: left;
    font-size: 2.5rem;
    margin-bottom:-3rem;
   
 
}

.discover__card__content{
 text-align: center;
    font-size: 3rem;
    margin-bottom:-3rem;  
}