/* Somnath.org logo palette — navy + gold + cream only */

:root {
  --sp-cream: #faf7f0;
  --sp-cream-deep: #f0ebe0;
  --sp-blue: #1e487e;
  --sp-blue-mid: #163a66;
  --sp-blue-deep: #122f54;
  --sp-gold: #c9a227;
  --sp-gold-bright: #d4af37;
  --sp-gold-soft: #fff1b2;
  --sp-text: #1e487e;
  --sp-muted: #4a5f78;
  --sp-white: #ffffff;
  --sp-border: #d9cdb8;
  --sp-accent: var(--sp-blue);
  --sp-accent-hover: var(--sp-blue-deep);
  --sp-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sp-sans: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --sp-price-font: 'DM Sans', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
  --sp-radius: 12px;
  --sp-shadow: 0 6px 20px rgba(30, 72, 126, 0.1);
  --sp-shadow-hover: 0 10px 28px rgba(30, 72, 126, 0.16);
  /* Fallback ≈ blue subheader bottom (logo overhang not included) */
  --sp-nav-offset: 6.5rem;
  --sp-banner-ratio: 1838 / 437;
}

.special-pooja-page {
  width: 100%;
  max-width: 100%;
  background: var(--sp-cream);
  font-family: var(--sp-sans);
  color: var(--sp-text);
  overflow-x: clip;
  /* Banner starts at blue bar bottom — logo can sit on image, no white gap */
  padding-top: var(--sp-nav-offset);
}

.special-pooja-page *,
.special-pooja-page *::before,
.special-pooja-page *::after {
  box-sizing: border-box;
}

/* Icons must not inherit Cinzel/Lora (fixes missing calendar etc.) */
.special-pooja-page i[class*='fa-'] {
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', 'FontAwesome';
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

/* =========================================================
   HERO — image keeps natural aspect ratio (no crop)
   Text overlays with % so it scales with the image
   ========================================================= */
.special-pooja-banner {
  width: 100%;
  max-width: 100%;
  background: var(--sp-cream);
  padding: 0;
  overflow: visible;
}

.banner-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
  /* Locks layout to the real banner art ratio — no forced crop */
  aspect-ratio: var(--sp-banner-ratio);
  background: var(--sp-cream);
}

.banner-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
}

.banner-image-desktop {
  display: block;
}

.banner-image-mobile {
  display: none;
}

.banner-content {
  position: absolute;
  left: 14%;
  top: 46%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(40%, 28rem);
  max-width: 40%;
  line-height: normal;
  text-align: left;
  pointer-events: none;
  background: transparent;
  padding: 0;
}

.banner-mantra {
  margin: 0 0 clamp(0.2rem, 0.6vw, 0.45rem);
  font-family: var(--sp-serif);
  font-size: clamp(0.5rem, 0.95vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-gold);
}

.banner-title {
  margin: 0;
  font-family: 'Playfair Display', var(--sp-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 3.25rem);
  line-height: 1.1;
  color: var(--sp-blue);
  letter-spacing: 0.01em;
}

.banner-divider {
  position: relative;
  width: clamp(2rem, 8vw, 6.5rem);
  height: 1px;
  margin: clamp(0.25rem, 1vw, 0.75rem) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sp-gold) 15%,
    var(--sp-gold-bright) 50%,
    var(--sp-gold) 85%,
    transparent 100%
  );
}

.banner-divider::before,
.banner-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--sp-gold-bright);
}

.banner-divider::before {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 1.5px var(--sp-cream);
}

.banner-divider::after {
  width: 3.5px;
  height: 3.5px;
  background: var(--sp-cream);
  border: 1px solid var(--sp-gold);
}

.banner-subtitle {
  margin: 0 0 clamp(0.25rem, 0.8vw, 0.65rem);
  font-family: 'Playfair Display', var(--sp-serif);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.45vw, 1.35rem);
  line-height: 1.3;
  color: var(--sp-gold);
}

.banner-description {
  margin: 0;
  font-family: var(--sp-sans);
  font-weight: 400;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  line-height: 1.45;
  color: var(--sp-muted);
  max-width: 100%;
}

/* =========================================================
   SECTION — 3-col grid, compact cards (reference proportions)
   ========================================================= */
