/* ============================================
   Multi-Country Static Site Styles
   SEO-Optimized & Mobile-First Design
   Enhanced with Modern UI from Property AI Checker
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Light Mode */
    --bg-color: #F8F9FA;
    --container-bg: #FFFFFF;
    --text-color: #2C3E50;
    --heading-color: #1A202C;
    --border-color: #E2E8F0;
    --accent-color: #3B82F6;
    --tab-inactive: #64748B;
    --tab-active-bg: #EFF6FF;

    /* Legacy color aliases for compatibility */
    --color-primary: #3B82F6;
    --color-primary-dark: #2563EB;
    --color-secondary: #10b981;
    --color-text: #2C3E50;
    --color-text-light: #64748B;
    --color-background: #FFFFFF;
    --color-background-light: #F8F9FA;
    --color-border: #E2E8F0;
    --color-border-dark: #CBD5E1;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;

    /* Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Effects */
    --border-radius: 0px;
    --border-radius-sm: 0px;
    --transition: all 0.3s ease;
    --button-hover-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    --card-shadow: 0 4px 24px rgba(0,0,0,0.08);

    /* Footer */
    --footer-bg: transparent;
    --footer-text: var(--text-color);

    /* Gradient colors */
    --gradient-accent: #9333EA;

    /* CTA Colors */
    --color-cta-primary: #0D9488;
    --color-cta-primary-dark: #0F766E;
}

/*
   Dark Mode Support - Enhanced for Better Contrast & Reduced Glare

   Key Improvements:
   - Darker, warmer backgrounds (#0A0E1A) to reduce eye strain
   - Higher contrast text (#E8EDF5 on dark bg) for better readability
   - Softer accent color (#4A8FE7) instead of bright blue to reduce glare
   - WCAG AAA compliant contrast ratios (7:1+) for body text
   - Reduced blue light emission with warmer color temperature
   - Better visual hierarchy with improved heading contrast
*/
[data-theme="dark"] {
    /* Core colors - warmer tones, better contrast, reduced glare */
    --bg-color: #0A0E1A;
    --container-bg: #151B2B;
    --text-color: #E8EDF5;
    --heading-color: #F5F8FC;
    --border-color: #2A3447;
    --accent-color: #4A8FE7;
    --tab-inactive: #748099;
    --tab-active-bg: #1A2840;
    --button-hover-shadow: 0 8px 20px rgba(74, 143, 231, 0.3);
    --card-shadow: 0 4px 24px rgba(0,0,0,0.5);

    /* Update legacy aliases for dark mode */
    --color-primary: #4A8FE7;
    --color-primary-dark: #3B7DD6;
    --color-text: #E8EDF5;
    --color-text-light: #8B95A8;
    --color-background: #151B2B;
    --color-background-light: #0A0E1A;
    --color-border: #2A3447;
    --color-border-dark: #374357;

    /* Footer - Dark mode */
    --footer-bg: transparent;
    --footer-text: var(--text-color);

    /* Gradient colors - Dark mode - softer, less glare */
    --gradient-accent: #8B7AC7;

    /* CTA Colors - Dark mode */
    --color-cta-primary: #2DD4BF;
    --color-cta-primary-dark: #14B8A6;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    /* Add bottom padding to prevent FAB button from blocking content when scrolling to bottom */
    /* Desktop FAB: 60px tall + 30px bottom = 90px minimum, using 100px for comfortable buffer */
    padding-bottom: 100px;
}

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

/* Accessibility: Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
    letter-spacing: -0.3px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* Inline text links - for natural keyword linking within content */
.inline-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--transition);
    font-weight: 500;
}

.inline-link:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

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

/* AI Analyzer CTA - bottom section on article index pages */
.ai-analyzer-cta.ai-analyzer-cta--bottom {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn--glow {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
    }
}

/* Country Switcher */
.country-switcher {
    background-color: transparent;
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
}

