/* ============================================
   Sleeping In Carolina — Coastal Theme
   Light, Carolina/sleeping/coastal palette
   Responsive: 360px minimum
   ============================================ */

:root {
  /* Coastal light palette */
  --sand: #F7F4EE;
  --sand-dark: #EDE8E0;
  --seafoam: #E5F0ED;
  --seafoam-mid: #C8E0D8;
  --sky: #E8F2F7;
  --sky-mid: #B8D4E8;
  --cream: #FDFBF7;
  --shell: #F5EDE4;
  --driftwood: #8B7355;
  --ocean: #4A7C8C;
  --ocean-deep: #2E5A67;
  --sunset: #C9A87C;
  --coral: #D4A574;
  --text: #2C3E42;
  --text-soft: #4A5D62;
  --white: #FFFFFF;
  /* Patterns */
  --wave-gradient: linear-gradient(135deg, var(--seafoam) 0%, var(--sky) 50%, var(--sand) 100%);
  --section-alt: var(--seafoam);
  --section-sand: var(--sand);
  --section-sky: var(--sky);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ----- Header & Nav ----- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(46, 90, 103, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ocean-deep);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  font-family: 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ocean);
  color: var(--ocean);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--ocean);
}

/* ----- Leaderboard Ad ----- */
.ad-leaderboard {
  width: 100%;
  max-width: min(728px, 100%);
  min-width: 0;
  height: auto;
  margin: 0.75rem auto 1.25rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.ad-leaderboard > ins,
.ad-leaderboard > *:not(script):not(style) {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar / sticky Revive blocks — centered, no horizontal overflow */
.sidebar-ads,
.skyscraper-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sidebar-ads {
  margin-top: 1.25rem;
  gap: 1rem;
}

.sidebar-ads > ins,
.skyscraper-ad > ins {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Third-party iframes: respect slot width on narrow viewports */
.ad-leaderboard iframe,
.sidebar-ads iframe,
.skyscraper-ad iframe {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* In-article floated ads break narrow layouts — center and constrain */
.article-body ins[data-revive-id] {
  float: none !important;
  display: block !important;
  max-width: 100% !important;
  width: auto !important;
  margin: 1.25rem auto !important;
  clear: both !important;
  text-align: center;
}

/* Ad creatives as <img> (non-iframe): fill slot on small screens */
@media (max-width: 767px) {
  .ad-leaderboard img,
  .ad-leaderboard picture img,
  .sidebar-ads img,
  .sidebar-ads picture img,
  .skyscraper-ad img,
  .skyscraper-ad picture img,
  .article-body ins[data-revive-id] img,
  .article-body ins[data-revive-id] picture img {
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .ad-leaderboard img,
  .ad-leaderboard picture img {
    aspect-ratio: 728 / 90;
  }

  .article-body ins[data-revive-id] img,
  .article-body ins[data-revive-id] picture img {
    aspect-ratio: 300 / 250;
  }

  .sidebar-ads > ins img,
  .sidebar-ads > ins picture img {
    aspect-ratio: 300 / 250;
  }

  .skyscraper-ad img,
  .skyscraper-ad picture img {
    aspect-ratio: 160 / 600;
    max-height: min(600px, 70vh);
  }
}

/* ----- Hero ----- */
.hero {
  background: var(--wave-gradient);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1rem 3rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' opacity='0.06'%3E%3Cpath fill='%232E5A67' d='M0 10 Q25 5 50 10 T100 10 V20 H0 Z'/%3E%3C/svg%3E");
  background-size: 120px 24px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--ocean);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  color: var(--ocean-deep);
  margin: 0 0 1rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.65;
}

/* ----- Latest news / alert slider (continuous) ----- */
.news-slider {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--ocean-deep);
  color: var(--sand);
  padding: 0.6rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-slider-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--seafoam-mid);
  white-space: nowrap;
}

.news-slider-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.news-slider-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: news-slider-scroll 45s linear infinite;
}

.news-slider:hover .news-slider-track {
  animation-play-state: paused;
}

.news-slider-item {
  flex-shrink: 0;
  color: var(--sand);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.news-slider-item:hover {
  color: var(--white);
  text-decoration: underline;
}

.news-slider-dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--seafoam-mid);
  opacity: 0.8;
}

