/*
Theme Name: Omnipress WBW Child
Template: omnipress-v2
Description: Editorial design for Wer bewertet Was - Real Estate Appraisal Blog
Version: 1.1
Author: Omni1
*/

/* ========================================
   Google Fonts - Inter (Modern Sans-Serif)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Variables - Editorial Color System
   ======================================== */
:root {
    /* Primary Colors */
    --color-primary: #1F2937;
    --color-primary-hover: #0f172a;
    --color-brand-blue: #2b4b7a;
    --color-brand-dark: #1e3a63;

    /* Background Colors */
    --color-bg-light: #ffffff;
    --color-bg-soft: #f3f4f6;
    --color-surface-light: #ffffff;
    --color-surface-dark: #1F2937;

    /* Text Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #64748b;
    --color-text-tertiary: #94a3b8;

    /* Fonts - Using Inter for consistent modern look */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Base Typography Override
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
}

/* Enforce site font on prose content */
.prose,
.prose p,
.prose ul,
.prose ol,
.prose li,
.prose blockquote {
    font-family: var(--font-sans);
}

/* ========================================
   Post Content Typography
   Harmonized with theme design hierarchy
   ======================================== */
.post-content {
    font-size: 0.875rem;
    /* 14px - matches widget/sidebar text */
    line-height: 1.8;
    color: #475569;
}

/* Headings - Clear hierarchy */
.post-content h2 {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 1rem;
    /* 16px */
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.post-content h5,
.post-content h6 {
    font-size: 0.875rem;
    /* Same as body */
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
.post-content p {
    margin-bottom: 1.125rem;
}

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

/* Links */
.post-content a {
    color: var(--color-brand-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--color-brand-dark);
    text-decoration: underline;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-top: 0.875rem;
    margin-bottom: 1.125rem;
    padding-left: 1.5rem;
}

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

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}

.post-content li::marker {
    color: var(--color-brand-blue);
}

/* Nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
}

/* Blockquotes */
.post-content blockquote {
    margin: 1.25rem 0;
    padding: 0.875rem 1.25rem;
    border-left: 4px solid var(--color-brand-blue);
    background: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #334155;
}

.post-content blockquote p {
    margin-bottom: 0;
}

/* Images */
.post-content img {
    border-radius: 0.75rem;
    margin: 1.25rem 0;
}

.post-content figure {
    margin: 1.25rem 0;
}

.post-content figcaption {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 1.25rem 0;
    font-size: 0.8125rem;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.post-content th {
    font-weight: 600;
    color: var(--color-text-primary);
    background: #f8fafc;
}

.post-content tr:last-child td {
    border-bottom: none;
}

/* Code */
.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125em;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #334155;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.75rem;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Horizontal rule */
.post-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.75rem 0;
}

/* Strong and emphasis */
.post-content strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.post-content em {
    font-style: italic;
}

/* First paragraph lead styling */
.post-content>p:first-of-type {
    font-size: 0.9375rem;
    /* 15px - slightly larger intro */
    line-height: 1.75;
    color: #334155;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* hyphens: auto; - Optional, can enable if preferred */
}

/* Prevent grid/flex blowout */
.editorial-layout>*,
main>* {
    min-width: 0;
}

/* Lucide Icons Base Styles */
.lucide-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Icon size utilities */
.lucide-icon.icon-sm {
    width: 16px;
    height: 16px;
}

.lucide-icon.icon-lg {
    width: 32px;
    height: 32px;
}

.lucide-icon.icon-xl {
    width: 48px;
    height: 48px;
}

/* ========================================
   Glassmorphism Utility
   ======================================== */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 249, 255, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* ========================================
   Header Overrides
   ======================================== */
.site-header {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo Styling */
.wbw-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.wbw-logo__icon {
    width: 2rem;
    height: 2rem;
    background: var(--color-brand-blue);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
}

.wbw-logo__text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-primary);
    letter-spacing: -0.025em;
}

.wbw-logo__text .highlight {
    color: var(--color-brand-blue);
}

/* Navigation */
.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

