
:root{
  --bg:#f9f6f1;
  --primary:#7a1f1f;
  --secondary:#a83c2a;
  --accent:#c59d5f;
  --text:#2b2b2b;
}

*{box-sizing:border-box;margin:0;padding:0;}

body{
  font-family:'Hind',system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.85;
}

/* HEADER */
header{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid #eee;
  padding:12px 16px;
  z-index:100;
}
.title{
  font-family:'Noto Serif Devanagari',serif;
  font-size:18px;
  color:var(--primary);
}
nav{
  margin-top:6px;
  display:flex;
  gap:14px;
  font-size:14px;
  flex-wrap:wrap;
}
a{
  text-decoration:none;text-decoration:none;
  color:red;
}
nav a{
  text-decoration:none;
  color:var(--text);
}
nav a:hover{color:var(--primary);}

/* HERO */
.hero{
  position:relative;
  padding:100px 20px 90px;
  text-align:center;
  color:#fff;
  background:
    linear-gradient(rgba(40,10,10,.65),rgba(40,10,10,.65)),
    url("back.jpg");
  background-size:cover;
  background-position:center;
}
.hero h1{
  font-family:'Noto Serif Devanagari',serif;
  font-size:34px;
  margin-bottom:12px;
  text-shadow:0 2px 14px rgba(197,157,95,.45);
}
.hero p{
  font-size:17px;
  color:#f5f0e8;
}
.hero-fade{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:60px;
  background:linear-gradient(to bottom,rgba(249,246,241,0),var(--bg));
}

/* SECTIONS */
section{
  max-width:1050px;
  margin:auto;
  padding:60px 20px;
  align-items: center;
}
h2{
  font-family:'Noto Serif Devanagari',serif;
  font-size:26px;
  color:var(--primary);
}
.divider{
  width:80px;
  height:3px;
  background:var(--accent);
  margin:18px 0 28px;
}
.story p{
  margin-bottom:10px;
  text-align:justify;
}

/* TIMELINE */
.timeline{
  border-left:3px solid var(--accent);
  padding-left:26px;
}
.event{
  position:relative;
  margin-bottom:36px;
}
.event::before{
  content:"";
  width:14px;
  height:14px;
  background:var(--primary);
  border-radius:50%;
  position:absolute;
  left:-36px;
  top:6px;
}
.event span{
  font-weight:600;
  color:var(--primary);
}

/* FAMILY TREE */
.tree{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.node{
  background:#fff;
  border:2px solid var(--accent);
  padding:10px 16px;
  margin:10px;
  text-align:center;
}
.children{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
}

/* NOTE */
.note{
  background:#fff7e6;
  border-left:4px solid var(--accent);
  padding:16px;
  margin-top:40px;
}

/* FOOTER */
footer{
  background:#fff;
  border-top:1px solid #eee;
  padding:28px 20px;
  text-align:center;
  font-size:14px;
}

/* RESPONSIVE */
@media(min-width:768px){
  .hero h1{font-size:42px;}
}
/* IMPROVED GALLERY GRID */
.gallery-section{
  max-width:1200px;
  margin:auto;
  padding:70px 20px;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

/* Image container */
.gallery-item{
  position:relative;
  overflow:hidden;
  background:#eee;
  border-radius:4px;
}

/* Images */
.gallery-item img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
  transition:transform .5s ease, filter .5s ease;
}

/* Subtle sacred hover */
.gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(122,31,31,.25),
    rgba(0,0,0,0)
  );
  opacity:0;
  transition:.4s ease;
}

.gallery-item:hover::after{
  opacity:1;
}

.gallery-item:hover img{
  transform:scale(1.05);
  filter:brightness(1.05);
}

/* Tablet */
@media(min-width:768px){
  .gallery-grid{
    grid-template-columns:repeat(3,1fr);
    gap:18px;
  }
  .gallery-item img{
    height:220px;
  }
}

/* Desktop */
@media(min-width:1024px){
  .gallery-grid{
    grid-template-columns:repeat(4,1fr);
    gap:22px;
  }
  .gallery-item img{
    height:260px;
  }
}
.hero{
  position:relative;
  height:85vh;
  min-height:520px;
  background:
    linear-gradient(
      rgba(40,15,15,.78),
      rgba(40,15,15,.55),
      rgba(40,15,15,.85)
    ),
    url("back.jpg");
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
}

/* Content */
.hero-content{
  position:relative;
  z-index:2;
  max-width:720px;
  padding:20px;
}

.hero h1{
  font-family:'Noto Serif Devanagari',serif;
  font-size:30px;
  letter-spacing:1px;
  margin-bottom:8px;
}

.hero h2{
  font-family:'Noto Serif Devanagari',serif;
  font-size:46px;
  margin-bottom:20px;
  text-shadow:0 4px 20px rgba(197,157,95,.35);
}

/* Divider */
.hero-divider{
  margin:18px auto 20px;
  width:120px;
  position:relative;
}
.hero-divider::before,
.hero-divider::after{
  content:"";
  position:absolute;
  top:50%;
  width:45px;
  height:1px;
  background:#c59d5f;
}
.hero-divider::before{left:0;}
.hero-divider::after{right:0;}
.hero-divider span{
  color:#c59d5f;
  font-size:20px;
}

/* Subtitle */
.hero-sub{
  font-size:16px;
  letter-spacing:2px;
  color:#f1e6d2;
}

/* Diya Glow */
.hero-diya{
  position:absolute;
  bottom:30px;
  width:18px;
  height:18px;
  background:#ffcc70;
  border-radius:50%;
  box-shadow:
    0 0 20px rgba(255,204,112,.8),
    0 0 40px rgba(255,204,112,.6);
  animation:diyaGlow 3s ease-in-out infinite;
}

@keyframes diyaGlow{
  0%,100%{opacity:.7;transform:scale(1);}
  50%{opacity:1;transform:scale(1.15);}
}

/* Mobile */
@media(max-width:768px){
  .hero h2{font-size:34px;}
  .hero h1{font-size:22px;}
}
/* FOOTER */
.site-footer{
  background:#fff;
  border-top:1px solid #eee;
  padding:50px 20px 40px;
}

.footer-content{
  max-width:900px;
  margin:auto;
  text-align:center;
}

.footer-purpose{
  font-size:15px;
  line-height:1.9;
  color:#333;
  margin-bottom:18px;
}

.footer-note{
  font-size:14px;
  color:#555;
  margin-bottom:24px;
}

.footer-divider{
  width:80px;
  height:2px;
  background:var(--accent);
  margin:0 auto 20px;
}

.footer-credit{
  font-size:14px;
  color:#222;
  margin-bottom:10px;
}

.footer-blessing{
  font-size:15px;
  color:var(--primary);
  font-family:'Noto Serif Devanagari',serif;
}
.yt-fallback{
  max-width:600px;
  margin:40px auto;
  text-align:center;
}

.yt-fallback img{
  width:60%;
  border-radius:10px;
}

.yt-fallback span{
  display:inline-block;
  margin-top:10px;
  padding:10px 18px;
  background:#b11217;
  color:#fff;
  border-radius:6px;
  font-weight:500;
}
.yt-description{
  max-width:800px;
  margin:16px auto 0;
  font-size:15px;
  line-height:1.7;
  color:#4a2a2a;
  text-align:center;
}
