/* ==========================================================
   HERO: two-column layout with the Maharishi portrait on the right.
   On phones (768px and below) the portrait becomes a full-bleed,
   darkened background behind the hero text.
   Loaded on the home page only, after style.css.
   ========================================================== */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-inner .hero-content {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-inner .hero-ctas {
  justify-content: flex-start;
}

.hero-figure {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 3px solid var(--gold, #c8992a);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}

.hero-figure figcaption {
  margin-top: 0.85rem;
  padding: 0;
  background: none;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold, #c8992a);
}

.hero-figure figcaption span {
  display: block;
  margin-top: 0.15rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

/* Tablet: stack, text first so the H1 stays at the top */
@media (max-width: 992px) {
  /* The hero must grow with its content. A fixed or viewport height with
     vertical centring pushes the badge and heading up under the navbar. */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 6.5rem; /* clears the floating contact dock */
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-inner .hero-content {
    text-align: center;
  }
  .hero-inner .hero-ctas {
    justify-content: center;
  }
  .hero-figure {
    justify-self: center;
    max-width: 280px;
  }
}

/* Phones: portrait becomes the hero background */
@media (max-width: 768px) {
  .hero {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 7rem;
  }

  /* Let the figure position against .hero instead of .hero-inner */
  .hero-inner {
    position: static;
    display: block;
  }

  .hero-inner .hero-content {
    position: relative;
    z-index: 3;
  }

  .hero-figure {
    position: absolute;
    inset: 0;
    z-index: 1;
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
  }

  .hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Dark maroon wash so the text stays readable over the photo */
  .hero-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(38, 14, 6, 0.78) 0%,
      rgba(38, 14, 6, 0.70) 45%,
      rgba(38, 14, 6, 0.90) 100%
    );
  }

  .hero-figure figcaption {
    display: none;
  }

  /* Mandala would clash with the photo */
  .hero-mandala {
    display: none;
  }

  /* Extra lift for text over a busy image */
  .hero-inner .hero-content h1,
  .hero-inner .hero-content p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  }
}

/* Small phones: the floating dock already carries WhatsApp */
@media (max-width: 576px) {
  .hero-inner .hero-ctas .btn-whatsapp {
    display: none;
  }
}

/* ==========================================================
   NEXT EVENT BAR (home only): compact on phones.
   Badge sits above the title, meta runs on one wrapping line,
   and the button moves to the right instead of its own row.
   ========================================================== */
@media (max-width: 576px) {
  .next-event-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 1rem;
  }

  .next-event-bar .neb-left {
    display: block;
    min-width: 0;
  }

  .next-event-bar .neb-badge {
    display: inline-block;
    margin: 0 0 0.35rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .next-event-bar .neb-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
  }

  .next-event-bar .neb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.75rem;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .next-event-bar .neb-item {
    margin: 0;
    white-space: nowrap;
  }

  .next-event-bar > .btn {
    align-self: center;
    margin: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}