/*
Theme Name: WWNewz
Theme URI: https://www.wwnewz.com
Author: WWNewz Team
Description: Professional affiliate marketing & review blog theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: wwnewz
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --accent:        #FF4500;
  --accent-hover:  #e63d00;
  --dark:          #0D0D0D;
  --bg:            #F8F8F8;
  --card-bg:       #FFFFFF;
  --text-primary:  #1A1A1A;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --nav-bg:        #FFFFFF;
  --radius:        12px;
  --radius-full:   9999px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:         1200px;
  --nav-h:         72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   NAVBAR  (Navbar1 converted)
   ============================================= */
.ww-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.ww-nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.ww-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo */
.ww-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ww-logo-icon {
  transition: transform 0.3s ease;
}
.ww-logo:hover .ww-logo-icon { transform: rotate(10deg) scale(1.05); }

.ww-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* Desktop nav links */
.ww-nav-links { display: flex; align-items: center; flex: 1; }

.ww-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ww-menu li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.ww-menu li a:hover { color: var(--accent); }
.ww-menu li.current-menu-item a { color: var(--accent); }

/* Dropdown — CSS-only hover, works with WP nav walker .sub-menu
   and custom .ww-has-dropdown pattern */
.ww-menu .menu-item-has-children,
.ww-menu .ww-has-dropdown { position: relative; }

.ww-menu .sub-menu,
.ww-menu .ww-dropdown {
  position: absolute;
  top: 100%;           /* flush — no gap so hover stays connected */
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 12px 6px 6px; /* top padding replaces the gap — still feels spaced */
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.ww-menu .menu-item-has-children:hover .sub-menu,
.ww-menu .ww-has-dropdown:hover .ww-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Small caret on the dropdown trigger */
.ww-menu .menu-item-has-children > a::after,
.ww-menu .ww-has-dropdown > a .ww-caret {
  display: inline-block;
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
  transition: transform 0.2s;
}
.ww-menu .ww-has-dropdown > a .ww-caret { content: none; }
.ww-menu .ww-dropdown-caret {
  display: inline-block;
  transition: transform 0.2s;
}
.ww-menu .ww-has-dropdown:hover .ww-dropdown-caret { transform: rotate(180deg); }

.ww-menu .sub-menu li a,
.ww-menu .ww-dropdown li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ww-menu .sub-menu li a:hover,
.ww-menu .ww-dropdown li a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* CTA Button */
.ww-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  background: var(--dark);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.ww-cta-btn:hover {
  background: var(--accent);
  transform: scale(1.04);
}

/* Mobile toggle */
.ww-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
  transition: color 0.2s;
}
.ww-mobile-toggle:hover { color: var(--accent); }

/* Mobile menu overlay */
.ww-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--nav-bg);
  z-index: 99;
  padding: 32px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ww-mobile-menu.is-open {
  transform: translateX(0);
}

.ww-mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.ww-mobile-menu-list li {
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ww-mobile-menu.is-open .ww-mobile-menu-list li {
  opacity: 1;
  transform: translateX(0);
}

.ww-mobile-menu.is-open .ww-mobile-menu-list li:nth-child(1) { transition-delay: 0.05s; }
.ww-mobile-menu.is-open .ww-mobile-menu-list li:nth-child(2) { transition-delay: 0.10s; }
.ww-mobile-menu.is-open .ww-mobile-menu-list li:nth-child(3) { transition-delay: 0.15s; }
.ww-mobile-menu.is-open .ww-mobile-menu-list li:nth-child(4) { transition-delay: 0.20s; }
.ww-mobile-menu.is-open .ww-mobile-menu-list li:nth-child(5) { transition-delay: 0.25s; }
.ww-mobile-menu.is-open .ww-mobile-menu-list li:nth-child(6) { transition-delay: 0.30s; }

.ww-mobile-menu-list li a {
  display: block;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
}
.ww-mobile-menu-list li a:hover { color: var(--accent); }

.ww-cta-mobile {
  display: flex;
  margin-top: 32px;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s, background 0.2s;
}
.ww-mobile-menu.is-open .ww-cta-mobile {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
#page-content { min-height: calc(100vh - var(--nav-h)); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HERO MODERN  (hero-modern from 21st.dev)
   Layout: Section > Container > badge-button,
   h1, h3 subtitle, full-width image block
   ============================================= */

/* Section — py-8 md:py-12, light bg */
.ww-hero {
  background: var(--bg);
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .ww-hero { padding: 48px 0 64px; } }

/* Container — mx-auto max-w-5xl p-6 sm:p-8 */
.ww-hero-container {
  max-width: 64rem; /* max-w-5xl */
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) { .ww-hero-container { padding: 0 32px; } }

/* Announcement badge button — outline variant, size sm, w-fit, mb-6 */
.ww-hero-announce-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.ww-hero-announce-btn:hover {
  border-color: var(--text-muted);
  background: var(--bg);
}
.ww-hero-announce-btn svg { color: var(--text-muted); flex-shrink: 0; }

/* h1 — large, font-normal weight (craft-ds prose style), text-balance */
.ww-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-wrap: balance;
}

/* h3 subtitle — text-muted-foreground, normal weight */
.ww-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 44rem;
  text-wrap: balance;
}

