@font-face {
    font-family: 'GeneralSansRegular';
    src: url(/assets/fonts/GeneralSans-Regular.woff2);
}
@font-face {
    font-family: 'GeneralSansRegularItalic';
    src: url(/assets/fonts/GeneralSans-RegularItalic.woff2);
}
@font-face {
    font-family: 'GeneralSansLight';
    src: url(/assets/fonts/GeneralSans-Light.woff2);
}
@font-face {
    font-family: 'BoskaLight';
    src: url(/assets/fonts/Boska-Light.woff2);
}
@font-face {
    font-family: 'BoskaItalicLight';
    src: url(/assets/fonts/Boska-LightItalic.woff2);
}
@font-face {
    font-family: 'BoskaItalicRegular';
    src: url(/assets/fonts/Boska-MediumItalic.woff2);
}body, html {
    font-family: 'GeneralSansRegular';
    background-color: #f6f5e9;
    overflow-x: hidden;
    cursor: url('/storage/Artboard2.png'), auto;
  }
  body{
  padding-left: 30px !important;
  padding-right: 30px !important;

}
.banner-container {
    position: relative;
    width: 100%;
    justify-self: center;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
  }
  .banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
    /* filter: brightness(75%); */
  }
  .zoom-in {
    transform: scale(1.1); 
  }
  .zoom-out {
    transform: scale(1); /* Zoom out effect */
  }.banner-content {
    background-color: #f6f5e900; /* Background color for the container */
    padding: 20px; /* Add padding for some spacing */
    border-radius: 8px; /* Optional: rounded corners */
    z-index: 2; /* Ensure it appears above the image */
    position: relative;
    max-width: 60%; /* Optional: restrict the width */
    text-align: center; /* Optional: center text */
  }  
  .banner-title {
    font-family: 'GeneralSansRegular';
    font-size: 44px;
    font-weight: bold;
    color:#fff;
  }
  .filters { 
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px; */
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap; /* Prevent sections from wrapping */
    width: 100%;
    justify-self: center;
    /* margin-top: 1%; */
}

.filter-section-container {
    flex-grow: 0; /* Prevents auto expansion */
    overflow: hidden; /* Ensures the content stays within the allocated width */
    display: flex;
    flex-direction: column;
}
.filter-section-container:nth-child(1) {
  flex-basis: 100%;
  width: 100%;
}

/* .filter-section-container:nth-child(1) {
    flex-basis: 48%;
}

.filter-section-container:nth-child(3) {
    flex-basis: 28%;
}

.filter-section-container:nth-child(5) {
    flex-basis: 19%;
} */

.filter-section {
    margin: 0 10px;
    white-space: nowrap; /* Keeps buttons in a single line */
    overflow-x: auto; /* Enables horizontal scrolling when content overflows */
    padding-bottom: 10px;
    display: inline-flex; /* Align buttons in a single row */
    gap: 10px; /* Space between buttons */
    cursor: url('/storage/Artboard3.png'), auto;
    /* scrollbar-width: thin; 
    scrollbar-color: #807dff transparent;  */
}

.filter-section::-webkit-scrollbar {
  display: none; /* Hide the scrollbar */
}

/* .filter-section::-webkit-scrollbar-thumb {
    background-color: #807dff; 
    border-radius: 10px;
} */

.filter-section::-webkit-scrollbar-track {
    background: transparent; /* Track background color */
}

.filter-section .filter-btn {
    flex-shrink: 0; /* Prevents buttons from shrinking */
    padding: 10px 20px;
    margin: 0 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 16px;
    /* border: 1px groove #1c1c1a; */
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 15px;
    text-align: center;
    cursor: url('/storage/Artboard3.png'), auto;
}

.filter-section h3 {
    margin-bottom: 10px;
}

.filter-section .filter-btn.active {
    background-color: #807dff;
    color: #fff;
    border: none;
}

.separator {
    display: flex;
    align-items: center;
    margin: 2% 1% 0% 1%;
    border-right: 0.5px solid #bebebe;
}

.separator::after {
    content: "|";
    font-size: 52px;
    color: #dddddd00;
}
.scroll-container {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 17px;
}

.scroll-container .filter-section {
  flex-grow: 1;
  margin: 0 10px;
  white-space: nowrap;
  overflow-x: auto;
  display: inline-flex;
  gap: 10px;
}

.scroll-container .scroll-btn {
  width: 30px;
  height: 30px;
  font-family: "BoskaLight";
  border: none;
  border-radius: 50%;
  background-color: #7f7dff00;
  color: #1c1c1a;
  font-size: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('/storage/Artboard3.png'), auto;
}



.scroll-container .prev-btn {
  margin-top: -20px;
}