[data-theme="dark"] .country-switcher {
    background-color: rgba(10, 14, 26, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.country-switcher .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.country-switcher__left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.country-switcher .theme-toggle {
    margin: 0; /* align flush on right in top bar */
}

.country-switcher__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.country-switcher__list {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.country-switcher__item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1.25rem; /* Increased from 0.375rem 1.125rem for better touch target */
    min-height: 44px; /* WCAG 2.1 minimum touch target size */
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
    border: 2px solid var(--color-border); /* Increased from 1px for better visibility */
    background-color: var(--container-bg);
    color: var(--text-color);
}

.country-switcher__item:hover {
    border-color: var(--color-primary);
    background-color: var(--tab-active-bg);
}

.country-switcher__item:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.country-switcher__item.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    font-weight: 600;
}

[data-theme="dark"] .country-switcher__item.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(74, 143, 231, 0.2);
}

.country-switcher__flag {
    font-size: 1.125rem;
}

.country-switcher__flag-svg {
    width: 1.5rem;
    height: 1rem;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Site Header */
.site-header {
    background-color: var(--container-bg);
    border-bottom: 2px solid var(--border-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: var(--transition);
}

/* Reading Progress Bar */
.reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    overflow: hidden;
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--color-primary) 100%);
    transition: width 0.15s ease-out;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .reading-progress__bar {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--color-primary) 100%);
    box-shadow: 0 0 8px rgba(74, 143, 231, 0.4);
}

.site-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.site-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.site-logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

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

.main-nav {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav__link {
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-nav__link:hover {
    background-color: var(--color-background-light);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--color-background-light);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "›";
    margin-left: var(--spacing-xs);
    color: var(--color-text-light);
}

.breadcrumbs__link {
    color: var(--color-text-light);
}

.breadcrumbs__link:hover {
    color: var(--color-primary);
}

.breadcrumbs__current {
    color: var(--color-text);
    font-weight: 600;
}

/* Main Content */
.main-content {
    min-height: 60vh;
}

/* Article - Enhanced */
.article {
    padding: var(--spacing-xl) 0;
}

.article__header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.article__tags {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.article__badge,
.article__reading-time {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--tab-active-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.article__badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.article__title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.article__meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
    align-items: center;
}

.article__date,
.article__publish-date,
.article__author,
.article__country {
    display: flex;
    align-items: center;
}

/* Article Content - Enhanced */
.article__content {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Enhanced Typography */
.article__content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

.article__content h2 {
    font-size: 2rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-top: 2px solid var(--border-color);
    color: var(--heading-color);
    position: relative;
}

.article__content h2::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-accent));
}

.article__content h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

.article__content h4 {
    font-size: 1.25rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

/* Paragraphs */
.article__content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.article__content p strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* Lists with Enhanced Styling */
.article__content ul,
.article__content ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article__content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.article__content .checkbox-placeholder {
    display: inline-block;
    white-space: pre;
    font-family: 'Courier New', Courier, monospace;
    margin-right: 0.5rem;
}

.article__content ul li {
    position: relative;
    padding-left: var(--spacing-xs);
}

.article__content ul li::marker {
    color: var(--accent-color);
}

/* Links */
.article__content a {
    color: var(--accent-color);
    text-decoration: underline;
    word-wrap: break-word;
    transition: var(--transition);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article__content a:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

/* Inline Code */
.article__content code {
    background-color: var(--bg-color);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875em;
    border: 1px solid var(--border-color);
}

/* Code Blocks */
.article__content pre {
    background-color: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.article__content pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--text-color);
}

/* Enhanced Blockquotes */
.article__content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: var(--spacing-md);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    background: var(--bg-color);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: normal;
    position: relative;
}

.article__content blockquote p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

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

/* Horizontal Rules */
.article__content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: var(--spacing-xl) 0;
    position: relative;
}

.article__content hr::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-accent));
}

/* Callout Boxes & Info Cards */
.callout {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-left: 4px solid var(--accent-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: var(--spacing-lg) 0;
}

.callout-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.08) 100%);
    border-left-color: #3B82F6;
}

.callout-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border-left-color: #10B981;
}

.callout-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-left-color: #F59E0B;
}

.callout-danger {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.08) 0%, rgba(100, 116, 139, 0.08) 100%);
    border-left-color: #94A3B8;
}

