/*
Theme Name: Alltagsathlet
Theme URI: https://alltagsathlet.com
Author: Antigravity
Author URI: https://google.com
Description: Ein modernes Lifestyle-Theme für Alltagsathlet.
Version: 2.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alltagsathlet
*/

/* ========================================
   ALLTAGSATHLET — Design System & Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --color-primary: #1B2A4A;
    --color-primary-light: #2A3F6A;
    --color-primary-dark: #111D35;
    --color-accent: #E8A838;
    --color-accent-light: #F0C060;
    --color-accent-dark: #D4922A;
    --color-green: #4CAF50;
    --color-green-light: #66BB6A;

    --color-bg: #FAFAF7;
    --color-bg-alt: #F0EEEB;
    --color-bg-dark: #1B2A4A;
    --color-surface: #FFFFFF;

    --color-text: #2D2D2D;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-text-inverse: #FFFFFF;

    /* Category Colors */
    --color-cat-ernaehrung: #4CAF50;
    --color-cat-fitness: #E8A838;
    --color-cat-lifestyle: #E85D75;
    --color-cat-arbeit: #5B8DEF;
    --color-cat-soziales: #9B59B6;
    --color-cat-mindset: #26C6DA;

    /* Typography */
    --font-heading: 'Roboto Slab', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06), 0 1px 2px rgba(27, 42, 74, 0.04);
    --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08), 0 2px 4px rgba(27, 42, 74, 0.04);
    --shadow-lg: 0 10px 30px rgba(27, 42, 74, 0.12), 0 4px 8px rgba(27, 42, 74, 0.06);
    --shadow-xl: 0 20px 50px rgba(27, 42, 74, 0.16), 0 8px 16px rgba(27, 42, 74, 0.08);
    --shadow-glow: 0 0 30px rgba(232, 168, 56, 0.25);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 600ms;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul li {
    list-style: none;
    /* Force remove bullets */
}

/* Explicitly target widgets and navs */
.widget ul,
.nav-menu ul,
.footer-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget li,
.nav-menu li,
.footer-links li {
    padding-left: 0 !important;
}


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

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.section {
    padding: var(--space-5xl) 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    background: rgba(232, 168, 56, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-tag--light {
    color: var(--color-accent-light);
    background: rgba(232, 168, 56, 0.15);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(232, 168, 56, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 168, 56, 0.4);
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-text-inverse);
    backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 1;
    /* Changed from 0 to 1 as fail-safe */
    transform: translateY(0);
    /* Changed from 30px to 0 */
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.reveal.hidden-initially {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay */
.reveal[style*="--delay: 1"] {
    transition-delay: 100ms;
}

.reveal[style*="--delay: 2"] {
    transition-delay: 200ms;
}

.reveal[style*="--delay: 3"] {
    transition-delay: 300ms;
}

.reveal[style*="--delay: 4"] {
    transition-delay: 400ms;
}

.reveal[style*="--delay: 5"] {
    transition-delay: 500ms;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2001;
    /* Higher than everything */
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(27, 42, 74, 0.08);
}

.site-header.scrolled .logo-text {
    color: var(--color-primary);
}

.site-header.scrolled .nav-link {
    color: var(--color-text);
}

.site-header.scrolled .logo-icon {
    color: var(--color-primary);
}

/* Header state when mobile menu is open */
.site-header.menu-open {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.site-header.menu-open .logo-text,
.site-header.menu-open .logo-icon,
.site-header.menu-open .hamburger span {
    color: var(--color-text-inverse) !important;
    background-color: var(--color-text-inverse);
    /* For hamburger spans */
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.logo-icon {
    color: var(--color-text-inverse);
    transition: color var(--duration-normal) var(--ease-out);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-inverse);
    transition: color var(--duration-normal) var(--ease-out);
}

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

.logo--footer .logo-icon {
    color: var(--color-text-inverse);
}

.logo--footer .logo-text {
    color: var(--color-text-inverse);
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.85rem;
    padding: 0.55rem 1.3rem;
}

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

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--color-text-inverse);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.site-header.scrolled .hamburger span {
    background: var(--color-primary);
}

.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(6px, -6px);
}

/* Mobile Nav */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary-dark);
    /* Solid background to prevent see-through */
    /* backdrop-filter: blur(20px); removed to ensure opacity */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-mobile.open {
    opacity: 1;
    visibility: visible;
}

.nav-link-mobile {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-inverse);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-link-mobile:hover {
    color: var(--color-accent);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(27, 42, 74, 0.88) 0%,
            rgba(27, 42, 74, 0.65) 40%,
            rgba(27, 42, 74, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: calc(var(--header-height) + var(--space-4xl)) var(--space-lg) var(--space-4xl);
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    border: 1.5px solid rgba(232, 168, 56, 0.4);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(8px);
    background: rgba(232, 168, 56, 0.08);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
}

.hero-stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.hero-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.section-categories {
    background: var(--color-bg);
    overflow: hidden;
    /* Prevent horizontal scroll on body from the slider hint */
}

.categories-slider-wrapper {
    position: relative;
    margin: 0 calc(var(--space-lg) * -1);
    padding: 0 var(--space-lg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Mobile Slider Logic */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 280px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-xl);
        padding-right: var(--space-lg);
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .categories-slider-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100px;
        background: linear-gradient(to right, transparent, var(--color-bg));
        pointer-events: none;
        z-index: 5;
    }

    .category-card {
        scroll-snap-align: start;
        aspect-ratio: 4/6;
        /* Taller on mobile */
    }
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    aspect-ratio: 3/4;
    isolation: isolate;
}

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

.category-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

/* Gradient overlay for readability */
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(27, 42, 74, 0) 0%,
            rgba(27, 42, 74, 0.2) 40%,
            rgba(27, 42, 74, 0.9) 100%);
    z-index: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.category-card:hover::after {
    background: linear-gradient(to bottom,
            rgba(27, 42, 74, 0) 0%,
            rgba(27, 42, 74, 0.4) 30%,
            rgba(27, 42, 74, 0.95) 100%);
}