.scroll-container .next-btn {
  margin-top: -20px;
}

@media (max-width: 768px) {
  body {
    padding: 0 !important;
  }
  .ingredient-card {
    max-width: 100% !important;
  }
    .filters {
        flex-wrap: wrap; /* Allows sections to stack if space is limited */
        justify-content: center; /* Centers the sections */
    }

    .filter-section-container {
        flex-basis: 100%; /* Full width for smaller screens */
        margin-bottom: 10px;
    }

    .separator {
        display: none; /* Hide separator on small screens */
    }
}


.ingredients-section {
    text-align: center;
    /* padding: 2rem; */
    color: #333;
    font-family: 'GeneralSansRegular';
}.ingredients-section h2 {
    font-size: 28px;
    margin-bottom: 1rem;
    font-family: 'BoskaLight';
}.ingredients-grid {
  text-align: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    justify-content: center;
    margin-bottom: 5%;
    /* max-width: 1200px; */
    margin: auto;
}.ingredients-grid h3{
  text-align: left;
}.ingredients-grid p{
  text-align: left;
}

.ingredient-card {
    max-width: 23.9%; /* Enforce the percentage width */
    position: relative;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffff;
    border-radius: 15px;
    padding: 1rem;
    /* width: calc(25% - 20px); */
    /* width: calc(25% - 20px); */
    text-align: center;
    font-family: 'GeneralSansLight';
    transition: transform 0.3s;
    box-sizing: border-box;
    display: block; /* Make all cards visible by default */
}.ingredient-card.active {
    display: block; /* Show cards that match filters */
}.ingredient-card.inactive {
    display: none; /* Hide cards that don't match the active filters */
}.ingredient-card:hover {
  transform: translate(5px, 10px);
  animation: zigzag 0.4s ease-in-out infinite;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}.ingredient-card img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}.ingredient-card img:hover {
filter: brightness(100%);
}
.ingredient-card h3 {
    font-size: 20px;
    margin-bottom: 0px;
    margin-top: 16px;
    font-family: 'GeneralSansRegular';
    color: #333;
}.ingredient-card p {
    font-size: 13px;
    color: #666;
}.title-filter {
    font-size: 22px;
    font-family: 'GeneralSansRegular';
    color: #333;
    text-align: center; /* Center-aligns the text */
    white-space: nowrap;
    margin-bottom: 17px;
    margin-top: 0px;
}
.view-details-link {
    display: inline-block;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-family: 'GeneralSansRegular';
    font-weight: 500;
    transition: color 0.3s;
    text-align: left;
}.view-details-link:hover {
    color: #999999;
    text-decoration: underline;
}
/* .filter-section .filter-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px groove #1c1c1a;
    background-color: #dddddd00;
    cursor: pointer;
    border-radius: 15px;
} */
/* Base Styles (unchanged from your code) */
/* Place all your existing code here */

/* Responsive adjustments for screens 480px and below */
@media (max-width: 480px) {

    .banner-container {
      height: 200px;
      padding: 10px;
    }
  
    .banner-container img {
      height: 100%;
    }
  
    .banner-content {
      padding: 10px;
      max-width: 90%;
    }
  
    .banner-title {
      font-size: 32px; /* Reduce font size for smaller screens */
    }
  
    .filters {
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      flex-direction: column; /* Stack filters vertically */
      align-items: center;
      margin-top: 15px;
    }
  
    .filter-section {
      max-width: 100%; /* Allow buttons to take full width */
      flex-wrap: nowrap;
      padding-bottom: 5px;
      margin: 5px 0;
    }
  
    .filter-section .filter-btn {
      padding: 8px 16px;
      font-size: 14px;
    }
  
    .separator {
      margin: 10px 0;
      border-right: none;
      border-bottom: 1px solid #1c1c1a;
      width: 90%;
    }
  
    .ingredients-section {
      padding: 1rem;
    }
  
    .ingredients-section h2 {
      font-size: 24px;
    }
  
    .ingredients-grid {
      flex-direction: column; /* Stack ingredients in one column */
      gap: 20px;
      margin-bottom: 2rem;
      width: 100%;
    }
  
    .ingredient-card {
      width: 100%; /* Full width for ingredient cards */
      padding: 10px;
    }
  
    .ingredient-card h3 {
      font-size: 18px;
    }
  
    .ingredient-card p {
      font-size: 13px;
    }
  
    .title-filter {
      font-size: 18px;
    }
  
    .view-details-link {
      font-size: 14px;
      margin-top: 0.25rem;
    }
  }
  .nama-ingredient{
    font-size: 20px;
  }
  .deskripsi-ingredient{
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  