.pooja-list-section {
  width: 100%;
  background: var(--sp-cream);
 
}

.pooja-list-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2.75rem);
}

.pooja-list-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pooja-list-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 0.4rem;
  font-family: var(--sp-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  color: var(--sp-blue);
  line-height: 1.2;
}

.pooja-list-divider {
  display: block;
  width: clamp(2.5rem, 12vw, 6rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sp-gold), var(--sp-gold-bright), var(--sp-gold), transparent);
  position: relative;
  flex-shrink: 0;
}

.pooja-list-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--sp-gold-bright);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 1px var(--sp-cream);
}

.pooja-list-subtitle {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--sp-muted);
  text-align: center;
}

.pooja-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
  width: 100%;
  align-items: stretch;
}

/* =========================================================
   CARD — full screen width, short height (auto from ratio)
   ========================================================= */
.pooja-card {
  display: flex;
  flex-direction: column;
  background: var(--sp-white);
  border-radius: 14px;
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow);
  overflow: visible;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pooja-card:hover {
  box-shadow: var(--sp-shadow-hover);
  transform: translateY(-2px);
}

/* Wide + short image: width grows with screen, height stays low via aspect-ratio */
.pooja-card-media {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 2.35 / 1;
  max-height: 150px;
  background: var(--sp-cream-deep);
  overflow: visible;
  border-radius: 14px 14px 0 0;
  z-index: 1;
}

.pooja-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 14px 14px 0 0;
}

.pooja-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 6px;
  background: var(--sp-blue);
  color: #fff;
  font-family: var(--sp-serif);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border: none;
}

/* Round blue line icon (reference overlap) */
.pooja-card-icon {
  position: absolute;
  left: 1rem;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sp-blue);
  color: var(--sp-gold-bright);
  font-size: 1rem;
  transform: translateY(50%);
  border: 2px solid var(--sp-blue);
  box-shadow:
    0 0 0 2px var(--sp-white),
    0 0 0 4px var(--sp-blue),
    0 4px 12px rgba(30, 72, 126, 0.22);
}

.pooja-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.45rem 1rem 0.95rem;
  text-align: center;
}

.pooja-card-title {
  margin: 0 0 0.45rem;
  font-family: var(--sp-serif);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--sp-blue);
}

.pooja-card-price-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
}

.pooja-card-price-wrap::before,
.pooja-card-price-wrap::after {
  content: '';
  flex: 1 1 auto;
  max-width: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sp-gold), transparent);
  position: relative;
}

.pooja-card-price {
  margin: 0;
  font-family: var(--sp-price-font);
  color: var(--sp-text);
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pooja-card-amount {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sp-gold);
  font-family: var(--sp-price-font);
}

.pooja-card-unit {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sp-muted);
  font-family: var(--sp-price-font);
}

.pooja-card-description {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--sp-muted);
  font-family: var(--sp-sans);
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pooja-card-meta {
  list-style: none;
  margin: 0 0 0.95rem;
  padding: 0.7rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
}

.pooja-card-meta li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #1f3d63;
  font-weight: 600;
  font-family: var(--sp-sans);
  text-align: center;
}

.pooja-card-meta i {
  color: #163866;
  font-size: 0.95rem;
}

.pooja-card-meta span {
  display: block;
  word-break: break-word;
}

.pooja-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
}

