/* Home */
/* =======================================================
   OAB About Section - Homepage
   ======================================================= */
.oab-about-section {
  background-color: var(--color-content-bg); /* Use a warm background */
  padding: 80px 0; /* Generous vertical padding */
  font-family:
    "Vazirmatn", sans-serif; /* Assuming you use Vazirmatn or similar */
  color: var(--color-text-body);
}

.oab-about-container {
  display: flex;
  flex-direction: column; /* Stack on small screens */
  gap: 40px; /* Space between image and text */
  max-width: 1200px;
  margin: 0 auto;
  align-items: center; /* Center items vertically in the container */
}

.oab-about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the container without distortion */
  aspect-ratio: 3 / 2; /* Maintain a nice aspect ratio for the image */
}
@media (min-width: 992px) {
  /* Desktop layout */
  .oab-about-container {
    flex-direction: row; /* Side-by-side on larger screens */
    justify-content: space-between;
    align-items: center; /* Align to top */
  }
  .oab-about-image {
    aspect-ratio: 6 / 8; /* Maintain a nice aspect ratio for the image */
  }
}

/* Image Styling */
.oab-about-image-wrapper {
  flex: 1; /* Allow image to grow/shrink */
  min-width: 300px; /* Minimum width for image */
  max-width: 600px; /* Max width for image on larger screens */
  width: 100%; /* Take full width on small screens */
  position: relative;
  border-radius: 12px; /* Soft rounded corners */
  overflow: hidden; /* Ensure image respects border-radius */
  box-shadow: 0 10px 30px rgba(var(--color-text-heading-rgb), 0.08); /* Subtle shadow */
}

/* Content Styling */
.oab-about-content {
  flex: 1; /* Allow content to grow/shrink */
  max-width: 600px; /* Limit content width for readability */
  padding: 20px;
  text-align: right; /* RTL text alignment */
}

.oab-about-title {
  font-size: 2.8rem; /* Large, prominent title */
  color: var(--color-text-heading);
  margin-bottom: 25px;
  line-height: 1.3;
  font-weight: 700;
}

.oab-about-title .highlight {
  color: var(--color-primary); /* Use your brand primary color */
}

.oab-about-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--color-text-body);
}

.oab-about-features {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-bottom: 32px;
}

.feature-item {
  background-color: var(--color-card-bg); /* Use a subtle card background */
  padding: 25px 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle); /* Subtle border */
  box-shadow: 0 5px 15px rgba(var(--color-text-heading-rgb), 0.03); /* Even more subtle shadow */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(var(--color-text-heading-rgb), 0.06);
}

.feature-title {
  font-size: 1.4rem;
  color: var(--color-text-h2);
  margin-bottom: 10px;
  font-weight: 600;
  position: relative;
  padding-right: 15px; /* Space for the pseudo-element dot */
}

.feature-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-accent); /* Small accent dot */
  border-radius: 50%;
}

.feature-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Learn More Button */
.oab-learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-btn-primary);
  color: var(--color-btn-primary-text);
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.oab-learn-more-btn:hover {
  background-color: var(--color-btn-primary-hover);
  transform: translateY(-2px);
}

.oab-learn-more-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
/* --- Subtle Reveal Animation --- */
.oab-reveal {
  opacity: 0;
  transform: translateY(30px); /* Move down 30px initially */
  transition:
    opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.oab-reveal.is-visible {
  opacity: 1;
  transform: translateY(0); /* Move to natural position */
}

/* Stagger Delays (so items don't appear all at once) */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .oab-about-section {
    padding: 60px 0;
  }
  .oab-about-container {
    gap: 30px;
    padding: 0 20px; /* Add horizontal padding for smaller screens */
  }
  .oab-about-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  .oab-about-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .feature-item {
    padding: 20px 25px;
  }
  .feature-title {
    font-size: 1.25rem;
  }
  .feature-description {
    font-size: 0.95rem;
  }
  .oab-learn-more-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .oab-about-title {
    font-size: 1.8rem;
  }
  .oab-about-intro {
    font-size: 0.95rem;
  }
  .feature-title {
    font-size: 1.1rem;
  }
}

/* --- MARQUEE SECTION --- */
.oab-cat-marquee-section {
  background-color: var(--color-content-bg);
  padding: 60px 0 0 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

/* Header */
.oab-cat-header {
  text-align: center;
  margin-bottom: 45px;
  padding: 0 20px;
}
.oab-cat-header h3 {
  font-weight: 900;
  color: #333;
  margin-bottom: 8px;
}
.oab-cat-header p {
  margin: 0 auto;
  margin-top: 0;
  /* width: fit-content;  <-- GSAP will handle the width */
  border: 2px solid var(--color-content-bg);
  position: relative;
  z-index: 1;
  border-radius: 61px;
  font-size: 14px;
  background: var(--color-accent-subtle);
  transform: rotate(-2deg);
  font-weight: 600;
  color: var(--color-accent);
  padding: 7px 14px;

  /* --- REQUIRED FOR ANIMATION --- */
  overflow: hidden; /* Hides text when it's just a circle */
  white-space: nowrap; /* Prevents text from breaking into 2 lines */
  display: inline-flex; /* Keeps text centered vertically/horizontally */
  justify-content: center;
  align-items: center;
  height: 40px; /* Fixed height ensures it stays a perfect circle at start */
  box-sizing: border-box; /* Includes padding/border in height calculation */
}

/* --- MODERN HEADER LAYOUT --- */
.oab-cat-header-modern {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* Or 'space-between' for wide look */
  gap: 20px;
  margin-bottom: 34px;
  position: relative;
  direction: rtl; /* Ensure RTL layout */
}

/* 1. HUGE TITLE */
.modern-cat-title {
  font-size: clamp(40px, 6vw, 80px); /* Responsive sizing */
  font-weight: 900;
  line-height: 1;
  margin: 0;
  color: #333;
  z-index: 2;
}

/* 2. OUTLINE TEXT (Stylistic choice) */
.modern-cat-title .outline-text {
  color: transparent;
  -webkit-text-stroke: 1px #333; /* Hollow text effect */
  display: inline-block;
}

/* 3. BUBBLE WRAPPER (The Magic Fix for Snapping) */
.modern-bubble-wrapper {
  position: relative;
  height: 50px; /* Fixed height prevents vertical jumping */
  display: flex;
  align-items: center;
}

/* 4. THE BUBBLE ITSELF */
.modern-cat-bubble {
  margin: 0;
  /* Fixed Height = Perfect Circle when width is small */
  height: 44px;
  /* Don't animate padding! Keep it fixed. */
  padding: 0 20px;

  background: var(--color-accent-subtle, #f0f0f0);
  border: 2px solid var(--color-content-bg, #fff);
  border-radius: 100px;

  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Hides text when small */

  /* Decoration */
  transform: rotate(-3deg); /* Jaunty angle */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

  /* Font */
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent, var(--color-accent));
  white-space: nowrap;
}

/* 5. INNER TEXT SPAN (Crucial for smooth animation) */
.bubble-text {
  display: block;
  /* Force the text to always be its full width, even if container is small */
  min-width: max-content;
  opacity: 0; /* Hidden initially */
  transform: translateY(10px); /* Start slightly down */
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .oab-cat-header-modern {
    flex-direction: column;
    gap: 15px;
  }
  .modern-cat-bubble {
    transform: rotate(0deg);
  }
}

/* Swiper Setup */
.oab-cat-marquee-swiper {
  width: 100%;
  padding: 20px 0 40px 0 !important;
}

/* --- THE FIX: Smart Linear Movement --- */
/* 1. Default state: Linear movement for the marquee effect */
.oab-cat-marquee-swiper .swiper-wrapper {
  -webkit-transition-timing-function: linear;
  -o-transition-timing-function: linear;
  transition-timing-function: linear;
}

/* 2. Touch state: When the user grabs it, switch to natural easing */
/* This removes the "robotic" feeling when swiping */
.oab-cat-marquee-swiper .swiper-wrapper:active,
.oab-cat-marquee-swiper:active .swiper-wrapper {
  -webkit-transition-timing-function: ease-out;
  -o-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

/* Slide Width */
.oab-cat-slide {
  width: auto !important; /* Allow content to dictate width */
  margin-left: 24px;
}

/* Link Wrapper (The Bubble) */
.oab-cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  /* Fixed width prevents collapse */
  width: 130px !important;
  cursor: pointer;
}

/* Image Circle */
.oab-cat-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px #f0f0f0,
    0 10px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.oab-cat-img-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background-color: #f9f9f9;
}

/* Title */
.oab-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: #555;
  transition: color 0.3s;
  text-align: center;
}