/* Custom Logo Styling */
.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    width: auto;
    height: auto;
    max-height: 3rem;
    /* Fits well within the 5rem header */
    max-width: 100%;
}

/* Footer Logo */
.footer-logo .custom-logo {
    max-height: 2rem;
}

.footer-copyright-logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

.footer-copyright-logo .custom-logo {
    max-height: 1rem;
    width: auto;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-brand-blue);
}

.header-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Hero Section - Landing + Editorial Blend
   ======================================== */
.landing-hero-shell {
    max-width: 1280px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}

.landing-hero {
    display: grid;
    gap: 1.5rem;
    background: linear-gradient(140deg, #fbfdff 5%, #f1f5fb 50%, #fef7eb 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .landing-hero {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        min-height: 430px;
    }
}

.landing-hero__copy {
    padding: 2rem 1.5rem 2.25rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .landing-hero__copy {
        padding: 2.5rem 2.5rem 2.75rem;
    }
}

.landing-hero__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(43, 75, 122, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-brand-blue);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.landing-hero__meta-item {
    font-weight: 500;
}

.landing-hero__meta-dot {
    color: #94a3b8;
}

.landing-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.8vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.landing-hero__title a {
    color: inherit;
    text-decoration: none;
}

.landing-hero__title a:hover {
    color: var(--color-brand-blue);
}

.landing-hero__description {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    max-width: 45ch;
    margin-bottom: 1.75rem;
}

.landing-hero__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.65rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-dark));
    box-shadow: 0 12px 24px -18px rgba(30, 58, 99, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-hero__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 25px -18px rgba(30, 58, 99, 0.9);
}

.landing-hero__media {
    display: none;
    position: relative;
    min-height: 100%;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .landing-hero__media {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        min-height: 100%;
        background-repeat: no-repeat;
    }
}

.landing-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.landing-hero__image--editor-choice {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.landing-hero:hover .landing-hero__image:not(.landing-hero__image--editor-choice) {
    transform: scale(1.03);
}

.landing-hero-rail {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .landing-hero-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-hero-rail__item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.125rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-hero-rail__item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.45);
    transform: translateY(-1px);
}

.landing-hero-rail__category {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-blue);
}

.landing-hero-rail__title {
    margin: 0.55rem 0 0.75rem;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--color-text-primary);
}

.landing-hero-rail__title a {
    color: inherit;
    text-decoration: none;
}

.landing-hero-rail__title a:hover {
    color: var(--color-brand-blue);
}

.landing-hero-rail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Three-Column Layout
   ======================================== */
.editorial-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .editorial-layout {
        grid-template-columns: 2fr 7fr 3fr;
    }
}

/* ========================================
   Left Sidebar - Categories
   ======================================== */
.sidebar-left {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-left {
        display: block;
        position: sticky;
        top: 7rem;
        /* height: fit-content; removed to allow scrolling */
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        padding-right: 0.5rem;

        /* Custom Scrollbar */
        scrollbar-width: none;
        scrollbar-color: #e2e8f0 transparent;
    }

    /* Webkit Scrollbar Styling */
    .sidebar-left::-webkit-scrollbar {
        width: 0px;
    }

    .sidebar-left::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-left::-webkit-scrollbar-thumb {
        background-color: #e2e8f0;
        border-radius: 0;
        border: transparent;
    }
}

.sidebar-section__title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.category-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-nav__item {
    margin-bottom: 0.25rem;
}

