/* css/style.css */
:root {
  --saffron: #d97706;
  --deep-saffron: #b45309;
  --maroon: #7c2d12;
  --cream: #fef7ed;
  --paper: #fffbf5;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --border: #e7e5e4;
  --accent: #991b1b;
  --shadow: 0 4px 20px rgba(124, 45, 18, 0.08);
  --shadow-lg: 0 10px 40px rgba(124, 45, 18, 0.12);
}

[data-theme="dark"] {
  --cream: #1c1917;
  --paper: #0c0a09;
  --ink: #fef3c7;
  --ink-soft: #d6d3d1;
  --muted: #a8a29e;
  --border: #44403c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif Devanagari', serif;
  font-weight: 700;
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Top Bar */
.topbar {
  background: var(--maroon);
  color: var(--cream);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar .links { display: flex; gap: 18px; }
.topbar .links a:hover { color: var(--saffron); }

/* Header */
header.main-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 251, 245, 0.95);
}
[data-theme="dark"] header.main-header {
  background: rgba(12, 10, 9, 0.95);
}

.brand {
  text-align: center;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
}
.brand .om {
  font-size: 28px;
  color: var(--saffron);
  display: block;
  margin-bottom: 4px;
}
.brand h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--maroon);
  letter-spacing: 1px;
  font-weight: 900;
}
[data-theme="dark"] .brand h1 { color: var(--saffron); }
.brand .tagline {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-style: italic;
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px;
}
.brand .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--saffron);
}
.brand .divider::before,
.brand .divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--saffron);
}

/* Nav */
nav.main-nav { padding: 14px 0; }
nav.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
}
.nav-links a:hover {
  background: var(--cream);
  color: var(--maroon);
}
[data-theme="dark"] .nav-links a:hover {
  background: #292524;
  color: var(--saffron);
}
.nav-links .active {
  background: var(--maroon);
  color: var(--cream);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box { position: relative; }
.search-box input {
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  width: 200px;
  transition: all 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--saffron);
  width: 260px;
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--cream);
  transform: rotate(20deg);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero { padding: 40px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.hero-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 480px;
  background: linear-gradient(135deg, #7c2d12 0%, #d97706 100%);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s;
}
.hero-main:hover { transform: translateY(-4px); }
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.85;
}
.hero-main .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.hero-main .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: #fff;
}
.hero-main .category-badge {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-main h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  font-weight: 700;
}
.hero-main .excerpt {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: 16px;
  max-width: 600px;
}
.hero-main .meta {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--saffron);
  transition: all 0.2s;
  cursor: pointer;
}
[data-theme="dark"] .hero-side-card { background: #1c1917; }
.hero-side-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.hero-side-card .cat {
  color: var(--saffron);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-side-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}
.hero-side-card .meta {
  font-size: 12px;
  color: var(--muted);
}

/* Section Heading */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--saffron);
}
.section-head h2 {
  font-size: 28px;
  color: var(--maroon);
}
[data-theme="dark"] .section-head h2 { color: var(--saffron); }
.section-head .view-all {
  font-size: 14px;
  color: var(--saffron);
  font-weight: 600;
}
.section-head .view-all:hover { text-decoration: underline; }

/* Categories */
.categories-section { padding: 40px 0 60px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}
[data-theme="dark"] .cat-card { background: #1c1917; }
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--saffron);
  box-shadow: var(--shadow);
}
.cat-card .icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}
.cat-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--ink);
}
.cat-card .count {
  font-size: 12px;
  color: var(--muted);
}

/* Articles Grid */
.articles-section {
  padding: 40px 0 60px;
  background: var(--cream);
}
[data-theme="dark"] .articles-section { background: #0c0a09; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-card .thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .thumb img { transform: scale(1.08); }
.article-card .thumb .cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--saffron);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-card .body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--ink);
}
.article-card .excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex: 1;
}
.article-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.article-card .author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-card .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Editorial */
.editorial-section { padding: 60px 0; }
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.editorial-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editorial-content .label {
  color: var(--saffron);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.editorial-content h2 {
  font-size: 32px;
  margin-bottom: 18px;
  color: var(--ink);
}
.editorial-content p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 16px;
}
.editorial-content .author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.author-block .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Noto Serif Devanagari', serif;
}
.author-block .info .name {
  font-weight: 600;
  color: var(--ink);
}
.author-block .info .role {
  font-size: 13px;
  color: var(--muted);
}

/* Quote */
.quote-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--maroon) 0%, #451a03 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 300px;
  font-family: 'Noto Serif Devanagari', serif;
  color: rgba(255, 247, 237, 0.08);
  line-height: 1;
}
.quote-section blockquote {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
  line-height: 1.6;
}
.quote-section cite {
  font-size: 16px;
  opacity: 0.8;
  font-style: normal;
  letter-spacing: 1px;
}

/* Blog */
.blog-section {
  padding: 60px 0;
  background: var(--cream);
}
[data-theme="dark"] .blog-section { background: #0c0a09; }

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-item {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 24px;
  background: var(--paper);
  padding: 20px;
  border-radius: 10px;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
}
.blog-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.blog-item .thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.blog-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-item .content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.blog-item .content p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 10px;
}
.blog-item .content .meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.blog-item .content .meta .cat {
  color: var(--saffron);
  font-weight: 600;
}
.blog-item .read-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 12px;
  background: var(--cream);
  border-radius: 20px;
}
[data-theme="dark"] .blog-item .read-time { background: #292524; }

/* Newsletter */
.newsletter-section { padding: 60px 0; }
.newsletter-box {
  background: var(--cream);
  border: 2px dashed var(--saffron);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
[data-theme="dark"] .newsletter-box { background: #1c1917; }
.newsletter-box .icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.newsletter-box h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--maroon);
}
[data-theme="dark"] .newsletter-box h2 { color: var(--saffron); }
.newsletter-box p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--saffron);
}
.newsletter-form button {
  padding: 14px 28px;
  background: var(--maroon);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.newsletter-form button:hover {
  background: var(--deep-saffron);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--saffron);
  margin-bottom: 18px;
  font-size: 16px;
  letter-spacing: 1px;
}
.footer-col p, .footer-col li {
  font-size: 14px;
  color: #d6d3d1;
  margin-bottom: 10px;
  line-height: 1.7;
}
.footer-col ul { list-style: none; }
.footer-col a:hover { color: var(--saffron); }
.footer-col .brand-name {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 26px;
  color: var(--saffron);
  margin-bottom: 14px;
  font-weight: 700;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 247, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--saffron);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 247, 237, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #a8a29e;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-item { grid-template-columns: 180px 1fr; }
  .blog-item .read-time { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item .thumb { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-main { min-height: 380px; }
  .hero-main .content { padding: 24px; }
  .search-box input { width: 140px; }
  .search-box input:focus { width: 180px; }
}