/* Hover Effects */
.oab-cat-link:hover .oab-cat-img-wrap {
  box-shadow:
    0 0 0 3px var(--cat-theme-color),
    0 15px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}
.oab-cat-link:hover .oab-cat-img-wrap img {
  transform: scale(1.12);
}
.oab-cat-link:hover .oab-cat-title {
  color: var(--cat-theme-color);
}

/* Mobile */
@media (max-width: 768px) {
  .oab-cat-header h3 {
    font-size: 26px;
  }
  .oab-cat-slide {
    margin-left: 30px;
  }
  .oab-cat-img-wrap {
    width: 95px;
    height: 95px;
  }
  .oab-cat-link {
    width: 105px !important;
  }
}

/* Blogs From OABFood Section */

/* Product Cards Section */
:root {
  --milk: #faeade;
  --dark-brown: #523122;
  --light-brown: var(--color-card-bg);
}

/* --- Layout Containers --- */
.shop-items-wrapper {
  padding-top: 108px;
  padding-bottom: 60px;
}

.collection-list-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shop-product-wrapper {
  position: relative;

  /* Define defaults to prevent broken UI if Vars fail */
  --card-bg: #d7c5a3;
  --card-highlight: #f2ece1;
  --card-splash: #faeade;
}

.shop-product-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

/* --- Layer Styles --- */
.shop-product-back {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.shop-product-heading {
  z-index: 4;
  color: var(--milk);
  text-align: center;
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 700;
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
}

.shop-product-image {
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
}

/* NO CSS TRANSITION on .product-image - GSAP handles it */
.product-image {
  height: 78%;
  width: auto;
  margin-top: 60px;
}
.shop-producr-button {
  text-align: center !important;
}
.w-dyn-item {
  border-radius: 16px;
  overflow: hidden;
}
/* INITIAL STATE FOR ELEMENTS CONTROLLED BY GSAP (Hidden/Moved) */
.shop-product-additional {
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Set initial transform using CSS for GSAP's .from() if needed, 
     but we'll let GSAP set it directly in this case for simplicity */
}

.addiitional-image {
  width: 100%;
  max-width: none;
  margin-top: 20px;
}

.shop-product-cta {
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 25px;
  opacity: 0; /* Hidden by default */
}

/* Button styles remain purely CSS */
.shop-producr-button {
  color: var(--dark-brown);
  background-color: var(--light-brown);
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45%;
  height: 48px;
  transition: background-color 0.3s;
  margin: 0 5px;
  cursor: pointer;
  /*&.off-copy {*/
  /*  display: block;*/
  /*  width: 90%;*/
  /*}*/
}

.shop-producr-button:hover {
  background-color: var(--milk);
}

@media screen and (max-width: 767px) {
  .collection-list-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-product-wrapper,
  .shop-product-item,
  .w-dyn-item {
    height: 400px;
  }
}
@media screen and (max-width: 540px) {
  .collection-list-2 {
    grid-template-columns: 1fr;
  }
}
/* Ensure these styles are in your CSS file */

.shop-product-additional {
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  inset: 0;
  /* GSAP handles opacity: 0 and transform: translateY(30px) for hiding */
}

/* Make the SVG fill its parent container */
.addiitional-image {
  width: 100%;
  height: 100%;
  max-width: none;
  /* Depending on the effect, you might need object-fit: cover or fill */
  object-fit: contain;
}
/* --- GLOBAL STYLES (Applies to Desktop & Mobile) --- */
/* --- HORIZONTAL SECTION (RTL FIXED) --- */
/* --- HORIZONTAL SECTION FIXED --- */
.hz-pin-wrapper {
  width: 100%;
  /* max-width: 1480px;  <-- Remove restriction on wrapper so it pins full screen */
  margin: 0 auto;
  height: 100vh; /* Force full viewport height for correct pinning */
  height: 100dvh;
  overflow: hidden;
  position: relative;
  /* max-height: 600px !important; <--- DELETE THIS LINE. It breaks the pin effect. */
  background-color: #f9f9f9;
}

.hz-section {
  position: relative;
  width: 100%;
  height: 100%; /* Fill the wrapper */
  max-width: 1480px;
  margin: 0 auto; /* Center the inner content */
  background-color: transparent; /* Move background color to wrapper */
  display: flex;
  align-items: center;
  direction: rtl;
}

/* Ensure track fits inside nicely */
.hz-track {
  display: flex;
  gap: 5vw;
  padding-right: 5vw;
  padding-left: 5vw;
  width: max-content;
  height: 70%; /* Adjust height to fit comfortably in 100vh */
  align-items: center;
  will-change: transform;
}

.hz-item {
  flex-shrink: 0;
  position: relative;
  height: 100%;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Intro Text */
.intro-block {
  width: 25vw; /* Desktop width */
  z-index: 2;
  max-width: 400px;
  justify-content: center;
  gap: 12px;
  text-align: right;
  margin-bottom: 48px;
}

.hz-heading {
  font-size: 64px;
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
  color: var(--color-text-h2);
}

.hz-heading.highlight {
  color: #b83535; /* brand primary-dark */
  background: #f6d9d8; /* soft warm red-tinted background */
  display: inline-block;
  padding: 4px 10px 0 10px;
}

/* Product Card */
.hz-card {
  width: 320px; /* Desktop width */
  max-width: 500px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hz-image-wrapper {
  width: 100%;
  min-height: 85%;
  height: 85%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hz-img-parallax {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
}

.hz-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: 2.7em;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}

/* --- MOBILE SPECIFIC ADJUSTMENTS --- */
/* We just resize items here, we DO NOT change layout to grid */
@media (max-width: 991px) {
  .intro-block {
    min-width: 70vw; /* Make intro text wider on mobile */
  }

  .hz-heading {
    font-size: 12vw; /* Bigger text */
  }

  .hz-track {
    gap: 10vw; /* Bigger gaps between cards on mobile */
    height: 400px; /* Slightly shorter on mobile */
  }

  .hz-card {
    width: 70vw;
    height: 360px;
  }

  .hz-image-wrapper {
    min-height: 80%;
    height: 80%;
    max-height: 280px;
  }
}
.hz-link-wrapper {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 20px;
  padding-top: 22px !important;
  cursor: pointer;
}

/* Ensure title doesn't look like a standard blue link */
.hz-link-wrapper:hover .hz-title {
  opacity: 1;
}
/* CTA Button Styling */
.hz-cta-btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 12px; /* Space between text and arrow */
  margin-top: 25px; /* Space from the header */
  padding: 12px 35px;
  background-color: var(--color-btn-primary); /* Dark OAB Brown */
  color: #fff;
  text-decoration: none;
  border-radius: 50px; /* Pill shape */
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 5px 15px rgba(82, 49, 34, 0.2);
}

/* Hover Effect */
.hz-cta-btn:hover {
  background-color: var(--color-btn-primary-hover); /* Highlight Color */
  transform: translateY(-3px); /* Slight lift */
  box-shadow: 0 10px 20px rgba(209, 106, 110, 0.3);
  color: #fff;
}

/* Arrow Animation on Hover */
.hz-cta-btn svg {
  transition: transform 0.3s ease;
}

.hz-cta-btn:hover svg {
  transform: translateX(-5px); /* Move arrow slightly left */
}

/* Mobile Adjustment */
@media (max-width: 991px) {
  .hz-cta-btn {
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 1rem;
  }
}

/* --- New Styles for Blurred Card Layout --- */

/* Ensure the card handles absolute positioned children boundaries correctly */
.hz-card.hz-card-blurred-style {
  position: relative;
  /* Ensure nothing spills out, especially the blurred edges */
  overflow: hidden;
  /* Optional: Add rounded corners to the whole card container */
  border-radius: 20px;
}

/* Ensure the link wrapper fills the space and organizes children */
.hz-card-blurred-style .hz-link-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  /* Add padding so title and image don't touch edge */
  padding: 30px 20px;
  box-sizing: border-box;
}

/* 1. Blurred Background Styles */
.hz-blurred-bg-container {
  position: absolute;
  /* We make it slightly larger (-20px) to hide blurred edges getting cut off */
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  z-index: 0; /* Sits behind everything */
  /* The magic blur filter. Adjust pixels for more/less blur */
  /* Brightness is lowered (0.7) to make white text readable */
  transition: filter 0.3s ease-in-out;
  filter: blur(10px) brightness(0.5) grayscale(0.4);
}
.hz-card-blurred-style:hover .hz-blurred-bg-container {
  filter: blur(10px) brightness(0.5) grayscale(0);
}
.hz-blurred-bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. Title Styles */
/* Most title styles are handled by your existing .hz-title CSS,
   but the inline styles in the PHP ensure it sits on top of the blur. */

/* 3. Foreground Image Styles (Small, Rounded, Bottom Center) */
.hz-foreground-image-wrapper.bottom-rounded {
  position: absolute;
  z-index: 2; /* Sits on top of blur */
  /* Centering mechanism */
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  /* Define the small size */
  width: auto;
  aspect-ratio: 1 / 1;
  height: 65%;
  /* Make it a circle */
  border-radius: 50%;
  /* Clean up overflow */
  overflow: hidden;
  /* Optional: Add a border and shadow to make it pop */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  /* Reset inherited styles from your old .hz-image-wrapper if necessary */
  min-height: auto;
  background: none;
}

/* Style the actual image inside the round wrapper */
.hz-img-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* FAQ */
/* Add this to your existing CSS */

/* Base transitions for the text elements inside the toggle */
.faq-toggle-heading,
.faq-toggle-text {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none; /* Let clicks pass through to the parent container */
}
.heading-4.faq {
  font-size: 48px;
}
.heading-1.faq {
  font-size: 32px;
}

/* The Answer (Hidden by default, Absolute to overlap) */
.faq-toggle-text {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  width: 100%;

  /* Absolute allows it to sit "on top" of the space */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%); /* Start slightly down */

  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease 0.1s,
    transform 0.4s ease 0.1s; /* Slight delay on enter */
}
/* The Heading (Visible by default) */
.faq-toggle-heading {
  font-size: 18px;
  line-height: 1.4;
  width: 100%;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
  transform-origin: center;
}
/* 1. Hide Heading */
.faq-toggle.active .faq-toggle-heading {
  opacity: 0;
  transform: translateY(-20px); /* Move up and out */
}

