/* ===== BalajiStar homepage ===== */
:root{
  --orange:#f26a1b;
  --orange-d:#e25a0c;
  --red:#a32a0d;
  --brown:#8e2a0c;
  --green:#14532d;
  --ink:#2a2420;
  --muted:#6b625a;
  --cream:#fdf5e8;
  --card:#fff9f0;
  --line:#f0dcc0;
  --gold:#f6c24a;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Poppins','Segoe UI',Roboto,Arial,sans-serif;
  font-size:12px;color:var(--ink);background:#fbefd9;
  background-image:radial-gradient(circle at 20% 10%,#fff6e4 0,transparent 40%),radial-gradient(circle at 90% 60%,#fff3dc 0,transparent 40%);
  line-height:1.35;
}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{display:block;max-width:100%}
.serif{font-family:'Playfair Display',Georgia,'Times New Roman',serif}
.wrap{max-width:1536px;margin:0 auto;padding:0 20px}

/* ---------- NAVBAR ---------- */
.nav{
  position:relative;z-index:20;
  background:#fff;border-radius:0 0 18px 18px;
  height:48px;margin:0 20px;
  display:flex;align-items:center;gap:8px;padding:0 14px 0 66px;
  box-shadow:0 4px 14px rgba(120,60,0,.12);
}
.logo{position:absolute;left:62px;top:-0px;display:flex;align-items:center;gap:6px;height:48px;transform:translateX(-62px)}
.logo img{width:44px;height:44px}
.logo b{font-family:'Playfair Display',Georgia,serif;font-size:26px;color:#c8350f;letter-spacing:.2px;line-height:1}
.logo small{display:block;font-size:10px;color:#444;font-weight:500;margin-top:2px;text-align:right}
.logo .lt{display:flex;flex-direction:column}
.nav-links{display:flex;align-items:center;gap:2px;margin-left:96px;flex:1}
.nav-links a{
  padding:7px 11px;font-size:12.5px;font-weight:500;color:#222;border-radius:7px;white-space:nowrap;display:flex;align-items:center;gap:4px;
}
.nav-links a.active{background:#fff0e4;color:var(--orange);font-weight:600}
.caret{width:0;height:0;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:4px solid #444;display:inline-block}
.nav-right{display:flex;align-items:center;gap:12px}
.lang{display:flex;align-items:center;gap:6px;border:1px solid #e6dccd;border-radius:7px;padding:6px 9px;font-size:12px;font-weight:600}
.lang img{width:18px;height:12px;border-radius:2px}
.icon-btn{width:34px;height:34px;border:1px solid #e6dccd;border-radius:8px;display:grid;place-items:center;background:#fff}
.icon-btn img{width:17px;height:17px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;font-weight:600;font-size:12.5px;cursor:pointer;border:1.5px solid var(--orange)}
.btn-line{color:var(--orange);background:#fff;padding:8px 18px}
.btn-fill{color:#fff;background:linear-gradient(#f77a26,#ee5f10);padding:8px 18px;box-shadow:0 2px 6px rgba(238,95,16,.35)}

/* ---------- HERO ---------- */
.hero{
  position:relative;margin-top:-48px;padding-top:48px;height:285px;overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 30%,#fff8e6 0,#f9e5b7 55%,#f3d28f 100%);
}
.hero::before{ /* faint temple silhouettes behind text */
  content:"";position:absolute;inset:0;opacity:.35;
  background:
    linear-gradient(#0000,#0000),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220'><g fill='%23d9a55a' opacity='.55'><path d='M30 220v-60l22-34 22 34v60z'/><path d='M120 220v-90l30-50 30 50v90z'/><path d='M230 220v-70l24-38 24 38v70z'/><path d='M330 220v-110l36-60 36 60v110z'/><path d='M450 220v-80l28-44 28 44v80z'/><path d='M540 220v-60l22-34 22 34v60z'/></g></svg>") center bottom/ 900px auto repeat-x;
}
.hero .img-l,.hero .img-r{position:absolute;top:48px;bottom:0;object-fit:cover;object-position:center top}
.hero .img-l{left:0;width:320px;height:237px;
  -webkit-mask-image:linear-gradient(90deg,#000 70%,transparent);mask-image:linear-gradient(90deg,#000 70%,transparent)}
.hero .img-r{right:0;width:390px;height:237px;
  -webkit-mask-image:linear-gradient(270deg,#000 70%,transparent);mask-image:linear-gradient(270deg,#000 70%,transparent)}
.cap{
  position:absolute;bottom:14px;background:linear-gradient(#124d2a,#0c3a1f);color:#fff;border:1.5px solid #c9a24a;border-radius:6px;
  padding:8px 12px;text-align:center;box-shadow:0 3px 8px rgba(0,0,0,.35)
}
.cap h4{font-family:'Playfair Display',Georgia,serif;font-size:17px;color:#ffd24d;font-weight:700;line-height:1.1}
.cap p{font-size:10.5px;line-height:1.25;margin-top:3px;color:#fff}
.cap.l{left:22px;width:230px}
.cap.r{right:84px;width:186px}
.motto{position:absolute;right:26px;top:70px;text-align:center;font-family:'Playfair Display',Georgia,serif;font-style:italic;font-size:14.5px;color:#4a2a10;line-height:1.7}
.hero-center{position:relative;z-index:2;text-align:center;margin:-2px auto 0;max-width:620px}
.hero-center h1{font-family:'Playfair Display',Georgia,serif;font-weight:800;font-size:46px;line-height:1.02;color:#a8200f;text-shadow:0 1px 0 #fff3}
.hero-center h1 span{display:block;color:#124d2a;font-size:44px}
.hero-center p.sub{font-size:14.5px;color:#2a1d12;margin-top:8px;line-height:1.45;font-weight:500}
.hero-ico{display:flex;justify-content:center;gap:42px;margin-top:14px}
.hero-ico a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;font-weight:500;color:#222}
.hero-ico img{width:34px;height:34px}

/* ---------- QUICK LINKS ---------- */
.quick{
  position:relative;z-index:5;margin:-0px 20px 0;transform:translateY(-4px);
  background:#fffaf2;border-radius:12px;border:1px solid var(--line);
  box-shadow:0 4px 14px rgba(120,60,0,.12);
  display:grid;grid-template-columns:repeat(11,1fr);padding:10px 6px;
}
.quick a{display:flex;align-items:center;gap:7px;padding:2px 6px;border-right:1px solid #f1e3c9;min-width:0}
.quick a:last-child{border-right:0}
.quick img{width:30px;height:30px;flex:none}
.quick b{display:block;font-size:11px;font-weight:600;color:#26211c;line-height:1.15}
.quick small{display:block;font-size:9px;color:#6d655c;line-height:1.2}

/* ---------- GENERIC CARD ---------- */
main{padding:10px 20px 12px;display:flex;flex-direction:column;gap:10px}
.row{display:grid;gap:10px}
.r1{grid-template-columns:663fr 540fr 273fr}
.r2{grid-template-columns:413fr 327fr 218fr 252fr 245fr}
.r3{grid-template-columns:373fr 424fr 376fr 293fr}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px 14px;box-shadow:0 2px 6px rgba(150,90,20,.06);position:relative;min-width:0}
.card h2{font-family:'Playfair Display',Georgia,serif;font-size:19px;color:var(--brown);font-weight:700;line-height:1.15}
.card h3{font-family:'Playfair Display',Georgia,serif;font-size:15.5px;color:var(--brown);font-weight:700}
.view{font-size:10.5px;font-weight:600;color:var(--orange);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.view img{width:10px;height:10px}
.head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.head .t{display:flex;align-items:center;gap:7px}
.head .t img{width:24px;height:24px}

/* ---------- FORMS ---------- */
.form-card{display:flex;gap:12px}
.big-ic{flex:none;width:58px;height:58px;border-radius:50%;background:#ffe6cf;display:grid;place-items:center}
.big-ic img{width:34px;height:34px}
.form-card p.desc{font-size:12.5px;color:#555;margin-top:3px;line-height:1.35}
.fgrid{display:grid;gap:8px;margin-top:10px}
.fgrid.k{grid-template-columns:1.1fr 1fr 1fr 1.1fr}
.field label{display:block;font-size:11.5px;font-weight:600;color:#2b2b2b;margin-bottom:3px}
.field .in{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #ead9be;border-radius:5px;height:28px;padding:0 8px;color:#a8a095;font-size:11.5px}
.field .in img{width:14px;height:14px;flex:none}
.field input{border:0;outline:0;background:transparent;width:100%;font:inherit;color:#444;min-width:0}
.field input::placeholder{color:#b3a99b}
.cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:32px;margin-top:10px;background:linear-gradient(#f77a26,#ec5a0b);color:#fff;font-weight:600;font-size:13px;border-radius:5px;box-shadow:0 2px 5px rgba(236,90,11,.3);border:0;cursor:pointer;font-family:inherit}
.cta img{width:14px;height:14px}
.cta.red{background:linear-gradient(#e2263a,#c01228);height:27px;margin-top:6px}
.mini{display:flex;justify-content:space-between;gap:6px;margin-top:10px}
.mini div{display:flex;align-items:center;gap:6px;font-size:10px;color:#4a423b;line-height:1.2}
.mini img{width:25px;height:25px;flex:none}
.mini b{display:block;font-weight:600;font-size:10.5px;color:#222}
.mini.s div{font-size:9.5px;gap:4px}
.mini.s img{width:19px;height:19px}
.match-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:6px 6px;margin-top:6px}
.match-grid .lab{grid-column:1/-1;font-size:11px;font-weight:600;margin-top:4px}
.match-grid .row2{display:contents}
.match-grid .field label{font-size:10.5px}
.match-grid .in{height:26px;font-size:10.5px;padding:0 6px}

/* ---------- PANCHANG ---------- */
.panch .date{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;margin:2px 0 6px}
.panch table{width:100%;border-collapse:collapse;font-size:11.5px}
.panch td{padding:4px 6px;border-top:1px solid #efdcc0}
.panch td:first-child{font-weight:600;width:42%;color:#222}
.panch td:last-child{color:#444}

/* ---------- RASHIFAL ---------- */
.tabs{display:inline-flex;background:#f6e9d6;border-radius:6px;overflow:hidden}
.tabs span{padding:5px 12px;font-size:11px;color:#6b5e4f}
.tabs span.on{background:var(--orange);color:#fff;font-weight:600;border-radius:6px}
.rashi{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:6px}
.rashi div{background:#fffaf1;border:1px solid #f1dfc2;border-radius:6px;padding:5px 2px 4px;text-align:center}
.rashi i{display:block;font-style:normal;font-size:24px;line-height:1;color:var(--orange);font-family:'Segoe UI Symbol','Noto Sans Symbols','DejaVu Sans',sans-serif}
.rashi b{display:block;font-size:10.5px;font-weight:500;margin-top:2px}
.rashi s{display:block;text-decoration:none;font-size:8px;letter-spacing:1px;color:var(--orange)}
.rashi s em{font-style:normal;color:#d8cdbc}

/* ---------- LISTS ---------- */
.thumb-list li{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.thumb-list li:last-child{margin-bottom:0}
.thumb-list img.th{width:76px;height:38px;object-fit:cover;border-radius:3px;flex:none}
.thumb-list b{display:block;font-size:12px;color:#8e2a0c;font-weight:600;line-height:1.2}
.thumb-list small{display:block;font-size:10.5px;color:#555;line-height:1.25}
.fest li{display:flex;gap:6px;align-items:center;margin-bottom:5px;padding-bottom:4px;border-bottom:1px solid #f1e0c6}
.fest li:last-child{border:0;margin:0;padding:0}
.fest .d{width:30px;text-align:center;line-height:1;flex:none}
.fest .d b{display:block;font-family:'Playfair Display',Georgia,serif;font-size:18px;color:var(--orange)}
.fest .d span{font-size:9px;font-weight:600;color:#6a4a2a}
.fest img.th{width:42px;height:36px;object-fit:cover;border-radius:3px;flex:none}
.fest b{display:block;font-size:11.5px;color:#8e2a0c;line-height:1.1;font-weight:600}
.fest small{display:block;font-size:9px;color:#555;line-height:1.2}
.art .feature{position:relative;border-radius:6px;overflow:hidden;height:62px}
.art .feature img{width:100%;height:100%;object-fit:cover}
.art .feature span{position:absolute;left:6px;bottom:5px;background:#fff;color:var(--orange);font-size:9px;font-weight:600;padding:1px 6px;border-radius:3px}
.art h5{font-size:12px;font-weight:600;color:#8e2a0c;margin:5px 0 2px;line-height:1.2}
.meta{display:flex;gap:8px;font-size:9px;color:#666;align-items:center}
.meta img{width:9px;height:9px;display:inline}
.art .mini-row{display:flex;gap:6px;margin-top:5px;align-items:center}
.art .mini-row img{width:36px;height:26px;object-fit:cover;border-radius:3px;flex:none}
.art .mini-row b{display:block;font-size:10.5px;font-weight:600;color:#8e2a0c;line-height:1.15}
.blog li{display:flex;gap:8px;align-items:center;margin-bottom:7px}
.blog img.th{width:50px;height:42px;object-fit:cover;border-radius:3px;flex:none}
.blog b{display:block;font-size:11px;font-weight:600;color:#8e2a0c;line-height:1.2}

/* ---------- TEMPLATES ---------- */
.tpl-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px 7px}
.tpl-grid a{display:block;text-align:center}
.tpl-grid img{width:100%;height:36px;object-fit:cover;border-radius:3px;border:1px solid #ead7b8}
.tpl-grid b{display:block;font-size:9.5px;font-weight:600;color:#222;margin-top:2px;line-height:1.1}
.tpl-grid small{display:block;font-size:8.5px;color:#555;line-height:1.1}

/* ---------- FEATURES ---------- */
.feat-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.feat-grid > div{background:#fff;border:1px solid #f1dfc2;border-radius:6px;padding:6px 7px;display:flex;gap:6px;align-items:flex-start;min-height:42px}
.feat-grid img{width:24px;height:24px;flex:none}
.feat-grid b{display:block;font-size:10px;color:#8e2a0c;line-height:1.15;font-weight:600}
.feat-grid small{display:block;font-size:8.5px;color:#555;line-height:1.2;margin-top:1px}
.feat-grid .w2{grid-column:span 2}

/* ---------- REMEDIES ---------- */
.rem p.d{font-size:11px;color:#555;margin:2px 0 8px}
.rem-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
.rem-grid > div{background:#fff;border:1px solid #f1dfc2;border-radius:6px;padding:6px;display:flex;gap:4px;align-items:flex-start;min-height:62px}
.rem-grid img{width:30px;height:30px;flex:none}
.rem-grid b{display:block;font-size:9.5px;color:#8e2a0c;line-height:1.15;font-weight:600}
.rem-grid small{display:block;font-size:8px;color:#555;line-height:1.2;margin-top:1px}
.note{margin-top:8px;font-size:10px;color:#4a423b;display:flex;gap:6px;align-items:center;background:#fff;border:1px solid #f1dfc2;border-radius:6px;padding:5px 8px}
.note img{width:18px;height:18px}

/* ---------- ABOUT ---------- */
.about{display:flex;gap:8px}
.about .tem{width:26px;flex:none}
.about p{font-size:10.5px;color:#3a332c;margin:4px 0 8px;line-height:1.4}
.btn-read{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--orange);color:var(--orange);border-radius:5px;padding:5px 12px;font-weight:600;font-size:11.5px;background:#fff}
.btn-read img{width:12px;height:12px}

/* ---------- FOOTER STRIP ---------- */
.strip{
  margin:0 20px 16px;background:#fff7ea;border:1px solid var(--line);border-radius:10px;
  display:grid;grid-template-columns:repeat(7,1fr);padding:10px 8px;box-shadow:0 2px 6px rgba(150,90,20,.06)
}
.strip div{display:flex;align-items:center;gap:9px;padding:0 10px;border-right:1px solid #f0dcc0}
.strip div:last-child{border:0}
.strip img{width:30px;height:30px;flex:none}
.strip b{display:block;font-size:11.5px;color:#8e2a0c;font-weight:700}
.strip small{display:block;font-size:10px;color:#555}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1200px){
  .nav-links{margin-left:80px;overflow:auto}
  .quick{grid-template-columns:repeat(4,1fr);gap:8px 0}
  .r1,.r2,.r3{grid-template-columns:1fr 1fr}
  .strip{grid-template-columns:repeat(3,1fr);gap:10px 0}
  .hero .img-l,.hero .img-r,.motto{opacity:.35}
}
@media (max-width:720px){
  .r1,.r2,.r3{grid-template-columns:1fr}
  .fgrid.k{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
  .hero{height:auto;padding-bottom:20px}
  .hero-center h1{font-size:32px}.hero-center h1 span{font-size:30px}
  .quick{grid-template-columns:repeat(2,1fr)}
  .strip{grid-template-columns:1fr 1fr}
}

/* ---------- refinements after first render ---------- */
.hero-center{margin-top:8px}
.hero-center h1{font-size:42px}
.hero-center h1 span{font-size:41px}
.hero-center p.sub{font-size:13.5px;margin-top:6px}
.hero-ico{margin-top:12px}
.quick a{gap:6px;padding:2px 5px}
.quick img{width:27px;height:27px}
.quick b{font-size:10.5px;white-space:nowrap}
.quick small{font-size:8.5px;white-space:nowrap}
.quick a>span{min-width:0;overflow:hidden}
.head h3{font-size:14.5px;white-space:nowrap}
.head .t img{width:22px;height:22px}
.panch h3{font-size:14px}
.panch .view{font-size:9.5px}
.r2 .card{display:flex;flex-direction:column}
.r2 .card .head{flex:none}
.rashi{flex:1;grid-auto-rows:1fr;align-content:stretch;margin-top:4px}
.rashi div{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:6px 2px}
.rashi i{font-size:30px}
.rashi b{font-size:11px}
.rashi s{font-size:9px}
.r2 .tabs span{padding:5px 11px}
.mini b{white-space:nowrap;font-size:10px}
.mini div{flex:1 1 0;min-width:0}
.mini.s b{font-size:9px}
.mini.s div{font-size:8.5px}
.mini.s{gap:4px}
.fest-card h3,.r2 .card:nth-child(3) .head h3{font-size:12.5px}
.r2 .card:nth-child(3) .t img{width:20px;height:20px}
.r2 .card:nth-child(3) .head{gap:2px}
.fest .d b{font-size:17px}
.fest li{margin-bottom:6px;padding-bottom:5px}
.fest img.th{width:38px;height:34px}
.fest small{font-size:8.5px}
.rem-grid img{width:26px;height:26px}
.about p{font-size:10.5px}

/* ---------- second pass ---------- */
.nav-links a{padding:7px 9px;font-size:12.5px}
.btn{white-space:nowrap}
.nav-right{gap:10px}
.quick a{gap:5px;padding:2px 4px}
.quick img{width:24px;height:24px}
.quick b{font-size:10px}
.quick small{font-size:8px}
.mini{gap:4px}
.mini div{gap:4px;align-items:center}
.mini img{width:22px;height:22px}
.mini b{white-space:normal;font-size:9.5px;line-height:1.15}
.mini div{font-size:9px}
.mini.s b{font-size:8.5px;white-space:normal}
.mini.s div{font-size:8px}
.mini.s img{width:18px;height:18px}
.panch h3{font-size:13px}
.panch .head .t{gap:5px}
.panch .view{font-size:9px;gap:2px}
.panch .view img{width:8px;height:8px}
.r2 .card:nth-child(3) .head h3{font-size:11.5px}
.r2 .card:nth-child(3) .t img{width:18px;height:18px}
.r2 .card:nth-child(3) .t{gap:4px}
.r2 .card:nth-child(3) .view{font-size:9px}
.r2 .card:nth-child(3) .view img{display:none}

/* festivals header fit */
.r2 .card:nth-child(3){padding-left:10px;padding-right:10px}
.r2 .card:nth-child(3) .head h3{font-size:10.8px;letter-spacing:-.15px}
.r2 .card:nth-child(3) .t img{display:none}
.r2 .card:nth-child(3) .view{font-size:8.5px}
