/* =========================================================
   BastariyaBabu.in — Bastar Earthy Cultural Theme
   Palette: Terracotta (#B84A27), Forest Green (#1D4B3A),
            Warm Cream (#FAF5EC), Soft Sand (#F2E8D5)
   ========================================================= */

:root {
  --terracotta: #B84A27;
  --terracotta-dark: #93381B;
  --forest: #1D4B3A;
  --forest-dark: #143629;
  --ochre: #C88A2E;
  --cream: #FAF5EC;
  --sand: #F2E8D5;
  --surface: #FFFFFF;
  --ink: #231F1D;
  --muted: #5E554F;
  --border: #E2D5C0;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(35, 31, 29, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif;
  line-height: 1.3;
  margin-top: 0;
  color: var(--ink);
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Subtle Bastar Tribal Geometric Accent Strip */
.tribal-border-top {
  height: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--terracotta) 0 12px,
      var(--ochre) 12px 18px,
      var(--forest) 18px 30px,
      var(--cream) 30px 34px
    );
}

/* Header */
.site-header {
  background: rgba(250, 245, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.brand-text strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--forest);
}
.brand-text small {
  font-size: 0.75rem;
  color: var(--terracotta);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--terracotta); }

.nav-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px 3px 12px;
}
.nav-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 130px;
  font-family: inherit;
  font-size: 0.88rem;
}
.nav-search button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--forest);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
}
.btn-outline {
  border-color: var(--forest);
  color: var(--forest);
  background: transparent;
}
.btn-outline:hover {
  background: var(--forest);
  color: #fff;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: radial-gradient(circle at top right, rgba(184, 74, 39, 0.1), transparent 55%),
              linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(29, 75, 58, 0.1);
  color: var(--forest);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--forest-dark);
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.pillar-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.pillar-card h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--forest); }
.pillar-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section-sand { background: var(--sand); border-bottom: 1px solid var(--border); }
.section-forest {
  background: var(--forest);
  color: var(--cream);
}
.section-forest h2, .section-forest h3 { color: #fff; }
.section-sub-light { color: #DCE6DF; max-width: 640px; }

.section-head { margin-bottom: 28px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.kicker-light { color: #F4C078; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.text-link { font-weight: 600; }

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  color: var(--ink);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  color: var(--ink);
}
.cat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.cat-card h3 { font-size: 1.18rem; margin-bottom: 6px; color: var(--forest); }
.cat-card p { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.cat-count { font-size: 0.85rem; font-weight: 600; color: var(--terracotta); }

/* Post Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-3px); }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: var(--sand);
  overflow: hidden;
  display: block;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--forest), var(--terracotta));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 2rem;
}
.post-thumb-placeholder small { font-size: 0.85rem; opacity: 0.9; }
.post-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.badge {
  background: rgba(184, 74, 39, 0.12);
  color: var(--terracotta-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}
.post-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--terracotta); }
.post-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
}
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--sand);
  padding-top: 10px;
  font-size: 0.85rem;
}
.read-time { color: var(--muted); }
.read-more { font-weight: 600; }

/* Video / Halbi Music Section */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.video-frame img, .video-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.video-info { padding: 16px; }
.video-tag {
  display: inline-block;
  font-size: 0.76rem;
  background: rgba(244, 192, 120, 0.2);
  color: #F4C078;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.video-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.video-info p { margin: 0; font-size: 0.88rem; color: #DCE6DF; }

/* Newsletter */
.section-newsletter { background: var(--sand); border-top: 1px solid var(--border); }
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.newsletter-msg {
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 20px;
}
.newsletter-msg.ok { color: var(--forest); }
.newsletter-msg.err { color: var(--terracotta-dark); }

/* Single Article */
.breadcrumbs {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  margin: 12px 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sand);
}
.article-cover { margin: 20px 0; border-radius: 10px; overflow: hidden; }
.article-content {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--ink);
  margin: 24px 0;
}
.article-content h2 { margin-top: 28px; color: var(--forest); }
.article-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: var(--sand);
  border-left: 4px solid var(--terracotta);
  border-radius: 6px;
}

/* Share Bar */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
}
.share-bar-bottom {
  border-bottom: none;
  border-top: 1px solid var(--sand);
  padding-top: 20px;
}
.share-label { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
}
.share-wa { background: #1E8E49; }
.share-wa:hover { background: #166F38; color: #fff; }
.share-fb { background: #1877F2; }
.share-fb:hover { background: #125EC2; color: #fff; }
.share-x { background: #231F1D; }
.share-x:hover { background: #000; color: #fff; }
.share-copy { background: var(--sand); color: var(--ink); border: 1px solid var(--border); }
.share-copy:hover { background: var(--border); }

.related-section { margin-top: 48px; }
.related-section h2 { margin-bottom: 20px; }

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.pagination a {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.pagination a.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: #DCE6DF;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0 36px;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #DCE6DF; }
.site-footer a:hover { color: #F4C078; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-row a {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.84rem;
}
.footer-contact { margin: 0 0 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  text-align: center;
  font-size: 0.86rem;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .newsletter-box { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 5%;
    gap: 12px;
  }
  .site-nav.open { display: flex; }
  .nav-search input { width: 100%; }
  .category-grid, .post-grid, .video-grid, .footer-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 22px 18px; }
}