/* 2. Show Text */
.faq-toggle.active .faq-toggle-text {
  opacity: 1;
  transform: translate(-50%, -50%); /* Center perfectly */
}

.faq-secton {
  padding-top: 24px;
  padding-bottom: 60px;
  background-color: var(--color-input-bg);
}

.heading-wrapper {
  justify-content: center;
  align-items: center;
  display: flex;
}

.vanila-section-divheading {
  background: #d73f3f21;
  transform: rotate(-7deg) translateY(-13px);
  border: 2px solid var(--color-content-bg);
  padding: 0 24px;
  font-size: 32px !important;
  border-radius: 9px;
}
.div-block-93 {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  margin-top: 42px;
  display: flex;
  gap: 21px;
}
.faq-toggle {
  z-index: 10;
  cursor: pointer;
  background-color: var(--color-nav-bg);
  color: var(--color-footer-heading);
  border-radius: 28px !important;
  text-align: center;
  /* Flex settings to center content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Sizing */
  min-width: 62vw;
  width: 320px;
  max-width: 90vw;
  padding: 34px; /* Fixed padding */
  box-sizing: border-box; /* Crucial for height calc */

  /* --- ANIMATION SETUP --- */
  height: auto; /* Fallback */
  transition:
    height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.3s ease;
  overflow: hidden;
  position: relative;

  /* Initial Entrance State (Hidden) */
  visibility: hidden;
  opacity: 0;
  transform: translateY(50px);
}

/* Keep this exactly as is for the CLICK animation */
.faq-toggle-heading,
.faq-toggle-text {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease; /* This is fine */
  pointer-events: none;
}
.faq-toggle.contacts {
  color: #523122;
  background-color: #f2d5c0;
  width: auto;
}

.faq-toggle.contacts:hover {
  background-color: #edc8ad;
}

.faq-toggle-heading {
  font-size: 18px;
  line-height: 120%;
}

.faq-toggle-text {
  text-align: center;
  width: calc(100% - 64px);
  font-size: 18px;
  line-height: 120%;
  position: absolute;
}
.oab-organic-divider {
  position: relative;
  width: 100%;
  line-height: 0; /* Removes gap */
  direction: ltr; /* Keeps SVG drawing correct even on RTL site */
  margin-top: -1px; /* Overlap slightly to prevent white lines */
  z-index: 2;
}
.oab-organic-divider.bottom {
  margin-bottom: 60px;
}
.organic-wave {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px; /* Adjust height of the curve here */
}

/* Color Matching: Must match the FAQ Section Background */
.organic-wave .shape-fill {
  fill: var(--color-border-subtle);
}

/* Option 2 Color is defined inline in the SVG (fill="#faeade") */

@media (max-width: 768px) {
  .organic-wave {
    height: 60px; /* Smaller wave on mobile */
  }
  faq-toggle {
    text-align: right;
  }
}

/* --- SECTION WRAPPER --- */
.oab-newsletter-card-section {
  position: relative;
  /* Light background to match Footer/FAQ flow */
  background-color: var(--color-content-bg);
  padding: 80px 0 170px; /* Breathing room */
  overflow: visible;
}