.callout h3,
.callout h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

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

/* Info Cards - For Key Points */
.info-card {
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.info-card h3,
.info-card h4 {
    margin-top: 0;
    color: var(--accent-color);
}

/* Checklist Styles */
.checklist {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-accent));
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Step-by-Step Process */
.step-process {
    counter-reset: step-counter;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.step-process li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: var(--spacing-lg);
    counter-increment: step-counter;
}

.step-process li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.step-process li strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--heading-color);
}

/* Key Takeaways Box */
.key-takeaways {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border: 2px solid #10B981;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.key-takeaways h3 {
    color: #10B981;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.key-takeaways ul {
    margin-bottom: 0;
}

.key-takeaways li::marker {
    color: #10B981;
}

/* Pro Tips */
.pro-tip {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-left: 4px solid #8B5CF6;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.pro-tip::before {
    content: '💡';
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
}

.pro-tip strong {
    color: #8B5CF6;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-left: 4px solid #F59E0B;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.warning-box::before {
    content: '⚠️';
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
}

.warning-box strong {
    color: #F59E0B;
}

/* Article Footer - Enhanced */
.article__footer {
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
}

/* PDF Download Button */
.article__pdf-download {
    margin: var(--spacing-lg) 0;
    display: flex;
    justify-content: center;
}

.article__pdf-download--top {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.article__pdf-download--bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #64748B 0%, #475569 100%);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.pdf-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3);
    color: white;
}

.pdf-download-btn:focus {
    outline: 2px solid rgba(220, 38, 38, 0.5);
    outline-offset: 2px;
    color: white;
}

/* Ensure button text stays white in dark theme */
[data-theme="dark"] .pdf-download-btn {
    color: white;
}

[data-theme="dark"] .pdf-download-btn:hover,
[data-theme="dark"] .pdf-download-btn:active,
[data-theme="dark"] .pdf-download-btn:focus {
    color: white;
}

.pdf-download-btn__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.pdf-download-btn__text {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .pdf-download-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem;
    }
}

/* USP Intro Card (above article content) */
.article__usp-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.usp-intro-card {
    background:
        linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(147,51,234,0.06) 100%),
        var(--container-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.usp-intro-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 32px rgba(59,130,246,0.18);
}

.usp-intro-card__lead {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 650;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.usp-intro-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-sm) 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm) var(--spacing-lg);
}

.usp-intro-card__list li {
    position: relative;
    padding-left: 2.25rem;
    color: var(--text-color);
    line-height: 1.5;
}

.usp-intro-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-accent));
    box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}

.usp-intro-card__cta {
    margin-top: var(--spacing-sm);
}

