/* ═══════════════════════════════════════════
   JAIN TEMPLES PAGE — Banaras Culture Biennale
   Palette: saffron/ember/gold on dark #0d0602
   ═══════════════════════════════════════════ */

.jt-page { padding-top: 0; }

/* ══════════════════════════════════════════
   1. HERO  (mirrors ghats hero exactly)
   ══════════════════════════════════════════ */
.jt-hero {
  position: relative;
  height: 50vh;
  min-height: 380px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background: #0d0602;
}

.jt-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 18% 72%, rgba(196, 98, 45, 0.68) 0%, transparent 58%),
    radial-gradient(ellipse 58% 50% at 82% 28%, rgba(212, 175, 55, 0.44) 0%, transparent 56%),
    radial-gradient(ellipse 88% 44% at 50% 100%, rgba(100, 30, 5, 0.82) 0%, transparent 68%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4622d' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.jt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 6, 2, 0.55) 0%,
    rgba(13, 6, 2, 0.08) 45%,
    rgba(13, 6, 2, 0.62) 100%
  );
}

.jt-hero-deco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.jt-hero-deco-text {
  font-family: var(--f-hi, 'Tiro Devanagari Hindi', serif);
  font-size: clamp(14rem, 36vw, 30rem);
  color: rgba(245, 166, 35, 0.045);
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.jt-hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 115px 5vw 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.jt-breadcrumb a { color: rgba(245,166,35,0.65); text-decoration: none; transition: color 0.2s; }
.jt-breadcrumb a:hover { color: var(--saffron, #f5a623); }
.jt-breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.jt-breadcrumb span:last-child { color: rgba(255,255,255,0.55); }

.jt-hero-top { display: flex; flex-direction: column; gap: 0.6rem; }

.jt-hero-top .section-label {
  font-family: var(--f-lbl, 'Cinzel', serif);
  color: var(--saffron, #f5a623);
  font-size: 0.72rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  display: block;
}

.jt-hero-bottom { display: flex; flex-direction: column; gap: 0.5rem; }

.jt-hero-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  margin: 0;
  max-width: 200px;
}

.jt-hero-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(245, 166, 35, 0.35);
}

.jt-hero-gem { color: var(--saffron, #f5a623); font-size: 0.8rem; opacity: 0.85; }

.jt-hero-title {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 4px 60px rgba(0,0,0,0.5);
  animation: hero-in 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jt-hero-title em { font-style: italic; color: var(--saffron, #f5a623); }

.jt-hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.jt-hero-scroll span {
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #9a7a60;
}

.jt-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(245,166,35,0.55), transparent);
  animation: jt-scroll-fade 2.2s ease-in-out infinite;
}

@keyframes jt-scroll-fade {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════════
   SHARED UTILITIES
   ══════════════════════════════════════════ */
.jt-gem { color: var(--gold, #d4af37); font-size: 0.8rem; }

.jt-rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  /* margin: 0.9rem 0 1.4rem; */
}

.jt-rule::before,
.jt-rule::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold, #d4af37);
  opacity: 0.4;
}

/* ══════════════════════════════════════════
   2. ABOUT SECTION  (compact — single image)
   ══════════════════════════════════════════ */
.jt-about {
  background: var(--bg, #faf5ed);
  padding: 4rem 4rem 4.5rem;
}

.jt-about-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}

/* Image column: absolutely positioned so natural image height
   never inflates the grid row — height driven by content column */
.jt-about-image {
  position: relative;
}

.jt-about-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.22);
}

.jt-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) saturate(0.88);
  transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.jt-about-img:hover img { transform: scale(1.04); }

.jt-about-img-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 42% at 50% 100%, rgba(196,98,45,0.35) 0%, transparent 60%),
    linear-gradient(to top, rgba(13,6,2,0.58) 0%, transparent 50%);
  pointer-events: none;
}

/* Badge in image — number + label */
.jt-about-img-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.jt-badge-num {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: rgba(245,166,35,0.9);
  line-height: 1;
}

.jt-badge-label {
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

/* Content column */
.jt-about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jt-about-kicker {
  font-family: var(--f-hi, 'Tiro Devanagari Hindi', serif);
  font-size: 1rem;
  color: var(--saffron, #f5a623);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

/* Stats bar */
.jt-about-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(212,175,55,0.2);
}

.jt-stat { display: flex; flex-direction: column; gap: 0.3rem; }

.jt-stat-num {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ember, #c4622d);
  line-height: 1;
}

.jt-stat-lbl {
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body, #6a4a2a);
}

.jt-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(212,175,55,0.3);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   3. TEMPLES GRID SECTION
   ══════════════════════════════════════════ */
.jt-grid-section {
  background: var(--bg2, #f4ece0);
  padding: 1rem 4rem 7rem;
}

.jt-grid-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* Section header */
.jt-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.jt-section-hindi {
  font-family: var(--f-hi, 'Tiro Devanagari Hindi', serif);
  font-size: 1.1rem;
  color: var(--saffron, #f5a623);
  opacity: 0.75;
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.06em;
}

.jt-section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
}

.jt-section-rule::before,
.jt-section-rule::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold, #d4af37);
  opacity: 0.45;
}

.jt-section-sub {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--body, #6a4a2a);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* 3-column card grid */
.jt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Individual card */
.jt-card {
  background: var(--bg, #faf5ed);
  border: 1px solid rgba(212,175,55,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Card image */
.jt-card-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.jt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) saturate(0.85);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.jt-card:hover .jt-card-img img {
  transform: scale(1.08);
  filter: brightness(0.88) saturate(1);
}

/* Number badge on card image */
.jt-card-num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(13,6,2,0.55);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.55rem;
  line-height: 1.4;
  z-index: 1;
}

/* Card body */
.jt-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.5rem;
  border-top: 2px solid rgba(245,166,35,0.35);
}

.jt-card-name {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text, #1a0a03);
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.jt-card-excerpt {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--body, #6a4a2a);
  flex: 1;
  margin: 0 0 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jt-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 1px solid rgba(196,98,45,0.35);
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember, #c4622d);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.jt-card-btn:hover {
  background: var(--ember, #c4622d);
  border-color: var(--ember, #c4622d);
  color: #fff;
}

.jt-btn-arrow { font-size: 0.85rem; transition: transform 0.25s; }
.jt-card-btn:hover .jt-btn-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════
   MODAL / POPUP
   ══════════════════════════════════════════ */
.jt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,6,2,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(4px);
}

.jt-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.jt-modal {
  background: var(--bg, #faf5ed);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(13,6,2,0.6);
  border: 1px solid rgba(212,175,55,0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.jt-modal-overlay.is-open .jt-modal {
  transform: translateY(0) scale(1);
}

.jt-modal::-webkit-scrollbar { width: 4px; }
.jt-modal::-webkit-scrollbar-track { background: transparent; }
.jt-modal::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

.jt-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(13,6,2,0.65);
  border: 1px solid rgba(245,166,35,0.3);
  color: rgba(255,255,255,0.8);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(4px);
}

.jt-modal-close:hover {
  background: var(--ember, #c4622d);
  border-color: var(--ember, #c4622d);
  color: #fff;
}

.jt-modal-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.jt-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) saturate(0.88);
}

.jt-modal-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,6,2,0.6) 0%, transparent 55%);
}

.jt-modal-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.5rem;
  font-family: var(--f-lbl, 'Cinzel', serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(245,166,35,0.22);
  line-height: 1;
}

.jt-modal-content {
  padding: 2rem 2.4rem 2.8rem;
  border-top: 3px solid var(--saffron, #f5a623);
}

.jt-modal-name {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text, #1a0a03);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.jt-modal-rule {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
}

.jt-modal-rule::before,
.jt-modal-rule::after {
  content: '';
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: var(--gold, #d4af37);
  opacity: 0.4;
}

.jt-modal-desc {
  font-family: var(--f-disp, 'Cormorant Garamond', serif);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--body, #6a4a2a);
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .jt-about-inner { gap: 3rem; }
  .jt-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .jt-hero-inner     { padding: 80px 1.8rem 2rem; }
  .jt-hero-title     { font-size: clamp(1.6rem, 7vw, 3rem); white-space: normal; }
  .jt-hero-deco-text { font-size: clamp(8rem, 25vw, 16rem); }

  .jt-about          { padding: 3.5rem 1.8rem 4rem; }
  .jt-about-inner    { grid-template-columns: 1fr; gap: 0; }
  .jt-about-image    { height: 240px; }
  .jt-about-img      { position: relative; inset: auto; height: 100%; }
  .jt-about-stats    { flex-wrap: wrap; gap: 1.2rem; }
  .jt-stat-div       { display: none; }

  .jt-grid-section   { padding: 4rem 1.8rem 5rem; }
  .jt-grid           { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .jt-grid           { grid-template-columns: 1fr; }
  .jt-modal          { margin: 0; }
}
