/* ============================================
   HEALTHY PULSE - Main Stylesheet
   health.f11softwarelab.site
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
  --primary: #2dbe6c;
  --primary-dark: #1fa055;
  --primary-light: #e8f8ef;
  --secondary: #3b9edd;
  --secondary-light: #e8f4fd;
  --accent: #f59e0b;
  --text-dark: #1a1a2e;
  --text-body: #4a4a6a;
  --text-muted: #8888a8;
  --bg-white: #ffffff;
  --bg-light: #f8fffe;
  --bg-section: #f4faf6;
  --border: #e2f0e8;
  --shadow-sm: 0 2px 8px rgba(45, 190, 108, 0.08);
  --shadow-md: 0 8px 30px rgba(45, 190, 108, 0.12);
  --shadow-lg: 0 20px 60px rgba(45, 190, 108, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Lora', serif;
  --nav-height: 72px;
  --touch-target: 48px; /* High touch-friendly target */
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-muted {
  color: var(--text-muted);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.6rem 0.85rem;
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; /* Larger for readability */
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: none;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-target); /* Forced min-height for mobile UX */
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(45, 190, 108, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 190, 108, 0.45);
}

.btn-secondary {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid rgba(59, 158, 221, 0.25);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.btn-primary-light {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(45, 190, 108, 0.25);
}

.btn-primary-light:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #f0fff8 0%, #e8f4fd 50%, #f0fff8 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 190, 108, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 158, 221, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(45, 190, 108, 0.2);
}

.hero-title {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-actions .btn {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero-image-badge {
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    border-top: none;
  }
}

.hero-image-badge .badge-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-image-badge .badge-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.hero-image-badge .badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-tag.blue {
  background: var(--secondary-light);
  color: var(--secondary);
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
/* ============================================
   ARTICLE CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-first: 1 column */
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-first: 1 column */
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ... existing article-card styles ... */
.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 190, 108, 0.3);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

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

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

.card-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  pointer-events: none; /* Let clicks pass through to the image link */
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-title a {
  color: #111111 !important;
  text-decoration: none;
  transition: var(--transition);
}

.card-title a:hover {
  color: var(--primary) !important;
}

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

.card-excerpt {
  font-size: 0.95rem;
  color: #444444 !important;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.read-more {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more:hover {
  gap: 0.6rem;
  color: var(--primary-dark);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
  gap: 1rem;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.category-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #16854a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.newsletter-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  min-height: var(--touch-target);
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--text-dark);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(135deg, #f0fff8 0%, #e8f4fd 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232dbe6c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  opacity: 0.5;
}

/* ============================================
   ARTICLE DETAILS SCREEN
   ============================================ */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.article-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 1.75rem;
}

.tip-box {
  display: flex;
  gap: 1.25rem;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--primary);
}