/* --- THE DARK CARD --- */
.newsletter-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.oab-newsletter-card {
  /* DARK Card Background (Brand Dark Brown) */
  background-color: var(--color-text-heading);

  /* Rounded corners & Texture */
  border-radius: 40px;
  padding: 60px;

  /* Subtle organic tilt */
  transform: rotate(-1deg);

  /* Soft shadow to lift it off the light page */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Optional: A very subtle light border to define edges */
  border: 1px solid var(--color-border-muted);
}

/* Grid Layout */
.newsletter-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

/* Typography (Light text on Dark Card) */
.newsletter-big-title {
  font-family: "Antonio", sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-card-bg); /* Beige Text */
  margin-bottom: 20px;
  font-weight: 700;
}

.newsletter-big-title .highlight-text {
  color: var(--color-primary); /* Brand Red Pop */
}

.newsletter-sub {
  font-family: "Proxima Nova", sans-serif;
  font-size: 1.2rem;
  /* Slightly transparent beige for subtitle */
  color: rgba(242, 241, 238, 0.5);
  margin-bottom: 0;
}
@media (max-width: 1024px) {
  .newsletter-sub {
    display: none;
  }
}

/* --- FORM STYLING OVERRIDES --- */

.oab-newsletter-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.oab-newsletter-card input[type="tel"] {
  width: 100%;
  height: 65px;
  /* Light input background to stand out on Dark Card */
  background-color: var(--color-card-bg);
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 0 25px;
  font-size: 1.2rem;
  color: var(--color-text-body); /* Dark text inside input */
  text-align: right;
  transition: all 0.3s;
}

.oab-newsletter-card input[type="tel"]:focus {
  /* Focus border becomes Brand Red */
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(215, 63, 63, 0.2);
}

.oab-newsletter-card input[type="tel"]::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}
.oab-form-description {
  color: rgba(242, 241, 238, 0.8);
}
.newsletter-form-col {
  margin: 0 auto;
}
/* Submit Button */
.oab-newsletter-card button#oab-newsletter-submit {
  width: 100%;
  height: 65px;
  background-color: var(--color-btn-primary); /* Brand Red */
  color: var(--color-btn-primary-text);
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.oab-newsletter-card button#oab-newsletter-submit:hover {
  background-color: var(--color-btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
  .oab-newsletter-card-section {
    padding: 50px 0;
    margin-bottom: 86px;
  }

  .oab-newsletter-card {
    padding: 40px 25px;
    transform: rotate(0deg); /* Straighten on mobile */
  }

  .newsletter-card-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .newsletter-big-title {
    font-size: 3rem;
  }

  .oab-newsletter-card input[type="tel"] {
    text-align: center;
  }
}

/* Success Message - Organic Matcha Green */
.oab-form-message.is-success {
  color: var(
    --color-accent-subtle
  ) !important; /* #d5e5d6 - Pale Organic Green */
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 20px;
  text-align: center;
  border: 1px solid var(--color-accent) !important; /* Optional: Adds a thin border */
  padding: 10px;
  border-radius: 12px;
  background-color: rgba(
    110,
    140,
    101,
    0.1
  ) !important; /* Very subtle tint of the darker green */
}

/* Error Message - Brand Red */
.oab-form-message.is-error {
  border: 1px solid #8c6565 !important;
  padding: 10px;
  border-radius: 12px;
  background-color: rgb(140 101 101 / 10%) !important;
  color: #ff8a80 !important;
}

/* Prepare elements for GSAP */
.oab-newsletter-card {
  will-change: transform, opacity;
  opacity: 0; /* Hidden initially */
  transform: translateY(100px) rotate(5deg); /* Start lower and tilted differently */
}

.newsletter-big-title,
.newsletter-sub,
.newsletter-form-col {
  opacity: 0;
}

/* Ensure the highlight text can transform */
.newsletter-big-title .highlight-text {
  display: inline-block;
}

/* --- LAYOUT VARIABLES --- */
/* --- LAYOUT VARIABLES --- */
:root {
  --v-height: 850px;
  --v-text-color: #fff;
  --v-wave-color: #fdfdfd;
}

.video-slider-title {
  font-size: 42px;
  margin-bottom: 42px;
  width: 100%;
  text-align: center;
  color: var(--color-text-h2);
}
.video-slider-wrapper {
  position: relative;
  height: var(--v-height);
  overflow: hidden;
  direction: ltr;
  display: flex;
  align-items: center;
  background-color: #8fa382;
}

/* 1. Dynamic Background */
.video-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: inherit;
  transition: background-color 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. Watermark */
.video-watermark {
  position: absolute;
  top: 15%;
  left: 5%;
  font-size: 15vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 2%);
  text-align: center;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -5px;
}

/* 3. Container & Grid */
.video-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 10;
  direction: rtl;
  display: grid;
  grid-template-columns: 55% 45%;
  height: 100%;
  align-items: center;
}

/* --- LEFT COLUMN: TEXT --- */
.video-text-col {
  padding-left: 0;
  padding-left: 40px; /* Add padding to left instead */
  direction: rtl;
  text-align: center;
}

.main-headline {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
  opacity: 0.9;
}

.product-info-box {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.v-title {
  font-size: 42px;
  font-weight: 800;
  width: 400px;
  max-width: 100%;
  margin: 0 0 15px 0;
}

.v-desc {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 400px;
  text-align: center;
}

.v-btn {
  background: #fff;
  color: #000;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.v-btn:hover {
  transform: scale(1.05);
}

/* Nav Arrows */
.video-nav {
  display: flex;
  gap: 15px;
}
.nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.nav-arrow:hover {
  background: #fff;
  color: #000;
}

/* --- RIGHT COLUMN: STAGE --- */
.video-stage-col {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  perspective: 1000px;
  direction: ltr;
}

/* Active Hero */
.v-hero-wrapper {
  position: absolute;
  left: 5%;
  width: 550px;
  z-index: 5;
  transform-origin: center center;
}

/* Next Preview */
.v-next-wrapper {
  position: absolute;
  left: -15%;
  width: 350px;
  opacity: 0.6;
  z-index: 1;
  filter: blur(2px);
  transform: scale(0.8);
  transform-origin: center center;
}

/* Future (Off Screen) */
.v-future-wrapper {
  position: absolute;
  left: -45%;
  width: 350px;
  opacity: 0;
  z-index: 0;
  filter: blur(4px);
  transform: scale(0.6);
  transform-origin: center center;
}

.v-img-element {
  width: 100%;
  height: auto;
  display: block;
  /*filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));*/
  /* THE FIX: Force GPU rendering permanently */
  transform: translateZ(0);
  will-change: transform, filter;
  backface-visibility: hidden;
}
.v-future-wrapper {
  /* 1. Tell browser these properties will change, so keep them optimized */
  will-change: transform, filter, opacity;

  /* 2. Force hardware acceleration on the CONTAINER */
  transform: translateZ(0);
  backface-visibility: hidden;

  /* 3. Ensure the browser rendering engine stays consistent */
  transform-style: preserve-3d;
}

.video-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 4;
}

.video-wave-top svg {
  display: block;
  width: 100%;
  height: 150px; /* Adjust height as needed */
}
/* 4. The Wave Floor */
.video-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 4;
}

.video-wave svg {
  width: 100%;
  height: 250px;
}