/* Color accent overlay */
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--cat-color);
    opacity: 0.1;
    mix-blend-mode: overlay;
    z-index: 1;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-card-overlay {
    opacity: 0.25;
}

.category-card-body {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    text-align: left;
    transition: all var(--duration-normal) var(--ease-out);
}

.category-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--color-text-inverse);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.9;
    transform: translateY(0);
    transition: all var(--duration-normal) var(--ease-out);
}

.category-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-arrow {
    color: var(--color-accent);
    transform: translateX(-10px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-arrow {
    transform: translateX(0);
    opacity: 1;
}

.slider-hint {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.section-about {
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 2px;
}

.about-feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   POSTS SECTION
   ======================================== */
.section-posts {
    background: var(--color-bg);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.post-card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.post-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.post-card-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    color: white;
    background: var(--color-cat-ernaehrung);
}

.post-card-category--fitness {
    background: var(--color-cat-fitness);
    color: var(--color-primary-dark);
}

.post-card-category--lifestyle {
    background: var(--color-cat-lifestyle);
}

.post-card-category--arbeit {
    background: var(--color-cat-arbeit);
}

.post-card-category--soziales {
    background: var(--color-cat-soziales);
}

.post-card-category--mindset {
    background: var(--color-cat-mindset);
}

.post-card-category--ernaehrung {
    background: var(--color-cat-ernaehrung);
}

.post-card-body {
    padding: var(--space-lg);
}

.post-card-date {
    font-size: 0.78rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: var(--space-sm) 0 var(--space-sm);
    line-height: 1.35;
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-readmore {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    transition: all var(--duration-fast) var(--ease-out);
}

.post-card-readmore:hover {
    color: var(--color-accent);
    letter-spacing: 0.02em;
}

.posts-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.section-newsletter {
    background: var(--color-bg-alt);
    padding: var(--space-4xl) 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    padding: var(--space-3xl) var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.newsletter-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-inverse);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

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

.newsletter-input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

.newsletter-btn {
    flex-shrink: 0;
}

.newsletter-privacy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--space-sm);
}

.newsletter-success {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-text-inverse);
}

.newsletter-success-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--color-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.newsletter-visual {
    position: relative;
    overflow: hidden;
}

.newsletter-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-tagline {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

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

/* ========================================
   PAGE TEMPLATE
   ======================================== */
.page-header {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-2xl);
    background: var(--color-bg-alt);
    text-align: center;
}

.page-header--blog {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding-bottom: var(--space-3xl);
}

.page-header--blog .page-title {
    color: var(--color-text-inverse);
}

.page-header--blog .page-description {
    color: rgba(255, 255, 255, 0.75);
}

.page-header--blog .section-tag {
    color: var(--color-accent-light);
    background: rgba(232, 168, 56, 0.15);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.page-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-featured-image {
    margin-top: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content area for pages and articles */
.content-container {
    max-width: 760px;
    margin: 0 auto;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content h2 {
    font-size: 1.6rem;
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-md);
}

.entry-content h3 {
    font-size: 1.3rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.entry-content h4 {
    font-size: 1.1rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.entry-content p {
    margin-bottom: var(--space-lg);
}

.entry-content a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(232, 168, 56, 0.3);
    text-underline-offset: 3px;
    transition: all var(--duration-fast) var(--ease-out);
}

.entry-content a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-alt);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-2xl) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-primary);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
}

