@font-face {
  font-family: "PlayfairDisplay";
  src: url("/assets/fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "PlayfairDisplay";
  src: url("/assets/fonts/PlayfairDisplay-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "NotoSans";
  src: url("/assets/fonts/NotoSans-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "NotoSans";
  src: url("/assets/fonts/NotoSans-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "TiroDevanagari";
  src: url("/assets/fonts/TiroDevanagari-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --bg: #f5efe2;
  --surface: rgba(255, 250, 242, 0.9);
  --surface-strong: #fffaf2;
  --surface-soft: rgba(255, 248, 232, 0.78);
  --surface-soft-strong: rgba(255, 252, 246, 0.92);
  --ink: #1d2438;
  --muted: #5d6476;
  --accent: #a8481f;
  --accent-dark: #7d3110;
  --gold: #c88d2b;
  --sage: #5c6d60;
  --line: rgba(29, 36, 56, 0.12);
  --line-strong: rgba(29, 36, 56, 0.18);
  --ring: rgba(168, 72, 31, 0.18);
  --shadow: 0 24px 80px rgba(20, 26, 41, 0.12);
  --topbar-bg: rgba(252, 247, 239, 0.82);
  --footer-bg: rgba(255, 250, 242, 0.68);
  --note-bg: rgba(92, 109, 96, 0.1);
  --note-border: rgba(92, 109, 96, 0.18);
  --glow-a: rgba(200, 141, 43, 0.18);
  --glow-b: rgba(92, 109, 96, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --landing-primary: #e86616;
  --landing-accent: #66bb6a;
  --landing-border: rgba(168, 197, 160, 0.46);
  --landing-topbar-start: rgba(245, 240, 232, 0.96);
  --landing-topbar-end: rgba(232, 102, 22, 0.74);
  --landing-overlay-start: rgba(245, 240, 232, 0.82);
  --landing-overlay-mid: rgba(232, 102, 22, 0.16);
  --landing-overlay-end: rgba(245, 240, 232, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  font-family: "NotoSans", sans-serif;
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 22, 16, 0.12), rgba(12, 22, 16, 0.12)),
    url("/assets/images/universe_bg.png") center / cover no-repeat;
}

body::after {
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--landing-overlay-start) 0%,
    var(--landing-overlay-mid) 48%,
    var(--landing-overlay-end) 100%
  );
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

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

img {
  max-width: 100%;
  display: block;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    135deg,
    var(--landing-topbar-start) 0%,
    var(--landing-topbar-end) 100%
  );
  border-bottom: 1px solid rgba(168, 197, 160, 0.3);
  box-shadow: 0 18px 38px rgba(12, 22, 16, 0.14);
}

.topbar-inner,
.shell,
.footer-inner {
  width: min(calc(100% - clamp(20px, 4vw, 32px)), var(--container));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  font-family: "TiroDevanagari", serif;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: "PlayfairDisplay", serif;
  color: var(--landing-primary);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  font-weight: 700;
}

.brand-tagline {
  color: rgba(26, 14, 4, 0.72);
  font-size: 0.88rem;
}

.topbar-inner-app {
  gap: 18px;
}

.brand-app {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  padding: 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(232, 102, 22, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.topbar-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.header-mantra {
  color: var(--landing-accent);
  font-family: "TiroDevanagari", serif;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: #2b2118;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--landing-accent);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--landing-primary);
  text-decoration: none;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--landing-primary) 0%, #f08a42 100%);
  color: #fffaf2;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(232, 102, 22, 0.22);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-login:hover {
  color: #fffaf2;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(232, 102, 22, 0.26);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(168, 72, 31, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button {
  color: #fffaf2;
  background: linear-gradient(
    135deg,
    var(--landing-primary) 0%,
    #f08a42 100%
  );
}

.button-secondary {
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: none;
}

.button:hover,
.button-secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.shell {
  padding: 48px 0 72px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.card,
.article,
.cta-bar,
.section-panel {
  border: 1px solid var(--landing-border);
  background: rgba(255, 250, 242, 0.9);
  border-radius: 30px;
  box-shadow: 0 24px 64px rgba(12, 22, 16, 0.14);
  backdrop-filter: blur(14px);
}

.hero-copy,
.hero-card,
.article,
.section-panel,
.cta-bar {
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 141, 43, 0.32);
  color: var(--accent-dark);
  background: var(--surface-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "PlayfairDisplay", serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
}

h3 {
  font-size: 1.26rem;
}

p {
  margin: 0 0 14px;
}

.lede {
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 66ch;
}

.tag-row,
.pill-row,
.stats-grid,
.mini-grid,
.grid {
  display: grid;
  gap: 16px;
}

.pill-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 22px 0 0;
}

.pill {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 141, 43, 0.26);
  background: var(--surface-soft);
  font-size: 0.94rem;
}

.pill strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-card dt {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.section {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--muted);
  max-width: 68ch;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card p:last-child,
.section-panel p:last-child,
.cta-bar p:last-child,
.article p:last-child {
  margin-bottom: 0;
}

.card-kicker,
.topic-state,
.article-meta,
.faq-label {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topic-list {
  display: grid;
  gap: 16px;
}

.topic-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 197, 160, 0.28);
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 18px 46px rgba(12, 22, 16, 0.08);
}

.topic-card h3 {
  margin-bottom: 10px;
}

.topic-card p {
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 20px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid rgba(200, 141, 43, 0.24);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 10px;
}

.quote {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-soft);
  color: var(--ink);
}

.cta-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: center;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 197, 160, 0.24);
  background: rgba(255, 252, 246, 0.9);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin-top: 12px;
  color: var(--muted);
}

