/* =========================================================
   Marketing — Main Stylesheet  (Acelia SaaS Design)
   ========================================================= */

/* ── CSS Custom Properties ────────────────────────────── */
:root {
  --primary:        #1a3a2e;
  --primary-hover:  #122a21;
  --bg:             #ffffff;
  --bg-alt:         #f7f7f2;
  --bg-card:        #ffffff;
  --text:           #111111;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --border-light:   #f0f0eb;
  --pill-active-bg: #111111;
  --pill-active-fg: #ffffff;
  --badge-bg:       #f3f4f6;
  --badge-border:   #e5e7eb;
  --badge-text:     #374151;
  --radius-sm:      0.375rem;
  --radius-md:      0.75rem;
  --radius-lg:      1rem;
  --radius-xl:      1.25rem;
  --shadow-card:    0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,.10), 0 12px 32px rgba(0,0,0,.07);
  --transition:     180ms ease;
  --max-w:          1160px;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg:         #0d1117;
  --bg-alt:     #161b22;
  --bg-card:    #1c2128;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --border:     #30363d;
  --border-light: #21262d;
  --badge-bg:   #21262d;
  --badge-border: #30363d;
  --badge-text: #8b949e;
  --shadow-card: 0 1px 4px rgba(0,0,0,.3);
  --shadow-card-hover: 0 4px 20px rgba(0,0,0,.4);
}

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

/* ── Layout Helpers ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

/* ── Reading Progress Bar ─────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 9999;
  width: 0;
  transition: width 40ms linear;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--primary); }
.logo-icon {
  width: 26px;
  height: 26px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  flex-shrink: 0;
  transition: background var(--transition);
}
.site-logo:hover .logo-icon { background: var(--primary-hover); }

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.main-nav a {
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }

/* More Links Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--text); }
.nav-dropdown-toggle svg {
  width: 13px; height: 13px;
  transition: transform var(--transition);
}
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 0.4rem;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--text); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-sm { padding: 0.38rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 0.95rem; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.2rem;
  transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--bg-alt); }

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1998;
  backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(300px, 90vw);
  height: 100dvh;
  background: var(--bg);
  z-index: 1999;
  padding: 1.5rem;
  transition: right 280ms cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 40px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mobile-nav-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
}
.mobile-nav a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* =========================================================
   PAGE HEADER  (Blog & articles)
   ========================================================= */
.page-header {
  padding: 2.5rem 0 1.5rem;
}
.page-header__title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.15;
}

/* =========================================================
   CATEGORY FILTER PILLS
   ========================================================= */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0 2rem;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.filter-pill.active {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  border-color: var(--pill-active-bg);
}

/* =========================================================
   FEATURED ARTICLE  (horizontal hero card)
   ========================================================= */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-article__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0;
}
.featured-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.featured-article:hover .featured-article__image img { transform: scale(1.04); }
.featured-article__body {
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  width: fit-content;
  letter-spacing: 0.01em;
}
.featured-article__title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.featured-article__title a { color: inherit; }
.featured-article__title a:hover { color: var(--primary); }
.featured-article__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.featured-article__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
  width: fit-content;
}
.featured-article__cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.featured-article__cta svg {
  width: 14px; height: 14px;
  transition: transform var(--transition);
}
.featured-article__cta:hover svg { transform: translateX(3px); }

/* =========================================================
   SECTION LABEL  (dot + text)
   ========================================================= */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.section-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* =========================================================
   POST CARDS GRID
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.posts-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Post Card ────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--border);
}
.post-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.post-card__badge { /* badge below image, above title */ }
.post-card__title {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}
.post-card__meta-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-card__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Featured horizontal card variant ───────────────────── */
.post-card--horizontal {
  flex-direction: row;
  grid-column: span 2;
}
.post-card--horizontal .post-card__image {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 200px;
}
.post-card--horizontal .post-card__body {
  padding: 1.5rem;
}