@keyframes news-slider-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .news-slider {
    padding: 0.5rem 0;
  }

  .news-slider-label {
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }

  .news-slider-item {
    font-size: 0.85rem;
  }

  .news-slider-track {
    gap: 1rem;
  }
}

/* ----- Sections (patterned backgrounds) ----- */
.section {
  padding: 2.5rem 1rem;
}

.section--sand {
  background: var(--section-sand);
  background-image: radial-gradient(circle at 20% 80%, rgba(201, 168, 124, 0.08) 0%, transparent 50%);
}

/* About section: background icons */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-section-bg i {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ocean);
  opacity: 0.06;
  transition: opacity 0.4s ease;
}

.about-section:hover .about-section-bg i {
  opacity: 0.09;
}

.about-section-bg i:nth-child(1)  { top: 8%;   left: 5%;   transform: rotate(-15deg); }
.about-section-bg i:nth-child(2)  { top: 15%;  right: 12%; transform: rotate(10deg); }
.about-section-bg i:nth-child(3)  { top: 25%;  left: 8%;   transform: rotate(5deg); font-size: 1.8rem; }
.about-section-bg i:nth-child(4)  { top: 12%;  right: 25%; transform: rotate(-8deg); }
.about-section-bg i:nth-child(5)  { top: 60%;  left: 4%;   transform: rotate(12deg); }
.about-section-bg i:nth-child(6)  { top: 70%;  right: 8%;  transform: rotate(-5deg); font-size: 1.6rem; }
.about-section-bg i:nth-child(7)  { top: 75%;  left: 18%;  transform: rotate(-18deg); }
.about-section-bg i:nth-child(8)  { top: 18%;  left: 22%;  transform: rotate(8deg); font-size: 1.4rem; }
.about-section-bg i:nth-child(9)  { bottom: 20%; right: 15%; transform: rotate(-10deg); }
.about-section-bg i:nth-child(10) { bottom: 25%; left: 12%;  transform: rotate(15deg); font-size: 1.7rem; }
.about-section-bg i:nth-child(11) { bottom: 12%; right: 28%; transform: rotate(-12deg); }
.about-section-bg i:nth-child(12) { bottom: 35%; right: 6%;  transform: rotate(6deg); font-size: 1.5rem; }

.about-section .section-inner {
  position: relative;
  z-index: 1;
}

.section--seafoam {
  background: var(--section-alt);
  background-image: linear-gradient(180deg, transparent 0%, rgba(200, 224, 216, 0.3) 100%);
}

.section--sky {
  background: var(--section-sky);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%234A7C8C'/%3E%3C/svg%3E");
}

/* From the Carolinas & Beyond: layered background patterns */
.carolinas-section {
  position: relative;
  background-color: var(--section-sky);
  background-image:
    /* Soft wave pattern (repeats) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath fill='none' stroke='%234A7C8C' stroke-width='0.6' opacity='0.07' d='M0 20 Q30 8 60 20 T120 20'/%3E%3Cpath fill='none' stroke='%234A7C8C' stroke-width='0.5' opacity='0.05' d='M0 28 Q30 16 60 28 T120 28'/%3E%3Cpath fill='none' stroke='%234A7C8C' stroke-width='0.4' opacity='0.04' d='M0 12 Q30 4 60 12 T120 12'/%3E%3C/svg%3E"),
    /* Diagonal stripes */
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 24px,
      rgba(74, 124, 140, 0.025) 24px,
      rgba(74, 124, 140, 0.025) 25px
    ),
    /* Dots */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='1' fill='%234A7C8C' opacity='0.06'/%3E%3C/svg%3E");
  background-size:
    120px 40px,
    100% 100%,
    32px 32px;
  background-position:
    0 0,
    0 0,
    0 0;
  background-repeat: repeat, repeat, repeat;
}

.section--shell {
  background: var(--shell);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}

/* ----- Home blog listing (3 per row, load more) ----- */
.home-blog-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 15%, var(--sand) 100%);
  padding: 3rem 1rem;
}

.home-blog-intro {
  max-width: 560px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.home-blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(46, 90, 103, 0.06);
  border: 1px solid rgba(74, 124, 140, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(46, 90, 103, 0.12);
  border-color: rgba(74, 124, 140, 0.18);
}

.home-blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.home-blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-dark);
  transition: transform 0.4s ease;
}

