/**
 * Main Stylesheet for Tokutei Theme - Vibrant Light Version
 *
 * @package Tokutei
 * @since 1.0.3
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Colors - Softer coral pink theme (#ff6b6b and #ee5a6f) */
    --color-primary: #ff6b6b;        /* Soft coral pink - main color */
    --color-primary-dark: #ee5a6f;   /* Deeper pink - darker variant */
    --color-primary-darker: #d94c5f; /* Even deeper - darkest variant */
    --color-primary-light: #ff8787;  /* Light coral - lighter variant */
    --color-primary-lighter: #ffe0e0; /* Very light pink tint */

    --color-text-primary: #2c3e50;
    --color-text-secondary: #718096;
    --color-text-light: #4a5568;

    --color-background: #ffffff;
    --color-background-soft: #f7fafc;
    --color-background-accent: #fff5f5;

    --color-border: #e2e8f0;
    --color-border-light: #ffe0e0;

    /* Gradients - Softer coral pink gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --gradient-primary-extended: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #d94c5f 100%);
    --gradient-hero: linear-gradient(135deg, #fee2e2 0%, #fecaca 50%, #fca5a5 100%);

    /* Spacing System */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 4rem;     /* 64px */
    --spacing-xl: 6rem;     /* 96px */

    /* Typography */
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 15px rgba(220, 38, 38, 0.3);
    --shadow-primary-lg: 0 6px 20px rgba(220, 38, 38, 0.4);

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 25px;
    --radius-full: 50%;
}

/* ==========================================================================
   Japanese Background Pattern - Light & Vibrant
   ========================================================================== */

html,
body {
    position: relative;
    background: #ffffff;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* EXCEPTION: Allow sticky positioning on exam pages */
body.page-exam-special-overflow {
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Only lock scroll when mobile menu is active on mobile screens */
@media (max-width: 768px) {
    body.mobile-menu-active {
        overflow: hidden !important;
    }
}

/* FORCE: Ensure no element can lock the scroll */
html[style*="overflow: hidden"],
body[style*="overflow: hidden"] {
    overflow-y: auto !important;
}

/* Ensure main containers allow content to flow */
#page,
.site,
#content,
.site-content,
.content-wrapper,
#primary,
.content-area,
#main,
.site-main {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* NUCLEAR OPTION: Force scroll on body at highest specificity */
body.single,
body.single-post,
body.page,
body.archive,
body.blog {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
}

/* EXCEPTION: Exam page needs visible overflow for sticky sidebar */
body.page-exam-special-overflow,
body.page-exam-special-overflow.page,
body.page-exam-special-overflow.single,
body.page-exam-special-overflow.page-template {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 228, 225, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,250,250,1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Header Styles - Clean White with Accent
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 2px solid var(--color-primary);
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo/Branding */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img,
.default-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-logo-default {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.site-logo-default a {
    display: flex;
    align-items: center;
}

/* Navigation - Clean & Minimal */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.primary-menu-wrapper {
    flex: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    justify-content: center;
}

.primary-menu .menu-item {
    position: relative;
}

.primary-menu .menu-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
}

.primary-menu .menu-item a:hover {
    background: var(--color-primary-lighter);
    color: var(--color-primary);
}

.primary-menu .menu-item.current-menu-item a,
.primary-menu .menu-item.current_page_item a,
.primary-menu .menu-item.current-post-ancestor a,
.primary-menu .menu-item.active a {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Prevent home menu item from being active on blog page */
body.home .primary-menu .menu-item:not(.current_page_item) a,
body.blog .primary-menu .menu-item:not(.active) a {
    background: transparent;
    color: #2c3e50;
    box-shadow: none;
}

.menu-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.menu-text {
    flex-shrink: 0;
}

/* Mobile Menu Toggle - Hidden by default, shown only on mobile via responsive.css */
.menu-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.5rem;
}

.menu-toggle .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #2c3e50;
    position: relative;
    transition: background 0.3s ease;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    transition: transform 0.3s ease;
}

.menu-toggle .menu-icon::before {
    transform: translateY(-8px);
}

.menu-toggle .menu-icon::after {
    transform: translateY(8px);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
}

/* Header Actions (Login/User) */
.header-actions {
    flex-shrink: 0;
}

.login-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff5f5;
    border-radius: 25px;
    text-decoration: none;
    color: #2c3e50;
    transition: background 0.3s ease;
    border: 1px solid #ffe0e0;
    position: relative;
}

.user-link:hover {
    background: #ffebeb;
}

.user-link img {
    border-radius: 50%;
    border: 2px solid #ff6b6b;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* User icon indicator - visible on mobile for better recognition */
.user-link::after {
    content: '👤';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-link {
    padding: 0.5rem 1rem;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* Enhanced User menu dropdown */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    display: none;
    z-index: 1000;
    border: 2px solid #ffe0e0;
    overflow: hidden;
}

.user-menu-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

/* User info header */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-bottom: 2px solid #ffc9c9;
}

.user-info-header img {
    border-radius: 50%;
    border: 3px solid #ff6b6b;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.user-display-name {
    font-size: 1.125rem;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-username {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* User info body */
.user-info-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 8px;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9375rem;
    color: #2c3e50;
    font-weight: 500;
    word-wrap: break-word;
}

.info-value.no-groups {
    color: #95a5a6;
    font-style: italic;
    font-weight: 400;
}

/* User groups */
.user-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.group-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* User menu actions */
.user-menu-actions {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #f0f0f0;
}

.user-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.user-action-link:last-child {
    border-bottom: none;
}

.user-action-link:hover {
    background: #fff5f5;
}

.user-action-link.logout:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #ff6b6b;
}

.action-icon {
    font-size: 1.125rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Ad Banner Section - Soft Accent
   ========================================================================== */

.ad-banner-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fffbf0 100%);
    border-top: 1px solid #ffe0e0;
    border-bottom: 1px solid #ffe0e0;
    padding: 0.75rem 0;
}

.ad-banner-widget {
    text-align: center;
}

.ad-label {
    display: inline-block;
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Hero Section - Vibrant Light Japanese Theme
   ========================================================================== */

.hero-section {
    background: var(--gradient-hero);
    color: var(--color-text-primary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,182,193,0.3) 0%, transparent 70%);
    border-radius: var(--radius-full);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,228,225,0.3) 0%, transparent 70%);
    border-radius: var(--radius-full);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
    }
}

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

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary-extended);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: none;
    display: inline-block;
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons - Vibrant & Modern
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-background);
    box-shadow: var(--shadow-primary);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.2);
}

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

