/*
Theme Name: HealthWellness4US Child
Theme URI: https://healthwellness4us.com
Description: Custom child theme inheriting styles from Hostinger Affiliate Theme.
Author: HealthWellness4US Editorial Team
Template: hostinger-affiliate-theme
Version: 1.0.0
Text Domain: healthwellness4us-child
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Design Tokens & CSS Variables */
:root {
    --primary: #0f172a;          /* Deep Navy */
    --secondary: #1e3a8a;        /* Royal Medical Navy */
    --accent-blue: #2563eb;      /* Clinical/Accent Blue */
    --accent-teal: #0d9488;      /* Trust Teal */
    --accent-green: #15803d;     /* Evidence Green */
    --text-dark: #1e293b;        /* Charcoal for Body Text */
    --text-light: #64748b;       /* Slate for Muted/Meta Text */
    --bg-light: #f8fafc;         /* Soft Gray/Blue Background */
    --bg-white: #ffffff;         /* Pure White */
    --border-color: #e2e8f0;     /* Light Gray Border */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --content-width: 760px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* Accessibility & Reset */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bg-light);
    clip: auto !important;
    clip-path: none;
    color: var(--primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px;
    position: absolute;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Base Layout Modifications */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding-top: 75px; /* Offset for sticky header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0;
}

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

a:hover {
    color: var(--accent-teal);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* PRESET LAYOUT OVERRIDES */
/* Ensure Hostinger/Orbital sidebars are hidden when full width is desired */
.hw-full-width-layout .orbital-sidebar,
.hw-full-width-layout #posts-sidebar,
.hw-full-width-layout aside {
    display: none !important;
}

/* ========================================================
   HEADER DESIGN
   ======================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    height: 75px;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    height: 65px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--accent-teal);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 4px;
}

.desktop-nav li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.desktop-nav a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.925rem;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav li.current-menu-item a {
    color: var(--accent-blue);
    background-color: var(--bg-light);
}

/* Search Box */
.header-search {
    display: flex;
    align-items: center;
}

.header-search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2px 6px 2px 14px;
    transition: var(--transition);
}

.header-search-form:focus-within {
    border-color: var(--accent-blue);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search-form input {
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 0.875rem;
    outline: none;
    color: var(--text-dark);
    width: 140px;
    transition: var(--transition);
}

.header-search-form input:focus {
    width: 200px;
}

.header-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-search-submit:hover {
    color: var(--accent-blue);
    background-color: var(--border-color);
}

/* Mobile Toggles */
.mobile-toggles {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle-btn:hover {
    background-color: var(--bg-light);
    color: var(--accent-blue);
}

/* Mobile Search Slide Down */
.mobile-search-bar {
    display: none;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.mobile-search-bar.active {
    display: block;
}

.mobile-search-bar .header-search-form {
    width: 100%;
    max-width: 100%;
}

.mobile-search-bar input {
    width: 100% !important;
}

/* Hamburger Overlay Menu */
.mobile-nav-panel {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 320px;
    height: calc(100vh - 75px);
    background-color: var(--bg-white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 998;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
}

.mobile-nav-panel.active {
    right: 0;
}

.mobile-nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-panel li {
    margin-bottom: 8px;
}

.mobile-nav-panel a {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.mobile-nav-panel a:hover,
.mobile-nav-panel li.current-menu-item a {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    padding-left: 20px;
}

/* Backdrop */
.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.header-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================================
   HOMEPAGE DESIGN
   ======================================================== */
.hw-home-container {
    padding-bottom: 60px;
    background-color: var(--bg-white);
}

/* 1. Hero Feature Area */
.hw-hero-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.hw-hero-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
}

/* Large Main Story */
.hw-hero-main-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.hw-hero-main-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.hw-hero-img-wrap {
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light);
}

.hw-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hw-hero-main-card:hover .hw-hero-img-wrap img {
    transform: scale(1.03);
}

.hw-hero-main-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hw-category-tag {
    align-self: flex-start;
    font-size: 0.775rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
    margin-bottom: 12px;
    background-color: rgba(37, 99, 235, 0.06);
    padding: 4px 10px;
    border-radius: 4px;
}

.hw-hero-main-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.hw-hero-main-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hw-hero-main-cta {
    align-self: flex-start;
    background-color: var(--accent-blue);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
    margin-top: auto;
    transition: var(--transition);
}

.hw-hero-main-card:hover .hw-hero-main-cta {
    background-color: var(--secondary);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.2);
}

/* Side Spotlight Stories */
.hw-hero-sideposts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hw-hero-side-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 4px;
    font-weight: 800;
}

.hw-sidepost-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.hw-sidepost-card:hover {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

.hw-sidepost-img {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hw-sidepost-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hw-sidepost-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hw-sidepost-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hw-sidepost-heading {
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary);
    margin: 0;
}

/* 2. Health Topic Navigation */
.hw-topics-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.hw-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hw-section-heading {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.hw-section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

.hw-topics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.hw-topic-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hw-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.hw-topic-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.hw-topic-card:hover .hw-topic-icon {
    transform: scale(1.15);
}

.hw-topic-name {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary);
}

/* Theme border colors for cards */
.hw-topic-card.weight { border-bottom: 4px solid #ef4444; }
.hw-topic-card.fitness { border-bottom: 4px solid #10b981; }
.hw-topic-card.nutrition { border-bottom: 4px solid #8b5cf6; }
.hw-topic-card.sleep { border-bottom: 4px solid #3b82f6; }
.hw-topic-card.mental { border-bottom: 4px solid #06b6d4; }
.hw-topic-card.aging { border-bottom: 4px solid #f97316; }

/* 3. Featured Health Articles Grid */
.hw-featured-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hw-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hw-article-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.hw-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.hw-card-img {
    aspect-ratio: 1.6;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hw-article-card:hover .hw-card-img img {
    transform: scale(1.02);
}

.hw-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hw-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: 10px;
}

.hw-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hw-card-meta {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.hw-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}

.hw-card-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* 4. Pillar Content Section */
.hw-pillars-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.hw-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hw-pillar-column {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.hw-pillar-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.hw-pillar-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.hw-pillar-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hw-pillar-main-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.hw-pillar-main-link:hover {
    text-decoration: underline;
}

.hw-pillar-links {
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
}

.hw-pillar-links-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.hw-pillar-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hw-pillar-links li {
    margin-bottom: 8px;
}

.hw-pillar-links a {
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 600;
    display: inline-block;
}

.hw-pillar-links a:hover {
    color: var(--accent-blue);
    transform: translateX(2px);
}

/* 5. Latest Articles Feed Section */
.hw-latest-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hw-feed-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}

.hw-feed-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hw-feed-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.hw-feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hw-feed-img {
    aspect-ratio: 1.5;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hw-feed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hw-feed-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hw-feed-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.hw-feed-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.hw-feed-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Homepage Sidebar Widget Areas */
.hw-home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hw-widget {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.hw-widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

/* 6. Expert Trust Section */
.hw-expert-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.hw-expert-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.hw-expert-avatar-wrap {
    display: flex;
    justify-content: center;
}

.hw-expert-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-md);
}

.hw-expert-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.hw-expert-role {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.hw-expert-bio {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hw-expert-socials {
    display: flex;
    gap: 16px;
}

.hw-social-icon {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hw-social-icon:hover {
    color: var(--accent-blue);
}

/* 7. Newsletter Section */
.hw-newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--bg-white);
    text-align: center;
}

.hw-newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.hw-newsletter-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--bg-white);
    margin-bottom: 12px;
}

.hw-newsletter-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 24px;
}

.hw-newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.hw-newsletter-form input[type="email"] {
    flex-grow: 1;
    border: none;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 1rem;
    outline: none;
    color: var(--primary);
}

.hw-newsletter-form button {
    background-color: var(--accent-teal);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.hw-newsletter-form button:hover {
    background-color: #0b7a70;
}

.hw-newsletter-gdpr {
    font-size: 0.775rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* ========================================================
   ARTICLE PAGE / TEMPLATE DESIGN
   ======================================================== */
.hw-breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.hw-breadcrumbs a {
    color: var(--text-light);
}

.hw-breadcrumbs a:hover {
    color: var(--accent-blue);
}

/* Table of Contents Box */
.hw-toc-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin: 32px 0;
    font-family: var(--font-heading);
}

.hw-toc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hw-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.hw-toc-list li {
    margin-bottom: 6px;
}

.hw-toc-list a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.hw-toc-list a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* Disclaimer Box */
.hw-disclaimer-box {
    border-left: 4px solid var(--accent-teal);
    background-color: #f0fdf4; /* Very light green tint for health/trust */
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 32px 0;
    color: #115e59;
    font-family: var(--font-body);
}

.hw-disclaimer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hw-disclaimer-text {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Educational Callouts */
.hw-callout-box {
    border-left: 4px solid var(--accent-blue);
    background-color: var(--bg-light);
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 32px 0;
    font-family: var(--font-body);
}

.hw-callout-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.hw-callout-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* FAQ Layout */
.hw-faq-section {
    margin-top: 48px;
    border-top: 2px solid var(--border-color);
    padding-top: 36px;
}

.hw-faq-heading {
    font-size: 1.6rem;
    margin-bottom: 24px;
    font-weight: 800;
}

.hw-faq-item {
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.hw-faq-question {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.hw-faq-answer {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Author Box inside Article */
.hw-article-author-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 48px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.hw-article-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.hw-article-author-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 6px 0;
}

.hw-article-author-bio {
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

/* Related articles on single template */
.hw-related-section {
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 36px;
}

.hw-related-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* ========================================================
   AFFILIATE COMPONENTS
   ======================================================== */

/* Product Box Widget */
.hw-aff-product-box {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin: 36px 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 200px 1fr;
    font-family: var(--font-body);
}

.hw-aff-product-box.editors-choice {
    border-color: var(--accent-teal);
    position: relative;
}

.hw-aff-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--accent-teal);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-bottom-right-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.hw-aff-img-panel {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid var(--border-color);
}

.hw-aff-img-panel img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.hw-aff-content-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.hw-aff-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 850;
    color: var(--primary);
    margin: 0 0 8px 0;
}

.hw-aff-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #eab308; /* Star gold */
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.hw-aff-rating-stars {
    letter-spacing: 2px;
}

.hw-aff-rating-text {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
    margin-left: 6px;
}

.hw-aff-list-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.hw-aff-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hw-aff-benefits li {
    font-size: 0.925rem;
    line-height: 1.5;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hw-aff-benefits li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: 800;
}

.hw-aff-cta {
    align-self: flex-start;
    background-color: var(--accent-blue);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
    transition: var(--transition);
}

.hw-aff-cta:hover {
    background-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.2);
}

/* Comparison Table */
.hw-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 36px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.hw-comp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.925rem;
    background-color: var(--bg-white);
}

.hw-comp-table th {
    background-color: var(--bg-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
}

.hw-comp-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.hw-comp-table tr:last-child td {
    border-bottom: none;
}

.hw-comp-table tr:hover {
    background-color: var(--bg-light);
}

.hw-comp-table .product-name {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
}

.hw-comp-table .rating-stars {
    color: #eab308;
    white-space: nowrap;
}

.hw-comp-table .cta-link {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.hw-comp-table .cta-link:hover {
    background-color: var(--secondary);
}

/* CTA Button Shortcode */
.hw-cta-btn-wrap {
    margin: 24px 0;
    text-align: center;
}

.hw-theme-cta-btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
    transition: var(--transition);
}

.hw-theme-cta-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.2);
}

/* ========================================================
   FOOTER DESIGN
   ======================================================== */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    font-family: var(--font-body);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, 
.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.footer-col p {
    font-size: 0.925rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-light);
    font-size: 0.925rem;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--accent-blue);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-author-credit {
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-disclaimer-wrapper {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-light);
    text-align: justify;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 1200px) {
    .hw-topics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .hw-hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hw-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hw-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hw-feed-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
    
    .site-header {
        height: 65px;
    }
    
    .desktop-nav, 
    .header-search {
        display: none;
    }
    
    .mobile-toggles {
        display: flex;
    }
    
    .hw-section-heading {
        font-size: 1.8rem;
    }
    
    .hw-hero-main-title {
        font-size: 1.6rem;
    }
    
    .hw-expert-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        text-align: center;
        gap: 24px;
    }
    
    .hw-expert-avatar-wrap {
        margin-bottom: 0;
    }
    
    .hw-expert-socials {
        justify-content: center;
    }
    
    .hw-feed-item {
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }
    
    .hw-feed-title {
        font-size: 1.1rem;
    }
    
    .hw-feed-excerpt {
        display: none;
    }
    
    .hw-aff-product-box {
        grid-template-columns: 1fr;
    }
    
    .hw-aff-img-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hw-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hw-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hw-pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .hw-feed-item {
        grid-template-columns: 1fr;
    }
    
    .hw-feed-img {
        aspect-ratio: 16/9;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS v2.0
   Production fixes: overflow, touch targets, layout
   DO NOT modify existing content — layout/UX only
   ======================================================== */

/* ── Global overflow & box-sizing fix ─────────────────── */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* ── Global image safety ──────────────────────────────── */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ── Touch target minimum sizes ──────────────────────── */
@media (max-width: 768px) {
    .mobile-toggle-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .mobile-nav-panel a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .hw-nl-submit,
    .hw-theme-cta-btn,
    .hw-comp-table .cta-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ── Header mobile refinements ────────────────────────── */
@media (max-width: 768px) {
    .site-header { height: 60px; }
    .site-header.scrolled { height: 55px; }
    body { padding-top: 60px; }
    .mobile-search-bar { top: 60px; }
    .mobile-nav-panel {
        top: 60px;
        height: calc(100vh - 60px);
        width: min(320px, 85vw);
    }
    .site-logo { font-size: 1.2rem; }
    .header-container { padding: 0 16px; gap: 12px; }
}

/* ── Hero section mobile ──────────────────────────────── */
@media (max-width: 768px) {
    .hw-hero-section { padding: 20px 0; }
    .hw-hero-main-title { font-size: 1.45rem; line-height: 1.3; }
    .hw-hero-main-excerpt { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .hw-hero-main-title { font-size: 1.2rem; }
    .hw-hero-main-body { padding: 14px; }
    .hw-hero-img-wrap { max-height: 200px; overflow: hidden; }
    .hw-sidepost-card {
        flex-direction: column;
    }
    .hw-sidepost-img {
        width: 100% !important;
        height: 130px;
    }
}

/* ── Section paddings mobile ──────────────────────────── */
@media (max-width: 768px) {
    .hw-topics-section,
    .hw-featured-section,
    .hw-pillars-section,
    .hw-latest-feed-section,
    .hw-expert-section,
    .hw-newsletter-section { padding: 28px 0; }
    .hw-section-heading { font-size: 1.55rem; margin-bottom: 18px; }
    .container { padding: 0 14px; }
}

@media (max-width: 480px) {
    .hw-topics-section,
    .hw-featured-section,
    .hw-pillars-section { padding: 22px 0; }
    .hw-section-heading { font-size: 1.35rem; }
}

/* ── Topics grid mobile ───────────────────────────────── */
@media (max-width: 480px) {
    .hw-topics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hw-topic-card { padding: 14px 8px; border-radius: 8px; }
    .hw-topic-icon { font-size: 1.6rem; }
    .hw-topic-name { font-size: 0.8rem; }
}

/* ── Article cards mobile ─────────────────────────────── */
@media (max-width: 480px) {
    .hw-cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .hw-card-title { font-size: 1.1rem; }
    .hw-card-body { padding: 14px; }
}

/* ── Latest feed mobile ───────────────────────────────── */
@media (max-width: 480px) {
    .hw-feed-item { grid-template-columns: 1fr; gap: 10px; }
    .hw-feed-img { aspect-ratio: 16/9; border-radius: 8px; }
    .hw-feed-title { font-size: 1rem; }
    .hw-feed-excerpt { display: none; }
}

/* ── Newsletter mobile ────────────────────────────────── */
@media (max-width: 768px) {
    .hw-nl-form { flex-direction: column; gap: 10px; }
    .hw-nl-input, .hw-nl-submit { width: 100%; border-radius: 8px; }
    .hw-nl-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hw-nl-title { font-size: 1.25rem; }
}

/* ── Expert card mobile ───────────────────────────────── */
@media (max-width: 480px) {
    .hw-expert-card { padding: 22px 14px; }
    .hw-expert-name { font-size: 1.2rem; }
    .hw-expert-bio { font-size: 0.9rem; }
}

/* ── Article single page mobile ───────────────────────── */
@media (max-width: 768px) {
    .hw-single-layout { grid-template-columns: 1fr; }
    .hw-single-sidebar { display: none; }
    .hw-article-title, .entry-title { font-size: 1.55rem; line-height: 1.3; }
    .hw-article-body, .entry-content { font-size: 1rem; line-height: 1.75; }
    .hw-article-body h2, .entry-content h2 { font-size: 1.4rem; }
    .hw-article-body h3, .entry-content h3 { font-size: 1.15rem; }
    .hw-toc-box { margin: 16px 0; padding: 14px; }
    .hw-related-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
    .hw-article-title, .entry-title { font-size: 1.3rem; }
    .hw-article-body, .entry-content { font-size: 0.95rem; }
    .hw-aff-product-box { grid-template-columns: 1fr; }
    .hw-aff-img-panel { padding: 18px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .hw-aff-content-panel { padding: 18px; }
}

/* ── Comparison table mobile ──────────────────────────── */
@media (max-width: 576px) {
    .hw-table-wrapper { font-size: 0.82rem; }
    .hw-comp-table th, .hw-comp-table td { padding: 10px 8px; }
    .hw-comp-table .cta-link { padding: 6px 10px; font-size: 0.78rem; }
}

/* ── Footer mobile extra ──────────────────────────────── */
@media (max-width: 768px) {
    .site-footer { padding: 36px 0 20px; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .footer-columns { grid-template-columns: 1fr; gap: 18px; }
    .footer-copy, .footer-author-credit { font-size: 0.82rem; }
    .footer-disclaimer-wrapper { font-size: 0.78rem; text-align: left; }
}

/* ── Forms: prevent iOS auto-zoom ────────────────────── */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
        max-width: 100%;
    }
}

/* ── Pillars grid tablet ──────────────────────────────── */
@media (max-width: 768px) {
    .hw-pillars-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hw-pillar-column { padding: 16px; }
    .hw-pillar-heading { font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .hw-pillars-grid { grid-template-columns: 1fr; }
}

/* ── Print cleanup ────────────────────────────────────── */
@media print {
    .site-header, .mobile-nav-panel,
    .header-overlay, .hw-newsletter-section { display: none !important; }
    body { padding-top: 0; }
}
