/* आपल मंडळ — मार्केटिंग/सार्वजनिक पानांवरचा (home.php, about_us.php, latest_updates.php, about_app.php)
   समान theme, header nav व footer. प्रत्येक पानाने हीच फाईल लिंक करावी जेणेकरून मोबाईल फिक्स
   एकाच ठिकाणी राहतील — प्रत्येक पानावर वेगळा कॉपी-पेस्ट केलेला CSS नको.
   टीप: टोकन्सची नावं (--ink-night, --ivory वगैरे) आधीच्या गडद थीमवरून आली आहेत, पण आता उजळ
   (bright) रंग देतात — दोन्ही भूमिका (पार्श्वभूमी/मजकूर) तशाच ठेवल्या, फक्त रंग बदलले. */
:root{
  --ink-night:#FBF3E3; --panel:#FFFFFF; --panel-2:#F6ECD8;
  --ivory:#2B2620; --gold-dust:#8A7A5C; --gold-dust-dim:#A69477;
  --marigold:#E07B1A; --marigold-soft:#B5690F; --sindoor:#C1442E;
  --brass-line: rgba(138,122,92,.28); --brass-line-strong: rgba(138,122,92,.5);
  --app-bg:#FBF3E3; --app-ink:#2B2620; --app-sub:#8A7A5C; --app-accent:#E07B1A;
  --app-accent2:#7A2048; --app-card:#FFFFFF; --app-border:#EADFC2;
  --app-income:#2F6B4F; --app-expense:#B23A2E;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:76px;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }
body{ margin:0; background:var(--ink-night); color:var(--ivory); font-family:'Tiro Devanagari Marathi','Noto Sans Devanagari',serif; -webkit-font-smoothing:antialiased; }
::selection{ background:var(--marigold); color:#231208; }
h1,h2,h3{ font-family:'Baloo 2','Noto Sans Devanagari',sans-serif; font-weight:700; text-wrap:balance; margin:0; }
.eyebrow{ font-family:'Hind',sans-serif; font-weight:600; font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--marigold-soft); margin:0 0 14px; }
.lede{ font-size:16.5px; line-height:1.75; color:var(--gold-dust); max-width:60ch; }
.lede strong{ color:var(--ivory); font-weight:400; }
strong{ font-weight:600; }
a{ color:inherit; }
img,svg{ max-width:100%; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(20px,5vw,64px); width:100%; }
/* Bootstrap-स्टाईल container-fluid — .wrap प्रमाणेच गटर/padding, पण max-width नाही, त्यामुळे
   मजकूर संपूर्ण ब्राउझर रुंदी वापरतो. home.php, about_us.php, about_app.php, latest_updates.php,
   mandals_directory.php — सर्व मार्केटिंग पानांवर (व त्यांच्या समान footer वर) वापरतो. */
.container-fluid{ width:100%; max-width:100%; margin:0; padding:0 clamp(20px,5vw,64px); }
/* min-height ला 680px वर cap केलं — नाहीतर मोबाईल ब्राउझरमध्ये "Desktop site" सुरू केल्यावर
   रुंदी desktop इतकी (max-width:760px खाली येत नाही) पण उंची फोनचीच (पोर्ट्रेट, कमी-जास्त उंच)
   राहते, त्यामुळे 100vh कधीकधी खूप मोठा ठरून मजकुराच्या वर/खाली मोठी रिकामी जागा (gap) दिसायची. */
section{
  min-height:min(calc(100vh - 76px), 680px); display:flex; align-items:center;
  padding:56px 0; border-bottom:1px solid var(--brass-line); overflow-x:hidden;
}
@media (max-width:760px){
  /* मोबाईलवर प्रत्येक सेक्शन संपूर्ण स्क्रीन उंची घेऊ नये — मजकुराइतकीच जागा घेऊन नैसर्गिकरित्या वाहावं */
  section{ min-height:0; display:block; padding:40px 0; }
}

header.nav{
  position:sticky; top:0; z-index:50; background:rgba(251,243,227,.9); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--brass-line);
}
.nav-inner{
  max-width:1180px; margin:0 auto; padding:14px clamp(20px,5vw,64px); position:relative;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.nav-brand{ display:flex; align-items:center; gap:10px; font-family:'Baloo 2',sans-serif; font-weight:700; font-size:18px; text-decoration:none; color:var(--ivory); flex-shrink:0; }
.nav-brand .mark{ width:32px; height:32px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.nav-links{ display:flex; gap:24px; font-family:'Hind',sans-serif; font-size:14px; color:var(--gold-dust); }
.nav-links a{ text-decoration:none; white-space:nowrap; }
.nav-links a:hover, .nav-links a.active{ color:var(--marigold-soft); }
.nav-cta{ font-family:'Hind',sans-serif; font-weight:600; font-size:13.5px; padding:10px 20px; border-radius:4px; background:var(--marigold); color:#231208; text-decoration:none; flex-shrink:0; white-space:nowrap; }
.nav-toggle{ display:none; background:none; border:1px solid var(--brass-line-strong); border-radius:4px; color:var(--ivory); font-size:18px; line-height:1; padding:8px 12px; cursor:pointer; flex-shrink:0; }

/* --- मोबाईल हेडर फिक्स ---
   जुन्या CSS मध्ये nav-inner ला flex-wrap नव्हता आणि nav-cta/nav-brand आकार desktop इतकाच राहायचा,
   त्यामुळे ~360-390px रुंदीच्या फोनवर उजवीकडचं बटण कापलं जायचं (viewport बाहेर जायचं).
   खाली दोन्ही उपाय एकत्र: घटकांचा आकार मोबाईलवर लहान करणे + गरज पडल्यास दुसऱ्या ओळीत wrap होऊ देणे. */
@media (max-width:760px){
  .nav-toggle{ display:inline-flex; }
  .nav-inner{ flex-wrap:wrap; row-gap:8px; column-gap:10px; padding-top:12px; padding-bottom:12px; }
  .nav-brand{ font-size:15px; gap:8px; }
  .nav-brand .mark{ width:28px; height:28px; }
  .nav-toggle{ font-size:16px; padding:7px 10px; }
  .nav-cta{ font-size:12.5px; padding:9px 15px; }
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background:var(--panel);
    border-bottom:1px solid var(--brass-line); padding:6px 0;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:14px clamp(20px,5vw,64px); border-top:1px solid var(--brass-line); }
  .nav-links a:first-child{ border-top:none; }
}
@media (max-width:400px){
  /* अतिशय अरुंद फोनवर (≤360px) आणखी थोडं आकुंचन जेणेकरून एकाच ओळीत बसेल */
  .nav-brand span.brand-text{ display:none; }
  .nav-cta{ padding:9px 12px; }
}

.btn{ font-family:'Hind',sans-serif; font-weight:600; font-size:14.5px; padding:14px 26px; border-radius:4px; text-decoration:none; display:inline-block; border:none; cursor:pointer; }
.btn.pri{ background:var(--marigold); color:#231208; }
.btn.ghost{ border:1px solid var(--brass-line-strong); color:var(--ivory); background:transparent; }
.trial-badge{ display:inline-flex; align-items:center; gap:8px; font-family:'Hind',sans-serif; font-weight:600; font-size:13px;
  color:#231208; background:var(--marigold); padding:8px 16px; border-radius:20px; margin-bottom:18px; }

.garland{ display:flex; align-items:center; gap:10px; margin:34px 0; max-width:340px; }
.garland::before, .garland::after{ content:''; flex:1; height:1px; background:var(--brass-line-strong); }
.garland i{ width:6px; height:6px; border-radius:50%; background:var(--marigold); flex-shrink:0; }
.garland i:nth-child(3){ background:var(--sindoor); width:8px; height:8px; }

.check-list{ list-style:none; margin:26px 0 0; padding:0; display:flex; flex-direction:column; gap:14px; }
.check-list li{ font-family:'Hind',sans-serif; font-size:14.5px; line-height:1.55; color:var(--ivory); display:flex; gap:10px; }
.check-list li::before{ content:'✓'; color:var(--marigold); flex-shrink:0; font-size:13px; margin-top:2px; font-weight:700; }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:940px){ .split{ grid-template-columns:1fr; } }

/* home.php व about_us.php वरचा मोठा बाजूचा लोगो — पूर्वी फक्त फिकट glow होता, आता स्वतःचं
   panel-रंगाचं पार्श्वभूमी कार्ड (गोल आकारासोबत) दिलं आहे जेणेकरून लोगो रिकाम्या पार्श्वभूमीवर
   तरंगल्यासारखा न दिसता एका स्पष्ट कार्डमध्ये बसलेला दिसेल. */
.logo-wrap{ display:flex; justify-content:center; align-items:center; position:relative;
  background:radial-gradient(circle at 50% 42%, var(--panel-2), var(--panel) 70%);
  border:1px solid var(--brass-line-strong); border-radius:24px; padding:48px 32px; }
.logo-wrap::before{
  content:''; position:absolute; inset:-40px; background:radial-gradient(circle, rgba(232,162,58,.16), transparent 65%); z-index:0;
}
.logo-wrap img{ position:relative; z-index:1; width:100%; max-width:320px; border-radius:50%; object-fit:cover;
  box-shadow:0 30px 60px -24px rgba(43,38,32,.3), 0 0 0 8px rgba(224,123,26,.16); }

/* नवीनतम अपडेट्स कार्ड्स — home.php व latest_updates.php दोन्हीकडे वापरतात */
.news-grid{ display:flex; flex-direction:column; gap:22px; margin-top:36px; }
.news-card{ display:flex; gap:20px; padding:22px; border-radius:8px; border:1px solid var(--brass-line-strong); background:var(--panel); }
@media (max-width:600px){ .news-card{ flex-direction:column; } }
.news-card img{ width:180px; height:130px; object-fit:cover; border-radius:6px; flex-shrink:0; }
@media (max-width:600px){ .news-card img{ width:100%; height:180px; } }
.news-card .nc-date{ font-family:'Hind',sans-serif; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--marigold-soft); margin-bottom:8px; }
.news-card .nc-title{ font-family:'Baloo 2',sans-serif; font-weight:700; font-size:19px; color:var(--ivory); margin-bottom:8px; }
.news-card .nc-msg{ font-family:'Hind',sans-serif; font-size:14.5px; line-height:1.7; color:var(--gold-dust); white-space:pre-line; }
.news-empty{ font-family:'Hind',sans-serif; font-size:15px; color:var(--gold-dust-dim); margin-top:30px; }

/* जाहिरात-जागा (ad slot) — home.php/about_us.php/about_app.php/latest_updates.php/mandals_directory.php
   वर वापरतात (renderAdSlot(), config.php). fixed-height बॉक्समुळे वेगवेगळ्या आकाराच्या जाहिराती
   rotate होताना उंची अचानक बदलत नाही; object-fit:contain मुळे इमेज क्रॉप/स्ट्रेच होत नाही —
   त्यामुळे कुठल्याही स्क्रीन आकारावर नीट बसतं. */
.ad-slot{ padding:20px 0; }
.ad-rotator{ position:relative; width:100%; height:180px; background:var(--panel);
  border:1px solid var(--brass-line-strong); border-radius:10px; overflow:hidden; }
@media (max-width:700px){ .ad-rotator{ height:130px; } }
@media (max-width:420px){ .ad-rotator{ height:100px; } }
.ad-slide{ position:absolute; inset:0; opacity:0; transition:opacity .8s ease;
  display:flex; align-items:center; justify-content:center; padding:10px; }
.ad-slide.active{ opacity:1; }
.ad-slide a{ display:flex; width:100%; height:100%; align-items:center; justify-content:center; }
.ad-slide img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
@media (prefers-reduced-motion: reduce){ .ad-slide{ transition:none; } }
.ad-note{ text-align:right; font-family:'Hind',sans-serif; font-size:11px; color:var(--gold-dust-dim); margin-top:6px; }
.ad-note a{ color:inherit; text-decoration:underline; }

footer{ padding:40px 0 60px; }
.foot-inner{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; font-family:'Hind',sans-serif; font-size:12.5px; color:var(--gold-dust-dim); }
.foot-brand{ display:flex; align-items:center; gap:8px; color:var(--gold-dust); }
.foot-brand .mark{ width:24px; height:24px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.foot-links{ display:flex; gap:16px; flex-wrap:wrap; }
.foot-links a{ text-decoration:none; }
.foot-links a:hover{ color:var(--marigold-soft); }
.foot-social{ display:flex; gap:10px; }
.foot-social a{ width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--panel); border:1px solid var(--brass-line-strong); color:var(--ivory); font-size:13px;
  text-decoration:none; transition:background .2s ease, color .2s ease; }
.foot-social a:hover{ background:var(--marigold); color:#231208; }
.foot-credit{ margin-top:18px; padding-top:18px; border-top:1px solid var(--brass-line); display:flex; flex-wrap:wrap;
  justify-content:center; gap:8px; text-align:center; font-family:'Hind',sans-serif; font-size:11.5px; color:var(--gold-dust-dim); }
.foot-credit a{ color:var(--gold-dust); text-decoration:none; }
.foot-credit a:hover{ color:var(--marigold-soft); }
.foot-disclaimer{ margin-top:18px; padding-top:18px; border-top:1px solid var(--brass-line); font-family:'Hind',sans-serif;
  font-size:11px; line-height:1.6; color:var(--gold-dust-dim); text-align:center; }
.foot-credit-sep{ opacity:.5; }