.post-thumbnail {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.post-thumbnail img {
  display: block;
  margin: 0 auto;
  width: 60%;
  max-width: 800px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .post-thumbnail img {
    max-height: 240px;
  }
}

.tip-box-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.tip-box-content h4 {
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.tip-box-content p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* ============================================
   ADSENSE STYLES
   ============================================ */
.hp-ad-container {
  display: none !important;
  margin: 2.5rem 0;
  width: 100%;
}

.hp-ad-label {
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hp-ad-placeholder {
  background: var(--bg-section);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hp-ad-placeholder-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.hp-ad-placeholder-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hp-ad-placeholder-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Sticky Bottom Ad */
.hp-ad-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: white;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  display: none;
}

/* ============================================
   FEATURES & TESTIMONIALS
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-info strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  font-size: 1.5rem;
}

.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-light);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(45, 190, 108, 0.1);
}

textarea.form-control {
  height: 140px;
  resize: vertical;
}

/* ============================================
   ABOUT
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.team-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--primary);
}

.team-avatar {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.role {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.team-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

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

.footer-brand .nav-logo {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   UTILITIES & ANIMATIONS
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 99;
  display: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

.text-center {
  text-align: center;
}

/* Affiliate Button Animation */
@keyframes hp-pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(45, 190, 108, 0.35);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(45, 190, 108, 0.55);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(45, 190, 108, 0.35);
  }
}

.affiliate-btn-pulse {
  animation: hp-pulse-animation 2.5s infinite ease-in-out;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.25rem;
    display: none;
    z-index: 999;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
    animation: hp-mobile-reveal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links a {
    width: 100%;
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-section);
    justify-content: center;
    border: 1px solid transparent;
  }

  .nav-links a.active, .nav-links a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
  }

  .nav-links .nav-cta {
    margin-top: 1rem;
    background: var(--primary) !important;
    color: white !important;
    box-shadow: var(--shadow-md);
  }

  @keyframes hp-mobile-reveal {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text-content {
    order: 1;
  }

  .hero-image {
    order: 0;
    min-height: 240px;
    height: 280px;
    margin-bottom: 2rem;
  }

  .hero-image img {
    height: 280px;
  }

  .hero-image-badge {
    padding: 0.75rem 1rem;
  }

  .hero-image-badge .badge-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 1.5rem 0 3rem;
  }

  .hero {
    padding: 1.5rem 0 3rem;
  }

  .page-hero {
    padding: 1.5rem 0 2.5rem;
  }

  .content-single {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

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

/* ============================================
   ARTICLE CONTENT STYLES
   ============================================ */
.article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  margin: 0.5rem 0 1.25rem;
  color: var(--text-dark);
  font-weight: 800;
}

.article-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-body);
}

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

.article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.75rem;
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .article-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
  }
}

.post-image-container {
  margin: 1.5rem 0;
  text-align: center;
  width: 100%;
}

.post-image-container img {
  width: 70%;
  max-width: 750px; /* Cap size on desktop */
  margin: 0 auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}

.post-image-container p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* ============================================
   VIDEO POST STYLES
   ============================================ */
.post-video-container {
  max-width: 850px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.post-video-container video {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .post-video-container {
    max-width: 100%;
    border-radius: var(--radius-md);
  }
}

/* ============================================
   PAGINATION
   ============================================ */
.hp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3.5rem 0 1rem;
}

.hp-page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-body);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.hp-page-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.hp-page-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(45, 190, 108, 0.25);
}

.hp-page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8f8f8;
}

.hp-page-nav {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1.25rem;
}

@media (max-width: 600px) {
  .hp-pagination { gap: 0.35rem; }
  .hp-page-item { min-width: 38px; height: 38px; font-size: 0.85rem; }
  .hp-page-nav { padding: 0 0.75rem; }
}

/* ============================================
   ARTICLE LAYOUT (post.html)
   ============================================ */
.content-single {
  max-width: 900px;
  margin: 0 auto 4rem;
}

main {
  width: 100%;
}/* ============================================
   INTERNAL LINKS & SUGGESTED POSTS
   ============================================ */
.internal-link {
  color: #3b9edd !important; /* Secondary blue */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(59, 158, 221, 0.3);
  transition: var(--transition);
}

.internal-link:hover {
  color: #2dbe6c !important; /* Transitions to primary green */
  text-decoration-color: rgba(45, 190, 108, 0.6);
  background: rgba(45, 190, 108, 0.05);
  border-radius: 4px;
}

.suggested-posts-section {
  margin: 4rem 0;
  padding-top: 4rem;
  border-top: 2px solid var(--border);
}

.suggested-posts-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
}

.suggested-posts-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 100px;
}

/* ============================================
   A7 RESPONSIVE EDITORIAL SYSTEM
   ============================================ */
:root {
  --primary: #16784a;
  --primary-dark: #0e5f39;
  --primary-light: #e9f7ef;
  --secondary: #276f9f;
  --text-dark: #17231d;
  --text-body: #3f4d46;
  --text-muted: #647269;
  --bg-light: #fbfdfc;
  --bg-section: #f3f8f5;
  --border: #d9e7df;
  --shadow-sm: 0 2px 10px rgba(20, 57, 39, 0.07);
  --shadow-md: 0 12px 34px rgba(20, 57, 39, 0.11);
  --shadow-lg: 0 24px 70px rgba(20, 57, 39, 0.14);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

html { scroll-padding-top: calc(var(--nav-height) + 1rem); }
body { overflow-x: clip; background: var(--bg-white); }
h1, h2 { font-family: var(--font-serif); letter-spacing: -0.025em; }
h3, h4, h5, h6 { letter-spacing: -0.015em; }
p, li { overflow-wrap: break-word; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--text-dark);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #0b6fa4;
  outline-offset: 3px;
  border-radius: 0.3rem;
}

