/* Yukti Herbs "Our Expertise" section — scoped under .yhe- prefix.
   No Tailwind, no Swiper dependency. */

.yhe-section {
  padding: 3rem 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  box-sizing: border-box;
}

/* ---- Desktop header + first 2 cards row ---- */
.yhe-desktop-top { display: none; }
@media (min-width: 768px) {
  .yhe-desktop-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    align-items: center;
    max-width: 72rem;
    margin: 0 auto;
  }
}
.yhe-title-wrap { text-align: left; display: flex; flex-direction: column; justify-content: center; }
.yhe-script { color: #d4af37; font-size: 1.5rem; font-family: "Freestyle Script", cursive; margin: 0; }
@media (min-width: 768px) { .yhe-script { font-size: 1.875rem; } }
.yhe-heading { color: #fff; font-weight: 600; font-family: "Poppins", sans-serif; font-size: 2.25rem; margin: 0; }
@media (min-width: 768px) { .yhe-heading { font-size: 4.5rem; } }
.yhe-heading--mobile { font-size: 2.25rem; }

.yhe-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Card (shared by all 3 layouts) ---- */
.yhe-card {
  width: 250px;
  height: 250px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.yhe-card:hover { background-color: #fff; color: #152e50; }
.yhe-card--mobile { width: 100%; max-width: 280px; }

.yhe-icon-default,
.yhe-icon-hover { width: 64px; height: 64px; transition: all 0.3s ease; }
.yhe-icon-hover { display: none; }
.yhe-card:hover .yhe-icon-default { display: none; }
.yhe-card:hover .yhe-icon-hover { display: block; }

.yhe-card-title { font-size: 1.125rem; font-weight: 600; margin: 0.5rem 0 0; text-align: center; }
.yhe-card-title--mobile { font-size: 1.25rem; margin-top: 0.75rem; }
.yhe-card-desc { font-size: 0.875rem; text-align: center; margin: 0.25rem 0 0; }
.yhe-card-desc--mobile { margin-top: 0.5rem; }

/* ---- Mobile header ---- */
.yhe-mobile-top { display: flex; flex-direction: column; justify-content: center; margin-top: 1.5rem; }
@media (min-width: 768px) { .yhe-mobile-top { display: none; } }

/* ---- Mobile carousel (native scroll-snap, no library) ---- */
.yhe-carousel { margin-top: 1.5rem; overflow: hidden; padding: 0 1rem; }
@media (min-width: 768px) { .yhe-carousel { display: none; } }
.yhe-carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yhe-carousel-track::-webkit-scrollbar { display: none; }
.yhe-carousel-slide { flex: 0 0 83%; scroll-snap-align: start; display: flex; justify-content: center; }
.yhe-carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.75rem; }
.yhe-dot { width: 7px; height: 7px; border-radius: 9999px; background: rgba(255,255,255,0.4); border: none; padding: 0; cursor: pointer; }
.yhe-dot[aria-current="true"] { background: #d4af37; }

/* ---- Desktop grid for remaining cards ---- */
.yhe-grid-4 { display: none; }
@media (min-width: 768px) {
  .yhe-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    place-content: center;
  }
}
@media (min-width: 1024px) {
  .yhe-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
