/* ============================================================
   IndiaBrief - India in Brief. Power in Knowledge.
   Complete Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #0f172a;
  --color-accent: #ff7a00;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-govt: #059669;
  --color-entertainment: #dc2626;
  --color-tech: #7c3aed;
  --font-heading:
    "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --container: 1200px;
  --header-height: 60px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary-dark);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--color-text);
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-right {
  display: flex;
  gap: 16px;
}
.top-bar a {
  color: #cbd5e1;
  font-size: 12px;
}
.top-bar a:hover {
  color: #fff;
}

/* ---------- Header ---------- */
.header-main {
  background: var(--color-surface);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}
.site-logo:hover {
  color: var(--color-text);
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-family: var(--font-heading);
}
.logo-tagline {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Navigation ---------- */
.main-nav {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-list {
  display: flex;
  gap: 0;
}
.nav-list a {
  display: block;
  padding: 12px 18px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 24px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  min-height: 400px;
}
.hero-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-image {
  height: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-color: #334155;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero-overlay {
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  width: 100%;
  color: #fff;
}
.hero-overlay h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 8px;
}
.hero-overlay h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 6px;
}
.hero-meta {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 8px;
}
.hero-sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-card {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.side-card-image {
  height: 100%;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #475569;
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* ---------- Category Badges ---------- */
.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--color-primary);
}
.category-badge.government-jobs {
  background: var(--color-govt);
}
.category-badge.entertainment {
  background: var(--color-entertainment);
}
.category-badge.technology {
  background: var(--color-tech);
}

/* ---------- Content Layout ---------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  font-family: var(--font-heading);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- Article Grid ---------- */
.section-latest,
.section-category {
  padding: 32px 0;
}
.section-category:nth-child(even) {
  background: var(--color-surface);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-link {
  display: block;
  color: var(--color-text);
}
.card-link:hover {
  color: var(--color-text);
}
.card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  position: relative;
}
.card-image .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.card-body {
  padding: 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Article Row (Horizontal cards) */
.article-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.article-card-horizontal {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.article-card-horizontal:hover {
  box-shadow: var(--shadow-md);
}
.card-image-sm {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
}
.article-card-horizontal .card-body {
  padding: 12px;
}
.article-card-horizontal .card-title {
  font-size: 14px;
  margin-bottom: 6px;
}
.article-card-horizontal time {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}
.page-link {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}
.page-link:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.page-info {
  color: var(--color-text-secondary);
  font-size: 14px;
}

/* ---------- Post Single ---------- */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.breadcrumb a {
  color: var(--color-text-secondary);
}
.breadcrumb a:hover {
  color: var(--color-primary);
}
.breadcrumb .sep {
  margin: 0 6px;
}
.breadcrumb .current {
  color: var(--color-text);
}

.post-header {
  padding: 24px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.post-header .category-badge {
  margin-bottom: 12px;
}
.post-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.post-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Post Image */
.post-image {
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-image img {
  width: 100%;
}
.post-image figcaption {
  padding: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
}

/* TOC */
.toc-wrapper {
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.toc a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.toc a:hover {
  color: var(--color-primary);
}
.toc a:last-child {
  border-bottom: none;
}
.toc .toc-h3 {
  padding-left: 16px;
}

/* Post Content */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}
.post-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}
.post-content p {
  margin-bottom: 16px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 16px 24px;
  list-style: disc;
}
.post-content ol {
  list-style: decimal;
}
.post-content li {
  margin-bottom: 6px;
}
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--color-border-light);
  font-style: italic;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.post-content th,
.post-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.post-content th {
  background: var(--color-border-light);
  font-weight: 700;
}
.post-content tr:hover {
  background: var(--color-border-light);
}
.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.post-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}
.post-content strong {
  font-weight: 700;
}

/* Affiliate product box */
.product-box {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
  background: var(--color-surface);
}
.product-box h4 {
  margin: 0 0 8px;
  font-size: 18px;
}
.product-box .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.product-box .btn-affiliate {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
}
.product-box .btn-affiliate:hover {
  background: #ea580c;
  color: #fff;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.tag {
  padding: 4px 12px;
  background: var(--color-border-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.tag:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
}
.share-label {
  font-weight: 600;
  font-size: 14px;
}
.share-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.share-btn.email {
  background: #d44638;
}
.share-btn.x {
  background: #000;
}
.share-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* Related Posts */
.related-posts {
  padding: 32px 0;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
}
.related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}
.related-card a {
  color: var(--color-text);
}
.related-image {
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
}
.related-body {
  padding: 12px;
}
.related-body h4 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}
.related-body time {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 80px;
}
.widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