/* Image block — my-8 h-96 md:h-[480px] rounded-lg md:rounded-xl overflow-hidden border */
.ww-hero-img-block {
  margin: 32px 0 0;
  height: 384px;        /* h-96 */
  width: 100%;
  overflow: hidden;
  border-radius: 8px;   /* rounded-lg */
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .ww-hero-img-block {
    height: 480px;      /* md:h-[480px] */
    border-radius: 12px; /* md:rounded-xl */
  }
}
.ww-hero-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; /* object-bottom */
  display: block;
  transition: transform 0.6s ease;
}
.ww-hero-img-block:hover img { transform: scale(1.02); }

/* Meta row (author · date · read time) shown below title */
.ww-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ww-hero-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* Read article button */
.ww-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--dark);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background 0.2s, gap 0.2s;
  text-decoration: none;
}
.ww-read-btn:hover { background: var(--accent); gap: 12px; }

/* =============================================
   LANDING HERO  (Hero 1 from 21st.dev)
   Full-screen gradient blob bg, centered content
   ============================================= */
.ww-landing-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Gradient blob — top right */
.ww-hero-blob-top {
  position: absolute;
  inset: 0;
  top: -160px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ww-hero-blob-top::before {
  content: '';
  position: absolute;
  left: calc(50% - 11rem);
  aspect-ratio: 1155 / 678;
  width: 36rem;
  max-width: none;
  transform: translateX(-50%) rotate(30deg);
  background: linear-gradient(135deg, #FF4500 0%, #FF8C00 60%, #FFB347 100%);
  clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%);
  filter: blur(72px);
  opacity: 0.22;
}
@media (min-width: 640px) {
  .ww-hero-blob-top::before { left: calc(50% - 30rem); width: 72vw; }
}

/* Gradient blob — bottom right */
.ww-hero-blob-bottom {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ww-hero-blob-bottom::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: calc(50% + 3rem);
  aspect-ratio: 1155 / 678;
  width: 36rem;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF4500 0%, #FFB347 100%);
  clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%);
  filter: blur(72px);
  opacity: 0.16;
}
@media (min-width: 640px) {
  .ww-hero-blob-bottom::before { left: calc(50% + 36rem); width: 72vw; }
}