.navbar { border-bottom-color: rgba(22, 120, 74, 0.14); }
.nav-container { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-height); }
.nav-logo { min-height: 44px; }
.nav-logo-icon { box-shadow: 0 6px 18px rgba(22, 120, 74, 0.2); }
.nav-links { margin: 0; }
.nav-toggle { min-width: 44px; min-height: 44px; }

.btn, button, .hp-page-item { min-height: 44px; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.text-muted, .card-excerpt, .breadcrumb, .article-date { color: var(--text-muted); }

.article-shell {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--bg-section) 0, #fff 26rem);
}
.article-container { width: min(100% - 3rem, 1180px); margin-inline: auto; }
.article-layout { width: 100%; }
.article-main { width: min(100%, 820px); margin-inline: auto; }
.article-page .breadcrumb {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}
.article-page .breadcrumb a { color: var(--primary-dark); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; }
.article-page .breadcrumb a:hover { text-decoration-color: currentColor; }
.article-page .breadcrumb [aria-current='page'] { max-width: 34ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.article-meta-bar {
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}
.article-tag, .article-read-time {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.article-tag { background: var(--primary); color: #fff; text-transform: uppercase; }
.article-tag:hover { background: var(--primary-dark); color: #fff; }
.article-read-time { background: #fff; border: 1px solid var(--border); color: var(--text-muted); }
.article-title {
  max-width: 21ch;
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.article-intro {
  max-width: 68ch;
  margin: 0 0 1.5rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
  color: #526159;
}
.article-publication { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--text-muted); font-size: 0.86rem; font-weight: 600; }
.article-author { color: var(--text-dark); }
.post-thumbnail {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  border-radius: clamp(0.8rem, 2vw, 1.4rem);
  background: var(--bg-section);
  box-shadow: var(--shadow-lg);
}
.post-thumbnail img { width: 100%; max-width: none; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: inherit; }
.article-disclaimer {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) 1fr;
  gap: 1rem 1.5rem;
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  padding: 1.25rem 1.4rem;
  border: 1px solid #b9ddca;
  border-left: 4px solid var(--primary);
  border-radius: 0.8rem;
  background: #f0faf4;
  color: #30493c;
  font-size: 0.9rem;
  line-height: 1.65;
}
.article-disclaimer strong { color: var(--primary-dark); }
.article-disclaimer a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
.article-body {
  width: min(100%, 720px);
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.5vw, 1.11rem);
  line-height: 1.88;
  color: #29372f;
}
.article-body p { margin: 0 0 1.55em; }
.article-body h2 {
  margin: 2.6em 0 0.8em;
  padding-top: 0.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
  color: var(--text-dark);
  text-wrap: balance;
}
.article-body h3 { margin: 2em 0 0.65em; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.35; color: var(--text-dark); }
.article-body ul, .article-body ol { margin: 1rem 0 2rem; padding-left: 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0.6rem 0; padding-left: 0.35rem; }
.article-body li::marker { color: var(--primary); font-weight: 700; }
.article-body a { color: #0b668f; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.article-body a:hover { color: var(--primary-dark); text-decoration-thickness: 2px; }
.article-body .contextual-link { color: var(--primary-dark); }
.article-body .contextual-reading { color: #43554b; }
.post-image-container { margin: clamp(2rem, 5vw, 3.25rem) calc(50% - 41vw); width: 82vw; max-width: 920px; }
.post-image-container img { width: 100%; max-width: none; border-radius: clamp(0.7rem, 2vw, 1.2rem); box-shadow: var(--shadow-md); }
.post-image-container p { color: var(--text-muted); line-height: 1.55; }

.article-page + * { min-width: 0; }
.article-page .section-sm { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--bg-section); border-top: 1px solid var(--border); }
.article-page .section-sm .section-title { margin-bottom: 2rem; font-size: clamp(1.7rem, 3vw, 2.45rem); text-align: left; }
.article-card { border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.article-card:hover { box-shadow: var(--shadow-md); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-title { line-height: 1.35; }

.form-control { min-height: 48px; font-size: 1rem; border-color: #b8cbbf; }
.form-label { color: var(--text-dark); }
.newsletter-form input:disabled, .newsletter-form button:disabled { cursor: not-allowed; opacity: 0.8; }
.hp-pagination { flex-wrap: wrap; }
.not-found > .container { max-width: 760px; text-align: center; }
.not-found .category-grid { margin-top: 1.5rem; }

@media (max-width: 1100px) and (min-width: 769px) {
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 0.5rem; font-size: 0.8rem; }
  .nav-logo { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 66px; }
  .container { width: 100%; padding-inline: 1.25rem; }
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.75rem 0; }
  .nav-links { top: var(--nav-height); height: calc(100dvh - var(--nav-height)); padding: 1.25rem; gap: 0.65rem; }
  .nav-links li { width: 100%; }
  .nav-links a { min-height: 48px; padding: 0.75rem 1rem; font-size: 1rem; }
  .article-container { width: min(100% - 2.5rem, 820px); }
  .article-page .breadcrumb { margin-bottom: 2rem; }
  .article-page .breadcrumb [aria-current='page'] { display: none; }
  .article-page .breadcrumb span:has(+ [aria-current='page']) { display: none; }
  .article-title { font-size: clamp(2rem, 10vw, 3.2rem); }
  .article-disclaimer { grid-template-columns: 1fr; gap: 0.35rem; }
  .post-image-container { margin-inline: 0; width: 100%; }
  .cards-grid, .features-grid { grid-template-columns: minmax(0, 1fr); }
  .category-grid { gap: 1rem; }
  .page-hero { padding: 3rem 0; }
  .page-hero-icon { width: 60px; height: 60px; }
  .footer { padding-top: 3.5rem; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .nav-logo { font-size: 1.15rem; }
  .nav-logo-icon { width: 34px; height: 34px; }
  .hero-title { font-size: clamp(2rem, 12vw, 2.8rem); }
  .hero-image, .hero-image img { height: 230px; min-height: 0; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .category-grid { grid-template-columns: 1fr; }
  .article-container { width: calc(100% - 2rem); }
  .article-title { font-size: clamp(1.9rem, 10.5vw, 2.65rem); }
  .article-intro { font-size: 1.03rem; }
  .article-publication { display: grid; gap: 0.25rem; }
  .post-thumbnail { margin-inline: -0.25rem; }
  .post-thumbnail img { aspect-ratio: 4 / 3; max-height: 320px; }
  .article-body { font-size: 1rem; line-height: 1.78; }
  .article-body h2 { margin-top: 2.2em; }
  .article-disclaimer { padding: 1rem; }
  .hp-pagination { gap: 0.45rem; }
  .hp-page-item { min-width: 44px; height: 44px; }
  .hp-page-nav { width: calc(50% - 0.25rem); }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .article-tag, .nav-logo-icon, .btn { border: 1px solid currentColor; }
}

/* ============================================
   A7.1 PREMIUM EDITORIAL LAYOUTS
   ============================================ */
.article-page .article-container { width: min(100% - 3rem, 1200px); }
.article-page .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 840px) minmax(210px, 250px);
  align-items: start;
  justify-content: center;
  gap: clamp(3rem, 5vw, 5.5rem);
}
.article-page .article-main { width: 100%; margin: 0; min-width: 0; }
.article-page .article-header {
  position: relative;
  margin: 0 0 clamp(2.25rem, 5vw, 3.75rem);
  padding: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.article-page .article-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #7bc99d);
}
.article-page .article-title { max-width: 17ch; font-size: clamp(2.65rem, 5.3vw, 4.85rem); }
.article-page .article-intro { max-width: 61ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.article-page .post-thumbnail { position: relative; isolation: isolate; overflow: visible; }
.article-page .post-thumbnail::before {
  content: '';
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  z-index: -1;
  border-radius: inherit;
  background: #dcefe4;
}
.article-page .post-thumbnail img { min-height: 360px; }

.article-toc {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  margin-top: 8rem;
  padding: 1.35rem 0 1.35rem 1.25rem;
  border-left: 1px solid #bad8c7;
  font-family: var(--font-body);
}
.toc-title {
  margin: 0 0 0.9rem;
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.article-toc ol { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc li a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.25rem;
  padding: 0.55rem 0.25rem;
  color: #53635a;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.45;
}
.article-toc li a::before { content: '0' counter(toc); color: var(--primary); font-size: 0.68rem; font-weight: 800; }
.article-toc li a:hover { color: var(--primary-dark); transform: translateX(0.2rem); }
.toc-disclaimer-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-page .article-body { width: min(100%, 700px); }
.article-page .article-body h2 { position: relative; margin-top: 3em; padding-top: 0.5rem; }
.article-page .article-body h2::before {
  content: '';
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 0.8rem;
  border-radius: 10px;
  background: #8acba5;
}
.article-page .article-body h3 { padding-left: 1rem; border-left: 3px solid #b7dcc6; }
.article-page .article-body ul,
.article-page .article-body ol { padding-left: 1.55rem; }
.article-page .article-body li { padding-left: 0.5rem; }
.article-page .article-body .contextual-reading { color: #40584a; }
.article-page .article-body .contextual-reading::before {
  content: 'Related';
  display: inline-block;
  margin: 0 0.4rem 0 0.25rem;
  padding: 0.08rem 0.38rem;
  border: 1px solid #b9ddc7;
  border-radius: 999px;
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 0.12em;
}
.article-page .article-body a[target='_blank']::after { content: ' ↗'; font-size: 0.72em; text-decoration: none; }
.article-page .post-image-container {
  width: min(820px, calc(100vw - 3rem));
  max-width: none;
  margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.75rem, 6vw, 4.25rem) 50%;
  transform: translateX(-50%);
}
.article-page .post-image-container img { aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 18px 48px rgba(24, 62, 42, 0.15); }
.article-page .post-image-container p { max-width: 68ch; margin-inline: auto; padding-inline: 0.75rem; font-style: italic; }
.article-page .sources-heading { margin-top: 3.5em; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-page .sources-heading + ul {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.article-page .sources-heading + ul li {
  position: relative;
  margin: 0;
  padding: 0.9rem 2rem 0.9rem 1.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
}
.article-page .sources-heading + ul li::before { content: 'Source'; position: absolute; left: 0; top: 1.12rem; color: var(--primary); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-90deg) translateX(-40%); transform-origin: left top; }
.article-page .sources-heading + ul li::marker { content: ''; }

.article-page .article-disclaimer {
  grid-template-columns: 12rem 1fr;
  align-items: center;
  border: 0;
  border-top: 1px solid #add5be;
  border-bottom: 1px solid #add5be;
  border-radius: 0;
  background: linear-gradient(90deg, #edf9f2, rgba(237, 249, 242, 0.35));
}
.article-page .section-sm { padding-block: clamp(4rem, 8vw, 7rem); }
.article-page .section-sm .container { max-width: 1200px; }
.article-page .section-sm .section-title { position: relative; margin-bottom: 2.25rem; padding-left: 1.2rem; }
.article-page .section-sm .section-title::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 9px; background: var(--primary); }
.article-page .cards-grid-3 { gap: 1.4rem; }
.article-page .article-card[data-layout='related'] { border: 0; background: transparent; box-shadow: none; }
.article-page .article-card[data-layout='related'] .card-image { height: 190px; border-radius: 0.9rem; overflow: hidden; }
.article-page .article-card[data-layout='related'] .card-body { padding: 1.15rem 0 0; }
.article-page .article-card[data-layout='related'] .card-title { font-family: var(--font-serif); font-size: 1.12rem; }
.article-page .article-card[data-layout='related'] .card-excerpt { display: none; }
.article-page .article-card[data-layout='related']:hover { transform: translateY(-4px); }

/* Deterministic publication feed */
.editorial-feed {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
}
.editorial-feed .article-card { min-width: 0; overflow: hidden; border-radius: 1.15rem; }
.editorial-feed .card-image-wrap,
.editorial-feed .card-image-link { height: auto; min-height: 0; }
.editorial-feed .card-image img { transition: transform 0.5s ease; }
.editorial-feed .article-card:hover .card-image img { transform: scale(1.025); }
.editorial-feed .card-body { display: flex; flex-direction: column; }
.editorial-feed .card-title { font-family: var(--font-serif); letter-spacing: -0.025em; }
.editorial-feed .card-footer { margin-top: auto; }
.editorial-feed .card-read-time { color: var(--text-muted); font-size: 0.72rem; font-weight: 600; }
.editorial-feed .story-label { display: block; margin-bottom: 0.55rem; color: var(--primary-dark); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.editorial-feed .read-more { color: var(--primary-dark); font-size: 0.78rem; font-weight: 800; }
.editorial-feed .read-more span { display: inline-block; transition: transform 0.2s ease; }
.editorial-feed .read-more:hover span { transform: translateX(0.2rem); }

.editorial-feed [data-layout='lead'] { grid-column: span 8; }
.editorial-feed [data-layout='lead'] .card-image { height: clamp(290px, 32vw, 430px); }
.editorial-feed [data-layout='lead'] .card-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.editorial-feed [data-layout='lead'] .card-title { max-width: 20ch; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.12; }
.editorial-feed [data-layout='lead'] .card-excerpt { max-width: 65ch; font-size: 0.96rem; }
.editorial-feed [data-layout='spotlight'] { grid-column: span 4; background: #eff8f3; border-color: #cfe4d8; }
.editorial-feed [data-layout='spotlight'] .card-image { height: 230px; }
.editorial-feed [data-layout='spotlight'] .card-body { padding: 1.5rem; }
.editorial-feed [data-layout='spotlight'] .card-title { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.editorial-feed [data-layout='horizontal'] {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(180px, 0.92fr) minmax(0, 1.08fr);
}
.editorial-feed [data-layout='horizontal'] .card-image-wrap,
.editorial-feed [data-layout='horizontal'] .card-image-link { height: 100%; }
.editorial-feed [data-layout='horizontal'] .card-image { min-height: 270px; }
.editorial-feed [data-layout='horizontal'] .card-body { padding: 1.45rem; }
.editorial-feed [data-layout='horizontal'] .card-title { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.editorial-feed [data-layout='horizontal'] .card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-category [data-layout='standard'] { grid-column: span 4; }
.editorial-home [data-layout='standard'] { grid-column: span 6; }
.editorial-feed [data-layout='standard'] .card-image { height: 240px; }
.editorial-feed [data-layout='standard'] .card-body { padding: 1.4rem; }
.editorial-feed [data-layout='standard'] .card-title { font-size: 1.25rem; }
.editorial-feed [data-layout='standard'] .card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) {
  .article-page .article-layout { display: block; }
  .article-toc { display: none; }
  .article-page .article-main { width: min(100%, 840px); margin-inline: auto; }
  .editorial-feed [data-layout] { grid-column: span 6; }
  .editorial-feed [data-layout='lead'] { grid-column: 1 / -1; }
  .editorial-feed [data-layout='lead'] .card-image { height: clamp(310px, 45vw, 440px); }
  .editorial-feed [data-layout='horizontal'] { display: block; }
  .editorial-feed [data-layout='horizontal'] .card-image-wrap,
  .editorial-feed [data-layout='horizontal'] .card-image-link { height: auto; }
  .editorial-feed [data-layout='horizontal'] .card-image { height: 250px; }
}

@media (max-width: 767px) {
  .article-page .article-container { width: calc(100% - 2rem); }
  .article-page .article-title { max-width: 19ch; font-size: clamp(2.05rem, 10.5vw, 3rem); }
  .article-page .post-thumbnail::before { inset: 0.6rem -0.35rem -0.6rem 0.35rem; }
  .article-page .post-thumbnail img { min-height: 0; }
  .article-page .article-disclaimer { grid-template-columns: 1fr; }
  .article-page .post-image-container { width: calc(100vw - 2rem); }
  .article-page .sources-heading + ul li { padding-right: 0.25rem; }
  .editorial-feed { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .editorial-feed [data-layout] { grid-column: auto; display: block; }
  .editorial-feed [data-layout] .card-image { height: clamp(210px, 62vw, 300px); }
  .editorial-feed [data-layout] .card-body { padding: 1.25rem; }
  .editorial-feed [data-layout='lead'] .card-title { font-size: clamp(1.45rem, 7vw, 2rem); }
  .editorial-feed [data-layout='spotlight'] .card-title,
  .editorial-feed [data-layout='horizontal'] .card-title,
  .editorial-feed [data-layout='standard'] .card-title { font-size: 1.2rem; }
  .editorial-feed .card-excerpt { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-feed .card-image img,
  .editorial-feed .read-more span { transition: none; }
}

/* ============================================
   A7.2 GLOBAL RESPONSIVE FOOTER
   ============================================ */
.site-footer {
  margin-top: 0;
  padding: clamp(3.75rem, 7vw, 5.5rem) 0 1.6rem;
  background: #12231b;
  color: #fff;
}
.site-footer .footer-container { width: min(100%, 1200px); }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) minmax(170px, 0.8fr) minmax(210px, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.site-footer .footer-brand { max-width: 390px; }
.site-footer .footer-brand .nav-logo {
  display: inline-flex;
  min-height: 48px;
  margin: 0 0 1.2rem;
  color: #fff;
}
.site-footer .footer-brand p {
  max-width: 38ch;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.75;
}
.site-footer .social-links { display: flex; }
.site-footer .social-link {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
.site-footer .social-label { font-size: 0.75rem; }
.site-footer .footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer .footer-links { margin: 0; padding: 0; }
.site-footer .footer-links li { margin: 0; }
.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  line-height: 1.4;
}
.site-footer .footer-links a::before {
  content: '';
  width: 0.35rem;
  height: 1px;
  margin-right: 0.55rem;
  background: #70c795;
  transition: width 0.2s ease;
}
.site-footer .footer-links a:hover { padding-left: 0; color: #fff; }
.site-footer .footer-links a:hover::before { width: 0.7rem; }
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-top: 1.5rem;
  border-top-color: rgba(255, 255, 255, 0.12);
}
.site-footer .footer-bottom p,
.site-footer .footer-bottom-links a { color: rgba(255, 255, 255, 0.62); font-size: 0.75rem; }
.site-footer .footer-bottom-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-footer .footer-bottom-links a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer .footer-bottom-links a:hover { color: #fff; }

@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 4rem;
  }
  .site-footer .footer-brand { grid-column: 1 / -1; max-width: 560px; }
}

@media (max-width: 640px) {
  .site-footer { padding: 3.5rem 0 1.4rem; }
  .site-footer .footer-container { padding-inline: 1.25rem; }
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  .site-footer .footer-brand,
  .site-footer .footer-col { grid-column: auto; width: 100%; max-width: none; }
  .site-footer .footer-brand .nav-logo { justify-content: center; margin-inline: auto; }
  .site-footer .footer-brand p { margin-inline: auto; }
  .site-footer .social-links { justify-content: center; }
  .site-footer .footer-heading { margin-bottom: 0.75rem; }
  .site-footer .footer-links { display: grid; justify-items: center; }
  .site-footer .footer-links a { justify-content: center; min-height: 44px; padding-inline: 0.75rem; }
  .site-footer .footer-links a::before { display: none; }
  .site-footer .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 0.7rem; }
  .site-footer .footer-bottom p { max-width: 30ch; line-height: 1.65; }
  .site-footer .footer-bottom-links { justify-content: center; gap: 0 0.5rem; }
  .site-footer .footer-bottom-links a { min-height: 44px; padding-inline: 0.5rem; }
}
