@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --surface-soft: #f8f5ef;
  --text: #111111;
  --text-muted: #5a5a5a;
  --border: #ece6dc;
  --primary: #ea4c00;
  --primary-hover: #d14300;
  --primary-soft: #ffedd5;
  --accent-green: #0b7a4b;
  --accent-yellow: #f5b700;
  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 10px 28px rgba(17, 17, 17, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

body.dark {
  --bg: #121212;
  --surface: #1c1c1e;
  --surface-soft: #262629;
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --border: #2e2e32;
  --primary: #ff6600;
  --primary-hover: #ff7b24;
  --primary-soft: rgba(255, 102, 0, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.48);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Gujarati', 'Poppins', 'Noto Sans Devanagari', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.animate-fade {
  animation: fadeUp 0.45s ease both;
}

/* ================= LIVE INDIA TIME & PANCHANG TOP BAR ================= */
.india-top-bar {
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.india-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.india-bar-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ist-pill {
  background: rgba(255, 102, 0, 0.22);
  color: #ffb380;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.panchang-pill {
  color: #e2e8f0;
  font-weight: 600;
}

.rashi-quick-link {
  color: #ffd43b;
  font-weight: 700;
  text-decoration: underline;
}

/* ================= HEADER (MOBILE-SAFE FLEX LAYOUT) ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 66px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-bulb {
  animation: pulseGlow 3s ease-in-out infinite;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-title .desi { color: var(--text); }
.brand-title .jugaad { color: var(--primary); font-style: italic; }

.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.nav-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 235px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 1050;
}

.nav-item:hover .dropdown-menu,
.nav-item.open .dropdown-menu {
  display: block;
  animation: fadeUp 0.2s ease;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}

.dropdown-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 7px;
  height: 36px;
}

.lang-switcher select {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 1rem;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--surface);
  z-index: 999;
  padding: 16px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
}

/* ================= HERO BANNER ================= */
.hero-banner {
  position: relative;
  background: linear-gradient(125deg, #fff6e0 0%, #fffdf8 48%, #f3efe4 100%);
  border-bottom: 1px solid var(--border);
  padding: 30px 0 34px;
  overflow: hidden;
}

body.dark .hero-banner {
  background: linear-gradient(125deg, #241b12 0%, #19191b 52%, #1d221c 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 215px 1fr 275px;
  align-items: center;
  gap: 20px;
}

.hero-ribbons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.ribbon-yellow {
  background: #f6b91e;
  color: #111111;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transform: rotate(-5deg);
  box-shadow: 0 6px 14px rgba(246, 185, 30, 0.35);
}

.ribbon-green {
  background: #0c7c4e;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transform: rotate(-4deg);
  margin-left: 12px;
  box-shadow: 0 6px 14px rgba(12, 124, 78, 0.3);
}

.hero-rays {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-left: 14px;
}

.hero-rays span {
  display: block;
  width: 20px;
  height: 5px;
  border-radius: 99px;
  background: #ff6600;
}

.hero-rays span:nth-child(1) { transform: rotate(28deg); }
.hero-rays span:nth-child(2) { transform: rotate(8deg); }
.hero-rays span:nth-child(3) { transform: rotate(-16deg); }

.hero-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-logo-title .desi { color: var(--text); }
.hero-logo-title .jugaad { color: var(--primary); font-style: italic; }

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
  margin: 0 auto 14px;
  width: 100%;
}

.hero-search-box:focus-within {
  border-color: var(--primary);
}

.hero-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  padding: 8px 8px;
  min-width: 0;
}

.hero-search-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.hero-search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.hero-trending-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.84rem;
}

.trending-label {
  font-weight: 700;
  color: var(--primary);
}

.tag-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-pill:hover, .tag-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.hero-chalkboard {
  background: #1f2428;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 4px solid #c9965b;
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
}

.chalk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 700;
  font-size: 0.9rem;
}

.chalk-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chalk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 2px solid #f6b91e;
  border-radius: 4px;
  color: #f6b91e;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ================= CATEGORY ICON STRIP ================= */