.category-nav__link {
    display: block;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.category-nav__link:hover {
    color: var(--color-brand-blue);
    background: #f8fafc;
}

.category-nav__link.active {
    color: var(--color-brand-blue);
    background: #eff6ff;
    border-left: 2px solid var(--color-brand-blue);
    padding-left: calc(0.5rem - 2px);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Tags Section */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.tag-item:hover {
    background: #e5e7eb;
}

/* ========================================
   Article Cards - Editorial Style
   ======================================== */
.article-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

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

.article-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.article-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--color-text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.article-card__content {
    padding: 1.5rem;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

.article-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.article-card:hover .article-card__title {
    color: var(--color-brand-blue);
}

.article-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-brand-blue);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.article-card__cta:hover {
    gap: 0.5rem;
}

/* ========================================
   Right Sidebar - Lead Generation
   ======================================== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .sidebar-right {
        position: sticky;
        top: 7rem;
        height: fit-content;
    }
}

/* Lead Form Widget - Premium Dark Blue Design */
.lead-form-widget {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #0c1929 100%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    overflow: hidden;
}

/* Animated gradient border */
.lead-form-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #F49E0B 0%,
            #fbbf24 25%,
            #F49E0B 50%,
            #fbbf24 75%,
            #F49E0B 100%);
    background-size: 200% 100%;
    animation: shimmerBorder 3s ease-in-out infinite;
}

@keyframes shimmerBorder {

    0%,
    100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 0%;
    }
}

/* Decorative floating orb - top right */
.lead-form-widget::after {
    content: '';
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 10rem;
    height: 10rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: floatOrb 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10px, 10px) scale(1.1);
    }
}

/* Second decorative orb - bottom left */
.lead-form-widget .lead-form::before {
    content: '';
    position: absolute;
    bottom: -3rem;
    left: -3rem;
    width: 8rem;
    height: 8rem;
    background: radial-gradient(circle, rgba(244, 158, 11, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: floatOrb2 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10px, -10px) scale(1.15);
    }
}

.lead-form__header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lead-form__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lead-form__badge {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.lead-form__subtitle {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.9);
    margin-bottom: 1rem;
    font-weight: 400;
}

.lead-form {
    position: relative;
    z-index: 1;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 0.65rem 0.875rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    margin-bottom: 0.65rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.lead-form input::placeholder {
    color: rgba(203, 213, 225, 0.6);
}

.lead-form select {
    color: rgba(203, 213, 225, 0.9);
    cursor: pointer;
    /* Custom dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(203,213,225,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.lead-form select option {
    background: #1e3a5f;
    color: #ffffff;
}

.lead-form input:focus {
    outline: none;
    border-color: rgba(244, 158, 11, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 3px rgba(244, 158, 11, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lead-form select:focus {
    outline: none;
    border-color: rgba(244, 158, 11, 0.6);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 3px rgba(244, 158, 11, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lead-form input:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.lead-form select:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.1);
}

.lead-form__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow:
        0 4px 15px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lead-form__submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.lead-form__submit:hover {
    background: #ffffff80;
    box-shadow: 0 15px 20px 0px rgba(255, 255, 255, 0.2);
}

.lead-form__submit:hover::before {
    left: 100%;
}

.lead-form__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 158, 11, 0.4);
}

/* Trust footer section */
.lead-form .flex.items-center.justify-center {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.lead-form .text-gray-400 {
    color: rgba(203, 213, 225, 0.7) !important;
}

.lead-form .text-green-500 {
    color: #4ade80 !important;
}

/* Popular Posts Widget */
.popular-widget {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.popular-widget__title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.popular-item:last-child {
    margin-bottom: 0;
}

.popular-item__number {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1;
    transition: color 0.2s ease;
}

.popular-item:hover .popular-item__number {
    color: var(--color-primary);
}

.popular-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.popular-item:hover .popular-item__title {
    color: var(--color-brand-blue);
}

.popular-item__date {
    font-size: 0.625rem;
    color: var(--color-text-tertiary);
    display: block;
    margin-top: 0.25rem;
}

/* ========================================
   Trust Icons Widget - Light Feminine Design
   ======================================== */
.trust-icons-widget {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    border-radius: 1rem;
    border: 1px solid rgba(236, 72, 153, 0.15);
    padding: 1.5rem;
    box-shadow: 0 4px 15px -3px rgba(236, 72, 153, 0.1);
    position: relative;
    overflow: hidden;
}

.trust-icons-widget::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.trust-icons-widget::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 5rem;
    height: 5rem;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    pointer-events: none;
}

.trust-icons__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #831843;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icons__title .lucide-icon {
    color: #db2777;
}

.trust-icons__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.trust-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: default;
    backdrop-filter: blur(4px);
}

.trust-icon-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(236, 72, 153, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(236, 72, 153, 0.15);
}

.trust-icon-item__image {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce7f3 0%, #f5d0fe 100%);
    border-radius: 50%;
    overflow: hidden;
}

.trust-icon-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.trust-icon-item__image .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #db2777;
}