/* --- RESPONSIVE FIXES (Corrected Animation) --- */
@media (max-width: 992px) {
  .v-img-element,
  .v-hero-wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Forces hardware acceleration */
  }
  .video-slider-wrapper {
    /* Was 750px, increased to 850px to accommodate the extra top spacing */
    height: 750px;
  }

  .video-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0; /* No padding ensures math is perfect */
    max-width: 100%;
    flex-direction: column-reverse; /* Image top, Text bottom */
    /* 1. Clear the wave height (approx 120px) + add extra space (40px) */
    /* padding-top: 160px;  */

    /* 2. Ensure the bottom doesn't get cut off */
    padding-bottom: 160px;
  }
  .product-info-box {
    padding-top: 80px;
    margin-bottom: 0;
  }
  .video-text-col {
    padding: 0 30px;
    text-align: center;
    margin-top: 20px;
    z-index: 20;
    width: 100%;
    order: 2;
  }

  .video-stage-col {
    width: 100%;
    margin-top: 125px;
    height: 310px;
    order: 1;
    position: relative;
    left: 0;
    overflow: visible;
  }

  /* 1. HERO: The Current Image */
  .v-hero-wrapper {
    width: 340px;
    height: auto;
    /* RE-CENTER X: 50% - (half of width) -> 340/2 = 170 */
    left: calc(50% - 170px);
    /* RE-CENTER Y: 50% - (half of width) */
    top: calc(50% - 170px);

    margin: 0;
    z-index: 10; /* Ensure it starts on top */

    /* REMOVED '!important' so GSAP can animate it down */
    transform: none;
  }

  /* 2. NEXT: The Train Car Waiting */
  .v-next-wrapper {
    display: block;
    width: 160px;

    /* PUSHED RIGHT: To avoid overlapping the bigger hero */
    /* Was 140px, now 200px (170px half-width + 30px gap) */
    left: calc(50% - 360px);

    /* Vertically aligned with Hero center */
    /* 50% - 80px (half of 160) */
    top: calc(50% - 80px);

    right: auto;
    margin: 0;
    z-index: 5;
  }

  /* 3. FUTURE: The One After That */
  .v-future-wrapper {
    display: block;
    width: 160px;

    /* PUSHED FURTHER RIGHT */
    /* Was 320px, now 380px */
    left: calc(50% - 540px);
    top: calc(50% - 80px);

    right: auto;
    margin: 0;
    z-index: 1;
  }

  .main-headline {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .v-title {
    font-size: 28px;
    margin: 0 auto 30px auto;
  }
  .v-desc {
    font-size: 16px;
    margin: 0 auto 30px auto;
  }
  .video-watermark {
    top: 10%;
    font-size: 20vw;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Update existing class */
.video-slider-wrapper {
  /* ... your existing styles ... */
  position: relative;
  /* Ensure overflow is hidden so waves don't spill out */
  overflow: hidden;
  /* margin-top: 120px; */
}

/* Update existing class */
.video-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  opacity: 1;
  z-index: 4;
}

/* ADD THIS NEW CLASS */
.video-wave-top {
  position: absolute;
  top: 0; /* Sits at the top */
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 4;
}

/* Control heights for better proportions on desktop */
.video-wave svg,
.video-wave-top svg {
  display: block;
  width: 100%;
  height: auto; /* Allows SVG to scale naturally */
  max-height: 200px; /* Prevents them from taking up too much vertical space */
}

/* Optional: Adjust for mobile if they take up too much screen space */
@media (max-width: 992px) {
  .video-wave svg,
  .video-wave-top svg {
    max-height: 120px;
  }
}

/* Products */
.product-card {
  border-radius: 12px;
  background: var(--color-card-bg);
  padding: 16px;
  color: var(--color-text-body);
  text-align: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* ---------------- PRODUCT SHOWCASE (Swiper Version) ---------------- */

/* 1. Main Section */
#rice-cakes.product-showcase,
#rice-cakes-2.product-showcase {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: var(--color-content-bg);
  overflow: hidden;
}

/* 2. The 1480px Limit Container */
.rice-cakes-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 50px; /* Space on left/right */
  position: relative;
  box-sizing: border-box;
}
#rice-cakes .docked-header-wrapper,
#rice-cakes-2 .docked-header-wrapper {
  margin-bottom: 50px;
}
/* 3. The Header (Background Text) */
#rice-cakes .docked-header-bg,
#rice-cakes-2 .docked-header-bg {
  position: relative;
  text-align: right;
  z-index: 1;
}

#rice-cakes .docked-title,
#rice-cakes-2 .docked-title {
  font-size: 58px;
  font-weight: 900;
  color: #eaeaea; /* Subtle grey */
  margin: 0;
  line-height: 1;
  letter-spacing: -2px;
}

/* 4. Swiper Setup */
#rice-cakes .product-showcase-gallery,
#rice-cakes-2 .product-showcase-gallery {
  width: 100%;
  position: relative;
  overflow: hidden; /* Keeps slides inside the container rounded edges */
}

#rice-cakes .rice-cake-swiper,
#rice-cakes-2 .rice-cake-swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 30px; /* Space for shadow/scrollbar */
}

/* 5. The Slides (Cards) */
#rice-cakes .swiper-slide,
#rice-cakes-2 .swiper-slide {
  /* Fixed Width for the cards */
  width: 320px;
  height: auto;
  /* Spacing is handled by Swiper 'spaceBetween' in JS */
}

#rice-cakes .product-card,
#rice-cakes-2 .product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 24px;
  /* Note: We animate the card itself, not the slide, to avoid Swiper conflicts */
}

/* Image */
#rice-cakes .product-card-image,
#rice-cakes-2 .product-card-image {
  width: 100%;
  /* aspect-ratio: 3/4;  */
  /* Portrait */
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: 15px;
}

#rice-cakes .product-card-image img,
#rice-cakes-2 .product-card-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 6 /7;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Info */
#rice-cakes .product-card-info,
#rice-cakes-2 .product-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  gap: 12px;
}

#rice-cakes .product-name,
#rice-cakes-2 .product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

#rice-cakes-2 .product-name {
  min-height: 58px;
}
#rice-cakes .view-btn,
#rice-cakes-2 .view-btn {
  font-size: 0.85rem;
  color: #888;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

/* --- THE VIEW ALL BUTTON --- */
.view-all-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;

  /* Elegant Border Style */
  border: 1px solid #e0e0e0;
  border-radius: 100px;

  /* Text Styles */
  font-size: 16px;
  font-weight: 700;
  color: #555;
  text-decoration: none;

  /* Animation Properties */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.view-all-pill .pill-icon {
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* HOVER EFFECTS */
.view-all-pill:hover {
  border-color: #333;
  background-color: #333;
  color: #fff;
  transform: translateY(-2px); /* Subtle lift */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.view-all-pill:hover .pill-icon {
  /* Move arrow to the left (RTL) */
  transform: translateX(-5px);
}

/* --- MOBILE TWEAKS --- */
@media screen and (max-width: 768px) {
  .rice-cakes-header {
    flex-direction: column;
    align-items: flex-start; /* Stack them */
    gap: 20px;
  }

  /* Move the button to the right on mobile to align with reading direction? 
       Or keep left. Let's keep it clean. */
  .view-all-pill {
    padding: 10px 24px;
    font-size: 14px;
    align-self: flex-end; /* Push to left side (end of flex container in RTL) */
  }
}
/* --- TITLE: Pale-to-Color Swipe (Right to Left) --- */
#rice-cakes .docked-title,
#rice-cakes-2 .docked-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin: 0;

  /* 1. Hide the actual text color */
  color: transparent;

  /* 2. Create the "Swipe" Gradient 
       - Direction: 'to left'
       - First 50%: The Active Color (Dark) - enters from right
       - Last 50%: The Pale Color (Light) - visible initially
    */
  background-image: linear-gradient(
    to left,
    var(--color-text-h5) 50%,
    #e0e0e0 50%
  );

  /* 3. Make background huge (200% width) */
  background-size: 200% 100%;

  /* 4. Initial Position: 0% 
       (This shows the Left side of the gradient, which is the PALE color) */
  background-position: 0% 0;

  /* 5. Clip background to text shape */
  -webkit-background-clip: text;
  background-clip: text;

  display: inline-block;
  will-change: background-position;
}

/* Mobile Tweak */
@media screen and (max-width: 768px) {
  #rice-cakes .docked-title,
  #rice-cakes-2 .docked-title {
    font-size: 40px;
  }
}