.category-strip-wrap {
  padding: 20px 0 8px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
  border-radius: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-tile:hover, .cat-tile.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.cat-icon {
  font-size: 1.45rem;
  margin-bottom: 5px;
}

.cat-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.c-peach { background: #fde8e1; }
.c-yellow { background: #fef3c7; }
.c-mint { background: #dcfce7; }
.c-blue { background: #dbeafe; }
.c-lavender { background: #f3e8ff; }
.c-amber { background: #ffedd5; }
.c-emerald { background: #d1fae5; }
.c-lime { background: #ecfccb; }
.c-rose { background: #ffe4e6; }
.c-slate { background: #e2e8f0; }
.c-cyan { background: #cffafe; }
.c-indigo { background: #e0e7ff; }

/* ================= ADSENSE RESPONSIVE SLOT PLACEHOLDER ================= */
.ad-slot-box {
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 18px 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ================= MAIN 2-COLUMN LAYOUT ================= */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 20px 0 48px;
  align-items: start;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.28rem;
  font-weight: 800;
}

.view-all-btn {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Articles 3-Column Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.35s ease both;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .card-thumb img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card-badge.health { background: #0c7c4e; }
.card-badge.home { background: #15803d; }
.card-badge.tech { background: #2563eb; }
.card-badge.kitchen { background: #ea4c00; }
.card-badge.kisan { background: #4d7c0f; }
.card-badge.retro { background: #b45309; }

.card-readtime {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(17, 17, 17, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.42;
  margin-bottom: 8px;
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ================= SIDEBAR ================= */
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 12px;
  transition: background 0.2s;
}

.trending-item:hover {
  background: var(--surface-soft);
}

.trending-thumb {
  position: relative;
  width: 82px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trending-info h4 {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
}

.trending-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ================= SPECIAL HUB CARDS ================= */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.hub-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hub-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ================= DAILY UTILITY TOOLS SECTION ================= */
.tools-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 26px;
  box-shadow: var(--shadow-sm);
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.92rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.tool-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ================= STANDALONE ARTICLE & PAGE LAYOUTS ================= */
.article-page-wrap {
  width: 100%;
  max-width: 920px;
  margin: 24px auto 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.article-hero-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 22px;
  border: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.32rem;
  margin: 24px 0 10px;
  color: var(--primary);
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.article-body p {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.article-body ul, .article-body ol {
  margin: 10px 0 16px 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.rashi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.rashi-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.ukhana-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ukhana-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.ukhana-ans {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--primary-soft);
  border-radius: 8px;
  font-weight: 700;
  color: var(--primary);
}

/* ================= COOKIE CONSENT BANNER (AdSense Compliance) ================= */
.cookie-banner {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  max-width: 960px;
  margin: 0 auto;
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 2500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 0.84rem;
}

.cookie-banner.show {
  display: flex;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 38px 0 24px;
  margin-top: 28px;
}

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

.footer-col h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= RESPONSIVE BREAKPOINTS (MOBILE HEADER & FULL PADDING FIX) ================= */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-ribbons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero-rays {
    display: none;
  }
  .hero-chalkboard {
    max-width: 480px;
    margin: 4px auto 0;
    transform: none;
  }
  .chalk-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  .category-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner {
    height: 60px;
    gap: 6px;
  }
  .brand-bulb {
    width: 28px;
    height: 28px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-sub {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .lang-switcher {
    padding: 2px 5px;
    height: 32px;
  }
  .lang-switcher select {
    font-size: 0.78rem;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
  }
  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .cat-tile {
    padding: 10px 6px;
  }
  .cat-name {
    font-size: 0.72rem;
  }
  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .chalk-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-search-box {
    padding: 4px 4px 4px 12px;
  }
  .hero-search-btn {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
  .article-page-wrap {
    padding: 20px 16px;
    margin: 16px 0 32px;
  }
  .tools-section, .sidebar-box, .hub-card {
    padding: 18px 16px;
  }
}

/* ================= SOCIAL SHARE BAR (WHATSAPP + FACEBOOK + INSTAGRAM REELS) ================= */
.dj-share-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dj-share-label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dj-share-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dj-sbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  text-decoration: none;
}

.dj-sbtn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.dj-sbtn-wa { background: #16a34a; }
.dj-sbtn-fb { background: #1877f2; }
.dj-sbtn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.dj-sbtn-card { background: #111111; border: 1px solid rgba(255,255,255,0.2); }

.dj-mini-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.dj-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  color: #fff;
  cursor: pointer;
}

.dj-toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  text-align: center;
  max-width: 92vw;
}

.dj-toast.show {
  opacity: 1;
}