.trust-icon-item__label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9d174d;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* PDF Download CTA */
.pdf-cta-widget {
    background: var(--color-brand-blue);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.pdf-cta-widget::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.pdf-cta__header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pdf-cta__icon {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

.pdf-cta__badge {
    background: var(--color-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.pdf-cta__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pdf-cta__description {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: #bfdbfe;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pdf-cta__button {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.625rem 1rem;
    background: white;
    color: var(--color-brand-blue);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.pdf-cta__button:hover {
    background: #f3f4f6;
}

/* ========================================
   Testimonial Widget - Premium Design
   ======================================== */
.testimonial-widget {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #0c1929 100%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-widget::before {
    content: '';
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 8rem;
    height: 8rem;
    background: radial-gradient(circle, rgba(244, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    pointer-events: none;
}

.testimonial-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.testimonial-widget__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.testimonial-widget__title .lucide-icon {
    color: #60a5fa;
}

.testimonial-widget__rating-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(244, 158, 11, 0.15);
    border: 1px solid rgba(244, 158, 11, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.testimonial-widget__rating-badge .rating-stars {
    color: #F49E0B;
    font-size: 0.625rem;
    letter-spacing: -1px;
}

.testimonial-widget__rating-badge .rating-score {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.testimonial-card__quote {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.95);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(244, 158, 11, 0.5);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.testimonial-card__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card__info {
    display: flex;
    flex-direction: column;
}

.testimonial-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.testimonial-card__location {
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.8);
}

/* Footer with Avatar Stack */
.testimonial-widget__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.avatar-stack {
    display: flex;
    padding-left: 0.5rem;
}

.avatar-stack img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid #1e3a5f;
    margin-left: -0.5rem;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.avatar-stack img:hover {
    transform: scale(1.15);
    z-index: 10;
}

.testimonial-widget__stats {
    display: flex;
    flex-direction: column;
}

.testimonial-widget__stats .stats-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.testimonial-widget__stats .stats-label {
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.8);
}

/* Verified Badge */
.testimonial-widget__verified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.testimonial-widget__verified span {
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 500;
}

.testimonial-widget__verified .lucide-icon {
    color: #4ade80;
}

/* ========================================
   Footer CTA Section
   ======================================== */
.footer-cta-section {
    background: #111827;
    border-top: 1px solid #1f2937;
    padding: 4rem 1.5rem;
    text-align: center;
}

.footer-cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-cta__description {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.footer-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--color-text-primary);
    font-weight: 700;
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.footer-cta__button:hover {
    background: #ffffff80;
    box-shadow: 0 15px 20px 0px rgba(255, 255, 255, 0.2);
}

.site-footer {
    padding: 0;
}

/* ========================================
   Pagination Styles
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination-wrapper ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-shadow: none;
}

.pagination-wrapper .page-numbers:hover {
    color: var(--color-brand-blue);
}

.pagination-wrapper .page-numbers.current {
    background: var(--color-brand-blue);
    color: white;
    font-weight: 600;
}

.pagination-wrapper .page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    cursor: default;
    min-width: 1.5rem;
    padding: 0;
}

.pagination-wrapper .page-numbers.dots:hover {
    background: transparent;
    color: var(--color-text-tertiary);
}

.pagination-wrapper .prev.page-numbers,
.pagination-wrapper .next.page-numbers {
    color: var(--color-brand-blue);
    background: #f1f5f9;
}

.pagination-wrapper .prev.page-numbers:hover,
.pagination-wrapper .next.page-numbers:hover {
    background: var(--color-brand-blue);
    color: white;
}

.pagination-wrapper .prev.page-numbers .lucide-icon,
.pagination-wrapper .next.page-numbers .lucide-icon {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   Author Page Styles
   ======================================== */
.author-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(140deg, #fbfdff 5%, #f1f5fb 50%, #fef7eb 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    padding: 2.5rem;
}

@media (max-width: 640px) {
    .author-hero {
        padding: 1.5rem;
    }
}

.author-hero__content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (max-width: 768px) {
    .author-hero__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.author-hero__avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.author-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow:
        0 10px 30px -10px rgba(43, 75, 122, 0.3),
        0 0 0 4px rgba(43, 75, 122, 0.1);
    object-fit: cover;
}

.author-hero__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(43, 75, 122, 0.3);
}

.author-hero__info {
    flex: 1;
}

.author-hero__eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(43, 75, 122, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-brand-blue);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.author-hero__name {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.author-hero__bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    max-width: 55ch;
    margin-bottom: 1.25rem;
}

.author-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .author-hero__stats {
        justify-content: center;
    }
}

.author-hero__stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
}

.author-hero__stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.author-hero__stat-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.author-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .author-hero__links {
        justify-content: center;
    }
}

.author-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-hero__link:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
    box-shadow: 0 4px 12px rgba(43, 75, 122, 0.15);
    transform: translateY(-1px);
}

.author-hero__pattern {
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle, rgba(43, 75, 122, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* Author Posts Header */
.author-posts-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

/* Author Quick Stats Widget (Sidebar) */
.author-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-quick-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.author-quick-stat:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.author-quick-stat>div {
    display: flex;
    flex-direction: column;
}

.author-quick-stat__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.author-quick-stat__label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ========================================
   Utility Classes
   ======================================== */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-close {
    padding: 0.5rem;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

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

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
    /* Touch target: 48px minimum */
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus {
    background: #f8fafc;
    color: var(--color-brand-blue);
}

.mobile-menu-cta {
    padding: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.mobile-menu-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-dark));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.625rem;
    box-shadow: 0 8px 20px -8px rgba(43, 75, 122, 0.5);
    transition: all 0.2s ease;
}

.mobile-menu-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(43, 75, 122, 0.6);
}

.mobile-menu-footer {
    padding: 1rem 1.25rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ========================================
   Floating CTA Button (Mobile)
   ======================================== */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Safe area for notched devices */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.floating-cta.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.floating-cta__button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-dark));
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow:
        0 10px 30px -5px rgba(43, 75, 122, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.floating-cta__button:hover {
    transform: scale(1.03);
    box-shadow:
        0 15px 35px -5px rgba(43, 75, 122, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Hide floating CTA on desktop */
@media (min-width: 1024px) {
    .floating-cta {
        display: none !important;
    }
}

/* ========================================
   Responsive Header Improvements
   ======================================== */
@media (max-width: 768px) {
    .site-header__inner {
        padding: 0 1rem;
    }

    .site-header .flex[style*="height: 5rem"] {
        height: 4rem !important;
    }

    .wbw-logo__icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }

    .wbw-logo__text {
        font-size: 1.1rem;
    }

    .custom-logo {
        max-height: 2.5rem;
    }
}

/* ========================================
   Responsive Hero Section
   ======================================== */
@media (max-width: 768px) {
    .landing-hero-shell {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .landing-hero {
        border-radius: 1rem;
    }

    .landing-hero__copy {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .landing-hero__eyebrow {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
        margin-bottom: 0.75rem;
    }

    .landing-hero__meta {
        font-size: 0.6875rem;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .landing-hero__title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .landing-hero__description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        overflow: hidden;
    }

    .landing-hero__cta {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }
}

/* Hero Rail Responsive */
@media (max-width: 640px) {
    .landing-hero-rail {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .landing-hero-rail__item {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .landing-hero-rail__title {
        font-size: 0.9375rem;
    }

    .landing-hero-rail__meta {
        font-size: 0.6875rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .landing-hero-rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-hero-rail__item:nth-child(3) {
        grid-column: span 2;
    }
}

/* ========================================
   Responsive Editorial Layout
   ======================================== */
@media (max-width: 640px) {
    .editorial-layout {
        padding: 2rem 1rem;
        gap: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .editorial-layout {
        padding: 2.5rem 1.25rem;
        gap: 2rem;
    }
}

/* Tablet: 2-column layout (main + right sidebar) */
@media (min-width: 768px) and (max-width: 1023px) {
    .editorial-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .sidebar-left {
        display: none;
    }

    .sidebar-right {
        display: flex;
    }
}

/* ========================================
   Responsive Article Cards
   ======================================== */
@media (max-width: 640px) {
    .article-card__content {
        padding: 1rem;
    }

    .article-card__title {
        font-size: 1.0625rem;
    }

    .article-card__excerpt {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    .article-card:first-child .article-card__image {
        aspect-ratio: 16/10;
    }

    /* Grid cards stack on mobile */
    .grid[class*="md:grid-cols-2"] {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Post list items */
    .article-list-item {
        gap: 0.75rem;
        padding: 0.75rem 0.5rem;
    }

    .article-list-item .flex-shrink-0 {
        width: 5rem;
        height: 5rem;
    }

    .article-list-item h3 {
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {

    /* Grid cards stack on small tablets too */
    .grid[class*="md:grid-cols-2"] {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   Responsive Sidebar (Right)
   ======================================== */
@media (max-width: 767px) {
    .sidebar-right {
        display: none;
    }
}

/* ========================================
   Responsive Footer
   ======================================== */
@media (max-width: 640px) {
    .footer-cta-section {
        padding: 2.5rem 1rem;
    }

    .footer-cta__title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .footer-cta__description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .footer-cta__button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .site-footer .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer .flex-wrap.gap-6 {
        gap: 1rem;
    }
}

/* ========================================
   Responsive Typography & Spacing
   ======================================== */
@media (max-width: 640px) {
    .post-content {
        font-size: 0.8125rem;
    }

    .post-content h2 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .post-content h3 {
        font-size: 1rem;
        margin-top: 1.25rem;
    }

    .post-content h4 {
        font-size: 0.9375rem;
    }

    .post-content>p:first-of-type {
        font-size: 0.875rem;
    }

    /* Pagination mobile */
    .pagination-wrapper .page-numbers {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8125rem;
    }

    /* Section spacing */
    .space-y-12> :not([hidden])~ :not([hidden]) {
        margin-top: 2rem;
    }

    .space-y-8> :not([hidden])~ :not([hidden]) {
        margin-top: 1.5rem;
    }
}

/* ========================================
   Responsive Single Post Page
   ======================================== */
@media (max-width: 640px) {

    /* Breadcrumbs */
    .editorial-layout article nav.px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Article padding */
    .editorial-layout article .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Glass panel CTA */
    .glass-panel.p-8 {
        padding: 1.25rem;
    }

    .glass-panel [class*="sm:flex"] {
        flex-direction: column;
    }

    .glass-panel [class*="sm:w-2/3"],
    .glass-panel [class*="sm:w-1/3"] {
        width: 100%;
    }
}

/* ========================================
   Responsive Author Page
   ======================================== */
@media (max-width: 640px) {
    .author-hero {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .author-hero__avatar {
        width: 80px;
        height: 80px;
    }

    .author-hero__badge {
        width: 28px;
        height: 28px;
    }

    .author-hero__name {
        font-size: 1.5rem;
    }

    .author-hero__bio {
        font-size: 0.875rem;
    }

    .author-hero__stat {
        padding: 0.375rem 0.75rem;
    }

    .author-hero__stat-value {
        font-size: 1rem;
    }

    .author-hero__stat-label {
        font-size: 0.6875rem;
    }
}

/* ========================================
   Touch Target Improvements
   ======================================== */
@media (max-width: 1024px) {

    /* Ensure all clickable elements meet 44x44px minimum */
    .main-navigation a,
    .category-nav__link,
    .article-card__cta,
    .pagination-wrapper .page-numbers,
    .footer-cta__button,
    .lead-form__submit {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .category-nav__link {
        padding: 0.75rem;
    }
}