.entry-content pre {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-xl) 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content code {
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
}

.entry-content th,
.entry-content td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.entry-content th {
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

/* Page Links (multi-page content) */
.page-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-links-title {
    font-weight: 600;
    color: var(--color-primary);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease-out);
}

.page-link:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* ========================================
   SINGLE POST (ARTICLE) TEMPLATE
   ======================================== */
.article-header {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-2xl);
    background: var(--color-bg-alt);
    text-align: center;
}

.article-header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    color: white;
    margin-bottom: var(--space-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.article-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-xl);
    color: var(--color-primary);
    line-height: 1.25;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta svg {
    opacity: 0.6;
}

.article-featured-image {
    padding: var(--space-2xl) 0 0;
}

.article-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: cover;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.article-tag:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* ========================================
   POST NAVIGATION
   ======================================== */
.post-navigation {
    background: var(--color-bg-alt);
    padding: var(--space-2xl) 0;
}

.post-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--duration-normal) var(--ease-out);
}

.post-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 168, 56, 0.3);
}

.post-nav-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-dark);
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

.post-nav-next {
    text-align: right;
}

.post-nav-placeholder {
    /* Empty placeholder for layout */
    display: block;
}

/* Related Posts */
.section-related {
    background: var(--color-bg);
}

/* ========================================
   BLOG PAGINATION
   ======================================== */
.blog-pagination {
    margin-top: var(--space-3xl);
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--duration-fast) var(--ease-out);
}

.blog-pagination .page-numbers:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.blog-pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.blog-pagination .prev,
.blog-pagination .next {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0 var(--space-md);
}

/* ========================================
   WORDPRESS NAV MENU INTEGRATION
   ======================================== */
/* Desktop nav: wp_nav_menu outputs <a> elements directly (items_wrap: %3$s) */
.nav-desktop .menu-item>a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.site-header.scrolled .nav-desktop .menu-item>a {
    color: var(--color-text);
}

.nav-desktop .menu-item>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-desktop .menu-item>a:hover {
    color: var(--color-accent);
}

.nav-desktop .menu-item>a:hover::after {
    width: 100%;
}

.nav-desktop .current-menu-item>a {
    color: var(--color-accent);
}

.nav-desktop .current-menu-item>a::after {
    width: 100%;
}

/* Mobile nav */
.nav-mobile .menu-item>a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text-inverse);
    transition: color var(--duration-fast) var(--ease-out);
}

.nav-mobile .menu-item>a:hover {
    color: var(--color-accent);
}

.nav-mobile .current-menu-item>a {
    color: var(--color-accent);
}