/* Hero inner — centered, max-w-4xl */
.ww-landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 72px 24px 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Announcement badge */
.ww-landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.2s;
}
.ww-landing-badge-text { font-size: 0.75rem; }
.ww-landing-badge-link {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.78rem;
  white-space: nowrap;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.ww-landing-badge-link:hover { text-decoration: underline; }

/* H1 — huge gradient text */
.ww-landing-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-wrap: balance;
  background: linear-gradient(135deg, #0D0D0D 0%, #0D0D0D 50%, #6B7280 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.ww-landing-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 40rem;
  line-height: 1.75;
  margin-bottom: 40px;
  text-wrap: balance;
}

/* CTA buttons */
.ww-landing-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.ww-landing-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  background: var(--dark);
  color: #fff;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.ww-landing-cta-primary:hover { background: var(--accent); transform: scale(1.04); }

.ww-landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.ww-landing-cta-secondary:hover { color: var(--accent); gap: 8px; }

/* Trust badges row */
.ww-landing-trust {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.ww-landing-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.ww-landing-trust-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* =============================================
   CATEGORY SHOWCASE  (landing page section)
   Grid of category cards with emoji icons
   ============================================= */
.ww-cat-showcase {
  padding: 72px 0 80px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ww-cat-showcase-header {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ww-cat-showcase-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.ww-cat-showcase-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.6;
}

.ww-cat-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px)  { .ww-cat-showcase-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ww-cat-showcase-grid { grid-template-columns: repeat(5, 1fr); } }

.ww-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
}
.ww-cat-card:hover {
  border-color: var(--accent);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ww-cat-card-icon {
  font-size: 2rem;
  line-height: 1;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.ww-cat-card:hover .ww-cat-card-icon { border-color: var(--accent); }

.ww-cat-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.ww-cat-card-count { display: none; } /* counts hidden per design */

/* =============================================
   NEWSLETTER SECTION  (Newsletter from 21st.dev)
   Full-width accent card, gradient overlay,
   centered form: white input + accent button
   ============================================= */

/* Section wrapper — py-14 max-w-screen-xl mx-auto */
.ww-newsletter-section {
  padding: 56px 0;
  background: var(--bg);
}

/* Card — rounded-2xl, accent bg, overflow-hidden, relative */
.ww-newsletter-card {
  position: relative;
  overflow: hidden;
  margin: 0 16px;
  padding: 56px 16px;
  border-radius: 16px;
  background: var(--accent);
  text-align: center;
}
@media (min-width: 768px) { .ww-newsletter-card { margin: 0 32px; padding: 56px 32px; } }

/* Gradient overlay — right side fades to transparent (matches component) */
.ww-newsletter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    268.24deg,
    rgba(180, 40, 0, 0.55) 0%,
    rgba(180, 40, 0, 0.30) 50%,
    rgba(80, 10, 0, 0) 100%
  );
  pointer-events: none;
}

/* Inner content — relative z-10 max-w-xl mx-auto */
.ww-newsletter-card-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
}

/* Headline */
.ww-newsletter-card-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.25;
}

/* Description */
.ww-newsletter-card-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Form — white rounded-lg pill container, p-1 */
.ww-newsletter-section-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  max-width: 28rem;
  margin: 0 auto 12px;
}
@media (max-width: 480px) {
  .ww-newsletter-section-form {
    flex-direction: column;
    border-radius: 10px;
    gap: 8px;
    padding: 10px;
  }
}

/* Email input */
.ww-newsletter-section-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: #374151;
  font-family: var(--font);
  min-width: 0;
}
.ww-newsletter-section-input::placeholder { color: #9CA3AF; }

/* Subscribe button — accent bg inside white card */
.ww-newsletter-section-btn {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.ww-newsletter-section-btn:hover { background: var(--accent-hover); transform: scale(1.03); }
@media (max-width: 480px) { .ww-newsletter-section-btn { width: 100%; padding: 11px; } }

/* Privacy note */
.ww-newsletter-privacy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.70);
  margin-top: 12px;
}
.ww-newsletter-privacy a {
  color: rgba(255,255,255,0.90);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ww-newsletter-privacy a:hover { color: #fff; }

/* =============================================
   STATS SECTION  (stats.tsx from 21st.dev)
   bg-muted py-12 md:py-20
   Card: grid-cols-3, divide-x, fluid clamp value
   ============================================= */

/* Section — bg-muted (light gray), py-12 md:py-20 */
.ww-stats-section {
  background: var(--bg);           /* bg-muted equivalent */
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .ww-stats-section { padding: 56px 0; } }

/* Inner wrapper — mx-auto max-w-5xl px-4 sm:px-6 */
.ww-stats-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .ww-stats-wrap { padding: 0 24px; } }

/* Card — rounded-lg border bg-card shadow-sm */
/* grid grid-cols-3 gap-2 sm:gap-4 md:gap-6 p-3 sm:p-4 md:p-6 divide-x */
.ww-stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px)  { .ww-stats-card { gap: 16px; padding: 16px; } }
@media (min-width: 768px)  { .ww-stats-card { gap: 24px; padding: 24px; } }

/* Each stat item — flex-col items-center justify-center px-3 text-center */
/* divide-x: right border on all but last */
.ww-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
}
.ww-stat-item + .ww-stat-item {
  border-left: 1px solid var(--border);
}