.article {
  display: grid;
  gap: 26px;
}

.article h2 {
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.toc {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 197, 160, 0.24);
  background: rgba(255, 252, 246, 0.9);
}

.toc ol {
  margin: 12px 0 0;
  padding-left: 18px;
}

.table-like {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.table-like th,
.table-like td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(29, 36, 56, 0.08);
  text-align: left;
}

.table-like th {
  background: var(--surface-soft);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}

.table-like tr:last-child td {
  border-bottom: none;
}


/* Replace your existing footer styles with this */

.footer {
  width: 100%;
  background: transparent;
  border-top: none;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;      /* center horizontally */
  justify-content: center;  /* center vertically */
  text-align: center;
  gap: 10px;
  padding: 28px 0 48px;
  margin: 0 auto;
}

.footer-inner-stack,
.footer-brand-block,
.footer-brand-block-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 
.footer {
  border-top: none;
  background: transparent;

   display: flex;
  justify-content: center;  
  align-items: center;       
  text-align: center;
  width: 100%;
}

.footer-inner {
  padding: 28px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
    align-items: center;      
  text-align: center;
}
  .footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-inner-stack {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px 0 18px;
}

.footer-brand-block {
  display: grid;
  gap: 6px;
}

.footer-brand-block-center {
  justify-items: center;
}

*/

.footer-inner-brand {
  align-items: center;
}



.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(168, 197, 160, 0.44);
}




.footer-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.footer-brand-name {
  color: var(--landing-primary);
  font-family: "PlayfairDisplay", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.69rem;
}

.footer-mantra {
  color: var(--landing-accent);
  font-size: 0.69rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links-center {
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  color: var(--ink);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 141, 43, 0), rgba(200, 141, 43, 0.45), rgba(200, 141, 43, 0));
  margin: 6px 0 10px;
}

.page-theme-cluster {
  --accent: #9d4a25;
  --accent-dark: #743112;
  --gold: #d19a3d;
  --sage: #5d7568;
  --glow-a: rgba(209, 154, 61, 0.2);
  --glow-b: rgba(93, 117, 104, 0.16);
}

.page-theme-temple {
  --accent: #9c4219;
  --accent-dark: #6f2d0f;
  --gold: #c88d2b;
  --sage: #4e6e62;
  --glow-a: rgba(200, 141, 43, 0.22);
  --glow-b: rgba(78, 110, 98, 0.18);
}

.page-theme-budget {
  --accent: #8f4518;
  --accent-dark: #633110;
  --gold: #b98226;
  --sage: #667e4f;
  --glow-a: rgba(185, 130, 38, 0.18);
  --glow-b: rgba(102, 126, 79, 0.18);
}

.page-theme-family {
  --accent: #b05a2b;
  --accent-dark: #7f3c17;
  --gold: #d5a34a;
  --sage: #668178;
  --glow-a: rgba(213, 163, 74, 0.2);
  --glow-b: rgba(102, 129, 120, 0.17);
}