/* Footer nav */
.footer-links .menu-item>a {
    font-size: 0.9rem;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links .menu-item>a:hover {
    color: var(--color-accent);
}

/* Fix WordPress menu list styles */
.nav-desktop .menu,
.nav-mobile .menu,
.footer-links .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop .menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-mobile .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.footer-links .menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ========================================
   COMMENTS
   ======================================== */
.section-comments {
    background: var(--color-bg-alt);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-author {
    font-weight: 600;
    color: var(--color-primary);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.comment-respond {
    margin-top: var(--space-2xl);
}

.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease-out);
    background: var(--color-surface);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.1);
}

.comment-form .form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-primary-dark);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 15px rgba(232, 168, 56, 0.3);
}

.comment-form .form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 168, 56, 0.4);
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
    text-align: center;
    padding: var(--space-4xl) 0;
    grid-column: 1 / -1;
}

.no-results-inner {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.no-results-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
}

.no-results-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-3xl) 0;
    font-size: 1.05rem;
}

/* ========================================
   WORDPRESS ALIGNMENT & CONTENT CLASSES
   ======================================== */
.alignwide {
    max-width: calc(var(--container-max) - 4rem);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: var(--space-xl);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.wp-caption {
    max-width: 100%;
    margin-bottom: var(--space-xl);
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Screen reader text (WordPress standard) */
.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;
}

/* ========================================
   GLOBAL MOBILE IMPROVEMENTS
   ======================================== */

/* Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
}

/* iOS smooth scrolling */
html,
body {
    -webkit-overflow-scrolling: touch;
}

/* Safe area support for iPhones with notch / Dynamic Island */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.site-header .nav-container {
    padding-left: max(var(--space-lg), env(safe-area-inset-left));
    padding-right: max(var(--space-lg), env(safe-area-inset-right));
}

.site-footer {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
}

/* Ensure all interactive elements are large enough for touch (base) */
.btn {
    min-height: 44px;
    min-width: 44px;
}

/* ========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ======================================== */
@media (max-width: 1024px) {

    /* Navigation */
    .nav-desktop,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger span {
        width: 24px;
    }

    .nav-mobile {
        display: flex;
    }

    /* Mobile nav links: large touch-friendly targets */
    .nav-mobile .menu-item>a,
    .nav-link-mobile {
        padding: var(--space-sm) var(--space-lg);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Grids */
    .posts-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        padding-right: var(--space-xl);
        scroll-padding-left: var(--space-md);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap !important;
        /* Force single row */
    }

    .posts-grid::-webkit-scrollbar {
        display: none;
    }

    .post-card {
        min-width: 85vw;
        /* Clearer swipe indication */
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .categories-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        padding-right: var(--space-xl);
        /* Hint at more content */
        scroll-padding-left: var(--space-md);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        flex-wrap: nowrap !important;
        /* Force single row */
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .category-card {
        min-width: 85vw;
        /* Show nearly full width but leave peek space */
        flex: 0 0 auto;
        scroll-snap-align: center;
        aspect-ratio: 4/5;
        margin-right: -10px;
        /* Slight overlap or pull */
    }



    /* Newsletter */
    .newsletter-card {
        grid-template-columns: 1fr;
    }

    .newsletter-visual {
        max-height: 280px;
        order: -1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    /* Post navigation */
    .post-nav-links {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .post-nav-next {
        text-align: left;
    }

    .post-nav-link {
        min-height: 44px;
    }
}

/* ========================================
   RESPONSIVE — LARGE PHONE (≤ 768px)
   ======================================== */
@media (max-width: 768px) {

    /* Reduce section spacing */
    .section {
        padding: var(--space-3xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .section-desc {
        font-size: 1rem;
    }

    /* --- Hero --- */
    .hero {
        min-height: 90vh;
    }

    .hero {
        align-items: flex-start;
    }

    .hero-content {
        padding: calc(var(--header-height) + 140px) var(--space-md) var(--space-2xl);
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .hero-actions {
        margin-bottom: var(--space-2xl);
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Hero stats — neat 3-column grid */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-md);
        padding-top: var(--space-xl);
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-stat-label {
        font-size: 0.68rem;
    }

    /* Hide scroll indicator on mobile */
    .hero-scroll-indicator {
        display: none;
    }

    /* --- Categories --- */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .category-card {
        aspect-ratio: 1/1;
    }

    .category-name {
        font-size: 1.2rem;
    }

    .category-count {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    /* --- About --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto;
        order: -1;
    }

    .about-image img {
        aspect-ratio: 16/10;
        max-height: 360px;
        width: 100%;
    }

    .about-image-accent {
        display: none;
    }

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
        font-size: 1rem;
    }

    .about-features {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .about-feature {
        display: flex;
        /* Ensure content aligns */
        flex-direction: column;
        justify-content: center;
        min-height: 120px;
        /* Uniform height */
        padding: var(--space-lg);
        background: var(--color-surface);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    /* --- Posts --- */
    .post-card-body {
        padding: var(--space-md);
    }

    .post-card-title {
        font-size: 1rem;
    }

    .post-card-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .post-card-readmore {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* --- Newsletter --- */
    .section-newsletter {
        padding: var(--space-2xl) 0;
    }

    .newsletter-visual {
        display: none;
    }

    .newsletter-content {
        padding: var(--space-xl);
    }

    .newsletter-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .newsletter-desc {
        font-size: 0.9rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .newsletter-input {
        width: 100%;
        font-size: 1rem;
        padding: 0.9rem 1rem;
        min-height: 48px;
    }

    .newsletter-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-social-link {
        width: 48px;
        height: 48px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a,
    .footer-links .menu-item>a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-legal a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* --- Page & Article Headers --- */
    .page-header {
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-xl);
    }

    .page-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }

    .page-description {
        font-size: 1rem;
    }

    .article-header {
        padding-top: calc(var(--header-height) + var(--space-2xl));
    }

    .article-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .article-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .article-featured-image img {
        border-radius: var(--radius-md);
        max-height: 300px;
    }

    /* Content body */
    .content-container {
        padding: 0 var(--space-sm);
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .entry-content h2 {
        font-size: 1.35rem;
        margin-top: var(--space-2xl);
    }

    .entry-content h3 {
        font-size: 1.15rem;
    }

    .entry-content blockquote {
        padding: var(--space-md);
        margin: var(--space-xl) 0;
    }

    .entry-content pre {
        padding: var(--space-md);
        font-size: 0.82rem;
        border-radius: var(--radius-sm);
    }

    .entry-content table {
        font-size: 0.85rem;
    }

    .entry-content th,
    .entry-content td {
        padding: var(--space-xs) var(--space-sm);
    }

    /* Blog pagination touch-friendly */
    .blog-pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    /* Comments */
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        font-size: 1rem;
        padding: 0.85rem 1rem;
        min-height: 48px;
    }

    .comment-form .form-submit .submit {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE — SMALL PHONE (≤ 480px)
   ======================================== */
@media (max-width: 480px) {

    /* Container tighter padding */
    .container {
        padding: 0 var(--space-md);
    }

    /* Smaller section padding */
    .section {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    /* --- Hero --- */
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-sm) var(--space-xl);
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
    }

    .hero-actions .btn {
        max-width: 100%;
        width: 100%;
    }

    /* Hero stats — compact */
    .hero-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-sm);
        padding-top: var(--space-lg);
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .hero-stat-plus {
        font-size: 1rem;
    }

    .hero-stat-label {
        font-size: 0.62rem;
        letter-spacing: 0.05em;
    }

    /* --- Categories --- */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .category-card {
        aspect-ratio: 4/5;
        min-height: 180px;
    }

    .category-card-body {
        padding: var(--space-md) var(--space-sm);
    }

    .category-name {
        font-size: 1rem;
    }

    .category-count {
        font-size: 0.72rem;
        padding: 2px 8px;
    }

    /* --- Posts --- */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .post-card-img {
        aspect-ratio: 16/9;
    }

    .post-card-body {
        padding: var(--space-md);
    }

    .post-card-title {
        font-size: 1.05rem;
    }

    .post-card-excerpt {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: var(--space-sm);
    }

    /* --- About --- */
    .about-image img {
        aspect-ratio: 16/9;
        max-height: 240px;
    }

    .about-feature-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.8rem;
    }

    /* --- Newsletter --- */
    .newsletter-content {
        padding: var(--space-lg);
    }

    .newsletter-card {
        border-radius: var(--radius-lg);
    }

    /* --- Page & Article --- */
    .page-title {
        font-size: 1.6rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-tags {
        gap: var(--space-xs);
    }

    .article-tag {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    /* Post navigation */
    .post-nav-link {
        padding: var(--space-md);
    }

    .post-nav-title {
        font-size: 0.9rem;
    }

    /* Blog pagination */
    .blog-pagination .nav-links {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .blog-pagination .prev,
    .blog-pagination .next {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Comments */
    .comment-reply-title {
        font-size: 1.1rem;
    }

    .comment-content {
        font-size: 0.9rem;
    }

    /* No results */
    .no-results-inner {
        max-width: 100%;
        padding: 0 var(--space-sm);
    }

    .no-results-title {
        font-size: 1.2rem;
    }
}


/* ========================================
   BLOG POST TEMPLATE (NEW)
   ======================================== */

/* --- Reading Progress Bar --- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--color-accent);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* --- Blog Hero Section --- */
.blog-hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-3xl);
    padding-top: var(--header-height);
    /* Ensure content isn't hidden behind fixed header */
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(27, 42, 74, 0.3), rgba(27, 42, 74, 0.8));
    z-index: 2;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.blog-meta-top {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.blog-category {
    color: var(--color-accent);
    margin-right: var(--space-md);
}

.blog-reading-time {
    opacity: 0.8;
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--color-text-inverse);
    /* Explicitly white */
}

.blog-meta-bottom {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 1rem;
    opacity: 0.9;
}

.author-link {
    color: inherit;
    font-weight: 500;
}

.author-link:hover {
    color: var(--color-accent);
}

.updated-date {
    font-style: italic;
    opacity: 0.8;
    margin-left: var(--space-xs);
    font-size: 0.9em;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.breadcrumb-separator {
    margin: 0 var(--space-xs);
    opacity: 0.5;
}

.current-page {
    color: var(--color-text);
    font-weight: 500;
}


/* --- Blog Content Grid (TOC + Content) --- */
.blog-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
    position: relative;
}

/* Table of Contents */
.table-of-contents-container {
    display: none;
    /* Hidden by default, shown by JS if headings exist */
}

@media (min-width: 1025px) {
    .table-of-contents-container {
        display: block;
    }
}

/* Mobile TOC */
@media (max-width: 1024px) {
    .table-of-contents-container {
        display: block;
        margin-bottom: var(--space-xl);
        background: var(--color-bg-alt);
        border-radius: var(--radius-md);
        padding: var(--space-md);
    }

    .toc-sticky-wrapper {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .toc-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        width: 100%;
    }

    .toc-title::after {
        content: '+';
        font-weight: bold;
        font-size: 1.2rem;
    }

    .table-of-contents {
        display: none;
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .table-of-contents-container.active .table-of-contents {
        display: block;
    }

    .table-of-contents-container.active .toc-title::after {
        content: '-';
    }
}

.toc-sticky-wrapper {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: var(--space-sm);
}

.toc-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.table-of-contents a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: var(--color-accent-dark);
    font-weight: 500;
    padding-left: 4px;
    border-left: 2px solid var(--color-accent);
}

.table-of-contents ul ul {
    padding-left: var(--space-md);
    margin-top: var(--space-xs);
}

/* Main Content Area */
.blog-main-content {
    min-width: 0;
    /* Prevents grid blowout */
}

.entry-content {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content p {
    margin-bottom: var(--space-lg);
}

/* Teaser / Intro Text Styling */
.entry-content>p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.entry-content h3 {
    font-size: 1.4rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-primary-light);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.entry-content li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xs);
}

.entry-content ul li {
    list-style-type: disc;
}

.entry-content blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-alt);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.entry-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
    width: 100%;
    height: auto;
}

/* --- Info Boxes (Requested Features) --- */
.info-box,
.warning-box,
.pro-tip-box {
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.box-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Pro Tip */
.pro-tip-box {
    background-color: rgba(76, 175, 80, 0.1);
    /* Green tint */
    border-left: 4px solid var(--color-green);
}

.pro-tip-box .box-icon {
    color: var(--color-green);
}

/* Info */
.info-box {
    background-color: rgba(27, 42, 74, 0.05);
    /* Blue tint */
    border-left: 4px solid var(--color-primary);
}

.info-box .box-icon {
    color: var(--color-primary);
}

/* Warning */
.warning-box {
    background-color: rgba(232, 168, 56, 0.1);
    /* Yellow/Accent tint */
    border-left: 4px solid var(--color-accent);
}

.warning-box .box-icon {
    color: var(--color-accent-dark);
}

/* Conclusion / Key Takeaways Box */
.conclusion-box {
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-accent);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}

.conclusion-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.conclusion-title svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}


/* --- Author Box --- */
.author-box {
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.author-box-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
}

.author-box-content {
    flex-grow: 1;
}

.author-box-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.author-box-bio {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.author-social .btn-text {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}

/* --- Primary CTA --- */
.blog-cta-primary {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-text-inverse);
    background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    /* Gym/Focus background */
    background-size: cover;
    background-blend-mode: multiply;
}

.cta-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Entry Footer (Tags) --- */
.entry-footer {
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: var(--space-lg);
}

.blog-tags {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.tags-label {
    font-weight: 600;
    color: var(--color-primary);
}

.blog-tags a {
    display: inline-block;
    background: var(--color-bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    transition: background 0.2s;
}

.blog-tags a:hover {
    background: var(--color-accent);
    color: white;
}

/* --- Share Buttons --- */
.share-section {
    margin: var(--space-2xl) 0;
    text-align: center;
}

.share-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

.share-whatsapp {
    background-color: #25D366;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-facebook {
    background-color: #1877f2;
}

.share-email {
    background-color: #555;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        /* Stack TOC and Content */
    }

    .table-of-contents-container {
        /* display: none;  <-- Removed to allow mobile TOC */
        /* Styles handled by upper media query */
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero-section {
        height: auto;
        padding-bottom: var(--space-2xl);
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-meta-bottom {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .entry-content {
        font-size: 0.95rem;
    }

    .entry-content h2 {
        font-size: 1.2rem;
    }

    .entry-content h3 {
        font-size: 1.05rem;
    }

    /* Logo smaller */
    .logo-text {
        font-size: 1rem;
    }

    /* Buttons on tiny screens */
    .btn-lg {
        padding: 0.75rem 1.4rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {

    /* Disable hover transforms on touch devices to avoid sticky hover states */
    .post-card:hover {
        transform: none;
    }

    .category-card:hover {
        transform: none;
    }

    .category-card:hover .category-card-img img {
        transform: none;
    }

    .footer-social-link:hover {
        transform: none;
    }

    /* Instead, add active state feedback */
    .post-card:active {
        transform: scale(0.98);
        transition-duration: 100ms;
    }

    .category-card:active {
        transform: scale(0.97);
        transition-duration: 100ms;
    }

    .btn:active {
        transform: scale(0.96);
        transition-duration: 100ms;
    }

    .footer-social-link:active {
        background: var(--color-accent);
        color: var(--color-primary-dark);
    }

    /* Remove hover underline extension on touch */
    .nav-link:hover::after,
    .nav-desktop .menu-item>a:hover::after {
        width: 0;
    }
}

/* ========================================
   LANDSCAPE PHONE SPECIFIC
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding-top: calc(var(--header-height) + var(--space-md));
        padding-bottom: var(--space-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: var(--space-md);
    }

    .hero-actions {
        flex-direction: row;
        margin-bottom: var(--space-md);
    }

    .hero-stats {
        padding-top: var(--space-md);
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Mobile nav in landscape */
    .nav-mobile .menu-item>a,
    .nav-link-mobile {
        font-size: 1.2rem;
        padding: var(--space-xs) var(--space-lg);
    }

    .nav-mobile .menu {
        gap: var(--space-md);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .site-header,
    .hamburger,
    .nav-mobile,
    .hero-scroll-indicator,
    .newsletter-card,
    .footer-social,
    .hero-actions {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* ========================================
   NAVIGATION: BULLET POINT FIXES
   ======================================== */

/* --- Header Desktop Navigation: Bullets entfernen --- */
.nav-desktop ul,
.nav-desktop .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-desktop li,
.nav-desktop .menu-item {
    list-style: none !important;
    list-style-type: none !important;
}

/* --- Header Mobile Navigation: Bullets entfernen --- */
.nav-mobile ul,
.nav-mobile .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-mobile li,
.nav-mobile .menu-item {
    list-style: none !important;
    list-style-type: none !important;
}

/* --- Mobile Menu: Schrift IMMER weiss (auch beim Scrollen) --- */
.nav-mobile,
.nav-mobile a,
.nav-mobile .menu-item>a,
.nav-mobile .nav-link-mobile,
.nav-mobile .menu>li>a {
    color: #ffffff !important;
}

.nav-mobile .menu-item>a:hover,
.nav-mobile .nav-link-mobile:hover {
    color: var(--color-accent, #E8A838) !important;
}

/* --- Footer Navigation: Bullets entfernen --- */
.footer-links ul,
.footer-links .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li,
.footer-links .menu-item {
    list-style: none !important;
    list-style-type: none !important;
}

/* wp_list_categories erzeugt auch <li> Elemente im Footer */
.footer-col ul,
.footer-col li {
    list-style: none !important;
    list-style-type: none !important;
}

.footer-col ul {
    padding: 0 !important;
    margin: 0 !important;
}

.footer-cat-list li a {
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-cat-list li a:hover {
    color: var(--color-accent) !important;
}

/* ========================================
   BLOG SINGLE PAGE STYLES (ADDED)
   ======================================== */

/* --- First Paragraph: "Das Wichtigste in Kürze" --- */
.entry-content>p:first-of-type {
    background-color: var(--color-surface);
    padding: var(--space-xl);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    color: var(--color-text);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.entry-content>p:first-of-type::before {
    content: "Das Wichtigste in Kürze";
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Author Box Ganz Oben --- */
.blog-author-top-wrapper {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.author-box {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 42, 74, 0.05);
}

.author-box-img {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--color-accent);
}

.author-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box-content {
    flex-grow: 1;
}

.author-box-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.author-box-bio {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .author-box-img {
        width: 100px;
        height: 100px;
    }
}

/* --- Mobile TOC Always Expanded --- */
@media (max-width: 1024px) {
    .table-of-contents-container {
        display: block !important;
        background: var(--color-surface);
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        margin-bottom: var(--space-2xl);
    }

    .toc-title {
        pointer-events: none;
        margin-bottom: var(--space-md);
    }

    .toc-title::after {
        display: none !important;
    }

    .table-of-contents {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
    }
}

/* --- Related Posts Grid (Verwandte Beiträge) --- */
.section-related {
    background-color: var(--color-bg-alt);
    padding: var(--space-5xl) 0;
    margin-top: var(--space-4xl);
}

.section-related .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-related .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Post Card Styles (Fallback falls noch nicht vorhanden) */
.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-card-image-link {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.post-card-category {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.post-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    display: block;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

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

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.post-card-readmore {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    display: inline-block;
}

.post-card-readmore:hover {
    color: var(--color-accent-dark);
}

@media (max-width: 1024px) {
    .section-related .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-related .posts-grid {
        grid-template-columns: 1fr;
    }
}