/* =========================================
   DHARMBODH - MAIN WEBSITE STYLES
   Responsive Hindi / Sanatan Knowledge Website
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "Mangal", "Segoe UI", Arial, sans-serif;
  color: #2d241f;
  background: #fffaf3;
  line-height: 1.7;
}

a {
  color: #8b3f16;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

/* =========================================
   COMMON
   ========================================= */

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 42px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #3b2418;
}

.section-title a {
  font-weight: 700;
  white-space: nowrap;
}

.ad-slot {
  min-height: 90px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d9c5ae;
  border-radius: 12px;
  color: #9a8877;
  background: #fffdf9;
  font-size: 0.9rem;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 243, 0.97);
  border-bottom: 1px solid #eadbca;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6f2f12;
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans Devanagari", "Mangal", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

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

.nav a {
  padding: 8px 10px;
  color: #4a3428;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a:hover {
  color: #8b3f16;
  background: #f4e5d4;
  text-decoration: none;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid #d9c5ae;
  border-radius: 8px;
  background: #fffaf3;
  color: #6f2f12;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  padding: 74px 0 66px;
  background:
    radial-gradient(circle at 85% 20%, rgba(235, 164, 82, 0.18), transparent 30%),
    linear-gradient(135deg, #fff4e4 0%, #f9e5ca 100%);
  border-bottom: 1px solid #ead5bd;
}

.hero .container {
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9b4b18;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  color: #3e2417;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.25;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 0;
  color: #684d3d;
  font-size: 1.08rem;
}

/* =========================================
   DAILY CARDS
   ========================================= */

.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #eadbca;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(72, 42, 20, 0.06);
}

.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff0df;
  color: #8b3f16;
}

.card .icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h2 {
  margin: 0 0 10px;
  color: #3e2a20;
  font-size: 1.25rem;
  line-height: 1.4;
}

.card p {
  margin: 0;
  color: #665248;
}

.card.highlight {
  background: linear-gradient(145deg, #fff8ed, #fff0db);
  border-color: #e9c89e;
}

.card .mantra {
  color: #8b3f16;
  font-size: 1.18rem;
  font-weight: 700;
}

.card small {
  display: block;
  margin-top: 8px;
  color: #806b5b;
}

/* =========================================
   QUIZ
   ========================================= */

.quiz-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid #eadbca;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(72, 42, 20, 0.06);
}

.quiz-card h3 {
  margin: 0 0 20px;
  color: #3d2a20;
  font-size: 1.15rem;
  line-height: 1.6;
}

.quiz-option {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px 15px;
  border: 1px solid #ddcdbd;
  border-radius: 10px;
  background: #fffaf5;
  color: #3d3029;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: #b96b35;
  background: #fff0df;
  transform: translateY(-1px);
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.85;
}

.quiz-result {
  min-height: 28px;
  margin: 14px 0 0;
  font-weight: 700;
}

/* =========================================
   ARTICLES
   ========================================= */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.latest-article-card {
  height: 100%;
}

.latest-article-card h3 {
  margin: 0 0 8px;
  color: #542c18;
  font-size: 1.1rem;
  line-height: 1.5;
}

.latest-article-card h3 a {
  color: inherit;
}

.latest-article-card p {
  margin: 0;
  color: #6c5b50;
  font-size: 0.95rem;
}

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

footer {
  margin-top: 40px;
  padding: 42px 0 20px;
  background: #3a251b;
  color: #f7eadb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

footer h3 {
  margin: 0 0 8px;
  color: #fff7ed;
  font-size: 1.25rem;
}

footer p {
  margin: 0;
  color: #ddcabb;
}

footer a {
  display: inline-block;
  margin: 0 16px 8px 0;
  color: #f5d7b7;
}

footer a:hover {
  color: #ffffff;
}

.copyright {
  margin-top: 32px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.9rem;
}

/* =========================================
   SVG / ICON FIX
   ========================================= */

.hero-icon,
.section-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  vertical-align: -5px;
}

.hero-icon svg,
.section-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-om {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans Devanagari", "Mangal", sans-serif;
}

/* =========================================
   RESPONSIVE - TABLET
   ========================================= */