.home-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-blog-card:hover .home-blog-card-img {
  transform: scale(1.03);
}

.home-blog-card:hover .home-blog-card-img img {
  transform: scale(1.05);
}

.home-blog-card-cat {
  display: inline-block;
  margin: 1rem 1.25rem 0;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ocean);
  background: var(--seafoam);
  border-radius: 6px;
  width: fit-content;
}

.home-blog-card-title {
  margin: 0.75rem 1.25rem 0;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ocean-deep);
  font-weight: 600;
  transition: color 0.25s ease;
}

.home-blog-card:hover .home-blog-card-title {
  color: var(--ocean);
}

.home-blog-card-excerpt {
  margin: 0.5rem 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
}

.home-blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean);
  transition: gap 0.25s ease, color 0.25s ease;
}

.home-blog-card:hover .home-blog-card-cta {
  gap: 0.6rem;
  color: var(--ocean-deep);
}

/* Load more: hide extra cards by default */
.home-blog-card--more {
  display: none;
}

.home-blog-card--more.is-visible {
  display: block;
}

.home-blog-actions {
  text-align: center;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: var(--ocean-deep);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(46, 90, 103, 0.25);
}

.btn-load-more:hover {
  background: var(--ocean);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 90, 103, 0.3);
}

.btn-load-more:active {
  transform: translateY(0);
}

.btn-load-more.is-expanded {
  background: var(--text-soft);
}

.btn-load-more.is-expanded:hover {
  background: var(--text);
}

@media (min-width: 640px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .home-blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .home-blog-card--more.is-visible {
    display: block;
  }
}

/* ----- Heading design (section titles & headings) ----- */
.section-title {
  max-width: 1200px;
  margin: 0 auto 1.75rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--ocean);
  width: fit-content;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--sunset) 0%, transparent 100%);
  opacity: 0.8;
}

.section-title i {
  color: var(--ocean);
  font-size: 0.9em;
}

/* Article/page headings */
.article-title,
.blog-banner-large h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-block h2,
.article-body h2 {
  font-size: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sand-dark);
  margin-bottom: 0.85rem;
}

.article-body h3,
.card h3 {
  font-size: 1.2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ----- Content blocks ----- */
.content-block {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.content-block h2 {
  color: var(--ocean-deep);
  margin: 0 0 0.75rem;
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.blockquote {
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ocean);
  background: var(--white);
  font-style: italic;
  color: var(--text-soft);
  max-width: 640px;
}

.blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ocean);
}

/* ----- The Pace of the Coast (redesigned) ----- */
.pace-section {
  padding: 3rem 1rem;
}

.pace-title {
  margin-bottom: 2rem;
}

.pace-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(46, 90, 103, 0.08), 0 2px 12px rgba(46, 90, 103, 0.04);
  border: 1px solid rgba(74, 124, 140, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pace-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(46, 90, 103, 0.12), 0 8px 24px rgba(46, 90, 103, 0.06);
  border-color: rgba(74, 124, 140, 0.2);
}

.pace-card-inner {
  padding: 2rem 2rem 1.5rem;
  position: relative;
}

.pace-quote-mark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--ocean);
  opacity: 0.2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pace-card:hover .pace-quote-mark {
  opacity: 0.35;
  transform: scale(1.05);
}

.pace-quote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

.pace-card:hover .pace-quote {
  color: var(--ocean-deep);
}

.pace-cite {
  display: block;
  padding-left: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ocean);
  position: relative;
  z-index: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.pace-card:hover .pace-cite {
  color: var(--ocean-deep);
}

.pace-accents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid var(--sand-dark);
  background: linear-gradient(180deg, transparent 0%, rgba(232, 242, 247, 0.4) 100%);
}

.pace-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ocean-deep);
  background: var(--white);
  border: 1px solid rgba(74, 124, 140, 0.15);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(46, 90, 103, 0.06);
  cursor: default;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pace-pill:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--seafoam);
  border-color: var(--seafoam-mid);
  box-shadow: 0 6px 16px rgba(46, 90, 103, 0.1);
}

.pace-pill i {
  font-size: 0.85rem;
  color: var(--ocean);
  transition: transform 0.25s ease;
}