/* Value — clamp(1.75rem, 5vw, 2.5rem) font-semibold tracking-tight */
.ww-stat-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Label — text-muted-foreground mt-2 text-sm sm:text-base */
.ww-stat-label {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (min-width: 640px) { .ww-stat-label { font-size: 1rem; } }

/* =============================================
   CATEGORY FILTER STRIP
   ============================================= */
.ww-category-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}

.ww-category-strip-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.ww-category-strip-inner::-webkit-scrollbar { display: none; }

.ww-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}
.ww-cat-pill:hover,
.ww-cat-pill.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.ww-cat-pill.active-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =============================================
   BLOG7 — SECTION HEADER
   Centered tagline badge → heading → description
   → "View all articles" link button with arrow
   ============================================= */

/* Section wrapper (py-32 = 128px) */
.ww-blog-section {
  padding: 80px 0 0;
}

/* Centered intro block */
.ww-blog-section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-bottom: 48px;
}

/* Tagline badge — variant="secondary": bg-secondary, muted text, rounded-full */
.ww-tagline-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* Section heading — text-3xl→4xl→5xl font-semibold text-pretty */
.ww-blog-section-heading {
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 48rem;
  margin-bottom: 16px;
}

/* Section description — text-muted-foreground, max-w-2xl */
.ww-blog-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 40rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* "View all articles" — variant="link": accent color, underline-offset, arrow */
.ww-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s, gap 0.2s;
}
.ww-view-all-link:hover {
  text-decoration-color: var(--accent);
  gap: 10px;
}
.ww-view-all-link svg { flex-shrink: 0; }

/* =============================================
   MAIN CONTENT + SIDEBAR LAYOUT
   ============================================= */
.ww-main-layout {
  padding: 48px 0;
}

.ww-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* =============================================
   BLOG POST CARD  (Blog Post Card — 21st.dev)
   Matches: rounded-3xl card, p-3, muted badge,
   h-56 image, "By" / "Published" footer labels
   ============================================= */
/* 2-col grid used inside sidebar layout */
.ww-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Blog7 full-width 3-col grid (md:2, lg:3) */
.ww-blog7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}
@media (min-width: 768px)  { .ww-blog7-grid { grid-template-columns: 1fr 1fr;     gap: 24px; } }
@media (min-width: 1024px) { .ww-blog7-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }

/* Blog7 card — rounded-lg border shadow-sm, grid rows layout */
.ww-blog7-card {
  background: var(--card-bg);
  border-radius: var(--radius);          /* rounded-lg = 12px */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* image / header / content / footer */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ww-blog7-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Image — aspect-[16/9], hover:opacity-70 */
.ww-blog7-card-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}
.ww-blog7-card-img a {
  display: block;
  height: 100%;
  transition: opacity 0.2s ease;
}
.ww-blog7-card-img a:hover { opacity: 0.70; }
.ww-blog7-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* CardHeader — p-6, title text-lg→xl font-semibold hover:underline */
.ww-blog7-card-header {
  padding: 24px 24px 0;
}
.ww-blog7-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.ww-blog7-card-title a { color: var(--text-primary); }
.ww-blog7-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* CardContent — p-6 pt-0 (top padding removed, 24px sides/bottom) */
.ww-blog7-card-content {
  padding: 16px 24px 24px;
}
.ww-blog7-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CardFooter — p-6 pt-0, "Read more" + arrow */
.ww-blog7-card-footer {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
}
.ww-blog7-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s, gap 0.2s;
}
.ww-blog7-read-more:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  gap: 10px;
}

/* Card shell — rounded-3xl = 24px, p-3 = 12px, shadow-lg */
.ww-post-card {
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10), 0 1px 8px rgba(0,0,0,.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ww-post-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.14), 0 2px 12px rgba(0,0,0,.08);
  transform: translateY(-4px);
}

/* Image header — h-56 (224px), rounded-2xl (16px) */
.ww-post-card-img {
  position: relative;
  height: 224px;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  flex-shrink: 0;
}
.ww-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ww-post-card:hover .ww-post-card-img img { transform: scale(1.05); }

/* Body — p-3 = 12px */
.ww-post-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Meta row: muted badge + bullet + read time */
.ww-post-card-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