@media (max-width: 900px) {

  .nav-wrap {
    min-height: 62px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 7px 6px;
    font-size: 0.86rem;
  }

  .daily-grid {
    grid-template-columns: 1fr;
  }

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

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 700px) {

  .container {
    width: min(100% - 24px, 560px);
  }

  .site-header {
    position: relative;
  }

  .nav-wrap {
    min-height: 60px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fffaf3;
    border: 1px solid #eadbca;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(50, 30, 15, 0.12);
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .hero {
    padding: 50px 0 44px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-title h2 {
    font-size: 1.3rem;
  }

  .daily-grid {
    gap: 14px;
    margin: 22px 0;
  }

  .card,
  .quiz-card {
    padding: 20px;
    border-radius: 14px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ad-slot {
    min-height: 70px;
    margin: 18px 0;
  }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 400px) {

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    flex-direction: column;
    gap: 6px;
  }

  .card h2 {
    font-size: 1.15rem;
  }

  .quiz-card h3 {
    font-size: 1.05rem;
  }
}


/* =========================================
   DHARMBODH - DEVOTIONAL HOMEPAGE
   ========================================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "ॐ";
  position: absolute;
  right: 7%;
  top: 12%;
  font-family: "Noto Sans Devanagari", "Mangal", sans-serif;
  font-size: clamp(5rem, 14vw, 10rem);
  line-height: 1;
  color: rgba(139, 63, 22, 0.07);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #8b3f16;
  color: #fff;
  font-weight: 700;
  border: 1px solid #8b3f16;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(91, 44, 16, 0.15);
}

.btn:hover {
  background: #6f2f12;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.55);
  color: #7a3513;
}

.btn-outline:hover {
  background: #fff;
  color: #6f2f12;
}

.devotional-intro .card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid #c47736;
}

.devotional-intro .card::after {
  content: "✦";
  position: absolute;
  right: 16px;
  top: 10px;
  color: rgba(139, 63, 22, 0.16);
  font-size: 1.7rem;
}

.devotional-intro .card h3 {
  margin: 0 0 8px;
  color: #542c18;
  font-size: 1.15rem;
}

.devotional-intro .card h3 a {
  color: inherit;
}

.dharma-essence-card {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 159, 74, 0.14), transparent 45%),
    #fffdf8;
  border: 1px solid #e4c79f;
}

.om-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff0dc;
  color: #8b3f16;
  font-family: "Noto Sans Devanagari", "Mangal", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #e8cba6;
}

.dharma-essence-card h2 {
  margin-bottom: 8px;
}

.essence-text {
  max-width: 760px;
  margin: 0 auto !important;
  font-size: 1.08rem;
}

#teerthYatraSection .latest-article-card {
  border-top: 3px solid #9b4b18;
}

#teerthYatraSection .section-title h2 {
  color: #542c18;
}

@media (max-width: 700px) {
  .hero::before {
    right: -8%;
    top: 7%;
    font-size: 7rem;
  }

  .hero-actions {
    gap: 9px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .devotional-intro .article-grid {
    grid-template-columns: 1fr;
  }

  .essence-text {
    font-size: 1rem;
  }
}


/* Religious story related-links section */
.related-kathayein {
  margin-top: 10px;
}
.related-kathayein .latest-article-card {
  border-top: 3px solid #c47736;
}
.related-kathayein .latest-article-card h3 a {
  color: #542c18;
}
.related-kathayein .latest-article-card h3 a:hover {
  color: #8b3f16;
}

.story-page{max-width:900px;margin:28px auto}.story-hero-image{display:block;width:100%;height:auto;border-radius:20px;margin:12px 0 24px;box-shadow:0 8px 24px rgba(80,45,20,.15)}.story-page h1{color:#5f351c;font-size:clamp(1.9rem,4vw,2.7rem)}.story-page h2{color:#7b431e;margin-top:30px;border-left:5px solid #c47736;padding-left:12px}.story-page p{font-size:1.06rem;line-height:1.95}.story-highlight{margin-top:30px;padding:18px;background:#fff3dd;border:1px solid #e2bd8b;border-radius:14px}@media(max-width:700px){.story-page p{font-size:1rem;line-height:1.82}.story-hero-image{border-radius:14px}}