.pace-pill:hover i {
  transform: rotate(-8deg);
}

/* Subtle entrance animation */
@keyframes pace-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pace-card {
  animation: pace-fade-up 0.6s ease-out both;
}

@media (max-width: 640px) {
  .pace-card-inner {
    padding: 1.5rem 1.25rem 1rem;
  }

  .pace-quote-mark {
    font-size: 3rem;
    left: 1rem;
  }

  .pace-quote {
    padding-left: 0.5rem;
    font-size: 1.05rem;
  }

  .pace-cite {
    padding-left: 0.5rem;
  }

  .pace-accents {
    padding: 1rem 1.25rem 1.5rem;
    justify-content: center;
  }

  .pace-pill {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }
}

/* ----- Read the Blog (redesigned) ----- */
.read-blog-section {
  padding: 3rem 1rem;
}

.read-blog-title {
  margin-bottom: 2rem;
}

.read-blog-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(46, 90, 103, 0.08), 0 2px 12px rgba(46, 90, 103, 0.04);
  border: 1px solid rgba(74, 124, 140, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.read-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(46, 90, 103, 0.12), 0 8px 24px rgba(46, 90, 103, 0.06);
  border-color: rgba(74, 124, 140, 0.2);
}

.read-blog-content {
  padding: 2rem 2rem 1.5rem;
}

.read-blog-intro {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.read-blog-featured {
  display: block;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--seafoam) 0%, var(--sky) 100%);
  border-radius: 14px;
  border: 1px solid rgba(74, 124, 140, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.read-blog-featured:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(46, 90, 103, 0.12);
  border-color: rgba(74, 124, 140, 0.25);
  background: linear-gradient(135deg, var(--seafoam-mid) 0%, var(--sky-mid) 100%);
}

.read-blog-featured-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.read-blog-featured-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ocean-deep);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.25s ease;
}

.read-blog-featured:hover .read-blog-featured-title {
  color: var(--ocean);
}

.read-blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ocean);
  transition: gap 0.25s ease, color 0.25s ease;
}

.read-blog-featured:hover .read-blog-featured-cta {
  gap: 0.6rem;
  color: var(--ocean-deep);
}

.read-blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid var(--sand-dark);
  background: linear-gradient(180deg, transparent 0%, rgba(245, 237, 228, 0.5) 100%);
}

.read-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.read-blog-btn--primary {
  background: var(--ocean-deep);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(46, 90, 103, 0.3);
}

.read-blog-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 90, 103, 0.35);
  background: var(--ocean);
  color: var(--white);
}

.read-blog-btn--secondary {
  background: var(--white);
  color: var(--ocean);
  border: 2px solid var(--ocean);
}

.read-blog-btn--secondary:hover {
  transform: translateY(-2px);
  background: var(--seafoam);
  color: var(--ocean-deep);
  border-color: var(--ocean);
}

@keyframes read-blog-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.read-blog-card {
  animation: read-blog-fade-up 0.6s ease-out 0.1s both;
}

@media (max-width: 640px) {
  .read-blog-content {
    padding: 1.5rem 1.25rem 1rem;
  }

  .read-blog-intro {
    font-size: 1rem;
  }

  .read-blog-featured {
    padding: 1rem 1.25rem;
  }

  .read-blog-featured-title {
    font-size: 1.05rem;
  }

  .read-blog-actions {
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
  }

  .read-blog-btn {
    width: 100%;
  }
}

/* ----- Numbered / card sections ----- */
/* What We're About: full-width intro */
.about-intro {
  max-width: none;
  width: 100%;
  margin-bottom: 2rem;
}

.about-intro p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.75;
  max-width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(46, 90, 103, 0.06);
  border: 1px solid rgba(74, 124, 140, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(46, 90, 103, 0.12);
  border-color: rgba(74, 124, 140, 0.22);
  background: var(--white);
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ocean);
  background: var(--seafoam);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.card:hover .card-num {
  transform: scale(1.08);
  background: var(--ocean);
  color: var(--white);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--ocean-deep);
  margin: 0 0 0.5rem;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--ocean);
}

.card h3 i {
  transition: transform 0.3s ease;
}

.card:hover h3 i {
  transform: scale(1.1);
}