/* Search Widget */
.search-form {
  display: flex;
  gap: 0;
}
.search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.search-input:focus {
  border-color: var(--color-primary);
}
.search-btn {
  padding: 10px 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--color-primary);
}

/* Search Results Dropdown */
.search-results {
  display: none;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.search-count {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 600;
}
.search-result-item {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  transition: background 0.15s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}
.search-result-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.search-result-cat.government-jobs {
  color: var(--color-govt);
}
.search-result-cat.entertainment {
  color: var(--color-entertainment);
}
.search-result-cat.technology {
  color: var(--color-tech);
}
.search-result-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.search-result-date {
  display: block;
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.search-no-result {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}
.search-more {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  font-weight: 600;
}

/* Trending Widget */
.trending-list {
  counter-reset: trending;
}
.trending-list li {
  margin-bottom: 12px;
}
.trending-list a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text);
}
.trending-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.trending-cat {
  font-size: 11px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}
.trending-info h5 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Category Widget */
.category-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  font-size: 14px;
}
.category-list .count {
  background: var(--color-border-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* CTA Widget */
.widget-cta {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #fff;
}
.widget-cta .widget-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.widget-cta p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 14px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s;
}
.btn-primary {
  background: #fff;
  color: var(--color-primary);
}
.btn-primary:hover {
  background: #f1f5f9;
  color: var(--color-primary);
}
.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Category Page ---------- */
.category-header {
  padding: 24px 0;
}
.category-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.category-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* ---------- Static Page ---------- */
.page-header {
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
}
.page-content {
  font-size: 16px;
  line-height: 1.8;
}
.page-content h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  font-weight: 700;
}
.page-content p {
  margin-bottom: 14px;
}
.page-content ul {
  margin: 0 0 14px 20px;
  list-style: disc;
}
.page-content li {
  margin-bottom: 4px;
}

/* ---------- Ad Units ---------- */
.ad-unit {
  text-align: center;
  padding: 12px 0;
}
.ad-placeholder {
  background: var(--color-border-light);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ad-banner .ad-placeholder {
  min-height: 90px;
}
.ad-in-article .ad-placeholder {
  min-height: 250px;
  margin: 24px 0;
}
.ad-sidebar .ad-placeholder {
  min-height: 250px;
}
.ad-footer-unit .ad-placeholder {
  min-height: 90px;
}

/* Sticky Mobile Ad */
.ad-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-surface);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  padding: 4px;
}
.ad-sticky-mobile .ad-placeholder {
  min-height: auto;
  padding: 4px;
  border: none;
  background: none;
  position: relative;
}
.ad-close {
  position: absolute;
  top: -12px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--color-text);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ---------- Footer ---------- */
.footer-main {
  background: var(--color-text);
  color: #cbd5e1;
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fff;
}
.footer-logo:hover {
  color: #fff;
}
.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
}
.footer-logo .logo-name {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
}
.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.social-links a:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer-links h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-links ul li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  background: #0f172a;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.disclaimer {
  margin-top: 4px;
  font-size: 11px;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.btn-submit {
  padding: 12px 32px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.btn-submit:hover {
  background: var(--color-primary-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    z-index: 9999;
    padding-top: 60px;
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
  }
  .nav-list a {
    padding: 16px 20px;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    min-height: 250px;
  }
  .hero-sidebar-posts {
    flex-direction: row;
  }
  .hero-overlay h2 {
    font-size: 22px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-row {
    grid-template-columns: 1fr;
  }
  .post-title {
    font-size: 24px;
  }
  .post-content {
    font-size: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .share-buttons {
    justify-content: center;
  }
  .ad-sticky-mobile {
    display: block;
  }

  /* Add bottom padding to account for sticky ad */
  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero-sidebar-posts {
    flex-direction: column;
  }
  .side-card-image {
    min-height: 150px;
  }
  .post-title {
    font-size: 22px;
  }
  .container {
    padding: 0 12px;
  }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .ad-unit,
  .share-buttons,
  .related-posts,
  .ad-sticky-mobile {
    display: none;
  }
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .post-content {
    font-size: 14px;
  }
}
