/* ============================================================
   DR. AZHAR ANWAR — WEBSITE STYLESHEET v10.2
   ============================================================
   
   CHANGES IN v10.2:
   - JPG backgrounds instead of SVG
   - Theme-aware overlays (adapts to light/dark mode)
   - Light font added for hero name
   
   ============================================================ */


/* ============================================================
   FONTS
   ============================================================ */

/* Cross-platform system font setup */

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
               Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

body {
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

/* Hindi pages */
:lang(hi) {
  font-family: system-ui, "Nirmala UI",
               "Noto Sans Devanagari",
               "Mangal", sans-serif;
}

/* ============================================================
   COLORS - LIGHT THEME (default)
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:         #cccccc;
  --bg-alt:     #dddddd;
  --bg-card:    #ffffff;
  --bg-card-lt: #eeeeee;
  
  /* Text Colors */
  --ink:        #1F2937;
  --ink-soft:   #4B5563;
  --ink-light:  #8e949f;
  --ink-faint:  #D1D5DB;
  
  /* Primary Color (Teal) */
  --accent:     #0D9488;
  --accent-dk:  #0F766E;
  --accent-lt:  rgba(13,148,136,0.08);
  --accent-xs:  rgba(13,148,136,0.04);
  
  /* Secondary Color (Gold) */
  --gold:       #B8860B;
  --gold-dk:    #996F00;
  --gold-lt:    rgba(184,134,11,0.1);
  
  /* Borders & Lines */
  --line:       #E5E7EB;
  
  /* Shadows */
  --shadow:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
  
 /* Fonts */
 --serif: Georgia, "Times New Roman", Times, serif;

 --sans: system-ui, -apple-system, "Segoe UI", Roboto,
        Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;

 /* Spacing & Sizing */
 --nav-h: 72px;
 --max: 1100px;
 --radius: 6px;
 --radius-md: 12px;
 --trans: 0.2s ease;

 
 /* THEME-AWARE OVERLAYS - Light mode */
  --overlay-hero:        linear-gradient(rgba(200, 200, 200, 0.80), rgba(200,200,200,0.80));
  --overlay-page-header: linear-gradient(rgba(200,200,200,0.60), rgba(200,200,200,0.60));
  --overlay-section:     linear-gradient(rgba(250,250,250,0.95), rgba(250,250,250,0.95));
  --overlay-cta:         linear-gradient(rgba(13,148,136,0.80), rgba(13,148,136,0.80));
}


/* ============================================================
   COLORS - DARK THEME
   ============================================================ */

[data-theme="dark"] {
  --bg:         #0F1419;
  --bg-alt:     #1C2B2D;
  --bg-card:    #1A2328;
  --bg-card-lt: #243035;
  
  --ink:        #F3F4F6;
  --ink-soft:   #D1D5DB;
  --ink-light:  #9CA3AF;
  --ink-faint:  #4B5563;
  
  --accent:     #5BBCB0;
  --accent-dk:  #4AA89D;
  --accent-lt:  rgba(91,188,176,0.12);
  --accent-xs:  rgba(91,188,176,0.06);
  
  --gold:       #C9A96E;
  --gold-dk:    #B8944D;
  --gold-lt:    rgba(201,169,110,0.12);
  
  --line:       #2D3B40;
  
  --shadow:     0 1px 3px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.25);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.3);
  
  /* THEME-AWARE OVERLAYS - Dark mode */
  --overlay-hero:        linear-gradient(rgba(15,20,25,0.70), rgba(15,20,25,0.70));
  --overlay-page-header: linear-gradient(rgba(15,20,25,0.85), rgba(15,20,25,0.85));
  --overlay-section:     linear-gradient(rgba(15,20,25,0.98), rgba(15,20,25,0.98));
  --overlay-cta:         linear-gradient(rgba(13,100,90,0.60), rgba(13,100,90,0.60));
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }


/* ============================================================
   NAVIGATION BAR
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: background-color var(--trans), box-shadow var(--trans);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color var(--trans), background-color var(--trans);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-xs);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--trans);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.btn-wa {
  background: #25D366;
  color: #fff;
}
.btn-wa:hover {
  background: #1fb855;
  color: #fff;
  transform: translateY(-1px);
}
.btn-wa svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}


/* ============================================================
   THEME & LANGUAGE BUTTONS
   ============================================================ */

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: all var(--trans);
}
.icon-btn:hover {
  background: var(--accent-lt);
  color: var(--accent);
  border-color: var(--accent);
}