.card p {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.card:hover p {
  color: var(--text);
}

/* ----- RSS sections ----- */
.rss-section {
  margin-bottom: 2.5rem;
}

.rss-section:last-child {
  margin-bottom: 0;
}

.rss-label {
  font-size: 0.8rem;
  color: var(--ocean);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rss-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--white);
  border-radius: 12px;
  padding: 0.65rem;
  border: 1px solid rgba(74, 124, 140, 0.12);
  box-shadow: 0 4px 20px rgba(46, 90, 103, 0.06);
  min-height: 180px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rss-feed:hover {
  box-shadow: 0 8px 28px rgba(46, 90, 103, 0.08);
  border-color: rgba(74, 124, 140, 0.18);
}

.rss-item {
  display: block;
  padding: 0.85rem 1rem;
  margin: 0.25rem 0;
  border-radius: 8px;
  border-left: 3px solid transparent;
  border-bottom: none;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-left-color 0.2s ease, transform 0.2s ease;
}

.rss-item:hover {
  background: var(--seafoam);
  border-left-color: var(--ocean);
}

.rss-item:active {
  transform: scale(0.99);
}

.rss-item:last-child {
  border-bottom: none;
}

.rss-item + .rss-item {
  border-top: 1px solid var(--sand-dark);
}

.rss-item h4 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--ocean-deep);
  transition: color 0.2s ease;
}

.rss-item:hover h4 {
  color: var(--ocean);
}

.rss-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.rss-item .meta {
  font-size: 0.75rem;
  color: var(--ocean);
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rss-item-icon {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rss-item:hover .rss-item-icon {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Live RSS cards (injected by rss-feeds.js) */
.rss-card {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(74, 124, 140, 0.14);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rss-card:hover {
  border-color: rgba(74, 124, 140, 0.28);
  box-shadow: 0 6px 20px rgba(46, 90, 103, 0.08);
}

.rss-card--fallback {
  background: var(--seafoam);
  border-style: dashed;
}

.rss-card-link {
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.rss-card-link--static {
  cursor: default;
}

.rss-card-link:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
}

.rss-card--fallback .rss-card-meta a {
  color: var(--ocean-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rss-card--fallback .rss-card-meta a:hover {
  color: var(--ocean);
}

.rss-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ocean-deep);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.rss-card:hover .rss-card-title {
  color: var(--ocean);
}

/* One line: source · date (legacy inline script markup) */
.rss-card-meta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-soft);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ocean-deep);
  color: var(--sand);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--seafoam-mid);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ----- Blog layout ----- */
.page-blog .site-header {
  border-bottom: 1px solid var(--sand-dark);
}

.blog-banner {
  background: var(--section-sky);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ocean);
}

.article-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 420px;
  overflow: hidden;
  background: var(--sand-dark);
}

.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .article-banner {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}

.blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-main {
  min-width: 0;
}

.blog-aside {
  order: -1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Article page: sticky sidebar + widgets */
.article-sidebar {
  align-self: start;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .article-sidebar {
    position: sticky;
    top: 5.5rem; /* clear sticky header */
  }
}

.article-sidebar-widget {
  background: var(--white);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(74, 124, 140, 0.1);
  box-shadow: 0 4px 20px rgba(46, 90, 103, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.article-sidebar-widget:hover {
  box-shadow: 0 8px 28px rgba(46, 90, 103, 0.1);
  border-color: rgba(74, 124, 140, 0.18);
}

.article-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--seafoam-mid);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.article-widget-title i {
  color: var(--ocean);
  font-size: 0.95rem;
}

/* TOC widget */
.article-toc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-toc-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.article-toc-link:hover {
  background: var(--seafoam);
  color: var(--ocean-deep);
  padding-left: 0.85rem;
}

/* Share widget */
.article-widget-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--sand-dark);
  color: var(--ocean);
  border: 1px solid rgba(74, 124, 140, 0.12);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-share-btn:hover {
  background: var(--ocean);
  color: var(--white);
  transform: scale(1.08);
}

button.article-share-btn {
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* Explore widget */
.article-widget-explore {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-widget-explore-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.article-widget-explore-link:hover {
  background: var(--seafoam);
  color: var(--ocean-deep);
  padding-left: 0.9rem;
}

.article-widget-explore-link i {
  color: var(--ocean);
  font-size: 0.9rem;
  width: 1.1em;
  text-align: center;
}

/* More From the Blog widget */
.article-widget-more-posts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-more-posts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-more-post-link {
  display: block;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  line-height: 1.35;
}

.article-more-post-link:hover {
  background: var(--seafoam);
  color: var(--ocean-deep);
  padding-left: 0.9rem;
}

/* Smooth scroll target offset for sticky header */
.article-body h2[id] {
  scroll-margin-top: 5rem;
}

.article-category {
  font-size: 0.85rem;
  color: var(--ocean);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-title {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  color: var(--ocean-deep);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.article-byline {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--ocean-deep);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sand-dark);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--ocean);
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-soft);
}

/* Related blogs */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-dark);
}