/* Badge — bg-muted, rounded-full, muted text, hover:text-black */
.ww-post-card-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg);         /* bg-muted equivalent */
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.ww-post-card-badge:hover {
  color: var(--text-primary);
  background: #e5e7eb;
}

.ww-post-card-meta-dot {
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ww-post-card-readtime {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Title — text-2xl font-bold */
.ww-post-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  flex: 1;
}
.ww-post-card-title a { color: var(--text-primary); }
.ww-post-card-title a:hover { color: var(--accent); }

/* Excerpt — text-muted-foreground, 3-line clamp */
.ww-post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer — p-3, flex justify-between */
.ww-post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 0;
}

/* Author block — "By" label + name (matches component layout) */
.ww-post-card-author {
  display: flex;
  flex-direction: column;
}
.ww-post-card-author-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ww-post-card-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Date block — "Published" label + date, right-aligned */
.ww-post-card-date {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.ww-post-card-date-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ww-post-card-date-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =============================================
   SIDEBAR
   ============================================= */
.ww-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 60px);
}

.ww-sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ww-widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Editor's Pick widget */
.ww-editors-pick-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 14px;
}
.ww-editors-pick-img img { width: 100%; height: 100%; object-fit: cover; }

.ww-editors-pick-badge {
  display: inline-block;
  background: #FFF3E0;
  color: #E65100;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.ww-editors-pick-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}
.ww-editors-pick-title a { color: var(--text-primary); }
.ww-editors-pick-title a:hover { color: var(--accent); }

.ww-affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.ww-affiliate-btn:hover { background: var(--accent-hover); transform: scale(1.02); }

/* Newsletter widget (News letter from 21st.dev) */
.ww-newsletter-widget {
  background: var(--dark);
  border: none;
  color: #fff;
}
.ww-newsletter-widget .ww-widget-title { color: rgba(255,255,255,0.6); border-color: var(--accent); }

.ww-newsletter-headline {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #fff;
}

.ww-newsletter-sub {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ww-newsletter-form { display: flex; flex-direction: column; gap: 10px; }

.ww-newsletter-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.ww-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.ww-newsletter-input:focus { border-color: var(--accent); }

.ww-newsletter-btn {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.ww-newsletter-btn:hover { background: var(--accent-hover); }

/* Categories widget */
.ww-cat-list { display: flex; flex-direction: column; gap: 6px; }

.ww-cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.ww-cat-list-item:hover { background: var(--bg); color: var(--accent); }
.ww-cat-list-item span { font-size: 0.75rem; color: var(--text-muted); }

/* =============================================
   "BEST OF" SECTION — Affiliate Roundup
   ============================================= */
.ww-best-of {
  padding: 64px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

.ww-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.ww-section-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ww-see-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.ww-see-all:hover { gap: 8px; }

.ww-product-list { display: flex; flex-direction: column; gap: 16px; }

.ww-product-card {
  display: grid;
  grid-template-columns: 48px 100px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ww-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ww-product-rank {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  line-height: 1;
}

.ww-product-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.ww-product-img img { width: 100%; height: 100%; object-fit: cover; }

.ww-product-info { min-width: 0; }

.ww-product-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ww-product-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-product-name a { color: var(--text-primary); }
.ww-product-name a:hover { color: var(--accent); }

.ww-product-pros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ww-pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  font-weight: 500;
  color: #166534;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.ww-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.ww-product-cta:hover { background: var(--accent); transform: scale(1.04); }

/* =============================================
   FOOTER
   ============================================= */
.ww-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.ww-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.ww-footer-brand .ww-logo { margin-bottom: 14px; }
.ww-footer-brand .ww-logo-text { color: #fff; }

.ww-footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

.ww-footer-social {
  display: flex;
  gap: 12px;
}

.ww-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
}
.ww-social-icon:hover { background: var(--accent); color: #fff; }

.ww-footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 18px;
}

.ww-footer-links { display: flex; flex-direction: column; gap: 10px; }

.ww-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.ww-footer-links a:hover { color: #fff; }

.ww-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ww-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.ww-footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

/* =============================================
   SINGLE POST PAGE
   ============================================= */
.ww-single-layout {
  padding: 48px 0;
}

.ww-single-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.ww-single-header { margin-bottom: 32px; }

.ww-single-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-decoration: none;
}

.ww-single-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.ww-single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.ww-single-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/8;
  margin-bottom: 40px;
}
.ww-single-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article body */
.ww-article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-primary); }
.ww-article-body h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 16px; }
.ww-article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; }
.ww-article-body p  { margin-bottom: 20px; }
.ww-article-body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ww-article-body a:hover { color: var(--accent-hover); }
.ww-article-body ul, .ww-article-body ol { padding-left: 24px; margin-bottom: 20px; }
.ww-article-body li { margin-bottom: 8px; }
.ww-article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 32px 0;
  background: #FFF5F2;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}