/* 6. Hover Effects */
#rice-cakes .product-card:hover .product-card-image img,
#rice-cakes-2 .product-card:hover .product-card-image img {
  transform: scale(1.08); /* Gentle zoom */
}
#rice-cakes .product-card:hover .view-btn,
#rice-cakes-2 .product-card:hover .view-btn {
  background: var(--color-btn-primary);
  color: #fff;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .rice-cakes-container {
    padding: 0 20px;
  }
  #rice-cakes .docked-title,
  #rice-cakes-2 .docked-title {
    font-size: 40px;
  }
  #rice-cakes .swiper-slide,
  #rice-cakes-2 .swiper-slide {
    width: 68vw; /* Smaller cards */
  }
}

/* ---
Highlights Gallery Styles (Updated)
--- */

/* Base Section Styling */

.viewport-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header-headline {
  font-size: 56px;
  font-weight: 600;
  color: var(--color-text-heading, #2e2a27);
  margin-bottom: 40px;
}
/* --- 1. PARENT SECTION (Layout Anchor) --- */
/* --- 1. PARENT SECTION (Grid Lock) --- */
.section-highlights {
  position: relative;
  width: 100%;
  margin-top: 100px;

  /* LOCK HEIGHT: Ensure the section doesn't collapse */
  height: auto;
  max-height: 450px;
  /* min-height: 400px; */

  /* THE FIX: Use Grid to force absolute centering */
  display: grid;
  place-items: center;

  /* Force LTR to stabilize the layout engine */
  direction: ltr !important;
  overflow: hidden;
}

.section-highlights .swiper {
  aspect-ratio: 1.85;
  height: auto;
  max-height: 450px;
}
/* --- 2. THE GALLERY (The Mask) --- */
#media-card-gallery {
  /* Occupy the full grid cell immediately */
  width: 95%;
  max-width: 1480px;
  height: 100%;

  /* VISIBILITY: Visible immediately */
  opacity: 0;
  visibility: visible;

  /* Performance optimization */
  will-change: clip-path;

  /* IMPORTANT: Reset margins/transforms so it can't move */
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
}

/* --- 3. THE INNER CONTENT --- */
.highlights-swiper,
.highlights-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
  /* Keep internal direction LTR for the slider logic */
  direction: ltr !important;
}

/* Re-apply RTL for text reading inside the slides */
#highlights .caption-container {
  direction: rtl !important;
  text-align: right !important;
}
#highlights .swiper-wrapper {
  align-items: stretch;
}

#highlights .swiper-slide {
  width: 88vw; /* Shows partial slides */
  max-width: 1040px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  /* No opacity or scale changes for a seamless glide */

  transform: translateZ(0);
  backface-visibility: hidden;
}
#highlights .swiper-slide:has(.ripple-btn) {
  align-self: center !important;
}

#highlights .swiper-slide .card {
  background: var(--color-card-bg);
  border-radius: 24px;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#highlights .swiper-slide.clickable-slide {
  cursor: pointer;
}

/* Optional: Make the card scale slightly on hover for feedback */
#highlights .swiper-slide.clickable-slide:hover .card {
  filter: brightness(1.02); /* Subtle highlight */
  transition: filter 0.3s ease;
}
/* Gradient Overlay for text readability */
#highlights .swiper-slide .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2; /* Sits ON TOP of media */
  pointer-events: none;
}

/* Caption (Right-Aligned) */
#highlights .caption-container {
  direction: rtl; /* Keep RTL for Farsi text rendering */
  text-align: right;
  position: absolute;
  /* Remove fixed top/right, we will set these via PHP */
  width: auto !important; /* Allow it to shrink to fit content */
  max-width: 90%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  /* Default fallbacks */
  top: 40px;
  right: 40px;
}

#highlights .caption-title {
  font-size: 32px;
  font-weight: 600;
  max-width: 500px;
  line-height: 1.2;
  color: #fff;
  margin-left: 0;
  margin-right: 0;

  /* GSAP Default State: Hidden */
  opacity: 0;
  transform: translateY(20px);
}
#highlights .caption {
  font-size: 24px;
  color: #eae8e8;
  padding-top: 13px;
  font-weight: 500;
  margin: 0 !important;
  opacity: 0;
  transform: translateY(20px);
  text-align: right !important;
  width: 80% !important;
  line-height: 1.2;
}
#highlights .caption-link {
  font-weight: 400;
  text-decoration: none;
  margin-top: 12px;
  display: inline-block;
  margin-left: 0;
  margin-right: 0;

  /* GSAP Default State: Hidden */
  opacity: 0;
  transform: translateY(20px);

  background: var(--color-badge-accent);
  border-radius: 20px;
  padding: 6px 18px;
  color: white;
  font-size: 19px;
  margin-top: 16px;
}
#highlights .caption-link:hover {
  text-decoration: none;
}

/* Media (Image) Container */
.media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Image fills the entire card */
  z-index: 1; /* Sits at the BOTTOM */
}

.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* "Bubble" Controls Container */
.all-access-pass__container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;

  /* Make bubble sticky to the bottom of the section */
  /* position: sticky;
  bottom: 24px; */
  z-index: 10;
  position: sticky;
  bottom: 18px;

  /* ADD THIS: Initial state for GSAP */
  opacity: 0;
  transform: translateY(30px);
}

.media-card-controls {
  display: flex;
  align-items: center;
  gap: 8px; /* Gap between dot container and button */
  background-color: #e9e5e182;
  border: 1px solid #e5e2de8a;
  border-radius: 50px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  padding: 0px;
  margin-top: 14px;
}

.dotnav-wrapper {
  display: flex;
  padding: 0 12px;
}

.dotnav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
  align-items: center;
  direction: ltr !important;
}

.dotnav-item {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    width 0.8s cubic-bezier(0.2, 0, 0, 1),
    background-color 0.8s ease;
}

.dotnav-item.swiper-pagination-bullet-active {
  width: 40px;
  background-color: #fff;
}

/* Progress Bar (The "timeline") */
.dotnav-item .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--color-border-muted);
  border-radius: 4px;
}

/* Play/Pause Button */
.play-pause-button-wrapper {
  flex-shrink: 0;
  padding: 3px;
}

.play-pause-button {
  background: #fdfdfd91 !important;
  border: none;
  border-radius: 30px;
  width: 42px;
  height: 34px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}
.play-pause-button:hover {
  background-color: var(--color-content-bg);
}

.play-pause-button svg {
  width: 32px;
  height: 32px;
  fill: #6b6158bf;
}

.play-pause-button .pause-icon {
  display: none;
}

