
html, body {
  overflow-x: hidden;
}


.food-hero {
  position: relative;
  background-image: url('/MalaysiaExploration/Food/Malay_Food/assets/Background.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: var(--text-light);
}

.food-hero-background::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: -1;
}


#food-hero.snap-section .snap-section-content-area {
  max-width: 100%;
  padding: 0;
}

/* Main content area on the left */
#food-hero.snap-section .snap-section-main-content {
  align-items: flex-start;
  padding-left: clamp(1rem, 6vw, 100px); 
  padding-right: clamp(1rem, 4vw, 40px); 
  max-width: none;
}


.food-hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  
  text-align: left;         
  margin-top: 120px;
  max-width: 700px;         
}


.food-hero-title {
  font-family: var(--font-heading-landing);
  font-size: clamp(2.5rem, 5.5vw, 3.7rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #46484b;
  animation: fadeInHeading 1s ease-out forwards;
}

.food-hero-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: #373737;
  max-width: unset;
  animation: fadeInParagraph 1s 0.6s ease-out forwards;
  font-weight: 500;
}

/* Optional animations */
@keyframes fadeInHeading {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInParagraph {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator-arrow,
.scroll-indicator-text {
  color: #edcb34;; 
}

/* ==== Food Carousel Section Styles ==== */
.food-second-section {
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.carousel {
  margin: auto;
  font-family: 'Montserrat', sans-serif;
  background: #f3f0e7;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
  height: 780px;
  position: relative;
  margin: auto;
  transition: height 0.3s ease;
}


@media (max-height: 720px) {
  .carousel {
    height: 1100px;
  }
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 100%;
  background: white;
  border-radius: 12px;
  overflow-y: visible;
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.85);
  z-index: 0;
  display: flex;
  flex-direction: column;
}

@media (max-height: 700px) {
  .card {
    overflow-y: auto;
  }
}


.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}


.text-content {
  padding: 25px;
}

.card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: #888;
  margin-bottom: 20px;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  margin-top: 40px;
}

button {
  background: #d27600;
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
}

.card.main {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.card.left {
  transform: translateX(-115%) scale(0.7);
  opacity: 0.8;
  z-index: 2;
  pointer-events: auto;
}

.card.right {
  transform: translateX(15%) scale(0.7);
  opacity: 0.8;
  z-index: 2;
  pointer-events: auto;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0); 
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.card.left::after,
.card.right::after {
  background: rgba(0, 0, 0, 0.551); 
}

.card.left,
.card.right {
  filter: brightness(0.9); 
}

.spacer {
  height: 5vh;
}

footer.common-footer {
  margin-top: 5vh;
}



#food-spices-section {
  background-color: #fffdf8;
  padding: 5vh 2vw;
  overflow-y: auto;
}

#food-spices-section .section-inner {
  opacity: 1 !important;
  transform: none !important;
}
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ingredient-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.ingredient-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0rem;
}

.ingredient-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.ingredient-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ——— Section 3 */
#food-spices-section .section-title,
#food-spices-section .about-intro-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Responsive: Horizontal scrolling cards on small screens ——— */

@media (max-width: 768px) {
  #food-spices-section .ingredient-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 1rem;              
    gap: 1rem;                         
  }

  #food-spices-section .ingredient-card {
    flex: 0 0 min(80%, 240px);
  }
 
  #food-spices-section .ingredient-card:last-child {
    margin-right: 0;
  }
}


#food-spices-section .ingredient-grid::-webkit-scrollbar {
  height: 6px;
}

#food-spices-section .ingredient-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
#food-spices-section .ingredient-grid::-webkit-scrollbar-track {
  background: transparent;
}

/* Section wrapper */
.section2-wrapper {
  position: relative;
}


.section2-wrapper .scroll-between {
  position: absolute;
  bottom: 1.5rem;         
  left: 90%;              
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;        
  z-index: 10;            
  color :#c8b975;
}

/* 箭头和文字 */
.section2-wrapper .scroll-arrow {
  font-size: 2rem;
  animation: bounceArrow 2s infinite;
}
.section2-wrapper .scroll-text {
  margin-top: -6px;
  font-size: 0.85rem;
  font-weight: 600;
}


@keyframes bounceArrow {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(8px); }
}

/* ── Back Button ── */
.common-back-button {
 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;       
  color: #7f8c8d;                
  border: none;                  
  border-radius: 0;             
  padding: 0.75rem 1rem;         
  margin-right: 1rem;            
  font-family: inherit;          
  font-size: 1rem;               
  cursor: pointer;
  transition: color 0.2s ease;   
  position: relative;
  top: -4px;  
}


.common-back-button i {
  font-size: 1.5rem;            
  line-height: 1;
  font-weight: 500;
}

/* Hover ： .common-nav-button:hover */
.common-back-button:hover {
  color: var(--primary-yellow); 
}

/* Active / Focus  */
.common-back-button:focus,
.common-back-button:active {
  outline: none;
  color: var(--primary-yellow);
}


#food-hero .scroll-indicator-container {
  transform: translateX(40%);
}