.btn-secondary:hover {
    background: var(--color-primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-size-lg);
}

/* ==========================================================================
   Sections - Clean White Background with Accents
   ========================================================================== */

/*
 * Vertical Rhythm System:
 * - Hero section: var(--spacing-xl) = 6rem (primary emphasis)
 * - CTA section: 5rem (secondary emphasis)
 * - Regular sections: var(--spacing-lg) = 4rem (standard)
 * This creates clear visual hierarchy and consistent spacing
 */

section {
    padding: var(--spacing-lg) 0;
    background: var(--color-background);
}

.section-title {
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 800;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-all-link {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #ee5a6f;
}

/* ==========================================================================
   Features Grid - Colorful Cards
   ========================================================================== */

.features-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover::before {
    height: 6px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter var(--transition-base);
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.4));
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.feature-description {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* ==========================================================================
   Posts Grid - Clean Card Design
   ========================================================================== */

.latest-posts-section {
    background: #ffffff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f7fafc;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.post-content {
    padding: 1.5rem 2rem;
}

/* Post card in archive/blog */
.post-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

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

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ff6b6b;
}

.post-excerpt {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

.read-more {
    color: #ff6b6b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ee5a6f;
    text-decoration: underline;
}

/* ==========================================================================
   CTA Section - Vibrant & Inviting
   ========================================================================== */

.cta-section {
    background: #ffffff;
    color: #2c3e50;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #ff6b6b;
    border-bottom: 4px solid #ff6b6b;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.15),
                0 -10px 40px rgba(220, 38, 38, 0.15);
    margin: 4rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #718096;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Footer - Modern & Clean Design
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--color-text-primary);
    border-top: 4px solid var(--gradient-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-widgets {
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid var(--color-border);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.footer-main {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-heading {
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-details strong {
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-details a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ff6b6b;
}

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

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ff6b6b;
}

.footer-tagline {
    font-style: italic;
    color: #718096;
}

.footer-bottom {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: var(--spacing-md) 0;
    border-top: 2px solid rgba(220, 38, 38, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.copyright {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.copyright p {
    margin: 0;
    font-size: 0.9375rem;
    color: #ffffff;
    opacity: 0.9;
}

.copyright strong {
    color: var(--color-primary-light);
    font-weight: 700;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #ffffff;
}

.footer-credits {
    opacity: 0.85;
}

.footer-credits p {
    color: #ffffff;
}

.footer-credits a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.footer-credits a:hover {
    color: #ffffff;
    border-bottom-color: var(--color-primary-light);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================================================
   Container & Content Area - Clean White
   ========================================================================== */

/* Container for content width control */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Two-column layout only when sidebar exists */
/* IMPORTANT: Only apply flex to the main content wrapper, not all .site-container */
.has-sidebar .content-wrapper > .site-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.content-wrapper {
    background: #ffffff;
    min-height: 70vh;
}

.content-area {
    flex: 1 1 70%;
    max-width: 100%;
    min-width: 0;
}

/* Sidebar */
.widget-area.sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 100px;
}

.widget-area .widget {
    background: #f7fafc;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.widget-area .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

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

.widget-area ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.widget-area ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-area ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.widget-area ul li a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

.site-main {
    padding: 40px 0;
}

/* Entry content spacing - prevent text from touching edges */
.entry-content {
    padding: 0 1rem;
}

.entry-content > * {
    max-width: 100%;
}

/* Proper spacing for content elements */
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content pre,
.entry-content table {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0;
}

/* Lists proper indentation */
.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Images don't exceed content width */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* Tables responsive */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content td,
.entry-content th {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

article {
    margin-bottom: 2rem;
}

.entry-title {
    color: #2c3e50;
    font-weight: 700;
}

.entry-content {
    color: #2c3e50;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #2c3e50;
    font-weight: 700;
}

.entry-content a {
    color: #ff6b6b;
    text-decoration: none;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #ee5a6f;
    border-bottom-color: #ee5a6f;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ffe0e0;
}

.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 800;
}

.archive-description {
    color: #718096;
    margin-top: 1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #ff6b6b;
    color: #ffffff;
    border-color: #ff6b6b;
}

.pagination .current {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border-color: #ff6b6b;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #fff5f5;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #ff6b6b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Forms - Clean Light Style
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   Accessibility - Enhanced Focus Visible States
   ========================================================================== */

/* Focus visible for all interactive elements - enhanced with glow */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15);
}

/* Primary menu links - enhanced */
.primary-menu .menu-item a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    background: var(--color-primary-lighter);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.1);
}

/* Buttons - enhanced with stronger glow */
.btn:focus-visible,
.login-button:focus-visible,
.logout-link:focus-visible {
    outline: 3px solid var(--color-primary-darker);
    outline-offset: 3px;
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.2);
}

/* Primary button specific */
.btn-primary:focus-visible {
    outline: 3px solid var(--color-background);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.3);
}

/* Footer links */
.footer-menu a:focus-visible,
.footer-credits a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* User menu */
.user-link:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15);
}

/* Feature and post cards - enhanced */
.feature-link:focus-visible,
.read-more:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    text-decoration: underline;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Back to top button - enhanced */
.back-to-top:focus-visible {
    outline: 3px solid var(--color-background);
    outline-offset: 3px;
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   WordPress Core - Edit Links
   ========================================================================== */

/* Style edit links properly */
.post-edit-link,
.edit-link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #2c3e50;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.post-edit-link:hover,
.edit-link a:hover {
    background: #ff6b6b;
    color: #ffffff;
}

/* Hide edit links for non-logged-in users on frontend */
body:not(.logged-in) .post-edit-link,
body:not(.logged-in) .edit-link {
    display: none;
}

/* ==========================================================================
   Cookie Notice Styling
   ========================================================================== */

#cookie-notice,
.cookie-notice-container,
#cookie-law-info-bar,
.cli-bar-container {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: #ffffff !important;
    padding: 1.5rem !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-align: center !important;
}

/* Force flexbox center layout */
#cookie-notice,
.cookie-notice-container,
#cookie-law-info-bar,
.cli-bar-container,
.cn-body,
.cli-bar-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
}

/* Reset all children margins */
#cookie-notice > *,
.cookie-notice-container > *,
#cookie-law-info-bar > *,
.cli-bar-container > * {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Text container */
#cookie-notice .cn-text-container,
.cookie-notice-container .cn-text,
#cookie-law-info-bar .cli-bar-message,
.cli-bar-message span {
    color: #ffffff !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Buttons container - all possible selectors */
#cookie-notice .cn-buttons-container,
.cookie-notice-container .cn-buttons,
#cookie-notice form,
#cookie-law-info-bar .cli-bar-btn_container,
.cli-bar-btn_container,
.cn-buttons,
.cookie-notice-container > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Universal fix for any cookie notice */
[id*="cookie"] {
    text-align: center !important;
}

[id*="cookie"] > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

[class*="cookie"] {
    text-align: center !important;
}

[class*="cookie"] > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

#cookie-notice a,
.cookie-notice-container a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

#cookie-notice a:hover,
.cookie-notice-container a:hover {
    color: #fff5f5 !important;
}

#cookie-notice .cn-button,
.cookie-notice-container button,
.cookie-notice-container .cn-button {
    background: #ffffff !important;
    color: #ff6b6b !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

#cookie-notice .cn-button:hover,
.cookie-notice-container button:hover,
.cookie-notice-container .cn-button:hover {
    background: #fff5f5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-notice,
    .cookie-notice-container {
        padding: 1rem !important;
    }

    #cookie-notice .cn-text-container,
    .cookie-notice-container .cn-text {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
    }

    #cookie-notice .cn-button,
    .cookie-notice-container button {
        width: 100% !important;
        padding: 0.875rem !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .site-header,
    .site-footer,
    .back-to-top,
    .menu-toggle,
    .ad-banner-section,
    .hero-section,
    .cta-section,
    .primary-menu-wrapper,
    .header-actions {
        display: none !important;
    }

    /* Reset backgrounds and colors */
    body {
        background: white !important;
        color: black !important;
    }

    /* Ensure readable text */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Show link URLs after text */
    a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Don't show URLs for fragments and JavaScript */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    /* Better image handling */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Keep content together */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Remove decorative elements */
    .feature-icon,
    .post-thumbnail {
        display: none;
    }

    /* Simplify borders */
    * {
        border-color: #000 !important;
    }
}

/* ==========================================================================
   Responsive Design - Mobile & Tablet
   ========================================================================== */

/* Tablet Landscape and Below (1024px) */
@media (max-width: 1024px) {
    .site-container {
        padding: 0 1.5rem;
    }

    .has-sidebar .content-wrapper > .site-container {
        flex-direction: column;
        gap: 2rem;
    }

    .has-sidebar .content-area {
        flex: 1 1 100%;
    }

    .widget-area.sidebar {
        flex: 1 1 100%;
        position: relative;
        top: 0;
        max-width: 100%;
    }

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

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

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Tablet Portrait and Below (768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        gap: 0.5rem;
        color: #2c3e50;
        transition: background 0.3s ease;
        border-radius: 8px;
    }

    .menu-toggle:hover {
        background: #fff5f5;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid #ff6b6b;
        outline-offset: 2px;
    }

    .primary-menu-wrapper {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }

    .primary-menu-wrapper.active {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
    }

    .primary-menu .menu-item {
        width: 100%;
        border-top: 1px solid #ffe0e0;
    }

    .primary-menu .menu-item a {
        padding: 1rem;
        justify-content: flex-start;
    }

    .header-actions {
        margin-left: auto;
    }

    .user-menu-dropdown {
        right: 0;
        left: auto;
    }

    /* Hero Section */
    .hero-section {
        padding: 4rem 0;
    }

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

    .hero-description {
        font-size: 1.125rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Grids - Single Column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Buttons */
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Ad Banner */
    .ad-banner-section {
        padding: 1rem 0;
    }

    .ad-banner-content {
        padding: 1rem;
        font-size: 0.875rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Landscape and Below (600px) */
@media (max-width: 600px) {
    .site-container {
        padding: 0 1rem;
    }

    .entry-content {
        padding: 0;
    }

    .entry-content ul,
    .entry-content ol {
        padding-left: 1.5rem;
    }

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

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

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

    .cta-description {
        font-size: 1.125rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-section {
        padding: 3rem 0;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .cta-section {
        padding: 2.5rem 0;
        margin: 2rem 0;
    }

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

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

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

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .login-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .post-card {
        padding: 0;
    }

    .post-content {
        padding: 1rem 1.25rem;
    }

    .post-thumbnail {
        height: 150px;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .footer-contact .contact-info {
        grid-template-columns: 1fr;
    }

    /* Header Logo */
    .site-logo img,
    .site-logo-default img {
        max-height: 50px;
    }

    /* User Avatar */
    .user-avatar {
        width: 35px;
        height: 35px;
    }
}

/* ==========================================================================
   Single Post Styles - Beautiful Article Layout
   ========================================================================== */

.single-post {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

/* Featured Image for Single Post */
.single-post-thumbnail {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.single-post-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Post Header */
.single-post-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.single-post-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* Post Meta with Icons */
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

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

.meta-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.meta-author a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.meta-author a:hover {
    color: var(--color-primary);
}

.meta-categories a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.meta-categories a:hover {
    color: var(--color-primary);
}

/* Post Content */
.single-post-content {
    padding: 2.5rem 3rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.single-post-content > *:first-child {
    margin-top: 0;
}

.single-post-content > *:last-child {
    margin-bottom: 0;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-post-content h2 {
    font-size: var(--font-size-2xl);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}

.single-post-content h3 {
    font-size: var(--font-size-xl);
}

.single-post-content h4 {
    font-size: var(--font-size-lg);
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content ul li,
.single-post-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

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

.single-post-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    transition: var(--transition-fast);
    font-weight: 500;
}

.single-post-content a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

.single-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--color-background-accent);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    color: var(--color-text-light);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: var(--radius-md);
}

.single-post-content pre,
.single-post-content code {
    background: var(--color-background-soft);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Courier New', monospace;
}

.single-post-content pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.single-post-content code {
    padding: 0.25rem 0.5rem;
    font-size: 0.9em;
}

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

/* Page Links (Pagination for multi-page posts) */
.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.page-links-title {
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--color-text-primary);
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-background-soft);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.page-links a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.page-links .current {
    background: var(--color-primary);
    color: #ffffff;
}

/* Post Footer (Tags) */
.single-post-footer {
    padding: 1.5rem 3rem 2.5rem;
    border-top: 1px solid var(--color-border-light);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.post-tags svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.post-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-background-accent);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.post-tags a:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   POST NAVIGATION - Redesigned from scratch
   IMPORTANT: Higher specificity to override pagination .nav-links styles
   ========================================================================== */

.post-navigation {
    margin: 3rem 0 !important;
    padding: 0 !important;
}

/* Override pagination .nav-links with higher specificity */
.post-navigation > .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    justify-content: initial !important;
    align-items: initial !important;
}

/* Individual navigation items */
.post-navigation .nav-previous,
.post-navigation .nav-next {
    margin: 0 !important;
    padding: 0 !important;
}

/* The actual link - OVERRIDE pagination styles */
.post-navigation .nav-previous > a,
.post-navigation .nav-next > a {
    display: block !important;
    padding: 1.75rem 2rem !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    min-width: auto !important;
    width: 100% !important;
    height: auto !important;
    color: inherit !important;
}

.post-navigation .nav-previous > a:hover,
.post-navigation .nav-next > a:hover {
    border-color: #ff6b6b !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
    transform: translateY(-3px) !important;
}

/* Subtitle (Previous: / Next:) */
.post-navigation .nav-subtitle {
    display: block !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #718096 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.75rem !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Title (Post name) */
.post-navigation .nav-title {
    display: block !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    line-height: 1.5 !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.post-navigation a:hover .nav-subtitle {
    color: #ff6b6b !important;
    background: transparent !important;
}

.post-navigation a:hover .nav-title {
    color: #ff6b6b !important;
    background: transparent !important;
}

/* Single navigation item (only prev or only next) */
.post-navigation .nav-links:has(.nav-previous:only-child),
.post-navigation .nav-links:has(.nav-next:only-child) {
    grid-template-columns: 1fr !important;
}

/* Responsive */
@media (max-width: 768px) {
    .post-navigation > .nav-links {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .post-navigation .nav-previous > a,
    .post-navigation .nav-next > a {
        padding: 1.25rem 1.5rem !important;
    }

    .post-navigation .nav-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .post-navigation .nav-title {
        font-size: 1rem !important;
    }
}

/* Comments Section Styling */
.comments-area {
    margin-top: 3rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
}

.comments-title,
.comment-reply-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border-light);
}

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

.comment-body {
    background: var(--color-background-soft);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
}

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

.comment-metadata {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--color-primary);
}

.comment-content {
    line-height: 1.7;
    color: var(--color-text-primary);
}

/* Comment Form */
.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.form-submit {
    margin-top: 0.5rem;
}

.comment-form .submit {
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive - Single Post */
@media (max-width: 768px) {
    .single-post-header,
    .single-post-content,
    .single-post-footer,
    .comments-area {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .single-post-title {
        font-size: var(--font-size-2xl);
    }

    .single-post-meta {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .single-post-content {
        font-size: 1rem;
    }

    .single-post-content h2 {
        font-size: var(--font-size-xl);
    }

    .single-post-content h3 {
        font-size: var(--font-size-lg);
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .single-post-header,
    .single-post-content,
    .single-post-footer,
    .comments-area {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .single-post-title {
        font-size: var(--font-size-xl);
    }

    .single-post-content {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .single-post-content ul,
    .single-post-content ol {
        padding-left: 1.5rem;
    }
}

/* ==========================================================================
   Single Page Styles - Clean Static Pages
   ========================================================================== */

.single-page {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

.single-page-thumbnail {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.single-page-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-page-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.single-page-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin: 0;
}

.single-page-content {
    padding: 2.5rem 3rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.single-page-content > *:first-child {
    margin-top: 0;
}

.single-page-content > *:last-child {
    margin-bottom: 0;
}

.single-page-content p {
    margin-bottom: 1.5rem;
}

.single-page-content h2,
.single-page-content h3,
.single-page-content h4 {
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-page-content h2 {
    font-size: var(--font-size-2xl);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-light);
}

.single-page-content h3 {
    font-size: var(--font-size-xl);
}

.single-page-content h4 {
    font-size: var(--font-size-lg);
}

.single-page-content ul,
.single-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-page-content ul li,
.single-page-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.single-page-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    transition: var(--transition-fast);
    font-weight: 500;
}

.single-page-content a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

.single-page-footer {
    padding: 1.5rem 3rem 2.5rem;
    border-top: 1px solid var(--color-border-light);
}

.single-page-footer .edit-link a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--color-background-soft);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
}

.single-page-footer .edit-link a:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Responsive - Single Page */
@media (max-width: 768px) {
    .single-page-header,
    .single-page-content,
    .single-page-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .single-page-title {
        font-size: var(--font-size-2xl);
    }

    .single-page-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .single-page-header,
    .single-page-content,
    .single-page-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .single-page-title {
        font-size: var(--font-size-xl);
    }

    .single-page-content {
        font-size: 0.9375rem;
    }
}

/* ==========================================================================
   404 Error Page Styles
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 3rem 2rem;
}

.error-404 .page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border-light);
}

.error-404 .page-title {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404 .page-subtitle {
    font-size: var(--font-size-2xl);
    color: var(--color-text-primary);
    font-weight: 700;
    margin: 0;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .page-content > p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.error-404-search,
.error-404-links,
.error-404-recent-posts {
    margin-bottom: 3rem;
    text-align: left;
}

.error-404-search h3,
.error-404-links h3,
.error-404-recent-posts h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.error-404-search .search-form {
    max-width: 100%;
}

.error-404-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.error-404-links ul li a {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--color-background-soft);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: center;
    border: 2px solid var(--color-border);
}

.error-404-links ul li a:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.error-404-recent-posts .posts-grid {
    text-align: left;
}

/* Responsive - 404 */
@media (max-width: 768px) {
    .error-404 .page-title {
        font-size: 6rem;
    }

    .error-404 .page-subtitle {
        font-size: var(--font-size-xl);
    }

    .error-404-links ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 2rem 1rem;
    }

    .error-404 .page-title {
        font-size: 4rem;
    }

    .error-404 .page-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* ==========================================================================
   Search Form Enhanced Styles
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.search-form .search-field:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-form .search-submit {
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.search-form .search-icon {
    font-size: 1.25rem;
}

/* Search Results Page */
.search-results .page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border-light);
}

.search-results .page-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
}

.search-results .page-title .search-query {
    color: var(--color-primary);
}

/* Responsive - Search */
@media (max-width: 480px) {
    .search-form {
        flex-direction: column;
    }

    .search-form .search-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Archive & Pagination Improvements
   ========================================================================== */

.page-header {
    background: var(--color-background-soft);
    padding: 2.5rem 3rem;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
}

.archive-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Posts Grid - Ensure cards display properly */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Pagination Enhancement */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1rem;
    background: #ffffff;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.pagination .current,
.nav-links .current {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.pagination .dots {
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
}

/* Responsive - Archive */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: var(--font-size-2xl);
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: var(--font-size-xl);
    }

    .pagination a,
    .pagination span,
    .nav-links a,
    .nav-links span {
        min-width: 40px;
        height: 40px;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   WordPress Block Widgets Enhancement
   ========================================================================== */

/* Block Widget Base Styling */
.widget_block {
    background: var(--color-background-soft);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.widget_block:last-child {
    margin-bottom: 0;
}

/* Block Widget Headings */
.widget_block h2,
.widget_block h3,
.widget_block .wp-block-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

/* Search Block in Sidebar */
.widget_block .wp-block-search {
    margin: 0;
}

.widget_block .wp-block-search__label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.widget_block .wp-block-search__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

.widget_block .wp-block-search__button {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.widget_block .wp-block-search__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Latest Posts Block */
.widget_block .wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_block .wp-block-latest-posts li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.widget_block .wp-block-latest-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_block .wp-block-latest-posts a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
    font-weight: 500;
}

.widget_block .wp-block-latest-posts a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

/* Latest Comments Block */
.widget_block .wp-block-latest-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_block .wp-block-latest-comments__comment {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.widget_block .wp-block-latest-comments__comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_block .wp-block-latest-comments__comment-meta {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.widget_block .wp-block-latest-comments__comment-excerpt p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* Archives Block */
.widget_block .wp-block-archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_block .wp-block-archives-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.widget_block .wp-block-archives-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_block .wp-block-archives-list a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.widget_block .wp-block-archives-list a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

/* Categories Block */
.widget_block .wp-block-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_block .wp-block-categories-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.widget_block .wp-block-categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget_block .wp-block-categories-list a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.widget_block .wp-block-categories-list a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

/* Tag Cloud Block */
.widget_block .wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_block .wp-block-tag-cloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--color-background-accent);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.widget_block .wp-block-tag-cloud a:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Calendar Block */
.widget_block .wp-block-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_block .wp-block-calendar th,
.widget_block .wp-block-calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.widget_block .wp-block-calendar th {
    background: var(--color-background-accent);
    font-weight: 600;
    color: var(--color-text-primary);
}

.widget_block .wp-block-calendar a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* No Comments Message */
.widget_block .no-comments {
    color: var(--color-text-secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Group Block */
.widget_block .wp-block-group__inner-container {
    /* Inherit parent styles */
}

/* Responsive - Widgets */
@media (max-width: 768px) {
    .widget_block {
        padding: 1.25rem;
    }

    .widget_block h2,
    .widget_block h3,
    .widget_block .wp-block-heading {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   No Results / Not Found Content Styles
   ========================================================================== */

.no-results,
.not-found {
    text-align: center;
    padding: 3rem 2rem;
}

.no-results .page-header,
.not-found .page-header {
    background: var(--color-background-soft);
    padding: 2.5rem 3rem;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.no-results .page-title,
.not-found .page-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0;
}

.no-results .page-content,
.not-found .page-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.no-results .page-content p,
.not-found .page-content p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.no-results .search-form,
.not-found .search-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Responsive - No Results */
@media (max-width: 768px) {
    .no-results,
    .not-found {
        padding: 2rem 1.5rem;
    }

    .no-results .page-header,
    .not-found .page-header {
        padding: 2rem 1.5rem;
    }

    .no-results .page-title,
    .not-found .page-title {
        font-size: var(--font-size-2xl);
    }

    .no-results .page-content p,
    .not-found .page-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .no-results,
    .not-found {
        padding: 1.5rem 1rem;
    }

    .no-results .page-header,
    .not-found .page-header {
        padding: 1.5rem 1rem;
    }

    .no-results .page-title,
    .not-found .page-title {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   Breadcrumbs Navigation Styles
   ========================================================================== */

.breadcrumbs {
    background: var(--color-background-soft);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

.breadcrumb-item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
    background: var(--color-background-accent);
}

.breadcrumb-item .current {
    color: var(--color-text-primary);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* Home Icon (optional enhancement) */
.breadcrumb-item:first-child a::before {
    content: '🏠 ';
    margin-right: 0.25rem;
}

/* Responsive - Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }

    .breadcrumbs-list {
        gap: 0.375rem;
        font-size: 0.875rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 0.5rem 0;
    }

    .breadcrumbs-list {
        font-size: 0.8125rem;
    }

    /* Truncate long breadcrumb items on mobile */
    .breadcrumb-item a,
    .breadcrumb-item .current {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    .breadcrumb-item:first-child a,
    .breadcrumb-item:last-child .current {
        max-width: none; /* Don't truncate home and current page */
    }
}