.ww-article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* Inline affiliate CTA box */
.ww-affiliate-box {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.ww-affiliate-box-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ww-affiliate-box-info { flex: 1; min-width: 0; }
.ww-affiliate-box-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.ww-affiliate-box-price { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 12px; }

/* =============================================
   CONTACT PAGE
   ============================================= */

.ww-contact-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 80px;
}
.ww-contact-hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ww-contact-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
}
.ww-contact-hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 36rem;
}

/* Main layout */
.ww-contact-main { padding: 72px 0 80px; background: var(--card-bg); }

.ww-contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .ww-contact-grid { grid-template-columns: 1fr; } }

/* Form */
.ww-contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
@media (max-width: 600px) { .ww-contact-form-wrap { padding: 24px; } }

.ww-contact-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.ww-contact-form { display: flex; flex-direction: column; gap: 20px; }

.ww-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) { .ww-contact-row { grid-template-columns: 1fr; } }

.ww-contact-field { display: flex; flex-direction: column; gap: 6px; }

.ww-contact-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ww-contact-label span { color: var(--accent); }

.ww-contact-input,
.ww-contact-select,
.ww-contact-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ww-contact-input:focus,
.ww-contact-select:focus,
.ww-contact-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,69,0,0.1);
}
.ww-contact-input::placeholder,
.ww-contact-textarea::placeholder { color: #9CA3AF; }
.ww-contact-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.ww-contact-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.ww-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--dark);
  color: #fff;
  font-size: 0.925rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.ww-contact-submit:hover:not(:disabled) { background: var(--accent); transform: scale(1.03); }
.ww-contact-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.ww-contact-form-msg {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}
.ww-contact-form-msg.is-success { display: block; background: #DCFCE7; color: #166534; }
.ww-contact-form-msg.is-error   { display: block; background: #FEE2E2; color: #991B1B; }

/* Sidebar */
.ww-contact-sidebar { display: flex; flex-direction: column; gap: 20px; }

.ww-contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ww-contact-info-icon { font-size: 1.6rem; line-height: 1; }
.ww-contact-info-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.ww-contact-info-text  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.ww-contact-email-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.ww-contact-email-link:hover { text-decoration: underline; }

.ww-contact-socials { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ww-contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.ww-contact-social-btn:hover { border-color: var(--accent); background: var(--bg); color: var(--accent); }

/* FAQ accordion */
.ww-contact-faq {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.ww-contact-faq-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.ww-contact-faq-item {
  border-top: 1px solid var(--border);
}
.ww-contact-faq-item:first-of-type { border-top: none; }

.ww-contact-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.ww-contact-faq-q:hover { color: var(--accent); }
.ww-faq-caret { flex-shrink: 0; transition: transform 0.25s; color: var(--text-muted); }
.ww-contact-faq-q[aria-expanded="true"] .ww-faq-caret { transform: rotate(180deg); }

.ww-contact-faq-a {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-bottom: 0;
}
.ww-contact-faq-q[aria-expanded="true"] + .ww-contact-faq-a { padding-bottom: 14px; }

/* =============================================
   ABOUT PAGE
   ============================================= */

/* Hero */
.ww-about-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 80px;
}
.ww-about-hero-inner {
  max-width: 44rem;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ww-about-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
}
.ww-about-hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 38rem;
}

/* Mission — 2-col */
.ww-about-mission {
  padding: 80px 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.ww-about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) { .ww-about-mission-grid { grid-template-columns: 1fr; gap: 40px; } }

.ww-about-mission-text { display: flex; flex-direction: column; gap: 16px; }

.ww-about-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}
.ww-about-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
}
.ww-about-body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Mini stats row inside mission */
.ww-about-mission-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.ww-about-mini-stat { display: flex; flex-direction: column; gap: 4px; }
.ww-about-mini-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.ww-about-mini-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mission image */
.ww-about-mission-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--border);
}
.ww-about-mission-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ww-about-mission-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}
.ww-about-mission-img-placeholder p { font-size: 0.85rem; }