.related-section h2 {
  font-size: 1.35rem;
  color: var(--ocean-deep);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.related-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(74, 124, 140, 0.12);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 6px 20px rgba(46, 90, 103, 0.1);
}

.related-card-img {
  height: 120px;
  overflow: hidden;
  background: var(--sand-dark);
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-img img {
  transform: scale(1.05);
}

.related-card-body {
  padding: 1rem;
}

.related-card-cat {
  font-size: 0.8rem;
  color: var(--ocean);
  margin-bottom: 0.35rem;
}

.related-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--ocean-deep);
}

.related-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-soft);
}

.related-card .read-more {
  font-size: 0.85rem;
  color: var(--ocean);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Share */
.article-share {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand-dark);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.article-share a {
  color: var(--ocean);
  text-decoration: none;
  margin-right: 1rem;
}

.article-share a:hover {
  text-decoration: underline;
}

/* ----- Responsive: tablet ----- */
@media (min-width: 640px) {
  .blog-wrap {
    grid-template-columns: 1fr 300px;
    padding: 1.5rem;
  }

  .blog-aside {
    order: 0;
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 3.5rem 1.5rem 4rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .rss-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .rss-section {
    margin-bottom: 0;
  }
}

/* ----- Responsive: mobile (360px minimum) ----- */
@media (max-width: 639px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .main-nav.is-open ul {
    display: flex;
  }

  .ad-leaderboard {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 359px) {
  html {
    font-size: 16px;
  }

  .header-inner {
    padding: 0.5rem 0.75rem;
  }

  .section {
    padding: 1.5rem 0.75rem;
  }

  .hero {
    padding: 1.5rem 0.75rem 2rem;
  }
}

.cta-link {
  color: var(--ocean);
  font-weight: 600;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

/* ----- Blog listing page (article index) ----- */
.page-blog-list .site-header {
  border-bottom: 1px solid var(--sand-dark);
}

.blog-banner-large {
  background-color: var(--seafoam);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    /* Wave pattern */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'%3E%3Cpath fill='none' stroke='%232E5A67' stroke-width='0.5' opacity='0.08' d='M0 20 Q30 8 60 20 T120 20'/%3E%3Cpath fill='none' stroke='%232E5A67' stroke-width='0.4' opacity='0.05' d='M0 28 Q30 16 60 28 T120 28'/%3E%3C/svg%3E"),
    /* Dots */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='1' fill='%234A7C8C' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 120px 40px, 28px 28px;
  background-position: 0 0, 0 0;
  background-repeat: repeat, repeat;
}

.blog-banner-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--seafoam) 0%, var(--sky) 50%, var(--sand) 100%);
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}

.blog-banner-large-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.blog-banner-large-bg i {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ocean-deep);
  opacity: 0.07;
  transition: opacity 0.3s ease;
}

.blog-banner-large:hover .blog-banner-large-bg i {
  opacity: 0.1;
}