.page-theme-route {
  --accent: #8c4b2a;
  --accent-dark: #5d311b;
  --gold: #cb9445;
  --sage: #5e7485;
  --glow-a: rgba(203, 148, 69, 0.18);
  --glow-b: rgba(94, 116, 133, 0.18);
}

.page-theme-booking {
  --accent: #9b421c;
  --accent-dark: #6a2910;
  --gold: #d69b3f;
  --sage: #4f6c77;
  --glow-a: rgba(214, 155, 63, 0.2);
  --glow-b: rgba(79, 108, 119, 0.16);
}

.page-theme-travel {
  --accent: #8c4924;
  --accent-dark: #5b2d12;
  --gold: #c7963e;
  --sage: #587162;
  --glow-a: rgba(199, 150, 62, 0.2);
  --glow-b: rgba(88, 113, 98, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f141c;
    --surface: rgba(18, 24, 33, 0.9);
    --surface-strong: #141b24;
    --surface-soft: rgba(31, 40, 52, 0.88);
    --surface-soft-strong: rgba(24, 31, 42, 0.95);
    --ink: #f4eee4;
    --muted: #c5b9a8;
    --accent: #f28f4d;
    --accent-dark: #ffd0b4;
    --gold: #e0bc6c;
    --sage: #91b19d;
    --line: rgba(244, 238, 228, 0.12);
    --line-strong: rgba(244, 238, 228, 0.18);
    --ring: rgba(242, 143, 77, 0.3);
    --shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
    --topbar-bg: rgba(15, 20, 28, 0.82);
    --footer-bg: rgba(13, 18, 26, 0.8);
    --note-bg: rgba(145, 177, 157, 0.12);
    --note-border: rgba(145, 177, 157, 0.22);
    --glow-a: rgba(242, 143, 77, 0.14);
    --glow-b: rgba(145, 177, 157, 0.12);
  }

  body::after {
    background: linear-gradient(
      180deg,
      rgba(12, 22, 16, 0.86) 0%,
      rgba(232, 102, 22, 0.18) 42%,
      rgba(12, 22, 16, 0.94) 100%
    );
  }

  .topbar {
    background: linear-gradient(
      135deg,
      rgba(12, 22, 16, 0.96) 0%,
      rgba(232, 102, 22, 0.74) 100%
    );
    border-bottom-color: rgba(244, 238, 228, 0.08);
  }

  .brand-logo {
    background: rgba(20, 33, 26, 0.92);
  }

  .brand-tagline,
  .nav-links a,
  .footer-copy,
  .footer-links a {
    color: #c5b9a8;
  }

  .header-mantra,
  .footer-mantra {
    color: #8daf8d;
  }

  .hero-copy,
  .hero-card,
  .card,
  .article,
  .cta-bar,
  .section-panel,
  .faq details,
  .topic-card,
  .toc {
    background: rgba(20, 33, 26, 0.9);
    border-color: rgba(46, 94, 51, 0.76);
  }
}

@media (max-width: 1040px) {
  .topbar-inner-app {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-nav-wrap {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .header-mantra {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .hero,
  .cta-bar,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .topbar-nav-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-app {
    width: 100%;
  }

  .header-mantra {
    white-space: normal;
    text-align: left;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
  }

  .header-login {
    width: 100%;
  }

  .shell {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-card,
  .article,
  .section-panel,
  .cta-bar {
    padding: 22px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions > * {
    flex: 1 1 100%;
  }

  .footer-inner-brand {
    align-items: flex-start;
  }

  .table-like {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-like th,
  .table-like td {
    min-width: 150px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-tagline,
  .breadcrumbs,
  .article-meta,
  .footer-inner {
    font-size: 0.88rem;
  }

  .footer-brand-name {
    font-size: 0.96rem;
  }

  .hero-copy,
  .hero-card,
  .article,
  .section-panel,
  .cta-bar,
  .card,
  .topic-card {
    padding: 18px;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .cta-actions {
    gap: 10px;
  }

  .section {
    margin-top: 26px;
  }

  .pill-row,
  .stats-grid,
  .mini-grid,
  .grid,
  .topic-list {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }
}