.lang-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  transition: color var(--trans), background-color var(--trans);
}
.lang-link:hover {
  color: var(--accent);
  background: var(--accent-xs);
}


/* ============================================================
   MOBILE MENU
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  right: 1rem;
  width: 200px;
  background: var(--bg);
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu a:hover { 
  color: var(--accent); 
  background: var(--bg-alt);
}

.mobile-menu-footer {
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem 0.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: center;
}


/* ============================================================
   PAGE SECTIONS
   ============================================================ */

section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.rule {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
}


/* ============================================================
   PAGE HERO (Section header for inner pages)
   ============================================================ */

.page-hero {
  padding: calc(var(--nav-h) + 3rem) 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  /* Background set per-page via inline style or page CSS */
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 500px;
  margin: 0 auto;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-light);
}

.credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.credential-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-lt);
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}




/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d3659d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform var(--trans), box-shadow var(--trans);
  z-index: 900;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

.inline-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--trans);
}
.inline-link:hover {
  color: var(--accent-dk);
  text-decoration: underline;
}


/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ============================================================
   RESPONSIVE / MOBILE STYLES
   ============================================================ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .footer-inner { grid-template-columns: 1fr 1fr; }
  
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 1.2rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 1.2rem 2.5rem; }
}


/* ============================================================
   ARTICLE PAGES
   ============================================================ */

.article-section { background: var(--bg-alt); }

.article-wrap { max-width: 740px; margin: 0 auto; }

/* META */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.article-category {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  background: var(--accent-lt); padding: 0.3rem 0.7rem; border-radius: 4px;
}
.article-date, .article-read-time { font-size: 0.85rem; color: var(--ink-soft); }

/* ARTICLE BODY */
.article-body {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 2.5rem; box-shadow: var(--shadow);
}
.article-body h2 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.article-body p { font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-body li { font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); margin-bottom: 0.3rem; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.2em; font-weight: 700; line-height: 0.8;
  float: left; margin: 0.05em 0.12em 0 0; color: var(--accent);
}

/* KEY FACTS */
.key-facts {
  background: var(--accent-xs); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.key-facts-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.75rem;
}
.key-facts ul { margin: 0; padding-left: 1.2rem; }
.key-facts li { font-size: 0.95rem; color: var(--ink); line-height: 1.7; margin-bottom: 0.25rem; }

/* WARNING */
.warning-box {
  background: var(--gold-lt); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.warning-box-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-dk); margin-bottom: 0.5rem;
}
.warning-box p { font-size: 0.95rem; color: var(--ink); margin: 0; }

/* SCORE TABLE */
.score-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.score-table th {
  background: var(--accent-lt); color: var(--accent-dk);
  padding: 0.6rem 0.8rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--accent);
}
.score-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.score-table tr:last-child td { border-bottom: none; }

/* INLINE CTA */
.article-inline-cta {
  background: var(--accent); border-radius: var(--radius-md);
  padding: 1.5rem; margin: 2rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.article-inline-cta p { color: #fff; font-size: 0.95rem; margin: 0; flex: 1; }
.article-inline-cta strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 0.25rem; }

/* AUTHOR BIO */
.author-bio {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-lt); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.2rem; }
.author-info span { font-size: 0.85rem; color: var(--ink-soft); }

/* ARTICLE BOTTOM CTA STRIP */
.article-cta-strip {
  padding: 4rem 2rem;
  background: var(--overlay-cta), url('/assets/images/pages/cta-bg.jpg') center/cover no-repeat;
}
.article-cta-inner {
  max-width: 740px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.article-cta-inner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.article-cta-inner p { color: rgba(255,255,255,0.85); margin-bottom: 0; font-size: 0.95rem; }
.article-cta-inner .cta-text { flex: 1; }
.article-cta-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .article-inline-cta { flex-direction: column; }
  .score-table { font-size: 0.8rem; }
  .article-cta-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .article-section { padding: 3rem 1.2rem; }
  .article-body { padding: 1.5rem; }
  .article-cta-strip { padding: 3rem 1.2rem; }
}