/* This class now correctly toggles */
#slider-dotnav-wrapper.is-playing .play-pause-button .pause-icon {
  display: block;
}
#slider-dotnav-wrapper.is-playing .play-pause-button .play-icon {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {

  .section-header-headline {
    font-size: 40px;
  }
  /* Override dynamic inline styles on mobile to ensure readability */
  .caption-container[style] {
    top: auto !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    transform: none !important;
    text-align: center !important;
    align-items: center !important;
    width: auto !important;
  }
  .highlights-swiper {
    height: auto;
    max-height: 400px;
  }
  #highlights .swiper-slide {
    width: 80% !important;
  }
  .caption {
    font-size: 16px;
    max-width: 80%;
  }
  .caption-title {
    font-size: 20px;
    max-width: 80%;
  }
  .caption-link {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .caption-title {
    font-size: 1rem;
    max-width: 100%;
  }
  .caption {
    font-size: 0.9rem;
    max-width: 100%;
  }
  .caption-link,
  .btn-text {
    font-size: 12px !important;
  }
}

/* =========================================================
   1. MAIN CONTAINER & BACKGROUND REVEAL SETUP
   ========================================================= */

.filters-and-about-showcase {
  /* Set container background to a color distinct from the reveal color */
  background-color: #e5e2dea9;
  max-width: 100%;
  margin-top: 120px;
  margin-bottom: 120px;
  overflow: hidden;
  position: relative;
  border-radius: 48px;

  min-height: 80vh; /* Ensure enough scroll height for the reveal to feel dramatic */
}

/* The element that slides up and reveals the content */
.sliding-background-reveal {
  position: absolute;
  top: 100%; /* Start off-screen (below the section) */
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  /* This is the final background color of your section */
  background-color: var(--color-content-bg);
  z-index: 1; /* Place it below the content */
}

/* The element that contains all the content (Title, Desc, List) */
.content-reveal-wrapper {
  position: relative;
  z-index: 2; /* Ensure content is on top of the sliding background */
  padding: 120px 0; /* Add back the padding here */
}

.section-highlights {
    margin-top: 40px;
}
@media (min-width: 768px) {
    .section-highlights{
        margin-top:120px
    }
}

/* =========================
   4. Hero / Highlights Gallery
   ========================= */
.section-highlights {
  position: relative;
  width: 100%;
  
  height: auto;
  max-height: 450px;
  display: grid;
  place-items: center;
  direction: ltr !important;
  overflow: hidden;
}

.section-highlights .swiper {
  aspect-ratio: 1.85;
  height: auto;
  max-height: 450px;
}

#media-card-gallery {
  width: 95%;
  max-width: 1480px;
  height: 100%;
  opacity: 0;
  visibility: visible;
  will-change: clip-path;
  margin: 0 !important;
  padding: 0 !important;
}

.highlights-swiper {
  width: 100%;
  height: 100%;
  direction: ltr !important;
  aspect-ratio: 1903 / 700;
}

#highlights .swiper-slide {
  width: 88vw;
  max-width: 1040px;
  /*height: 100%;*/
  height: auto;
  aspect-ratio: 1920 / 700;
  display: flex;
  justify-content: center;
  align-items: start;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#highlights .swiper-slide:has(.ripple-btn) {
  align-self: center !important;
}

#highlights .swiper-slide .card {
  background: var(--color-card-bg);
  border-radius: 24px;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

#highlights .swiper-slide.clickable-slide {
  cursor: pointer;
}

#highlights .swiper-slide.clickable-slide:hover .card {
  filter: brightness(1.02);
  transition: filter 0.3s ease;
}

#highlights .swiper-slide .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Captions */
.caption-container {
  direction: rtl !important;
  text-align: right !important;
  position: absolute;
  width: auto !important;
  max-width: 90%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  top: 40px;
  right: 40px;
}

.caption-title {
  font-size: 32px;
  font-weight: 600;
  max-width: 500px;
  line-height: 1.2;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
}

.caption {
  font-size: 24px;
  color: #eae8e8;
  padding-top: 13px;
  font-weight: 500;
  margin: 0 !important;
  opacity: 0;
  transform: translateY(20px);
  text-align: right !important;
  width: 80% !important;
  line-height: 1.2;
}

.caption-link {
  font-weight: 400;
  text-decoration: none;
  margin-top: 16px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  background: var(--color-badge-accent);
  border-radius: 20px;
  padding: 6px 18px;
  color: white;
  font-size: 19px;
}

.media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* Slider Controls (Dotnav & Play/Pause) */
.all-access-pass__container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  z-index: 10;
  position: sticky;
  bottom: 18px;
  opacity: 0;
  transform: translateY(30px);
}

.media-card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #e9e5e1c7;
  border: 1px solid var(--color-border, #e5e2de);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  width: fit-content;
  margin: 0 auto;
  padding: 0px;
  margin-top: 14px;
}

.dotnav-wrapper {
  display: flex;
  padding: 0 12px;
}

.dotnav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
  align-items: center;
  direction: ltr !important;
}

.dotnav-item {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    width 0.8s cubic-bezier(0.2, 0, 0, 1),
    background-color 0.8s ease;
}

.dotnav-item.swiper-pagination-bullet-active {
  width: 40px;
  background-color: #fff;
}

.dotnav-item .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--color-border-muted);
  border-radius: 4px;
}

.play-pause-button-wrapper {
  flex-shrink: 0;
  padding: 3px;
}

.play-pause-button {
  background: #fdfdfd91 !important;
  border: none;
  border-radius: 30px;
  width: 42px;
  height: 34px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.play-pause-button:hover {
  background-color: var(--color-content-bg);
}

.play-pause-button svg {
  width: 32px;
  height: 32px;
  fill: #6b6158bf;
}

.play-pause-button .pause-icon {
  display: none;
}
#slider-dotnav-wrapper.is-playing .play-pause-button .pause-icon {
  display: block;
}
#slider-dotnav-wrapper.is-playing .play-pause-button .play-icon {
  display: none;
}

/* Hero Responsive */
@media (max-width: 768px) {
  .caption-container[style] {
    top: auto !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    transform: none !important;
    text-align: center !important;
    align-items: center !important;
    width: auto !important;
  }
  .highlights-swiper {
    height: auto;
    max-height: 400px;
  }
  #highlights .swiper-slide {
    width: 95% !important;
  }
  .caption {
    font-size: 16px;
    max-width: 80%;
  }
  .caption-title {
    font-size: 20px;
    max-width: 80%;
  }
  .caption-link {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .caption-title {
    font-size: 1rem;
    max-width: 100%;
  }
  .caption {
    font-size: 0.9rem;
    max-width: 100%;
  }
  .caption-link,
  .btn-text {
    font-size: 12px !important;
  }
}

/* =========================
   5. Product Showcase (Rice Cakes / Bestsellers)
   ========================= */
#rice-cakes.product-showcase,
#rice-cakes-2.product-showcase {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: var(--color-content-bg);
  overflow: hidden;
}

/* Container already defined in Helpers */

#rice-cakes .docked-header-wrapper,
#rice-cakes-2 .docked-header-wrapper {
  margin-bottom: 50px;
}

#rice-cakes .docked-header-bg,
#rice-cakes-2 .docked-header-bg {
  position: relative;
  text-align: right;
  z-index: 1;
}

/* Title with Gradient Swipe */
#rice-cakes .docked-title,
#rice-cakes-2 .docked-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin: 0;
  color: transparent;
  background-image: linear-gradient(
    to left,
    var(--color-text-h5) 50%,
    #e0e0e0 50%
  );
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  will-change: background-position;
}

