/* ── Page-specific vars ── */
:root {
  --jamu-cream: #faf4ed;
  --jamu-orange: #f1a274;
  --jamu-green: #235541;
}

/* ── Hero area ── */
.jamu-hero {
  background: var(--jamu-cream);
  padding: 0 0 4rem;
}

/* ── Breadcrumb (light) ── */
.breadcrumb-jamu {
  padding: 1.5rem 0 2rem;
}

.breadcrumb-jamu .breadcrumb {
  margin: 0;
  font-size: .82rem;
  font-weight: 500;
  color: #aaa;
}

.breadcrumb-jamu .breadcrumb-item a {
  color: #888;
  text-decoration: none;
}

.breadcrumb-jamu .breadcrumb-item a:hover {
  color: var(--green);
}

.breadcrumb-jamu .breadcrumb-item + .breadcrumb-item::before {
  color: #bbb;
  content: "•";
  padding: 0 .5rem;
}

.breadcrumb-jamu .breadcrumb-item.active {
  color: var(--terra);
  font-weight: 600;
}

/* ── Recipe title area ── */
.recipe-subtitle {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .4rem;
}

.recipe-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0;
}

/* ── Hero drink image ── */
.hero-drink-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 480px;
}

.hero-drink-wrap img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(0,0,0,.15));
}

.hero-drink-wrap--has-video {
  cursor: pointer;
}

.hero-drink-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: .7rem 1.15rem .7rem 1rem;
  gap: .55rem;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red, #C83A0C);
  color: #fff;
  box-shadow: 0 10px 28px rgba(200, 58, 12, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-drink-play__icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: 1px;
}

.hero-drink-play__text {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.hero-drink-play:hover,
.hero-drink-wrap--has-video:hover .hero-drink-play {
  background: #a8300a;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 14px 32px rgba(200, 58, 12, 0.42);
}

.hero-drink-play:focus-visible {
  outline: 3px solid #E8C47A;
  outline-offset: 3px;
}

.recipe-video-modal__dialog {
  width: var(--recipe-video-modal-w, fit-content);
  max-width: min(920px, calc(100vw - 1.5rem));
  margin-left: auto;
  margin-right: auto;
}

.recipe-video-modal__content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  color: #fff;
  width: 100%;
}

.recipe-video-modal__content .modal-header {
  background: #111;
}

.recipe-video-modal__content .modal-title {
  color: #fff;
  font-weight: 600;
}

.recipe-video-modal__content .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.85;
}

.recipe-video-modal__player {
  background: #000;
  line-height: 0;
}

.recipe-video-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  background: #000;
}

/* ── Ingredients list ── */
.ing-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}

.ing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ing-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #fff;
  border-radius: 16px;
  padding: .65rem .9rem;
  border: 1px solid var(--divider);
  color: inherit;
  text-decoration: none;
}

