/* ============================================
   Health100 — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0ea573;
    --primary-dark: #0a7d58;
    --primary-light: #e6f7f1;
    --primary-gradient: linear-gradient(135deg, #0ea573 0%, #0bc48a 50%, #14d89a 100%);
    --accent: #1a73e8;
    --accent-light: #e8f0fe;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6b6b86;
    --text-light: #ffffff;

    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-dark: #0f1923;
    --bg-card: #ffffff;

    --border: #e8e8f0;
    --border-light: #f0f0f8;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --header-height: 72px;
    --container-max: 1280px;
    --container-padding: 24px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Dark Mode Variables --- */
[data-theme="dark"] {
    --text-primary: #e8e8f0;
    --text-secondary: #b0b0c8;
    --text-muted: #9090b0;
    --text-light: #ffffff;

    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-dark: #010409;
    --bg-card: #1c2128;

    --border: #2d333b;
    --border-light: #21262d;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.6);

    --primary-light: #0a2e1f;
    --accent-light: #0d1f3c;
}

/* --- Dark Mode Component Overrides --- */
[data-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.95);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

[data-theme="dark"] .mega-dropdown {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .mega-dropdown a:hover {
    color: var(--primary);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}

[data-theme="dark"] .hero::before {
    opacity: 0.03;
}

[data-theme="dark"] .hero-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .story-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .category-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .category-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .wellness-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

[data-theme="dark"] .news-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .tools-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .tools-bg {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

[data-theme="dark"] .tool-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .trending-item {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .trending-item:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .newsletter-card {
    background: linear-gradient(135deg, #0a2e1f 0%, #0d1f3c 100%);
}

[data-theme="dark"] .az-letter {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .az-letter:hover {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .main-footer {
    background: #010409;
}

[data-theme="dark"] .footer-wave svg {
    color: #010409;
}

[data-theme="dark"] .search-overlay {
    background: rgba(13, 17, 23, 0.98);
}

[data-theme="dark"] .search-form input {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .suggestion-tags a {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .ticker-wrap {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .back-to-top {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-muted);
}

[data-theme="dark"] .news-badge {
    background: var(--primary);
}

[data-theme="dark"] .stat-card {
    background: var(--bg-card);
    border-color: var(--border);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle .fa-moon,
.theme-toggle .fa-sun {
    position: absolute;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .fa-moon {
    color: var(--text-secondary);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .fa-sun {
    color: #f59e0b;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Smooth transition for theme change */
[data-theme="dark"],
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Accessibility --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100000;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus-visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.az-letter:focus-visible {
    outline-offset: 0;
    box-shadow: 0 0 0 3px var(--primary);
}

.category-card:focus-visible {
    outline-offset: 4px;
}

.trending-item:focus-visible {
    outline-offset: 0;
    box-shadow: 0 0 0 3px var(--primary);
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-pulse {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    z-index: 1;
    position: relative;
}

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

.logo-pulse .logo-num {
    color: var(--primary);
}

.pulse-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 115, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 115, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

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

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

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }

/* --- Gradient Text --- */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.label-line {
    width: 32px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 232, 240, 0.5);
    transition: all var(--transition-base);
}

#main-header.scrolled .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

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

.logo-mark {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

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

.logo-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    display: none;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-item > a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-item > a i {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-item:hover > a i {
    transform: rotate(180deg);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    min-width: 680px;
}

.nav-item.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mega-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.mega-col a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mega-col a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.mega-featured .mega-card {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.mega-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.mega-card p {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.mega-card span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.search-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 100px 24px 40px;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
}

.search-overlay.active {
    transform: translateY(0);
}

.search-container {
    max-width: 720px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    border: 2px solid var(--border);
    transition: border-color var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-form i {
    font-size: 20px;
    color: var(--text-muted);
}

.search-form input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}

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

.search-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.search-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.search-suggestions {
    margin-top: 24px;
}

.search-suggestions h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tags a {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.suggestion-tags a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(14, 165, 115, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 115, 232, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(14, 165, 115, 0.04) 0%, transparent 50%);
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 115, 0.1), transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.08), transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(14, 165, 115, 0.06), transparent 70%);
    top: 40%;
    left: 30%;
    animation: floatShape 18s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.06), transparent 70%);
    top: 20%;
    right: 20%;
    animation: floatShape 22s ease-in-out infinite reverse;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(14, 165, 115, 0.05), transparent 70%);
    bottom: 10%;
    right: 30%;
    animation: floatShape 30s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual - Health Cards */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.hero-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition-slow);
}

.hero-card:hover {
    transform: translateY(-4px) !important;
}

.hc-1 {
    top: 0;
    left: 0;
    right: 20px;
    z-index: 3;
    animation: cardFloat1 6s ease-in-out infinite;
}

.hc-2 {
    top: 130px;
    left: 40px;
    right: 0;
    z-index: 2;
    animation: cardFloat2 7s ease-in-out infinite;
}

.hc-3 {
    bottom: 0;
    left: 10px;
    right: 30px;
    z-index: 1;
    animation: cardFloat3 8s ease-in-out infinite;
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #fee2e2;
    color: #ef4444;
}

.hc-icon.green {
    background: #dcfce7;
    color: #22c55e;
}

.hc-icon.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.hc-info {
    flex: 1;
}

.hc-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.hc-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.hc-value small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.hc-chart {
    width: 100%;
    color: #ef4444;
}

.heartbeat-line {
    width: 100%;
    height: 40px;
}

.hc-progress {
    width: 100%;
    height: 8px;
    background: #f0fdf4;
    border-radius: 100px;
    overflow: hidden;
}

.hc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 100px;
    animation: progressGrow 2s ease-out forwards;
}

@keyframes progressGrow {
    from { width: 0; }
}

.hc-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: 100%;
    height: 50px;
}

.hc-bar {
    flex: 1;
    background: #dbeafe;
    border-radius: 4px 4px 0 0;
    transition: background var(--transition-fast);
}

.hc-bar.active {
    background: #3b82f6;
}

/* ============================================
   NEWS TICKER
   ============================================ */
.news-ticker {
    background: var(--bg-dark);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 48px;
}

.ticker-label {
    background: var(--primary);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 1;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    gap: 48px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

.ticker-item i {
    font-size: 6px;
    color: var(--primary);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   TOP STORIES
   ============================================ */
.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.story-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.story-card.featured {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.story-image {
    position: relative;
    overflow: hidden;
}

.story-card.featured .story-image {
    height: 300px;
}

.story-card:not(.featured) .story-image {
    height: 180px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.story-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.story-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.story-meta span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.story-card.featured .story-content h3 {
    font-size: 24px;
    font-family: var(--font-display);
}

.story-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.author-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 12px;
    color: var(--text-muted);
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: gap var(--transition-fast);
}

.story-link:hover {
    gap: 12px;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    display: block;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: transform var(--transition-base);
}

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

.category-card[data-color="red"] .cat-icon { background: #fee2e2; color: #ef4444; }
.category-card[data-color="blue"] .cat-icon { background: #dbeafe; color: #3b82f6; }
.category-card[data-color="green"] .cat-icon { background: #dcfce7; color: #22c55e; }
.category-card[data-color="purple"] .cat-icon { background: #ede9fe; color: #8b5cf6; }
.category-card[data-color="orange"] .cat-icon { background: #ffedd5; color: #f97316; }
.category-card[data-color="teal"] .cat-icon { background: #ccfbf1; color: #14b8a6; }
.category-card[data-color="pink"] .cat-icon { background: #fce7f3; color: #ec4899; }
.category-card[data-color="indigo"] .cat-icon { background: #e0e7ff; color: #6366f1; }

.category-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.cat-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   WELLNESS GRID
   ============================================ */
.wellness-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.wellness-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    cursor: pointer;
}

.wellness-card.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 580px;
}

.wellness-image {
    position: absolute;
    inset: 0;
}

.wellness-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.wellness-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background var(--transition-base);
}

.wellness-card:hover .wellness-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.wellness-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    width: fit-content;
}

.wellness-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 8px;
}

.wellness-card.large .wellness-overlay h3 {
    font-size: 24px;
    font-family: var(--font-display);
}

.wellness-overlay p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.wellness-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: gap var(--transition-fast);
}

.wellness-link:hover {
    gap: 12px;
}

/* ============================================
   HEALTH NEWS
   ============================================ */
.health-news {
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
}

.news-badge.research {
    background: var(--accent-light);
    color: var(--accent);
}

.news-badge.wellness {
    background: #fef3c7;
    color: #d97706;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-fast);
}

.news-link:hover {
    gap: 10px;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-section {
    background: var(--bg-dark);
    color: white;
    overflow: hidden;
}

.tools-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(14, 165, 115, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(26, 115, 232, 0.1) 0%, transparent 50%);
}

.section-header.light .section-title {
    color: white;
}

.section-header.light .section-subtitle {
    color: rgba(255,255,255,0.6);
}

.section-header.light .section-label {
    color: #4ade80;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.tool-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.tool-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: rgba(14, 165, 115, 0.3);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
    transition: gap var(--transition-fast);
}

.tool-link:hover {
    gap: 12px;
    color: #86efac;
}

/* ============================================
   TRENDING SECTION
   ============================================ */
.trending-list {
    max-width: 800px;
    margin: 0 auto;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.trending-item:first-child {
    border-top: 1px solid var(--border);
}

.trending-item:hover {
    padding-left: 12px;
}

.trending-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--border);
    font-family: var(--font-display);
    min-width: 60px;
    transition: color var(--transition-fast);
}

.trending-item:hover .trending-number {
    color: var(--primary);
}

.trending-content {
    flex: 1;
}

.trending-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trending-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-item > i {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.trending-item:hover > i {
    color: var(--primary);
    transform: translateX(4px);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--bg-secondary);
}

.newsletter-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 24px;
}

.newsletter-card h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.newsletter-card > .newsletter-content > p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.newsletter-form .form-group {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: white;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
    border-color: white;
    background: rgba(255,255,255,0.25);
}

.newsletter-form .btn {
    background: white;
    color: var(--primary-dark);
    border: none;
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: var(--text-primary);
    color: white;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Newsletter floating icons */
.newsletter-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
}

.nl-float {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255,255,255,0.4);
}

.nl-1 { top: 20%; right: 20%; animation: nlFloat 6s ease-in-out infinite; }
.nl-2 { top: 50%; right: 40%; animation: nlFloat 8s ease-in-out infinite reverse; }
.nl-3 { bottom: 25%; right: 15%; animation: nlFloat 7s ease-in-out infinite; }
.nl-4 { top: 35%; right: 60%; animation: nlFloat 9s ease-in-out infinite reverse; }

@keyframes nlFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ============================================
   HEALTH A-Z
   ============================================ */
.az-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.az-letter {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.az-letter:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 115, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-top: 40px;
}

.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    color: var(--bg-dark);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0 60px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    color: rgba(255,255,255,0.5);
}

.footer-brand .logo .logo-mark {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    padding: 5px 0;
    transition: all var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}

.footer-disclaimer {
    margin-bottom: 16px;
}

.footer-disclaimer p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-disclaimer i {
    margin-top: 2px;
    color: rgba(255,255,255,0.25);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    flex-wrap: wrap;
}

.footer-legal span {
    color: rgba(255,255,255,0.4);
}

.footer-legal a {
    color: rgba(255,255,255,0.4);
    transition: color var(--transition-fast);
}

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

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   LOADING STATES
   ============================================ */
.stories-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.stories-loading i {
    margin-right: 8px;
    color: var(--primary);
}

.news-grid .stories-loading,
.trending-list .stories-loading {
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .story-card.featured {
        grid-column: auto;
        grid-row: auto;
    }

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

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

    .wellness-card.large {
        grid-column: 1 / -1;
        min-height: 400px;
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .mega-dropdown {
        min-width: 500px;
    }

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

    .mega-featured {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item > a {
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .mega-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 16px 16px;
        min-width: auto;
        display: none;
    }

    .nav-item.has-dropdown:hover .mega-dropdown {
        display: block;
        transform: none;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

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

    .wellness-card.large {
        min-height: 350px;
    }

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

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

    .newsletter-card {
        padding: 32px;
    }

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

    .newsletter-visual {
        display: none;
    }

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

    .trending-number {
        font-size: 28px;
        min-width: 48px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .az-letter {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}
