/* ============================================
   CASH CRAFT — Design System
   Premium Business & Finance Blog
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-navy: hsl(228, 35%, 16%);
  --color-navy-light: hsl(228, 30%, 22%);
  --color-navy-dark: hsl(228, 40%, 10%);
  --color-gold: hsl(42, 52%, 54%);
  --color-gold-light: hsl(42, 60%, 68%);
  --color-gold-muted: hsl(42, 30%, 80%);
  --color-cream: hsl(40, 33%, 97%);
  --color-cream-dark: hsl(40, 20%, 93%);
  --color-text: hsl(228, 20%, 20%);
  --color-text-muted: hsl(228, 10%, 50%);
  --color-text-light: hsl(228, 8%, 65%);
  --color-white: #ffffff;
  --color-border: hsl(228, 15%, 88%);
  --color-shadow: hsla(228, 35%, 16%, 0.08);
  --color-shadow-strong: hsla(228, 35%, 16%, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 760px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.3s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

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

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

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  background: hsla(0, 0%, 100%, 0.92);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.03em;
}

.nav-logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--color-navy);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  transition: all var(--duration) var(--ease);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, hsl(228, 28%, 28%) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(42, 52%, 54%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(42, 52%, 54%, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: all var(--duration) var(--ease);
}

.hero-cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(42, 52%, 54%, 0.3);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.section-header h2 {
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-md) - 1px);
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.section-link:hover {
  color: var(--color-navy);
}

/* ============================================
   FEATURED POSTS
   ============================================ */
.featured {
  padding: var(--space-4xl) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.featured-main {
  grid-row: span 2;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-strong);
  border-color: transparent;
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.card-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 6px 12px;
  border-radius: 4px;
}

.card-body {
  padding: var(--space-lg) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-light);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  transition: color var(--duration) var(--ease);
}

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

.card-excerpt {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.card-read {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.card-read svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration) var(--ease);
}

.card:hover .card-read svg {
  transform: translateX(4px);
}

.card-time {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Featured main card overrides */
.featured-main .card-image {
  aspect-ratio: 16 / 12;
}

.featured-main .card-title {
  font-size: 1.5rem;
}

/* Side cards - horizontal layout */
.card-side {
  flex-direction: row;
}

.card-side .card-image {
  width: 200px;
  min-width: 200px;
  aspect-ratio: auto;
}

.card-side .card-title {
  font-size: 1.05rem;
}

.card-side .card-excerpt {
  display: none;
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-section {
  padding: 0 0 var(--space-4xl);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--color-navy);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.newsletter p {
  color: hsla(0, 0%, 100%, 0.65);
  margin-bottom: var(--space-2xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid hsla(0, 0%, 100%, 0.15);
  border-radius: var(--radius);
  background: hsla(0, 0%, 100%, 0.08);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.newsletter-form input::placeholder {
  color: hsla(0, 0%, 100%, 0.4);
}

.newsletter-form input:focus {
  border-color: var(--color-gold);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-navy-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .nav-logo {
  color: var(--color-white);
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.footer-brand p {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
}

.footer-bottom p {
  color: hsla(0, 0%, 100%, 0.35);
  font-size: 0.825rem;
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.06);
  color: hsla(0, 0%, 100%, 0.5);
  transition: all var(--duration) var(--ease);
}

.footer-socials a:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.post-page {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.post-page .container {
  max-width: var(--content-width);
}

.post-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.post-header .card-category {
  position: static;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.post-header h1 {
  margin-bottom: var(--space-lg);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-light);
}

.post-hero-image {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--color-text);
}

.post-body h2 {
  margin: var(--space-2xl) 0 var(--space-md);
  font-size: 1.625rem;
}

.post-body h3 {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: 1.3rem;
}

.post-body p {
  margin-bottom: var(--space-lg);
}

.post-body ul, .post-body ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
}

.post-body li {
  margin-bottom: var(--space-sm);
}

.post-body blockquote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--color-cream-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.post-body strong {
  color: var(--color-navy);
  font-weight: 600;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.post-tags a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-cream-dark);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--duration) var(--ease);
}

.post-tags a:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  transition: color var(--duration) var(--ease);
}

.post-back:hover {
  color: var(--color-gold);
}

.post-back svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   HIGH-RPM AD DESIGN & MONETIZATION UNITS
   ============================================ */
.ad-slot {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ad-unit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 4px 16px var(--color-shadow);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.ad-unit-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px hsla(42, 52%, 54%, 0.15);
}

.ad-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.ad-disclosure {
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.ad-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.ad-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.ad-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.ad-main-info {
  flex: 1;
}

.ad-action-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  min-width: 180px;
}

.ad-trust-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(150, 60%, 35%);
  background: hsla(150, 60%, 40%, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.ad-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.ad-cta-btn:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(42, 52%, 54%, 0.3);
}

/* In-Article Native Ad Block */
.ad-mid-post {
  margin: var(--space-3xl) 0;
}

.ad-unit-in-article {
  background: linear-gradient(135deg, hsl(40, 33%, 98%) 0%, hsl(40, 20%, 93%) 100%);
  border-left: 4px solid var(--color-gold);
}

.ad-body-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.ad-text-wrap {
  flex: 1;
}

.ad-text-wrap .ad-trust-tag {
  margin-top: var(--space-xs);
}

.ad-cta-pulse {
  background: var(--color-gold);
  color: var(--color-navy);
}

.ad-cta-pulse:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* Sticky Bottom Floating Banner Ad */
.ad-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: hsla(228, 35%, 16%, 0.96);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 12px var(--space-xl);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--color-gold);
  animation: slideUpAd 0.5s ease-out;
}

@keyframes slideUpAd {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.ad-sticky-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  position: relative;
  padding-right: 32px;
}

.ad-sticky-text {
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.9);
  line-height: 1.4;
  flex: 1;
}

.ad-sticky-text strong {
  color: var(--color-gold);
}

.ad-sticky-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

.ad-sticky-cta {
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}

.ad-sticky-cta:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.ad-sticky-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.ad-sticky-close:hover {
  color: var(--color-white);
}

@media (max-width: 768px) {
  .ad-banner-content, .ad-body-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .ad-action-side {
    align-items: flex-start;
    width: 100%;
  }

  .ad-sticky-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-right: 28px;
  }

  .ad-sticky-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-main {
    grid-row: auto;
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 3.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 32px var(--color-shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

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

  .card-side {
    flex-direction: column;
  }

  .card-side .card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .card-side .card-excerpt {
    display: block;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card-body {
    padding: var(--space-md);
  }

  .post-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
}