a.ing-item {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a.ing-item:hover {
  border-color: rgba(200, 58, 12, .35);
  box-shadow: 0 6px 18px rgba(47, 36, 24, .08);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

a.ing-item:focus-visible {
  outline: 2px solid rgba(200, 58, 12, .55);
  outline-offset: 2px;
}

.ing-item--product {
  align-items: center;
}

.ing-item--product .ing-icon {
  width: 96px;
  height: 48px;
  border-radius: 16px;
  background: transparent;
}

.ing-item--product .ing-icon img {
  padding: 0;
}

.ing-icon {
  width: 96px;
  height: 48px;
  border-radius: 12px;
  background: var(--jamu-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ing-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ing-icon i {
  font-size: 1.4rem;
  color: var(--terra);
}

.ing-meta {
  min-width: 0;
  flex: 1;
}

.ing-line {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra, #c47a4a);
  margin-bottom: .2rem;
  line-height: 1.2;
}

.ing-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--dark);
  line-height: 1.2;
}

.ing-qty {
  font-size: .78rem;
  color: #999;
  margin-top: .1rem;
}

/* ── Info panel (khasiat + cara membuat) ── */
.recipe-detail-excerpt {
  font-size: .95rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.info-label {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: .4rem;
}

.info-text {
  font-size: .85rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.info-text--rich > *:first-child {
  margin-top: 0;
}

.info-text--rich > *:last-child {
  margin-bottom: 0;
}

.info-text--rich h3 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra, #c47a4a);
  margin: 1rem 0 .65rem;
}

.info-text--rich > h3:first-child {
  margin-top: 0;
}

.info-text--rich p {
  margin: 0 0 .75rem;
}

.info-text--rich ul,
.info-text--rich ol {
  margin: 0 0 .75rem;
  padding-left: 1.15rem;
}

.info-text--rich li {
  margin-bottom: .25rem;
}

.info-text--rich a {
  color: var(--red, #C83A0C);
  text-decoration: underline;
}

.info-text--rich img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.method-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  counter-reset: none;
}

.method-step {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.method-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--red, #C83A0C);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: .1rem;
}

.method-step-text {
  font-size: .85rem;
  color: #777;
  line-height: 1.6;
  padding-top: .15rem;
}

.ing-group {
  margin: 0 0 1.15rem;
}

.ing-group:last-child {
  margin-bottom: 0;
}

.ing-group-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra, #c47a4a);
  margin: 0 0 .65rem;
}

.method-group {
  margin: 0 0 1.15rem;
}

.method-group:last-child {
  margin-bottom: 0;
}

.method-group-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra, #c47a4a);
  margin: 0 0 .65rem;
}

.recipe-block .ing-icon {
  width: 48px;
  height: 48px;
}

.recipe-block .ing-item--product {
  border-color: rgba(200, 58, 12, .22);
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
}

.recipe-block .ing-item--product .ing-icon {
  width: 72px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
}

/* ── Split viewport: media flush + scrollable body ── */
.jamu-hero--split {
  --recipe-nav-h: 4.75rem;
  padding: 0;
  background: var(--jamu-cream);
}

.jamu-hero--split .breadcrumb-jamu {
  padding: 1.25rem 0 1rem;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(260px, 34vw) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  height: calc(100vh - var(--recipe-nav-h));
  max-height: calc(100vh - var(--recipe-nav-h));
  overflow: hidden;
}

.recipe-media-col {
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f3ebe3;
}

.recipe-media-panel {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.recipe-media-panel .hero-drink-wrap--full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  align-items: stretch;
  justify-content: stretch;
}

.recipe-media-panel .hero-drink-wrap--full img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

.recipe-media-panel .hero-drink-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: .85rem 1rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

.recipe-body-col {
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  background: var(--jamu-cream);
  -webkit-overflow-scrolling: touch;
}

.recipe-body-inner {
  max-width: 960px;
  width: 100%;
  padding: 0 clamp(1.25rem, 3.5vw, 2.75rem) 3rem;
}

.recipe-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.recipe-block .ing-title,
.recipe-block .info-label {
  margin-bottom: .75rem;
}

.recipe-block .info-text {
  margin-bottom: 0;
}

.recipe-block .method-steps {
  margin-bottom: 0;
}

.recipe-block .method-group .method-steps {
  margin-bottom: 0;
}

.recipe-block .ing-group .ing-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
}

@media (max-width: 991.98px) {
  .recipe-block .ing-group .ing-list {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .recipe-media-col {
    height: min(62vh, 420px);
  }

  .recipe-body-col {
    height: auto;
    overflow: visible;
  }

  .jamu-hero--split .breadcrumb-jamu {
    padding-top: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .recipe-block .ing-group .ing-list {
    grid-template-columns: 1fr;
  }
}

/* ── Product card (Sehat Lelaki side card) ── */
.product-side-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.product-side-header {
  display: flex;
  gap: .85rem;
  align-items: center;
}

.product-side-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--jamu-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.product-side-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.product-side-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: .92rem;
  color: var(--dark);
  line-height: 1.3;
}

.product-side-cat {
  font-size: .72rem;
  font-weight: 600;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.btn-side-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .9rem;
  background: var(--jamu-cream);
  border-radius: 12px;
  border: none;
  text-decoration: none;
  color: var(--dark);
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s;
  cursor: pointer;
}

.btn-side-detail:hover {
  background: #f0e7d8;
  color: var(--dark);
}

.btn-side-detail .arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red, #C83A0C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-side-detail .arrow-circle i,
.btn-side-detail .arrow-circle .am-icon,
.btn-side-detail .arrow-circle svg {
  color: #fff;
  fill: currentColor;
  font-size: .82rem;
  width: .82rem;
  height: .82rem;
}

/* ── Divider section ── */
.jamu-section-divider {
  height: 1px;
  background: var(--divider);
  margin: 3rem 0 2.5rem;
}

/* ── Recipe cards (Jamurista Lainnya) ── */
.recipe-section {
  background: #fff;
  padding: 4rem 0;
}

.recipe-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 2rem;
}

.recipe-section .recipe-section-title.mb-0 {
  margin-bottom: 0;
}

.recipe-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

.recipe-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.recipe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.recipe-card:hover .recipe-card-img img {
  transform: scale(1.06);
}

.recipe-card-img-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.recipe-card-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.recipe-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.recipe-card-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terra);
  margin-bottom: .35rem;
}

.recipe-card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.2;
}

.recipe-card-excerpt {
  font-size: .82rem;
  color: #888;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}

.btn-recipe-go {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red, #C83A0C);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.btn-recipe-go:hover {
  background: #9e2d08;
  color: #fff;
  transform: scale(1.1);
}

.btn-recipe-go i,
.btn-recipe-go .am-icon,
.btn-recipe-go svg {
  color: #fff;
  fill: currentColor;
  font-size: .9rem;
  width: .9rem;
  height: .9rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-drink-wrap:not(.hero-drink-wrap--full) {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .recipe-title {
    font-size: 1.9rem;
  }

  .hero-drink-wrap:not(.hero-drink-wrap--full) {
    height: 260px;
  }
}