.btn--link {
    background: transparent;
    color: var(--color-primary);
    padding: 0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.btn--link:hover {
    color: var(--color-primary-dark);
    text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
    .usp-intro-card__list {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* Related Articles Section */
.related-articles {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
}

.related-articles__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.related-articles__description {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.related-article-card {
    background: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    border-color: var(--accent-color);
}

.related-article-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-article-card__content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-article-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-xs);
}

.related-article-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.related-article-card__category--inspection {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border-color: #2563EB;
}

.related-article-card__category--buying {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.related-article-card__category--renting {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: #D97706;
}

.related-article-card__category--investing {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border-color: #7C3AED;
}

.related-article-card__category--general {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
    border-color: #4B5563;
}

.related-article-card__category--tax {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: white;
    border-color: #DB2777;
}

.related-article-card__category--investment {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
    border-color: #0D9488;
}

.related-article-card__reading-time {
    color: var(--color-text-light);
    font-size: 0.85rem;
    white-space: nowrap;
}

.related-article-card__title {
    font-size: 1.125rem;
    font-weight: 650;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-card__description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.related-article-card__date {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .related-articles__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .related-articles__title {
        font-size: 1.5rem;
    }
}

/* AI CTA Card in Articles */
.article__ai-cta {
    margin-bottom: var(--spacing-xl);
}

.ai-cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all 0.3s ease;
}

.ai-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

.ai-cta-card__content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

.ai-cta-card__content p {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .article__ai-cta {
        padding-bottom: var(--spacing-lg);
    }

    .ai-cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
}

/* Article Navigation (Previous/Next) */
.article-navigation {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.article-navigation__link {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    background: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 120px;
}

.article-navigation__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    border-color: var(--accent-color);
}

.article-navigation__link--prev {
    text-align: left;
}

.article-navigation__link--next {
    text-align: right;
}

.article-navigation__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-navigation__link--next .article-navigation__label {
    justify-content: flex-end;
}

.article-navigation__icon {
    flex-shrink: 0;
}

.article-navigation__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-navigation__date {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: auto;
}

.article-navigation__spacer {
    /* Empty space when prev or next doesn't exist */
}

/* Dark theme support for article navigation */
[data-theme="dark"] .article-navigation {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .article-navigation__link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .article-navigation__link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

@media (max-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .article-navigation__link {
        min-height: auto;
    }

    /* On mobile, always align text to left for better readability */
    .article-navigation__link--next {
        text-align: left;
    }

    .article-navigation__link--next .article-navigation__label {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .article-navigation__title {
        font-size: 1rem;
    }
}

/* Hero Section - Enhanced */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero__badge {
    margin-bottom: var(--spacing-md);
    animation: slideDown 0.6s ease-out;
}

.hero__title {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    animation: fadeIn 0.8s ease-out;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

.hero__cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.hero__trust {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: var(--spacing-md);
    color: white;
}

/* Featured Articles */
.featured-articles {
    padding: var(--spacing-xl) 0;
}

/* Section Introduction Block */
.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-xl);
    padding-bottom: var(--spacing-md);
}

.section__title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

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

.section__cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.article-card {
    background-color: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
}

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

.article-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.article-card__title a {
    color: var(--color-text);
}

.article-card__title a:hover {
    color: var(--color-primary);
}

.article-card__excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.article-card__link {
    font-weight: 600;
}

/* Lazy Loading States */
.article-card--lazy-loading {
    opacity: 0;
    transform: translateY(20px);
}

.article-card--lazy-loaded {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .article-card--lazy-loading,
    .article-card--lazy-loaded {
        animation: none;
        transform: none;
        transition: opacity 0.3s ease;
    }
}

/* Features */
.features {
    background-color: var(--color-background-light);
    padding: var(--spacing-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature h3 {
    margin-bottom: var(--spacing-sm);
}

.feature p {
    color: var(--color-text-light);
}

/* Articles Listing */
.articles-listing {
    padding: 0.5rem 0 var(--spacing-md);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.page-header__title {
    margin-bottom: var(--spacing-sm);
}

.page-header__subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.articles-list {
    max-width: 900px;
    margin: 0 auto;
}

.article-list-item {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-item__title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.article-list-item__title a {
    color: var(--color-text);
}

.article-list-item__title a:hover {
    color: var(--color-primary);
}

.article-list-item__excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.article-list-item__meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.article-list-item__link {
    font-weight: 600;
}

/* Site Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
    /* border-top removed to prevent overlap with gradient bar */
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-accent));
}

.site-footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.site-footer__section {
    text-align: center;
}

.site-footer__section h2,
.site-footer__section h3,
.site-footer__section h4,
.site-footer__heading {
    color: var(--heading-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 600;
}

.site-footer__section p {
    color: var(--text-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

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

/* Footer Region Selector Dropdown */
.footer-region-selector {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 280px;
}

.region-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.region-dropdown:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.region-dropdown:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.region-dropdown option {
    padding: 0.5rem;
    font-size: 0.95rem;
}

.region-dropdown__icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.footer-region-selector:hover .region-dropdown__icon {
    color: var(--color-primary);
}

.site-footer__bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.site-footer__disclaimer {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-text-light);
}

.no-content {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--color-text-light);
}

/* Tabs (Global Homepage) */
.tabs {
    margin-top: var(--spacing-lg);
}

.tabs__list {
    display: flex;
    gap: var(--spacing-xs);
    border-bottom: 2px solid var(--color-border);
    flex-wrap: wrap;
}

.tabs__button {
    appearance: none;
    border: 1px solid var(--color-border);
    border-bottom: none;
    background: var(--container-bg);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.tabs__button:hover {
    background: var(--tab-active-bg);
}

.tabs__button.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--tab-active-bg);
}

.tabs__flag {
    margin-right: 6px;
}

.tabs__panel {
    display: none;
    padding-top: var(--spacing-lg);
}

.tabs__panel.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero__title { font-size: 2rem; }
    .article__title { font-size: 2rem; }

    .article {
        padding-top: var(--spacing-sm);
    }

    .article__tags {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
    }

    .article__badge,
    .article__reading-time {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .country-switcher {
        padding: 0.5rem 0;
    }

    .country-switcher .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .country-switcher__label {
        display: none;
    }

    /* Mobile: Smaller, compact header */
    .site-header {
        padding: 0.5rem 0;
    }

    .site-header__content {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .site-logo__text {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .main-nav {
        display: flex;
        gap: 0.375rem;
    }

    .main-nav__link {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem;
    }

    /* Mobile: Country switcher - flags only */
    .country-switcher__name {
        display: none;
    }

    .country-switcher__flag {
        font-size: 0.875rem;
    }

    .country-switcher__item {
        padding: 0.375rem;
        min-width: 42px;
        min-height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Active state - dark blue matching theme */
    .country-switcher__item.active {
        background-color: transparent;
        border-color: #1E40AF;
        box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
    }

    [data-theme="dark"] .country-switcher__item.active {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        box-shadow: 0 0 0 2px rgba(74, 143, 231, 0.25);
        color: #FFFFFF;
    }

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

/* Dark Mode Toggle - static (no floating) */
.theme-toggle {
    position: static;
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 20px; /* Increased from 10px 18px for better touch target */
    min-width: 44px; /* WCAG 2.1 minimum touch target size */
    min-height: 44px; /* WCAG 2.1 minimum touch target size */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 22px; /* Increased from 20px for better visibility */
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    color: var(--text-color);
    margin: 12px 12px 0 12px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.theme-toggle:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--color-text);
    transition: transform 0.3s ease;
    position: absolute;
}

.theme-toggle-icon--moon {
    display: block;
}

.theme-toggle-icon--sun {
    display: none;
}

/* Show sun icon in dark mode, hide moon */
[data-theme="dark"] .theme-toggle-icon--moon {
    display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun {
    display: block;
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

.theme-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Article Content Styles */
.article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: var(--spacing-md) 0;
}

.article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.article__content th,
.article__content td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article__content th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--heading-color);
}

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

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
}

.badge-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--gradient-accent));
    color: white;
    border-color: var(--accent-color);
}

.badge-success {
    background: linear-gradient(135deg, #10B981, #14B8A6);
    color: white;
    border-color: #10B981;
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B, #94A3B8);
    color: white;
    border-color: #F59E0B;
}

/* ===========================================
   Legal Notice Component
   Matching property-ai-checker.html styling
   ============================================ */

.legal-notice-container {
    margin: 0 0 24px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.legal-notice-collapsible {
    margin: 0;
}

.legal-notice-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    list-style: none;
}

.legal-notice-header::-webkit-details-marker {
    display: none;
}

.legal-notice-header:hover {
    background: #f8f9fa;
}

.legal-notice-collapsible[open] .legal-notice-header {
    border-bottom-color: #dee2e6;
    background: #e9ecef;
}

.legal-notice-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.legal-notice-toggle {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s;
    margin-left: 12px;
}

.legal-notice-collapsible[open] .legal-notice-toggle {
    transform: rotate(180deg);
}

.legal-notice-content {
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #495057;
    background: #ffffff;
}

.legal-notice-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: #212529;
}

.legal-notice-content h3:first-child {
    margin-top: 0;
}

.legal-notice-content ol,
.legal-notice-content ul {
    margin: 8px 0;
    padding-left: 24px;
}

.legal-notice-content li {
    margin: 6px 0;
}

.legal-notice-content p {
    margin: 8px 0;
}

.legal-notice-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.legal-notice-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-notice-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.legal-notice-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.legal-notice-link-icon {
    transition: transform 0.2s ease;
    font-size: 14px;
}

.legal-notice-link:hover .legal-notice-link-icon {
    transform: translateX(2px);
}

/* Dark mode for legal notice - Enhanced Contrast */
[data-theme="dark"] .legal-notice-container {
    background: var(--container-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .legal-notice-header {
    background: rgba(21, 27, 43, 0.8);
}

[data-theme="dark"] .legal-notice-header:hover {
    background: rgba(42, 52, 71, 0.6);
}

[data-theme="dark"] .legal-notice-collapsible[open] .legal-notice-header {
    background: rgba(42, 52, 71, 0.6);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .legal-notice-title {
    color: var(--heading-color);
}

[data-theme="dark"] .legal-notice-toggle {
    color: var(--color-text-light);
}

[data-theme="dark"] .legal-notice-content {
    background: var(--container-bg);
    color: var(--text-color);
}

[data-theme="dark"] .legal-notice-content h3 {
    color: var(--heading-color);
}

[data-theme="dark"] .legal-notice-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .legal-notice-link {
    color: var(--accent-color);
}

[data-theme="dark"] .legal-notice-link:hover {
    color: var(--color-primary-dark);
}

/* Dark mode - Related Article Category Badges */
[data-theme="dark"] .related-article-card__category--inspection {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    color: white !important;
    border-color: #2563EB !important;
}

[data-theme="dark"] .related-article-card__category--buying {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .related-article-card__category--renting {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white !important;
    border-color: #D97706 !important;
}

[data-theme="dark"] .related-article-card__category--investing {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    color: white !important;
    border-color: #7C3AED !important;
}

[data-theme="dark"] .related-article-card__category--general {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%) !important;
    color: white !important;
    border-color: #4B5563 !important;
}

[data-theme="dark"] .related-article-card__category--tax {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%) !important;
    color: white !important;
    border-color: #DB2777 !important;
}

[data-theme="dark"] .related-article-card__category--investment {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
    color: white !important;
    border-color: #0D9488 !important;
}

/* Dark mode - Article Index Category Badges */
[data-theme="dark"] .category-badge--inspection {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    color: white !important;
    border-color: #2563EB !important;
}

[data-theme="dark"] .category-badge--buying {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border-color: #059669 !important;
}

[data-theme="dark"] .category-badge--renting {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white !important;
    border-color: #D97706 !important;
}

[data-theme="dark"] .category-badge--investing {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    color: white !important;
    border-color: #7C3AED !important;
}

[data-theme="dark"] .category-badge--general {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%) !important;
    color: white !important;
    border-color: #4B5563 !important;
}

[data-theme="dark"] .category-badge--tax {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%) !important;
    color: white !important;
    border-color: #DB2777 !important;
}

[data-theme="dark"] .category-badge--investment {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
    color: white !important;
    border-color: #0D9488 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-notice-header {
        padding: 14px 16px;
    }

    .legal-notice-title {
        font-size: 13px;
    }

    .legal-notice-content {
        padding: 16px;
        font-size: 12px;
    }

    .legal-notice-links {
        flex-direction: column;
        gap: 12px;
    }

    .legal-notice-link {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .legal-notice-container {
        border: 1px solid #ccc;
    }

    .legal-notice-toggle {
        display: none;
    }
}

/* ===========================================
   New Homepage Sections
   ============================================ */

/* AI Analyzer Promo */
.ai-analyzer-promo {
    padding: var(--spacing-xl) 0;
    background: var(--bg-color);
}

.promo-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
}

.promo-card__icon {
    font-size: 5rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

/* Duplicate @keyframes float removed */

.promo-card__content {
    flex: 1;
}

.promo-card__title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--heading-color);
}

.promo-card__description {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.promo-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.feature-pill {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Enhanced Features Grid */
.features-grid--enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature--enhanced {
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    text-align: left;
}

.feature--enhanced:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.feature__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature--enhanced h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

.feature--enhanced p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta-box {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box__title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-box__text {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.6;
}

.cta-box__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box__buttons .btn {
    min-width: 200px;
}

.cta-box__buttons .btn--secondary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.cta-box__buttons .btn--secondary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--color-primary-dark);
}

/* Legal Notice Footer Version */
.legal-notice-section--footer {
    padding-top: 0;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        gap: var(--spacing-md);
    }

    .stat__number {
        font-size: 2rem;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
    }

    .promo-card__icon {
        font-size: 4rem;
    }

    .promo-card__title {
        font-size: 1.5rem;
    }

    .promo-card__description {
        font-size: 1rem;
    }

    .feature__icon {
        font-size: 2.5rem;
    }

    .cta-box__title {
        font-size: 1.75rem;
    }

    .cta-box__text {
        font-size: 1.05rem;
    }

    .cta-box__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-box__buttons .btn {
        width: 100%;
    }
}

/* ===========================================
   Regional Tabs Component
   ============================================ */

.regional-articles {
    padding: var(--spacing-xl) 0;
    background: var(--bg-color);
}

.section__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: -1rem;
    margin-bottom: var(--spacing-xl);
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-bottom: 2px solid var(--border-color);
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 1rem 1.75rem; /* Increased horizontal padding from 1.5rem for better touch target */
    min-height: 44px; /* WCAG 2.1 minimum touch target size */
    font-size: 1rem;
    font-weight: 500;
    color: var(--heading-color); /* Changed from tab-inactive for better contrast */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--accent-color);
    background: var(--tab-active-bg);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: var(--tab-active-bg);
    font-weight: 600; /* Added for better visual distinction */
}

