/* ==========================================================================
   SUKALP MAGAZINE - MODERN EDITORIAL DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-ui: 'Outfit', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;

  /* Official Logo Color Palette */
  --primary: #2d407f;           /* Logo Royal Blue */
  --primary-dark: #1a2650;      /* Darker Logo Blue */
  --primary-light: #3d54a0;     /* Lighter Accent Blue */
  --accent: #e2143c;            /* Logo Ruby Crimson Red */
  --accent-hover: #c40f32;      /* Deep Crimson */
  --accent-gold: #f59f00;       /* Saffron Accent */
  --saffron: #e8590c;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #151d38;
  --bg-subtle: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

[data-theme="dark"] {
  --bg-main: #0b1120;
  --bg-card: #131d31;
  --bg-header: #0e172a;
  --bg-subtle: #1e293b;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: #1e293b;
  --border-subtle: #131d31;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   TOPBAR & HEADER
   ========================================================================== */

.topbar {
  background-color: var(--primary);
  color: #cbd5e1;
  font-size: 0.825rem;
  font-family: var(--font-ui);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-socials {
  display: flex;
  gap: 0.75rem;
}

.topbar-socials a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.topbar-socials a:hover {
  color: #ffffff;
  background: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Main Header */
.main-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.site-logo {
  max-height: 85px;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.header-owner-banner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.owner-banner-img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

[data-theme="dark"] .owner-banner-img {
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

@media (max-width: 992px) {
  .header-owner-banner {
    display: none;
  }
}

/* Main Navigation Bar */
.navbar-section {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #f1f5f9;
  font-family: var(--font-ui);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-item.active .nav-link {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.has-dropdown::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  min-width: 240px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-item a:hover {
  background-color: var(--bg-subtle);
  color: var(--accent);
  padding-left: 1.35rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-trigger-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */

.ticker-wrap {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  height: 42px;
}

.ticker-heading {
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.5rem;
}

.ticker-items {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.ticker-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  padding-left: 2rem;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-link {
  display: inline-flex;
  align-items: center;
  margin-right: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.ticker-link::before {
  content: '•';
  color: var(--accent);
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.ticker-link:hover {
  color: var(--accent);
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   HERO / BENTO MAGAZINE GRID
   ========================================================================== */

.hero-section {
  padding: 1.5rem 0 2rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.hero-lead-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--primary);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.hero-lead-card:hover {
  transform: translateY(-3px);
}

.hero-lead-card .card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-lead-card:hover .card-bg-img {
  transform: scale(1.04);
}

.hero-lead-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.1) 0%, rgba(11, 19, 43, 0.8) 60%, rgba(11, 19, 43, 0.95) 100%);
  z-index: 1;
}

.hero-lead-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #ffffff;
}

.category-badge {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.hero-lead-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero-lead-title a:hover {
  color: #fef08a;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bento-subgrid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.sub-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--primary);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.sub-card:hover {
  transform: translateY(-2px);
}

.sub-card .card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sub-card:hover .card-bg-img {
  transform: scale(1.04);
}

.sub-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11, 19, 43, 0.85) 60%, rgba(11, 19, 43, 0.95) 100%);
  z-index: 1;
}

.sub-card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  color: #ffffff;
}

.sub-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.sub-card-title a:hover {
  color: #fef08a;
}

/* ==========================================================================
   MAIN CONTENT & SIDEBAR LAYOUT
   ========================================================================== */

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.view-all-link:hover {
  gap: 0.45rem;
}

/* Article Cards Grid */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.magazine-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.magazine-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.magazine-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.magazine-card:hover .magazine-card-img-wrap img {
  transform: scale(1.05);
}

.card-cat-float {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.magazine-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.magazine-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

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

.magazine-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.magazine-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.775rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* List Article Layout */
.list-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.list-article-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  background-color: var(--bg-card);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.list-article-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.list-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.list-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-article-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.list-article-title a:hover {
  color: var(--accent);
}

.list-article-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.widget {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

/* Trending Post in Widget */
.widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-post-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.widget-post-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--border-color);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.widget-post-item:nth-child(-n+3) .widget-post-num {
  color: var(--accent);
}

.widget-post-info {
  flex-grow: 1;
}

.widget-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.widget-post-title a:hover {
  color: var(--accent);
}

.widget-post-date {
  font-size: 0.725rem;
  color: var(--text-light);
}

/* Category Widget */
.widget-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.widget-cat-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: var(--bg-subtle);
}

.widget-cat-item a:hover {
  background: var(--accent);
  color: #ffffff;
  padding-left: 0.85rem;
}

.cat-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

.widget-cat-item a:hover .cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Newsletter Widget */
.widget-newsletter {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  color: #ffffff;
  text-align: center;
  border: none;
}

.widget-newsletter .widget-title {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.widget-newsletter .widget-title::after {
  background: var(--accent-gold);
}

.newsletter-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.875rem;
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ==========================================================================
   SINGLE POST PAGE DESIGN
   ========================================================================== */

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

.post-header-wrap {
  padding: 2rem 0 1.5rem;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-main-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.post-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-author-box-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.post-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.post-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.font-resizer {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.font-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-main);
  padding: 0.1rem 0.3rem;
}

.font-btn:hover {
  color: var(--accent);
}

.post-featured-media {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-featured-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Post Content Typography */
.post-content-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-main);
}

.post-content-body p {
  margin-bottom: 1.5rem;
}

.post-content-body h2, .post-content-body h3, .post-content-body h4 {
  font-family: var(--font-heading);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-content-body img {
  margin: 1.5rem auto;
  border-radius: var(--radius-md);
}

.post-content-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  font-style: italic;
  font-size: 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-share-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  color: white;
}

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-copy { background: #4a5568; }

/* Author Bio Card */
.author-card-full {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.author-card-full img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* Comments Section */
.comments-section {
  margin-top: 2.5rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.comment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.775rem;
  color: var(--text-light);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.15);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
}

.page-link:hover, .page-item.active .page-link {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

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

.main-footer {
  background-color: var(--bg-footer);
  color: #94a3b8;
  padding: 0;
  border-top: 4px solid var(--accent);
}

/* Full-Width Footer Newsletter Strip */
.footer-newsletter-banner {
  background: linear-gradient(135deg, rgba(226, 20, 60, 0.15), rgba(45, 64, 127, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem 0;
  margin-bottom: 3.5rem;
}

.footer-newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.825rem;
  color: #64748b;
}

/* Search Modal */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal-box {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.search-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (Mobile-First Priority)
   ========================================================================== */

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 990;
  padding: 0.35rem 0.5rem;
}

.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: #cbd5e1;
  font-size: 0.675rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-bottom-link .nav-icon {
  font-size: 1.15rem;
}

.mobile-bottom-link:hover, .mobile-bottom-link.active {
  color: #ffffff;
}

.mobile-bottom-link.active .nav-icon {
  transform: scale(1.1);
}

/* Mobile Drawer Overlay */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 995;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile-First Polish)
   ========================================================================== */

@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 65px; /* Space for mobile bottom bar */
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .topbar-date {
    display: none;
  }

  .topbar-socials {
    display: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mobile-bottom-bar {
    display: block;
  }

  .main-header {
    padding: 0.65rem 0;
  }

  .site-logo {
    max-height: 50px;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
  }

  .mobile-drawer-header {
    display: flex !important;
  }

  .main-nav-links {
    display: flex !important;
    position: fixed;
    top: 0;
    left: -330px;
    width: min(320px, 86vw);
    height: 100vh;
    max-height: 100vh;
    background: #1a2650 !important;
    color: #ffffff !important;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem 6rem 1rem !important;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    z-index: 1001;
    box-shadow: 6px 0 35px rgba(0, 0, 0, 0.7);
  }

  .main-nav-links.active {
    left: 0 !important;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    display: block;
  }

  .nav-link {
    color: #ffffff !important;
    padding: 0.85rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    user-select: none;
  }

  .nav-link:hover, .nav-item.active .nav-link {
    color: #f59f00 !important;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-link.has-dropdown::after {
    transition: transform 0.25s ease;
    display: inline-block;
  }

  .nav-item.open .nav-link.has-dropdown::after {
    transform: rotate(180deg);
    color: #f59f00;
  }

  /* Accordion Dropdowns on Mobile: Collapsed by Default */
  .dropdown-menu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-height: none !important;
    padding: 0.35rem 0.5rem !important;
    margin: 0.25rem 0 0.75rem 0 !important;
  }

  .nav-item.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item a {
    color: #e2e8f0 !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    line-height: 1.4;
  }

  .dropdown-item a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
  }

  .hero-lead-card {
    min-height: 320px;
  }

  .hero-lead-content {
    padding: 1.25rem 1rem;
  }

  .hero-lead-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .cards-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .list-article-item {
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    padding: 0.65rem;
  }

  .list-article-title {
    font-size: 0.925rem;
    line-height: 1.35;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-main-title {
    font-size: 1.4rem;
    line-height: 1.35;
  }

  .post-header-wrap {
    padding: 0.75rem 0;
  }

  .post-content-body {
    font-size: 0.975rem;
    line-height: 1.75;
  }

  .post-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .post-actions-bar {
    width: 100%;
    justify-content: space-between;
  }

  .post-share-section {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .share-btn {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    padding: 0.55rem;
  }
}

@media (max-width: 480px) {
  .list-article-item {
    grid-template-columns: 1fr;
  }
  .list-img-wrap {
    aspect-ratio: 16 / 9;
  }
  .hero-lead-card {
    min-height: 280px;
  }
  .magazine-card-body {
    padding: 1rem;
  }
}
