:root{
  --bg: #2b0f14;                         /* maroon base */
  --panel: rgba(255,255,255,0.08);
  --panel2: rgba(255,255,255,0.10);
  --line: rgba(255,255,255,0.16);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --saffron: #F2A43A;
  --saffron2:#E58A16;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,0.45);
  --max: 980px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ background: var(--bg); }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.25;
  background:
    radial-gradient(1000px 500px at 70% 0%, rgba(242, 164, 58, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(43, 15, 20, 0.85), var(--bg));
}

/* ===== Topbar (shared-ish) ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  background: rgba(7,7,8,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
}

.brand-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  overflow:hidden;
}

/* IMPORTANT: this is what renders your ram.png */
.brand-mark img.brand-icon{
  width:20px;
  height:20px;
  object-fit: contain;
  display:block;
}

.brand-text{
  font-weight:600;
  letter-spacing:0.2px;
}

.navCta{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
}

/* ===== Layout rhythm ===== */
main{ width:100%; }

section{
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

/* ===== HERO ===== */
/*
HTML structure expected:

<section class="about-hero">
  <img class="about-hero__img" ... />
  <div class="about-hero__overlay">...</div>
</section>
*/
.about-hero{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.10);
}

.about-hero__img{
  display:block;
  width:100%;
  height:auto;            /* image drives hero height */
}

.about-hero__overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index: 2;

  /* full-width overlay INSIDE hero */
  width:100%;
  margin:0;
  max-width:none;
  box-sizing:border-box;

  padding: 18px 18px 22px;

  /* gradient keeps text readable without a “box that hangs” */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.00)
  );
}

.about-hero__overlay .kicker{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-hero__overlay h1{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.6px;

  /* allow it to use the overlay width */
  max-width: none;
}

.about-hero__overlay .sub{
  margin:0;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.45;

  /* allow paragraph to use overlay width */
  max-width: none;
}

/* ===== Quote block ===== */
.quoteBlock{
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
}

.quote{
  margin:0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
}

.attribution{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Pillars ===== */
.pillars{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}

.pill{
  padding: 14px 14px 13px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.pill h2{
  margin:0 0 6px;
  font-size: 16px;
}

.pill p{
  margin:0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
  line-height: 1.4;
}

/* ===== Story cards ===== */
.storyCards{
  margin-top: 14px;
  display:grid;
  gap: 12px;
}

.card{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.cardMedia{
  height: 170px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.mediaMaharajji{
  background-image:
    linear-gradient(180deg, rgba(7,7,8,0.20), rgba(7,7,8,0.72)),
    url("assets/maharajji.jpg");
}

.mediaSatsang{
  background-image:
    linear-gradient(180deg, rgba(7,7,8,0.20), rgba(7,7,8,0.72)),
    url("assets/satsang.jpg");
}

.cardBody{
  padding: 14px 14px 16px;
}

.cardBody h3{
  margin:0 0 6px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.cardBody p{
  margin:0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.45;
}

/* ===== CTA strip ===== */
.ctaStrip{
  margin-top: 14px;
  margin-bottom: 18px;
}

.ctaInner{
  padding: 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(242,164,58,0.28), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
}

.ctaInner h2{
  margin: 0 0 6px;
  font-size: 20px;
}

.ctaInner p{
  margin: 0 0 12px;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
  line-height: 1.4;
}

.ctaRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 650;
  border: 1px solid rgba(255,255,255,0.14);
}

.btn.primary{
  background: linear-gradient(180deg, var(--saffron), var(--saffron2));
  color: #1b1207;
  border-color: rgba(0,0,0,0.18);
}

.btn.ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* ===== Footer ===== */
.footer{
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto 22px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* ===== Tablet+ ===== */
@media (min-width: 860px){
  .pillars{
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .storyCards{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cardMedia{ height: 210px; }

  .about-hero__overlay h1{ font-size: 44px; }
  .about-hero__overlay .sub{ font-size: 16px; }
}