.blog-banner-large-bg i:nth-child(1)  { top: 12%;  left: 8%;   transform: rotate(-12deg); }
.blog-banner-large-bg i:nth-child(2)  { top: 25%;  right: 10%; transform: rotate(8deg); }
.blog-banner-large-bg i:nth-child(3)  { top: 18%;  left: 18%;  transform: rotate(5deg); font-size: 1.6rem; }
.blog-banner-large-bg i:nth-child(4)  { top: 8%;   right: 22%; transform: rotate(-8deg); }
.blog-banner-large-bg i:nth-child(5)  { bottom: 25%; left: 6%;  transform: rotate(10deg); }
.blog-banner-large-bg i:nth-child(6)  { bottom: 18%; right: 12%; transform: rotate(-5deg); font-size: 1.4rem; }
.blog-banner-large-bg i:nth-child(7)  { bottom: 30%; right: 25%; transform: rotate(-15deg); }
.blog-banner-large-bg i:nth-child(8)  { top: 35%;  left: 5%;   transform: rotate(6deg); font-size: 1.5rem; }
.blog-banner-large-bg i:nth-child(9)  { bottom: 12%; right: 18%; transform: rotate(-10deg); }
.blog-banner-large-bg i:nth-child(10) { bottom: 35%; left: 15%;  transform: rotate(12deg); }
.blog-banner-large-bg i:nth-child(11) { top: 45%;  right: 8%;  transform: rotate(-6deg); font-size: 1.35rem; }
.blog-banner-large-bg i:nth-child(12) { top: 55%;  left: 12%;  transform: rotate(9deg); }

.blog-banner-large h1 {
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  color: var(--ocean-deep);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 2;
}

.blog-banner-large p {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-layout .blog-content {
  min-width: 0;
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand-dark);
}

.blog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-family: inherit;
  color: var(--text-soft);
  background: var(--white);
  border: 1px solid rgba(74, 124, 140, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-tab i {
  font-size: 1.1rem;
  pointer-events: none;
}

.blog-tab:hover {
  color: var(--ocean);
  background: var(--seafoam);
  border-color: var(--seafoam-mid);
}

.blog-tab.is-active {
  color: var(--white);
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
  box-shadow: 0 2px 8px rgba(46, 90, 103, 0.25);
}

.blog-tab.is-active:hover {
  background: var(--ocean);
  border-color: var(--ocean);
}

.blog-card.is-hidden {
  display: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(74, 124, 140, 0.1);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46, 90, 103, 0.12);
  border-color: rgba(74, 124, 140, 0.2);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-dark);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-cat {
  font-size: 0.8rem;
  color: var(--ocean);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--ocean-deep);
  line-height: 1.35;
  font-weight: 600;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.blog-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Blog sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.blog-sidebar-widget {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(74, 124, 140, 0.12);
  box-shadow: 0 4px 16px rgba(46, 90, 103, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-sidebar-widget:hover {
  box-shadow: 0 6px 24px rgba(46, 90, 103, 0.08);
  border-color: rgba(74, 124, 140, 0.18);
}

.blog-sidebar-widget-title,
.blog-sidebar-widget h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--seafoam-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-sidebar-widget-title i,
.blog-sidebar-widget h3 i {
  font-size: 1rem;
  color: var(--ocean);
  opacity: 1;
  display: inline-block;
  width: 1.1em;
  text-align: center;
}

.blog-search-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--sand-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-form:focus-within {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(74, 124, 140, 0.15);
}

.blog-search-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}

.blog-search-form input::placeholder {
  color: var(--text-soft);
}

.blog-search-form input:focus {
  outline: none;
}

.blog-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--ocean);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s ease;
}

.blog-search-form button i {
  font-size: 0.95rem;
  opacity: 1;
}

.blog-search-form button:hover {
  background: var(--ocean-deep);
}

.blog-search-form button:focus {
  outline: none;
}

.blog-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-categories li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--sand-dark);
}

.blog-categories li:last-child {
  border-bottom: none;
}

.blog-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.blog-categories a:hover {
  color: var(--ocean);
  padding-left: 0.25rem;
}

.blog-categories .count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean);
  background: var(--seafoam);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-dark);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-soft);
  background: var(--white);
  border: 1px solid rgba(74, 124, 140, 0.15);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination a:hover {
  background: var(--seafoam);
  color: var(--ocean-deep);
  border-color: var(--seafoam-mid);
}

.pagination .current {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
  font-weight: 600;
}

.pagination .prev,
.pagination .next {
  font-size: 0.85rem;
}

/* Blog listing responsive */
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr 320px;
    padding: 2rem 1.5rem;
  }

  .blog-sidebar {
    order: 0;
  }
}

@media (max-width: 767px) {
  .blog-sidebar {
    order: -1;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