.pooja-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-family: var(--sp-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pooja-card-button i {
  font-size: 0.65rem;
}

.pooja-card-button-outline {
  background: var(--sp-white);
  color: var(--sp-blue);
  border: 1.5px solid var(--sp-blue);
}

.pooja-card-button-outline:hover {
  background: var(--sp-blue);
  color: var(--sp-white);
  border-color: var(--sp-blue);
  text-decoration: none;
}

.pooja-card-button-outline:hover i {
  color: var(--sp-white);
}

.pooja-card-button-solid {
  background: var(--sp-blue);
  color: var(--sp-white);
  border: 1.5px solid var(--sp-blue);
}

.pooja-card-button-solid:hover {
  background: var(--sp-blue-deep);
  border-color: var(--sp-blue-deep);
  color: var(--sp-white);
  text-decoration: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Small / mid PC & tablet landscape — same art, fluid type, no crop */
@media (max-width: 1366px) and (min-width: 768px) {
  .banner-content {
    left: 14%;
    top: 46%;
    width: min(44%, 24rem);
    max-width: 44%;
  }

  .banner-title {
    font-size: clamp(1.15rem, 2.4vw, 2.4rem);
  }

  .banner-subtitle {
    font-size: clamp(0.72rem, 1.3vw, 1.15rem);
  }

  .banner-description {
    font-size: clamp(0.65rem, 0.95vw, 0.9rem);
  }
}

@media (max-width: 991px) {
  .banner-frame {
    position: relative;
    min-height: 0;
    overflow: hidden;
    line-height: 0;
    aspect-ratio: var(--sp-banner-ratio);
  }

  .banner-image-desktop {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .banner-content {
    left: 14%;
    top: 46%;
    width: 46%;
    max-width: 46%;
  }

  .pooja-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pooja-card-media {
    aspect-ratio: 2.2 / 1;
    max-height: 140px;
  }
}

/* Phone: vertical banner image + text centered in mid cream space */
@media (max-width: 767px) {
  .banner-frame {
    position: relative;
    min-height: 0;
    overflow: hidden;
    /* Mobile art is 768x1024 */
    aspect-ratio: 768 / 1024;
  }

  .banner-image-desktop {
    display: none;
  }

  .banner-image-mobile {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .banner-content {
    left: 50%;
    right: auto;
    top: 42%;
    transform: translate(-50%, -50%);
    width: min(72%, 18.5rem);
    max-width: min(72%, 18.5rem);
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
  }

  .banner-mantra,
  .banner-title,
  .banner-subtitle,
  .banner-description {
    width: 100%;
    text-align: center;
  }

  .banner-mantra {
    font-size: clamp(0.52rem, 2.4vw, 0.68rem);
    letter-spacing: 0.1em;
    margin: 0 0 0.3rem;
  }

  .banner-title {
    font-size: clamp(1.25rem, 6.2vw, 1.85rem);
    line-height: 1.15;
  }

  .banner-divider {
    width: clamp(2.75rem, 16vw, 4.5rem);
    margin: 0.4rem auto 0.45rem;
  }

  .banner-subtitle {
    font-size: clamp(0.78rem, 3.4vw, 0.98rem);
    margin: 0 0 0.35rem;
    line-height: 1.25;
  }

  .banner-description {
    font-size: clamp(0.66rem, 2.9vw, 0.8rem);
    line-height: 1.4;
    margin: 0;
    max-width: 100%;
    color: var(--sp-blue-mid);
  }

  .pooja-list-section {
    padding: 1.35rem 0 2rem;
  }

  .pooja-list-header {
    margin-bottom: 1rem;
  }

  .pooja-card-grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
  }

  .pooja-card-media {
    aspect-ratio: 2.1 / 1;
    max-height: 145px;
    width: 100%;
    margin: 0;
  }

  .pooja-card-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .pooja-card-meta li {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    font-size: 0.7rem;
    text-align: center;
  }

  .pooja-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .pooja-card-button {
    min-height: 2.15rem;
    padding: 0.35rem 0.35rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .pooja-card-description {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 479px) {
  .banner-content {
    top: 41%;
    width: min(74%, 12.5rem);
    max-width: min(74%, 12.5rem);
    padding: 0 0.4rem;
  }

  .banner-title {
    font-size: clamp(1.15rem, 6.4vw, 1.65rem);
  }

  .banner-subtitle {
    font-size: clamp(0.74rem, 3.5vw, 0.92rem);
  }

  .banner-description {
    font-size: clamp(0.62rem, 3vw, 0.76rem);
  }

  .pooja-list-container {
    padding: 0 0.75rem;
  }

  .pooja-card-grid {
    max-width: none;
  }

  .pooja-card-media {
    aspect-ratio: 2 / 1;
    max-height: 130px;
  }

  .pooja-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .pooja-card-button {
    min-height: 2.2rem;
    padding: 0.35rem 0.3rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .pooja-card-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pooja-card-meta li {
    font-size: 0.66rem;
    gap: 0.25rem;
  }

  .pooja-card-meta i {
    font-size: 0.85rem;
  }
}
