/* ==========================================================================
   RCL ADDA — CHEERUP MAGAZINE DESIGN SYSTEM
   Humanized, Modern, Professional Editorial Layout (100% Responsive)
   ========================================================================== */

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

:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary-accent: #07a3cc;
  --primary-hover: #0688ab;
  --coral-accent: #e11d48;
  --amber-accent: #d97706;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --font-heading: 'Outfit', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'IBM Plex Sans', -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

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

/* ─── LAYOUT CONTAINERS ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── TOP BAR ─────────────────────────────────────────────────────────────── */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}

.trending-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .trending-ticker {
    display: none;
  }
}

.ticker-label {
  background: var(--coral-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.ticker-text {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--primary-accent);
}

.btn-admin {
  background: var(--text-main);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

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

/* ─── BRAND HEADER ───────────────────────────────────────────────────────── */
.brand-header {
  background: #ffffff;
  padding: 28px 0 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.brand-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.brand-logo span {
  color: var(--primary-accent);
  font-style: italic;
  font-family: var(--font-serif);
}

.brand-logo-img {
  display: inline-block;
  margin: 0 auto;
  transition: var(--transition);
}

.brand-logo-img img {
  max-height: 75px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}

.brand-logo-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.brand-logo-hybrid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  transition: var(--transition);
}

.brand-logo-hybrid .logo-prefix {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  text-transform: uppercase;
  line-height: 1;
}

.brand-logo-hybrid img {
  max-height: 62px;
  height: auto;
  width: auto;
  display: block;
}

.brand-logo-hybrid:hover {
  opacity: 0.95;
}

.brand-tagline {
  margin-top: 8px;
  font-size: clamp(11px, 2.5vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── NAVIGATION BAR ─────────────────────────────────────────────────────── */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
}

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

@media (max-width: 850px) {
  .nav-links {
    display: none; /* Mobile hamburger drawer handles nav */
  }
}

.nav-item a {
  display: block;
  padding: 16px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--primary-accent);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary-accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-item a:hover::after,
.nav-item.active a::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-trigger-btn,
.hamburger-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-trigger-btn:hover,
.hamburger-btn:hover {
  background: var(--border-light);
  color: var(--primary-accent);
}

.hamburger-btn {
  display: none;
}

@media (max-width: 850px) {
  .hamburger-btn {
    display: flex;
  }
}

/* MOBILE DRAWER MENU */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-header .brand-logo {
  font-size: 24px;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  overflow-y: auto;
}

.drawer-links a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-links a:hover,
.drawer-links a.active {
  background: var(--bg-color);
  color: var(--primary-accent);
}

/* SEARCH MODAL */
.search-bar-modal {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.search-bar-modal.open {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px;
  font-size: 14px;
  outline: none;
  color: var(--text-main);
}

.search-input-wrap button {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

/* ─── FEATURED HERO SECTION (CHEERUP GRID) ───────────────────────────────── */
.hero-section {
  padding: 28px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-card-large {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .hero-card-large {
    min-height: 320px;
  }
}

.hero-card-large .hero-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-card-large .hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.hero-card-large .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 20%, rgba(15, 23, 42, 0.85) 90%);
  pointer-events: none;
}

.hero-card-large .hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 32px);
  color: #ffffff;
}

.category-badge {
  display: inline-block;
  background: var(--primary-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.category-badge.badge-coral {
  background: var(--coral-accent);
}

.category-badge.badge-amber {
  background: var(--amber-accent);
}

.hero-card-large .hero-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-card-large .hero-title a {
  color: #ffffff;
}

.hero-card-large .hero-title a:hover {
  color: #93c5fd;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  flex-wrap: wrap;
}

.hero-meta .author-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* SIDE HERO CARDS */
.hero-side-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.hero-card-side:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-card-side .side-img-wrap {
  height: 150px;
  overflow: hidden;
  position: relative;
}

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

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

.hero-card-side .side-content {
  padding: 16px;
}

.hero-card-side .side-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
  margin-bottom: 6px;
}

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

/* ─── MAIN CONTENT + SIDEBAR LAYOUT ──────────────────────────────────────── */
.main-section {
  padding: 24px 0 64px;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

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

.section-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* CHEERUP MAGAZINE POST CARD */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.post-thumb {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 16:9 ratio */
  overflow: hidden;
  background: var(--border-light);
}

.post-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.06);
}

.post-thumb .thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.post-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

.post-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 8px;
}

.post-author-byline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--primary-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

/* ─── SIDEBAR WIDGETS ─────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.widget-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

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

/* ABOUT EDITOR WIDGET */
.widget-about {
  text-align: center;
}

.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-accent);
  padding: 2px;
}

.about-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.about-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.about-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* TRENDING POSTS WIDGET */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trending-number {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #cbd5e1;
  line-height: 1;
  min-width: 22px;
}

.trending-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.trending-info {
  display: flex;
  flex-direction: column;
}

.trending-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.trending-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* CATEGORIES WIDGET */
.categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.category-item a:hover {
  background: var(--primary-accent);
  color: #ffffff;
}

.category-item a .cat-count {
  background: #ffffff;
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

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

/* NEWSLETTER WIDGET */
.widget-newsletter {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
}

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

.newsletter-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
  line-height: 1.5;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 10px;
}

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

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background: var(--primary-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-hover);
}

/* ─── SINGLE POST READER ──────────────────────────────────────────────────── */
.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.post-header {
  text-align: center;
  margin-bottom: 28px;
}

.single-post-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 16px;
  color: var(--text-main);
}

.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.single-cover-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.single-cover-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.post-content-body {
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
}

.post-content-body p {
  margin-bottom: 20px;
}

.post-content-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-main);
  border-left: 4px solid var(--primary-accent);
  padding: 14px 20px;
  margin: 28px 0;
  background: #f1f5f9;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 40px;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 20px;
  border-top: 1px solid #1e293b;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 380px;
}

.footer-heading {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 12px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