/* =========================================================
   SKELETON LOADER
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
}
.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-state__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--text-muted); color: var(--text); }
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   NEWSLETTER BANNER
   ========================================================= */
.newsletter-section {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
}
.newsletter-section__title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.newsletter-section__sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }
.newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.newsletter-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: none;
}
.newsletter-msg.success { color: #16a34a; display: block; }
.newsletter-msg.error   { color: #dc2626; display: block; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sidebar-widget ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: var(--text-muted); }
.sidebar-widget ul li a:hover { color: var(--primary); }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-chip {
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--transition);
}
.tag-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =========================================================
   BLOG DETAIL
   ========================================================= */
.post-hero {
  padding: 2rem 0 0;
}
.post-hero__category {
  margin-bottom: 1rem;
}
.post-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.post-hero__meta-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.post-hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 2.5rem;
}
.post-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}
.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content code {
  background: var(--bg-alt);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  color: var(--primary);
  font-family: 'Fira Code', 'Courier New', monospace;
}
.post-content pre {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code { background: none; padding: 0; color: var(--text); }
.post-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.post-content a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-bar {
  position: relative;
  margin-bottom: 2rem;
}
.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  padding: 3rem 0;
  max-width: 700px;
}
.about-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.about-hero__text { font-size: 1.05rem; color: var(--text-muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col__heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-col ul li {
  margin-bottom: 0.55rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-newsletter-form input[type="email"] {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.footer-newsletter-form input[type="email"]:focus { border-color: var(--primary); }
.footer-newsletter-form .btn { justify-content: center; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1rem;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 990;
  transition: opacity var(--transition), background var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--primary-hover); }

/* =========================================================
   ARCHIVE / LIST ITEMS
   ========================================================= */
.archive-list { display: flex; flex-direction: column; gap: 0; }
.archive-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.archive-item:first-child { padding-top: 0; }
.archive-item__image {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.archive-item__body { flex: 1; }
.archive-item__title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.archive-item__title a { color: inherit; }
.archive-item__title a:hover { color: var(--primary); }
.archive-item__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; gap: 0.75rem;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider {
  position: relative;
  margin-bottom: 0;
}

/* Each slide is hidden by default; only .active is shown */
.hero-slide {
  display: none;
}
.hero-slide.active {
  display: block;
  animation: heroFadeIn 0.45s ease;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0);   }
}

/* Prev / Next arrow buttons */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  flex-shrink: 0;
}
.hero-slider__arrow svg { width: 16px; height: 16px; }
.hero-slider__prev { left: -19px; }
.hero-slider__next { right: -19px; }
.hero-slider__arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,58,46,.25);
}

/* Slide indicator dots */
.hero-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  margin-bottom: 2.5rem;
}
.hero-slider__dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 250ms ease;
  padding: 0;
  flex-shrink: 0;
}
.hero-slider__dot.active {
  background: var(--primary);
  width: 22px;
}
.hero-slider__dot:hover:not(.active) {
  background: var(--text-muted);
}

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

/* Tablet  ≤1024px */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large mobile / small tablet  ≤768px */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-dropdown { display: none; }

  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article__image {
    aspect-ratio: 16/9;
    border-radius: 0;
  }
  .featured-article__body {
    padding: 1.5rem;
  }

  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid-2col { grid-template-columns: 1fr; }

  .post-card--horizontal {
    flex-direction: column;
    grid-column: span 1;
  }
  .post-card--horizontal .post-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: unset;
  }

  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .archive-item__image { width: 90px; height: 62px; }
}

/* Mobile  ≤480px */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .filter-pills { gap: 0.4rem; }
  .filter-pill { font-size: 0.78rem; padding: 0.32rem 0.8rem; }
  .page-header { padding: 1.75rem 0 1rem; }
  .section { padding: 2.5rem 0; }
  .featured-article__body { padding: 1.25rem; }
}