#rice-cakes .product-showcase-gallery,
#rice-cakes-2 .product-showcase-gallery {
  width: 100%;
  position: relative;
  overflow: hidden;
}

#rice-cakes .rice-cake-swiper,
#rice-cakes-2 .rice-cake-swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 30px;
}

#rice-cakes .swiper-slide,
#rice-cakes-2 .swiper-slide {
  width: 320px;
  height: auto;
}

#rice-cakes .product-card,
#rice-cakes-2 .product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 24px;
  background: var(--color-card-bg);
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

#rice-cakes .product-card-image,
#rice-cakes-2 .product-card-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: 15px;
}

#rice-cakes .product-card-image img,
#rice-cakes-2 .product-card-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#rice-cakes .product-card-info,
#rice-cakes-2 .product-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  gap: 12px;
}

#rice-cakes .product-name,
#rice-cakes-2 .product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

#rice-cakes .view-btn,
#rice-cakes-2 .view-btn {
  font-size: 0.85rem;
  color: #888;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

/* Hover Effects */
#rice-cakes .product-card:hover .product-card-image img,
#rice-cakes-2 .product-card:hover .product-card-image img {
  transform: scale(1.08);
}
#rice-cakes .product-card:hover .view-btn,
#rice-cakes-2 .product-card:hover .view-btn {
  background: var(--color-btn-primary);
  color: #fff;
}

/* View All Pill Button */
.view-all-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.view-all-pill .pill-icon {
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-all-pill:hover {
  border-color: #333;
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.view-all-pill:hover .pill-icon {
  transform: translateX(-5px); /* RTL */
}

/* Mobile Adjustments for Products */
@media screen and (max-width: 768px) {
  .rice-cakes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .view-all-pill {
    padding: 10px 24px;
    font-size: 14px;
    align-self: flex-end;
  }
  #rice-cakes .docked-title,
  #rice-cakes-2 .docked-title {
    font-size: 40px;
  }
  #rice-cakes .swiper-slide,
  #rice-cakes-2 .swiper-slide {
    width: 68vw;
  }
  .rice-cakes-container {
    padding: 0 20px;
  }
}

/* 1. The Main Gallery Container */
#media-card-gallery {
  width: 100%;

  margin: 0 auto;
  overflow: hidden;
}

/* 2. The Swiper Container - Define the Ratio */
.highlights-swiper {
  width: 100%;
  /* This calculation (Height / Width * 100) ensures the box is always the right shape */
  aspect-ratio: 1903 / 700;
}

/* 3. The Slide and Image */
.highlights-swiper .swiper-slide {
  width: 100%;
  height: auto; /* Let the aspect ratio control height */
}

.media-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.media-container img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  /* 'contain' ensures the whole image is visible. 
       'cover' fills the area (use 'cover' if you want no borders). */
  object-fit: cover;
  object-position: center;
}

/* 4. Mobile Adjustment */
@media (max-width: 768px) {
  .highlights-swiper {
    /* On mobile, 1903x700 might look too thin. 
           You can keep the ratio or let it get taller: */
    aspect-ratio: auto;
    height: 350px;
  }
}

/* --- High Performance CSS Animations --- */

/* 1. Base State (Hidden) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform; /* Hardware Acceleration */
}

/* 2. Active State (Visible) */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Stagger Delays (Optional) */
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* --- BENTO GRID LAYOUT --- */
.oab-bento-section {
  padding: 100px 0;
  background-color: var(--color-content-bg);
}

.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 50px;
  padding: 0 20px;
}

.bento-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-text-h2);
  line-height: 1;
}

.bento-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Decorate the highlight with a subtle underline */
.bento-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(215, 63, 63, 0.15); /* Brand red, transparent */
  z-index: -1;
  border-radius: 4px;
}

.bento-view-all {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;

  gap: 8px;
  transition: color 0.3s ease;
}
.bento-view-all:hover {
  color: var(--color-primary);
}

.bento-view-all svg {
  transform: rotate(180deg);
}
/* --- THE GRID --- */
.oab-bento-grid {
  display: grid;
  /* Define a 4-column grid for desktop */
  grid-template-columns: repeat(4, 1fr);
  /* Auto rows with a minimum height */
  grid-auto-rows: 280px;
  gap: 24px;
  padding: 0 20px;
}

/* --- BENTO ITEMS (The Cells) --- */
.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: #fff;
  /* Required for the "Pop" animation */
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0; /* Hidden initially for JS */
}

/* --- MOSAIC LOGIC (Desktop) --- */
/* Item 1: Big Feature (Top Right in RTL) */
.bento-item.item-1 {
  grid-column: span 2;
  grid-row: span 2;
}

/* Item 2: Tall Feature */
.bento-item.item-2 {
  grid-column: span 1;
  grid-row: span 2;
}

/* Item 6: Wide Feature (Bottom) */
.bento-item.item-6 {
  grid-column: span 2;
}

/* All others are standard 1x1 squares */

/* --- CARD STYLING --- */
.bento-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: #fff;
}

.bento-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bento-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Zoom */
.bento-link:hover .bento-img-wrapper img {
  transform: scale(1.1);
}

/* Gradient Overlay */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  transition: opacity 0.3s ease;
}

.bento-link:hover .bento-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* Content positioning */
.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-date {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  width: fit-content;
  padding: 4px 10px;
  border-radius: 20px;
}

.bento-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--color-input-bg);
}

.bento-item.item-1 .bento-post-title {
  font-size: 2rem; /* Larger title for featured post */
}

/* Pop-out Arrow Icon */
.bento-arrow-icon {
  position: absolute;
  top: 24px;
  left: 24px; /* RTL flip: Left side */
  width: 40px;
  height: 40px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-badge-text);
  background: var(--color-badge-bg);
  opacity: 0;
  transform: scale(0.5) rotate(45deg);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bento-link:hover .bento-arrow-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* --- RESPONSIVE FIX (Cleaned) --- */
@media (max-width: 1024px) {
  .oab-bento-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on tablet */
    grid-auto-rows: 300px;
  }

  /* Reset spans for tablet */
  .bento-item.item-1,
  .bento-item.item-2,
  .bento-item.item-6 {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Keep Item 1 big */
  .bento-item.item-1 {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .oab-bento-grid {
    grid-template-columns: 1fr; /* 1 Column on mobile */
    grid-auto-rows: 250px;
    gap: 16px;
  }
  .bento-item.item-1 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-title {
    font-size: 32px;
  }
  .bento-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/*Preloader*/
/* FORCE LOCK SCROLL */
html.preloader-active,
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100%;
  position: fixed; /* Freezes the page in place */
  left: 0;
  top: 0;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
/* 1. Preloader Styles */
/* Ensure Preloader is on top */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background-color: #f9f7f4; /* Start white */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Let clicks pass through once fading starts */
}

/* Helper to hide it completely after animation */
#preloader.is-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

#preloader-logo-wrapper {
  width: 150px;
  will-change: transform;
}

#preloader-logo-wrapper svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 2. Initial state for intro animation */
#preloader-svg-o,
#preloader-svg-a,
#preloader-svg-b,
#preloader-svg-shape {
  opacity: 0;
  transform: translateY(15px);
  will-change: transform, opacity;
}

/* 3. HIDE ONLY THE *REAL* NAVBAR LOGO <a> TAG */
#site-nav-list .site-logo {
  opacity: 0;
}

/* 4. Helper class to hide the preloader */
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Add this new rule to your CSS file */
#site-nav-list .site-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