/* Process — 4-col grid */
.ww-about-process {
  padding: 80px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.ww-about-process-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.ww-about-process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) { .ww-about-process-grid { grid-template-columns: repeat(4, 1fr); } }

.ww-about-process-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ww-about-process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.ww-about-step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.ww-about-step-icon { font-size: 2rem; line-height: 1; }
.ww-about-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.ww-about-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Values / Promise */
.ww-about-values {
  padding: 80px 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.ww-about-values-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .ww-about-values-inner { grid-template-columns: 1fr; gap: 32px; } }

.ww-about-values-text { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--nav-h) + 32px); }
.ww-about-values-list { display: flex; flex-direction: column; gap: 24px; }

.ww-about-value-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.ww-about-value-item:hover { border-color: var(--accent); }

.ww-about-value-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ww-about-value-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ww-about-value-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Bottom CTA */
.ww-about-cta {
  padding: 80px 0;
  background: var(--bg);
}
.ww-about-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ww-about-cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.ww-about-cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* =============================================
   UTILITIES
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--accent); }
.font-bold    { font-weight: 700; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .ww-content-grid,
  .ww-single-grid { grid-template-columns: 1fr; }
  .ww-sidebar { position: static; }
  .ww-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .ww-nav-links,
  .ww-cta-btn:not(.ww-cta-mobile) { display: none; }

  .ww-mobile-toggle { display: flex; }
  .ww-mobile-menu   { display: block; }

  .ww-hero-inner { grid-template-columns: 1fr; }
  .ww-hero-featured-img { order: -1; }

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

  .ww-product-card {
    grid-template-columns: 36px 72px 1fr;
    grid-template-rows: auto auto;
  }
  .ww-product-cta { grid-column: 2 / -1; justify-self: start; }

  .ww-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .ww-footer-bottom { flex-direction: column; text-align: center; }
  .ww-footer-disclaimer { text-align: center; }
}

@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 16px; }
  .ww-hero { padding: 40px 0; }
}

/* =============================================
   LEGAL PAGES (Privacy, Disclosure, Terms)
   ============================================= */

/* Hero */
.ww-legal-hero {
  background: var(--dark);
  padding: 64px 0 48px;
  text-align: center;
}
.ww-legal-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0 8px;
  line-height: 1.2;
}
.ww-legal-meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* Body layout */
.ww-legal-body { padding: 56px 0 80px; }

.ww-legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky TOC sidebar */
.ww-legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ww-legal-toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.ww-legal-toc a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.ww-legal-toc a:hover { background: var(--bg); color: var(--accent); }

/* Main content */
.ww-legal-intro {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.ww-legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.ww-legal-section:last-child { border-bottom: none; }

.ww-legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.ww-legal-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.ww-legal-content p {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 14px;
}
.ww-legal-content p:last-child { margin-bottom: 0; }

.ww-legal-content ul,
.ww-legal-content ol {
  margin: 0 0 14px 0;
  padding-left: 20px;
}
.ww-legal-content li {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 6px;
}
.ww-legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ww-legal-content a:hover { color: var(--accent-hover); }

/* Table */
.ww-legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.ww-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ww-legal-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
}
.ww-legal-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: #374151;
  vertical-align: top;
}
.ww-legal-table tr:nth-child(even) td { background: var(--bg); }

/* Highlight box (Affiliate Disclosure) */
.ww-legal-highlight-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: #7c2d12;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* Contact block */
.ww-legal-contact-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}
.ww-legal-contact-block p { margin: 0 0 6px; }
.ww-legal-contact-block p:last-child { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .ww-legal-layout {
    grid-template-columns: 1fr;
  }
  .ww-legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .ww-legal-toc-label { width: 100%; }
}

@media (max-width: 600px) {
  .ww-legal-hero { padding: 48px 0 36px; }
  .ww-legal-body  { padding: 36px 0 56px; }
}