.tab-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.tab-flag {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tab-button:hover .tab-flag,
.tab-button.active .tab-flag {
    transform: scale(1.2);
}

.tab-name {
    font-family: var(--font-sans);
}

/* Tab Panels */
.tab-panels {
    position: relative;
}

.tab-panel {
    animation: fadeIn 0.3s ease-in;
}

.tab-panel[hidden] {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Regional Article Cards */
.article-card--regional {
    position: relative;
    padding-left: 4rem;
}

.article-card__number {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.article-card__date {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* Compact Hero for Main Domain */
.hero--compact {
    padding: var(--spacing-xl) 0;
}

.hero--compact .hero__title {
    font-size: 2.5rem;
}

/* Features 4-column Grid */
.features--compact {
    padding: var(--spacing-xl) 0;
    background: var(--container-bg);
}

.features-grid--4col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.features-grid--4col .feature {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.features-grid--4col .feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.features-grid--4col .feature__icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.features-grid--4col h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

.features-grid--4col p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design for Tabs */
@media (max-width: 968px) {
    .tabs {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero--compact .hero__title {
        font-size: 1.75rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-flag {
        font-size: 1.25rem;
    }

    .article-card--regional {
        padding-left: 0;
        padding-top: 3rem;
    }

    .article-card__number {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }

    .features-grid--4col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tabs {
        gap: 0.25rem;
    }

    .tab-button {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 0.5rem;
    }

    .tab-name {
        display: none;
    }

    .tab-flag {
        font-size: 1.75rem;
    }
}

/* ============================================
   Enhanced Article Cards
   ============================================ */

/* Equal height grid for article cards */
.articles-grid--equal-height {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* Enhanced article card layout */
.article-card--enhanced {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.article-card--enhanced .article-card__title {
    margin-bottom: var(--spacing-sm);
    flex-shrink: 0;
}

.article-card--enhanced .article-card__excerpt {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    /* Fallback for browsers without -webkit-line-clamp */
    max-height: calc(1.6em * 3); /* 3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-card--enhanced .article-card__meta {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.article-card--enhanced .article-card__link {
    margin-top: var(--spacing-md);
    flex-shrink: 0;
}

/* Category badges */
.article-card__category {
    margin-bottom: var(--spacing-sm);
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    background: var(--color-background-light);
    color: var(--color-text);
    border: 1px solid var(--border-color);
}

.category-badge--inspection {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.category-badge--buying {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.category-badge--renting {
    background: #F59E0B;
    color: white;
    border-color: #F59E0B;
}

.category-badge--investing {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

.category-badge--general {
    background: #6B7280;
    color: white;
    border-color: #6B7280;
}

.category-badge--tax {
    background: #EC4899;
    color: white;
    border-color: #EC4899;
}

.category-badge--investment {
    background: #14B8A6;
    color: white;
    border-color: #14B8A6;
}

/* Article metadata styling */
.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Read more button styling */
.btn--read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.btn--read-more:hover {
    background: var(--color-primary);
    color: white;
    transform: translateX(4px);
}

/* ============================================
   Category Filters
   ============================================ */

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--color-background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.category-filter {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--container-bg);
    color: var(--color-text);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-filter:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.category-filter.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-color: var(--color-primary);
}

.category-filter.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* No results message */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* ============================================
   Responsive Enhancements
   ============================================ */

@media (max-width: 768px) {
    .articles-grid--equal-height {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .category-filters {
        justify-content: center;
        padding: var(--spacing-sm);
    }

    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .article-card--enhanced {
        min-height: auto;
        padding: var(--spacing-lg);
    }

    .article-card {
        padding: var(--spacing-lg);
    }

    .article-card--enhanced .article-card__excerpt {
        -webkit-line-clamp: 2;
    }

    .article-card__category {
        margin-bottom: var(--spacing-sm);
    }

    .article-card__title {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }

    .article-card__meta {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    /* Enhanced mobile padding for better touch targets and readability */

    /* Container mobile padding */
    .container {
        padding: 0 1rem;
    }

    /* Section spacing */
    .featured-articles,
    .articles-listing {
        padding: var(--spacing-lg) 0;
    }

    /* Article cards */
    .article-card {
        padding: 1.5rem;
        margin-bottom: var(--spacing-sm);
        border-radius: 0;
    }

    .article-card--enhanced {
        padding: 1.5rem;
        min-height: auto;
    }

    .article-card__category {
        margin-bottom: 0.75rem;
    }

    .category-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.6875rem;
        border-radius: 0;
    }

    .article-card__title {
        font-size: 1.0625rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .article-card__title a {
        display: block;
        padding: 0.25rem 0;
    }

    .article-card__excerpt {
        font-size: 0.9375rem;
        line-height: 1.55;
        margin-bottom: 0.875rem;
        padding: 0 0.125rem;
    }

    .article-card__meta {
        font-size: 0.8125rem;
        gap: 0.625rem;
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }

    .meta-item {
        padding: 0.125rem 0;
    }

    .meta-icon {
        width: 12px;
        height: 12px;
    }

    .btn--read-more {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        margin-top: 0.875rem;
        font-size: 0.9375rem;
        min-height: 44px; /* Minimum touch target size */
    }

    /* Category filters mobile optimization */
    .category-filters {
        padding: 0.75rem;
        gap: 0.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .category-filter {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 40px; /* Better touch target */
    }

    /* Articles grid spacing */
    .articles-grid--equal-height {
        gap: 1rem;
        padding: 0;
    }

    .articles-grid {
        gap: 1rem;
    }

    /* Regional cards mobile adjustments */
    .article-card--regional {
        padding-left: 1.25rem;
        padding-top: 3.5rem;
    }

    .article-card__number {
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    /* Section titles */
    .section__title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
        margin-bottom: var(--spacing-lg);
    }

    /* No results message */
    .no-results {
        padding: var(--spacing-lg);
        font-size: 1rem;
    }
}

/* Mobile: Adjust body padding for smaller FAB button */
/* Mobile FAB: 56px tall + 20px bottom = 76px minimum, using 80px for buffer */
@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }
}

@media print {
    .theme-toggle,
    .country-switcher,
    .site-header,
    .breadcrumbs,
    .article__cta,
    .site-footer,
    .ai-analyzer-promo,
    .cta-section,
    .tabs,
    .category-filters {
        display: none;
    }

    .article__content {
        max-width: 100%;
    }

    .tab-panel[hidden] {
        display: block !important;
    }
}
