/*
Theme Name: HLB EnergieWerk
Theme URI: https://hlb-energiewerk.de
Author: HLB EnergieWerk Team
Author URI: https://hlb-energiewerk.de
Description: Custom WordPress Theme für HLB EnergieWerk Blog - Removed Box Shadows & Card Elevation
Version: 1.16.2025-01-09
License: Private
Text Domain: hlb-energiewerk
*/

/* ========================================
   CSS Variables & Global Styles
   ======================================== */
:root {
    /* Hauptfarben - Corporate Identity */
    --primary-dark: #1d2939;
    --primary-magenta: #e6005c; /* Unified magenta color - WCAG AA compliant */
    --light-gray: #dcdee0;
    --light-blue: #f1f5f9;
    --light-pink: #f9cedf;
    
    /* Skala-Farben */
    --scale-red: #ff4757;
    --scale-yellow: #ffc048;
    --scale-green: #2ecc71;
    
    /* Basis-Farben */
    --white: #ffffff;
    --black: #000000;
    
    /* Text-Farben Light Mode */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #666666;
    --text-light: #888888;
    --text-lighter: #999999;
    --text-lightest: #cccccc;
    
    /* Hintergrund-Farben Light Mode */
    --bg-primary: var(--white);
    --bg-secondary: var(--light-blue);
    --bg-tertiary: var(--light-gray);
    --bg-header: rgba(255, 255, 255, 0.95);
    
    /* Border-Farben */
    --border-light: #dddddd;
    --border-default: var(--light-gray);
    --border-dark: #cccccc;
    
    /* Link-Farben */
    --link-color: var(--primary-dark);
    --link-hover: var(--primary-magenta);
    
    /* Button Varianten */
    --btn-primary-bg: var(--primary-magenta);
    --btn-primary-hover: #e60059;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: var(--white);
    
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, #2d3e50 100%);
    --gradient-magenta: linear-gradient(135deg, var(--primary-magenta), #ff3366);
}

/* Dark Mode Variables */
body.dark-mode {
    /* Hintergrund-Farben Dark Mode - optimiert für bessere Lesbarkeit */
    --bg-primary: #1a1f2e;
    --bg-secondary: #232937;
    --bg-tertiary: #2a3142;
    --bg-header: rgba(26, 31, 46, 0.95);
    
    /* Text-Farben Dark Mode */
    --text-primary: #e8ecf2;
    --text-secondary: #b8c3d1;
    --text-muted: #8896a9;
    --text-light: #6b7a8f;
    --text-lighter: #566475;
    --text-lightest: #434e61;
    
    /* Angepasste Hauptfarben für Dark Mode */
    --light-blue: #232937;
    --light-gray: #2a3142;
    --light-pink: rgba(255, 0, 102, 0.1);
    
    /* Link-Farben Dark Mode */
    --link-color: var(--text-primary);
    --link-hover: var(--primary-magenta);
    
    /* Border-Farben Dark Mode */
    --border-light: #38444d;
    --border-default: #434e61;
    --border-dark: #566475;
    
    /* Button Varianten Dark Mode */
    --btn-secondary-border: var(--text-primary);
    
    /* Schatten Dark Mode */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kodchasan', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    margin: 0;
    padding: 0;
    transition: background var(--transition-fast);
}

.blog-hero {
    margin-top: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-menu a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 400;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--link-hover);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Dark Mode Toggle in Menu Bar */
.dark-mode-toggle-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
}

.dark-mode-toggle-menu:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.dark-mode-toggle-menu:active {
    transform: scale(0.95);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition-fast);
}

body.dark-mode .mobile-menu-toggle span {
    background: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    background: var(--bg-header);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    width: 400px;
    max-width: 90%;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.1rem;
}

/* ========================================
   Blog Container
   ======================================== */
.blog-container {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 4rem 2rem;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.category-header h1,
.category-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

body.dark-mode .category-header h1,
body.dark-mode .category-header h2 {
    color: var(--text-primary);
}

.category-badge {
    display: inline-block;
    background: var(--primary-magenta);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Blog Stats */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    transition: transform var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-magenta);
}

.stat-label {
    color: var(--primary-dark);
    font-weight: 500;
    margin-top: 0.5rem;
}

body.dark-mode .stat-label {
    color: var(--text-secondary);
}

/* Filter and Search */
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tag-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tag-btn {
    padding: 0.4rem 0.8rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-default);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Kodchasan', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.tag-btn:hover {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
}

.tag-btn.active,
.current-tag {
    background: var(--primary-magenta);
    color: var(--white);
    border-color: var(--primary-magenta);
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 4rem;
    border: 2px solid var(--border-default);
    border-radius: 25px;
    font-family: 'Kodchasan', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-magenta);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-magenta);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Blog Card */
.blog-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

body.dark-mode .blog-card {
    background: var(--bg-secondary);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-magenta);
}

.blog-card-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    position: relative;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.blog-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 41, 57, 0.8) 0%, rgba(45, 62, 80, 0.8) 100%);
    pointer-events: none;
}

.blog-card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-magenta);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 1;
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

body.dark-mode .blog-card h3 {
    color: var(--text-primary);
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

body.dark-mode .tag {
    background: var(--light-pink);
    color: var(--primary-magenta);
    border: 1px solid rgba(255, 0, 102, 0.3);
}

.tag:hover {
    background: var(--primary-magenta);
    color: var(--white);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-magenta);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.read-more:hover {
    transform: translateX(5px);
}

/* ========================================
   Single Post Styles
   ======================================== */
.single-post-header {
    background: var(--gradient-primary);
    padding: 8rem 2rem 4rem;
    margin-top: 70px;
    color: var(--white);
}

.single-post-title {
    max-width: 900px;
    margin: 0 auto;
    font-size: 2.5rem;
    line-height: 1.2;
}

.post-meta {
    max-width: 900px;
    margin: 1rem auto;
    display: flex;
    gap: 2rem;
    opacity: 0.9;
}

.post-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content h2 {
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-content h3 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.4rem;
}

body.dark-mode .post-content h2,
body.dark-mode .post-content h3 {
    color: var(--text-primary);
}

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

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

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

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

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-default);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all var(--transition-fast);
}

.page-numbers:hover {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
}

.page-numbers.current {
    background: var(--primary-magenta);
    color: var(--white);
    border-color: var(--primary-magenta);
}

/* ========================================
   Partner Banner
   ======================================== */
.partner-banner {
    background: var(--bg-tertiary);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

/* Keep partner banner light in dark mode */
body.dark-mode .partner-banner {
    background: var(--light-gray); /* Use lighter gray even in dark mode */
}

.partner-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.partner-item {
    display: flex;
    align-items: center;
    padding: 0 3rem;
    white-space: nowrap;
    color: var(--primary-dark);
    font-weight: 500;
}

.partner-item a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.partner-item a:hover {
    color: var(--primary-magenta);
}

/* Remove darkening filter for logos - keep them as-is */
body.dark-mode .partner-item img {
    filter: none;
    opacity: 1;
}

body.dark-mode .partner-item img:hover {
    filter: none;
    opacity: 1;
}

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

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--gradient-magenta);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator {
    display: inline-block;
    margin-top: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.scroll-indicator:hover .scroll-indicator-circle {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.arrow-down {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-secondary);
    padding: 5rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

body.dark-mode .contact-header h2 {
    color: var(--text-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-left {
    background: var(--bg-tertiary);
    padding: 3rem 2rem;
}

.contact-left h3 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

body.dark-mode .contact-left h3 {
    color: var(--text-primary);
}

.contact-info-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item .icon {
    color: var(--primary-magenta);
    font-size: 1.2rem;
    margin-top: 3px;
}

.map-small {
    margin-top: 2rem;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-right {
    padding: 3rem;
}

.contact-right h3 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

body.dark-mode .contact-right h3 {
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

body.dark-mode .form-group label {
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Kodchasan', sans-serif;
    transition: border-color var(--transition-fast);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-magenta);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.submit-button {
    background: var(--btn-primary-bg);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Kodchasan', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    margin-top: 1rem;
}

.submit-button:hover {
    background: var(--primary-magenta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-checkbox {
    position: relative;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--primary-magenta);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
}

.newsletter-checkbox label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 120%;
    left: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 0.8rem;
    width: 250px;
    z-index: 10;
    opacity: 0;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.newsletter-checkbox label:hover .newsletter-tooltip {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   CTA Button
   ======================================== */
.cta-button {
    background: var(--btn-primary-bg);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.cta-button:hover {
    background: var(--primary-magenta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ========================================
   Dark Mode Toggle Button
   ======================================== */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-fast);
    opacity: 0.3;
    transform: scale(0.9);
}

.dark-mode-toggle:hover {
    background: var(--primary-magenta);
    transform: scale(1);
    opacity: 1;
}

body.dark-mode .dark-mode-toggle {
    background: var(--primary-magenta);
}

/* ========================================
   Success Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 41, 57, 0.8);
    z-index: 2000;
    animation: fadeIn var(--transition-fast) ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--scale-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn var(--transition-medium) ease 0.2s both;
}

.modal-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

body.dark-mode .modal-content h2 {
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-progress {
    width: 100%;
    height: 4px;
    background: var(--border-default);
    border-radius: 2px;
    margin: 2rem 0 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-magenta);
    width: 0;
    animation: progress 5s linear forwards;
}

.modal-redirect {
    font-size: 0.9rem;
    color: var(--primary-magenta);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-magenta);
    margin-bottom: 1rem;
    text-transform: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.3rem 0;
    display: flex;
    align-items: flex-start;
}

.footer-section a {
    color: var(--text-lightest);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--text-lightest);
    text-decoration: none;
}

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

/* ========================================
   Intelligente Magenta-Verwendung
   ======================================== */
/* Große Texte und Buttons können Magenta verwenden */
.cta-button,
.submit-button,
.category-badge,
.stat-value,
h1, h2, h3 {
    /* Diese Elemente sind groß genug für Magenta */
}

/* Kleine Magenta-Texte automatisch anpassen */
.tag {
    font-size: 0.85rem;
    /* Zu klein für Magenta - verwende Grau mit Magenta-Border */
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--primary-magenta);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.tag:hover {
    /* Bei Hover kann Magenta als Hintergrund verwendet werden */
    background: var(--primary-magenta);
    color: var(--white);
    border-color: var(--primary-magenta);
}

body.dark-mode .tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--primary-magenta);
}

/* Meta-Informationen und kleine Texte */
.blog-card-meta,
.post-meta,
.footer-bottom,
.wp-caption-text {
    /* Diese kleinen Texte verwenden Grau statt Magenta */
    color: var(--text-muted);
}

/* Links in Fließtext */
p a,
li a,
.post-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-color: var(--primary-magenta);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: all var(--transition-fast);
}

p a:hover,
li a:hover,
.post-content a:hover {
    color: var(--primary-magenta);
    text-decoration-color: var(--primary-magenta);
}

body.dark-mode p a,
body.dark-mode li a,
body.dark-mode .post-content a {
    color: var(--text-primary);
    text-decoration-color: var(--primary-magenta);
}

body.dark-mode p a:hover,
body.dark-mode li a:hover,
body.dark-mode .post-content a:hover {
    color: var(--primary-magenta);
}

/* Kleine wichtige Hinweise */
.info-icon,
.blog-card-number {
    /* Diese bleiben Magenta, da sie als Icons/Badges funktionieren */
    background: var(--primary-magenta);
    color: var(--white);
}

/* Footer Links - verwende helle Grautöne */
.footer-section a {
    color: var(--text-lightest);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Make footer links, phone, and email brighter in dark mode */
body.dark-mode .footer-section a,
body.dark-mode .contact-info-item a,
body.dark-mode a[href^="tel:"],
body.dark-mode a[href^="mailto:"] {
    color: var(--text-primary); /* Bright in dark mode */
}

body.dark-mode .footer-section a:hover,
body.dark-mode .contact-info-item a:hover {
    color: var(--primary-magenta);
}

/* Modal Redirect Text */
.modal-redirect {
    font-size: 0.9rem;
    color: var(--text-secondary); /* Grau statt Magenta für kleine Schrift */
}

/* Newsletter Tooltip */
.newsletter-tooltip {
    /* Bleibt bei dunklem Hintergrund mit weißem Text */
    background: var(--primary-dark);
    color: var(--white);
}

/* Read More Links - groß genug für Magenta */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-magenta);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Groß genug */
    transition: all var(--transition-fast);
}

/* ========================================
   Barrierefreiheit & Fokus-Stile
   ======================================== */
/* Verbesserter Fokus-Indikator für alle interaktiven Elemente */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Skip-Link für Screenreader */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Bessere Lesbarkeit für Links */
a {
    text-underline-offset: 0.2em;
    text-decoration-thickness: 2px;
}

/* Klickbare Bereiche vergrößern für bessere Touch-Targets */
.cta-button,
.tag-btn,
.submit-button {
    min-height: 44px; /* WCAG Touch Target Size */
    min-width: 44px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-magenta: var(--primary-magenta-high-contrast);
        --text-primary: var(--black);
        --text-secondary: #1a1a1a;
        --border-default: var(--black);
        --shadow-sm: 0 0 0 2px var(--black);
        --shadow-md: 0 0 0 3px var(--black);
        --shadow-lg: 0 0 0 4px var(--black);
    }
    
    .blog-card,
    .contact-wrapper,
    .modal-content {
        border: 2px solid var(--black);
    }
}

/* Reduced Motion Support */
@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;
    }
    
    .partner-track {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    /* Grundlegende Print-Optimierungen */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Seitenränder */
    @page {
        margin: 2cm;
        size: A4;
    }
    
    /* Verstecke nicht-druckbare Elemente */
    .header,
    .nav-container,
    .mobile-menu,
    .partner-banner,
    .cta-section,
    .contact-section,
    .footer,
    .dark-mode-toggle,
    .scroll-indicator,
    .modal,
    .search-box,
    .tag-filter,
    video,
    .map-small {
        display: none !important;
    }
    
    /* Hauptinhalt optimieren */
    body {
        font-size: 12pt;
        line-height: 1.5;
        font-family: Georgia, serif;
    }
    
    .blog-container,
    .post-content {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Überschriften */
    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; page-break-after: avoid; }
    h3 { font-size: 14pt; page-break-after: avoid; }
    
    /* Links anzeigen */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: var(--text-muted);
    }
    
    /* Aber nicht für interne Anker */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    
    /* Blog-Karten optimieren */
    .blog-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1cm;
        padding: 0.5cm;
    }
    
    .blog-card-header {
        background: none !important;
        border-bottom: 1px solid #ccc;
    }
    
    /* Code-Blöcke */
    pre,
    code {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        font-size: 10pt;
    }
    
    /* Bilder */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Blockquotes */
    blockquote {
        border-left: 3px solid #ccc;
        font-style: italic;
        page-break-inside: avoid;
    }
    
    /* Tabellen */
    table {
        border-collapse: collapse;
        width: 100%;
    }
    
    table td,
    table th {
        border: 1px solid #ccc;
        padding: 0.3cm;
    }
    
    /* Seitenumbruch-Kontrolle */
    p,
    li {
        orphans: 3;
        widows: 3;
    }
    
    /* Footer-Info für Print */
    .print-only-footer {
        display: block !important;
        margin-top: 2cm;
        padding-top: 1cm;
        border-top: 1px solid #ccc;
        font-size: 10pt;
        text-align: center;
    }
}

/* Print-Only Element (standardmäßig versteckt) */
.print-only-footer {
    display: none;
}

/* ========================================
   BLOG HERO SECTION (Like Impressum)
   ======================================== */
.blog-hero {
    margin-top: 70px;
    height: 350px;
    background: linear-gradient(135deg, rgba(29, 41, 57, 0.9), rgba(230, 0, 92, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-content {
    z-index: 2;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.blog-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
    color: var(--white);
}

body.dark-mode .blog-hero h1,
body.dark-mode .blog-hero p {
    color: var(--white);
}

/* ========================================
   BLOG FILTER SECTION (Tags & Search)
   ======================================== */
.blog-filter-section {
    background: var(--bg-secondary);
    padding: 2rem 0;
    margin-bottom: 4rem;
}

body.dark-mode .blog-filter-section {
    background: var(--bg-secondary);
}

.blog-container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Tags Section */
.tags-section {
    margin-bottom: 2rem;
}

.section-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

body.dark-mode .section-label {
    color: var(--white);
}

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

.tag-btn {
    padding: 0.6rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-default);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-block;
}

.tag-btn:hover {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
    background: var(--light-pink);
    transform: translateY(-2px);
}

.tag-btn.active {
    background: var(--primary-magenta);
    border-color: var(--primary-magenta);
    color: var(--white);
}

body.dark-mode .tag-btn {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

body.dark-mode .tag-btn:hover {
    border-color: var(--primary-magenta);
    background: rgba(230, 0, 92, 0.2);
}

body.dark-mode .tag-btn.active {
    background: var(--primary-magenta);
    border-color: var(--primary-magenta);
    color: var(--white);
}

.show-all-tags-btn {
    padding: 0.6rem 1.5rem;
    background: none;
    border: none;
    color: var(--primary-magenta);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.show-all-tags-btn:hover {
    color: var(--btn-primary-hover);
}

.tag-extra-section {
    margin-top: 1rem;
}

.tag-extra-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.tag-extra-section a:hover {
    color: var(--primary-magenta);
}

/* Search Section */
.search-section {
    max-width: 600px;
    margin-left: auto;
}

.blog-search-form {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.blog-search-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-default);
    border-radius: 25px;
    font-family: 'Kodchasan', sans-serif;
    font-size: 1.05rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.blog-search-button {
    background: var(--primary-magenta);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.blog-search-button:hover {
    background: #c00050;
    transform: scale(1.05);
}

.blog-search-button svg {
    width: 20px;
    height: 20px;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--primary-magenta);
    box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.1);
}

.blog-search-input::placeholder {
    color: var(--text-lightest);
}

body.dark-mode .blog-search-input {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

body.dark-mode .blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .blog-search-input:focus {
    border-color: var(--primary-magenta);
    box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.2);
}

/* ========================================
   FEATURED ARTICLE
   ======================================== */
.featured-article {
    background: var(--light-blue);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

body.dark-mode .featured-article {
    background: rgba(35, 41, 55, 0.8);
}

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

.featured-badge {
    display: inline-block;
    background: var(--primary-magenta);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.featured-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

body.dark-mode .featured-title a {
    color: var(--white);
}

.featured-title a:hover {
    color: var(--primary-magenta);
}

.featured-excerpt {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

body.dark-mode .featured-excerpt {
    color: rgba(255, 255, 255, 0.85);
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

body.dark-mode .featured-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.featured-link {
    display: inline-block;
    color: var(--primary-magenta);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

.featured-link:hover {
    color: var(--btn-primary-hover);
    transform: translateX(5px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1500px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-benefits {
        flex-direction: column;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    /* Blog Hero Mobile */
    .blog-hero {
        height: 300px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    /* Filter Section Mobile */
    .filter-search-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .search-section {
        flex: 1;
    }

    /* Featured Article Mobile */
    .featured-article {
        padding: 2rem;
    }

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

/* ========================================
   Additional Styles (Previously in WordPress Additional CSS)
   ======================================== */
/* These were previously in the WordPress Customizer's Additional CSS field */
/* Now consolidated here for easier maintenance */

/* Fix any dark background issues - Ensure no visible page box */
body,
html,
.site,
.site-content {
    background: var(--light-blue);
    color: var(--text-primary);
}

/* Only apply transparent background to main elements */
main.page-content {
    background: transparent;
    color: var(--text-primary);
}

body.dark-mode,
body.dark-mode html,
body.dark-mode .site,
body.dark-mode .site-content {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body.dark-mode main.page-content {
    background: transparent;
    color: var(--text-primary);
}

/* Search results page specific */
.search .blog-container-wide,
.search-results {
    background: var(--white) !important;
}

body.dark-mode .search .blog-container-wide,
body.dark-mode .search-results {
    background: var(--bg-primary) !important;
}

/* Category header on search page */
.category-header {
    background: var(--light-blue) !important;
    color: var(--primary-dark) !important;
}

/* Hide search overlay by default (shown via JavaScript) */
.search-overlay {
    display: none !important;
}

.search-overlay.active {
    display: flex !important;
}

/* Hide duplicate search plugin results */
.search-results .searchandfilter,
.search .searchandfilter,
.search-results > form[role="search"]:first-child,
.search > form[role="search"]:first-child {
    display: none !important;
}

.search-no-results:not(.blog-container .search-no-results) {
    display: none !important;
}

/* Enhanced tag styling */
.tags-links a,
.tagcloud a,
.tag-link {
    background: var(--light-pink) !important;
    color: var(--primary-dark) !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
    margin: 4px !important;
}

.tags-links a:hover,
.tagcloud a:hover,
.tag-link:hover {
    background: var(--primary-magenta) !important;
    color: var(--white) !important;
}

/* ========================================
   Blog Card Styles (Previously inline in content-card.php)
   ======================================== */
/* These styles were previously embedded in content-card.php */
/* Now in style.css for better organization and performance */

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.reading-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-magenta);
    opacity: 0.9;
    color: var(--white);
    padding: 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

body.dark-mode .blog-meta {
    color: rgba(255, 255, 255, 0.7);
}

.article-number {
    background: var(--light-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

body.dark-mode .article-number {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.blog-card-title {
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-title a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .blog-card-title a {
    color: var(--white);
}

.blog-card-title a:hover {
    color: var(--primary-magenta);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .blog-card-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.blog-card-tags {
    margin-bottom: 1.5rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--light-blue);
    color: var(--primary-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-fast);
}

body.dark-mode .tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.tag:hover {
    background: var(--primary-magenta);
    color: var(--white);
    border-color: var(--primary-magenta);
}

.more-tags {
    background: var(--primary-magenta);
    color: var(--white);
    border-color: var(--primary-magenta);
}

.read-more-btn {
    background: var(--btn-primary-bg);
    color: var(--white);
    padding: 0.8rem 1.75rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    transition: all var(--transition-fast);
    margin-top: auto;
    display: inline-block;
}

.read-more-btn:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

body.dark-mode .no-results h3 {
    color: var(--text-primary);
}

/* Hidden tags functionality */
.hidden-tag {
    display: none;
}

.tags-buttons.show-all .hidden-tag {
    display: inline-block;
}

/* ========================================
   Single Blog Post Styles
   ======================================== */

/* Blog Post Header with Gradient Background - Matches .page-hero and .blog-hero */
.blog-post-header {
    background: linear-gradient(135deg, rgba(29, 41, 57, 0.9), rgba(230, 0, 92, 0.3));
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 70px;
    margin-bottom: 0;
    height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .blog-post-header {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

.blog-post-header-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Back to Blog Link in Header */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
}

.back-to-blog:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Blog Post Title - Matches other hero h1 sizes */
.blog-post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    color: var(--white);
}

/* Blog Post Meta */
.blog-post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.9;
    font-size: 0.95rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta span::before {
    content: '•';
    color: var(--primary-magenta);
    font-weight: 700;
}

.blog-post-meta span:first-child::before {
    content: '';
}

/* Blog Post Content Area - No gap between header and content, transparent background */
.blog-post-content {
    background: transparent;
    padding: 4rem 2rem;
    margin-top: 0;
}

body.dark-mode .blog-post-content {
    background: transparent;
}

.blog-post-inner {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

body.dark-mode .blog-post-inner {
    background: #2d3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

/* Blog Post Featured Image */
.blog-post-image {
    margin: -3rem -3rem 2rem -3rem;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Post Typography */
.blog-post-inner h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

body.dark-mode .blog-post-inner h2 {
    color: var(--white);
}

.blog-post-inner h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

body.dark-mode .blog-post-inner h3 {
    color: var(--white);
}

.blog-post-inner p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

body.dark-mode .blog-post-inner p {
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-inner ul,
.blog-post-inner ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-primary);
}

body.dark-mode .blog-post-inner ul,
body.dark-mode .blog-post-inner ol {
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-inner li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-post-inner blockquote {
    border-left: 4px solid var(--primary-magenta);
    padding: 1.5rem 2rem;
    background: var(--light-blue);
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
}

body.dark-mode .blog-post-inner blockquote {
    background: rgba(230, 0, 92, 0.1);
}

.blog-post-inner a {
    color: var(--primary-magenta);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-post-inner a:hover {
    color: #c00050;
}

/* Blog Post Tags Section */
.blog-post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

body.dark-mode .blog-post-tags {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.blog-post-tags h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tag {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-default);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-tag:hover {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
    background: var(--light-pink);
    transform: translateY(-2px);
}

body.dark-mode .post-tag {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

body.dark-mode .post-tag:hover {
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
    background: rgba(230, 0, 92, 0.1);
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
    text-align: center;
}

body.dark-mode .post-navigation {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.post-navigation .btn-back-to-blog,
a.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-magenta);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.post-navigation .btn-back-to-blog:hover,
a.btn-back-to-blog:hover {
    background: #c00050;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Archive & Search Navigation
   ======================================== */

.archive-navigation,
.search-navigation {
    margin: 2rem 0 3rem 0;
    text-align: center;
}

.search-navigation .back-to-blog-link,
.archive-navigation .back-to-blog-link,
a.back-to-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-magenta);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-navigation .back-to-blog-link:hover,
.archive-navigation .back-to-blog-link:hover,
a.back-to-blog-link:hover {
    background: #c00050;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Responsive Design for Blog Posts
   ======================================== */

@media (max-width: 768px) {
    .blog-post-header {
        padding: 6rem 1.5rem 3rem;
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-post-inner {
        padding: 2rem 1.5rem;
    }

    .blog-post-image {
        margin: -2rem -1.5rem 1.5rem -1.5rem;
    }

    .blog-post-inner h2 {
        font-size: 1.5rem;
    }

    .blog-post-inner h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog-post-header {
        padding: 5rem 1rem 2rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-post-inner {
        padding: 1.5rem 1rem;
    }

    .blog-post-image {
        margin: -1.5rem -1rem 1rem -1rem;
    }
}

/* ========================================
   WordPress Core Classes
   ======================================== */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.sticky {
    border: 2px solid var(--primary-magenta);
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* ========================================
   Under Construction Banner
   ======================================== */
.construction-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-bottom: 4px solid #d97706;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.construction-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(0, 0, 0, 0.05) 20px,
        rgba(0, 0, 0, 0.05) 40px
    );
    animation: slide 20s linear infinite;
}

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

.construction-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.construction-icon {
    width: 16px;
    height: 16px;
    color: #92400e;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.construction-text {
    font-size: 13px;
    font-weight: 600;
    color: #78350f;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

/* Dark Mode Styles */
body.dark-mode .construction-banner {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-bottom-color: #92400e;
}

body.dark-mode .construction-icon {
    color: #fef3c7;
}

body.dark-mode .construction-text {
    color: #fef3c7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .construction-banner-content {
        padding: 6px 12px;
        gap: 8px;
    }

    .construction-icon {
        width: 14px;
        height: 14px;
    }

    .construction-text {
        font-size: 12px;
    }
}

/* ========================================
   WordPress Block Editor Styling
   ======================================== */

/* Tag Cloud Block - Style the tag buttons */
.wp-block-tag-cloud a {
    display: inline-block;
    padding: 0.6rem 1.5rem !important;
    background: var(--bg-primary) !important;
    border: 2px solid var(--border-default) !important;
    border-radius: 25px !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    margin: 0.375rem !important;
}

.wp-block-tag-cloud a:hover {
    border-color: var(--primary-magenta) !important;
    color: var(--primary-magenta) !important;
    background: var(--light-pink) !important;
    transform: translateY(-2px);
}

body.dark-mode .wp-block-tag-cloud a {
    background: var(--bg-secondary) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
}

body.dark-mode .wp-block-tag-cloud a:hover {
    border-color: var(--primary-magenta) !important;
    background: rgba(230, 0, 92, 0.2) !important;
}

/* Search Block Styling */
.wp-block-search__input {
    width: 100% !important;
    padding: 0.8rem 1.5rem !important;
    border: 2px solid var(--border-default) !important;
    border-radius: 25px !important;
    font-family: 'Kodchasan', sans-serif !important;
    font-size: 1.05rem !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}

.wp-block-search__input:focus {
    outline: none !important;
    border-color: var(--primary-magenta) !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.1) !important;
}

body.dark-mode .wp-block-search__input {
    background: var(--bg-secondary) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
}

/* WordPress Block: Search Button - Using specificity instead of !important */
.wp-block-search .wp-block-search__button,
button.wp-block-search__button {
    background: var(--primary-magenta);
    border: none;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-block-search .wp-block-search__button:hover,
button.wp-block-search__button:hover {
    background: #c00050;
}

/* Group Block - Can be used as hero section */
.wp-block-group.has-background {
    padding: 4rem 2rem !important;
    margin-top: 70px !important;
}

/* Headings in blocks - bigger size */
.wp-block-group h1,
.wp-block-group h2 {
    font-size: 4rem !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}

.wp-block-group p {
    font-size: 1.5rem !important;
    color: var(--white) !important;
    opacity: 0.95 !important;
}

body.dark-mode .wp-block-group h1,
body.dark-mode .wp-block-group h2,
body.dark-mode .wp-block-group p {
    color: var(--white) !important;
}

/* Column blocks for tag filter section */
.wp-block-columns {
    margin-bottom: 4rem !important;
}

/* Post Template block styling */
.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-post-template > li {
    background: var(--bg-primary) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    list-style: none !important;
}

.wp-block-post-template > li:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-magenta) !important;
}

body.dark-mode .wp-block-post-template > li {
    background: var(--bg-secondary) !important;
}

/* Post title in blocks */
.wp-block-post-title a {
    color: var(--primary-dark) !important;
    text-decoration: none !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.dark-mode .wp-block-post-title a {
    color: var(--white) !important;
}

.wp-block-post-title a:hover {
    color: var(--primary-magenta) !important;
}

/* Post excerpt in blocks */
.wp-block-post-excerpt__excerpt {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

body.dark-mode .wp-block-post-excerpt__excerpt {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Featured image in post blocks */
.wp-block-post-featured-image img {
    border-radius: 15px 15px 0 0 !important;
    width: 100% !important;
    height: auto !important;
    transition: transform 0.3s ease !important;
}

.wp-block-post-template > li:hover .wp-block-post-featured-image img {
    transform: scale(1.05) !important;
}

/* ========================================
   Page Template Hero Header (page.php)
   ======================================== */

/* Page Hero Section - Same style as blog hero */
.page-hero {
    margin-top: 70px;
    height: 350px;
    background: linear-gradient(135deg, rgba(29, 41, 57, 0.9), rgba(230, 0, 92, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    z-index: 2;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 400;
    color: var(--white);
    line-height: 1.4;
}

body.dark-mode .page-hero h1,
body.dark-mode .page-hero p {
    color: var(--white);
}

/* Page Content Area - No visible box, seamless background */
.page-content {
    background: transparent;
    padding: 0;
    min-height: 50vh;
}

body.dark-mode .page-content {
    background: transparent;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

body.dark-mode .page-container {
    background: #2d3748;
    color: var(--white);
}

/* Page Content Typography */
.page-container h1,
.page-container h2 {
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

body.dark-mode .page-container h1,
body.dark-mode .page-container h2 {
    color: var(--white);
}

.page-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.page-container h2 {
    font-size: 2rem;
    font-weight: 700;
}

.page-container h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

body.dark-mode .page-container h3 {
    color: var(--white);
}

.page-container p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

body.dark-mode .page-container p {
    color: rgba(255, 255, 255, 0.9);
}

.page-container ul,
.page-container ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-primary);
}

body.dark-mode .page-container ul,
body.dark-mode .page-container ol {
    color: rgba(255, 255, 255, 0.9);
}

.page-container li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.page-container a {
    color: var(--primary-magenta);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-container a:hover {
    color: #c00050;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-hero {
        height: 300px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .page-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 250px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    .page-container {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   TAG CLOUD & TAG LINKS - FIXES 2025-01-06
   ============================================ */

/* Homepage Tag Cloud */
.wp-block-tag-cloud {
    text-align: left;
    line-height: 2.5;
    margin: 1rem 0;
}

.wp-block-tag-cloud a,
.tag-cloud-link,
a.tag-cloud-link {
    display: inline-block;
    padding: 0.6rem 1.5rem !important;
    margin: 0.25rem;
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--light-gray, #dcdee0);
    border-radius: 25px;
    color: var(--primary-dark, #1d2939);
    font-size: 1rem !important;  /* Override WordPress inline styles */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.wp-block-tag-cloud a:hover,
.tag-cloud-link:hover {
    border-color: var(--primary-magenta, #e6005c);
    color: var(--primary-magenta, #e6005c);
    background: var(--light-pink, #f9cedf);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-block-tag-cloud a:active,
.wp-block-tag-cloud a.active {
    background: var(--primary-magenta, #e6005c);
    color: white;
    border-color: var(--primary-magenta, #e6005c);
}

/* Dark Mode Support for Tags */
body.dark-mode .wp-block-tag-cloud a,
body.dark-mode .tag-cloud-link {
    background: var(--bg-secondary, #232937);
    border-color: var(--border-default, #2a3142);
    color: var(--text-primary, #e8ecf2);
}

body.dark-mode .wp-block-tag-cloud a:hover,
body.dark-mode .tag-cloud-link:hover {
    border-color: var(--primary-magenta, #e6005c);
    color: var(--primary-magenta, #e6005c);
    background: rgba(230, 0, 92, 0.15);
}

/* Mobile Responsive for Tags */
@media (max-width: 768px) {
    .wp-block-tag-cloud a,
    .tag-cloud-link {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}

/* ============================================
   SEARCH FORM - FIXES 2025-01-06
   ============================================ */

.wp-block-search,
.search-form {
    max-width: 100%;
}

.wp-block-search__inside-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Search Input */
.wp-block-search__input,
.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray, #dcdee0);
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Kodchasan', sans-serif;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #333333);
    transition: all 0.3s ease;
    min-height: 44px;
}

.wp-block-search__input:focus,
.search-form input[type="search"]:focus {
    border-color: var(--primary-magenta, #e6005c);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.1);
}

.wp-block-search__input::placeholder {
    color: var(--text-lighter, #999999);
}

/* Search Button */
.wp-block-search__button,
.search-form button[type="submit"] {
    background: var(--primary-magenta, #e6005c);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-search__button:hover,
.search-form button[type="submit"]:hover {
    background: #cc0052;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wp-block-search__button:active,
.search-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Search Icon */
.wp-block-search__button svg,
.search-icon {
    fill: white;
    width: 20px;
    height: 20px;
}

/* Dark Mode for Search */
body.dark-mode .wp-block-search__input,
body.dark-mode .search-form input[type="search"] {
    background: var(--bg-secondary, #232937);
    border-color: var(--border-default, #2a3142);
    color: var(--text-primary, #e8ecf2);
}

body.dark-mode .wp-block-search__input::placeholder {
    color: var(--text-light, #6b7a8f);
}

/* Mobile for Search */
@media (max-width: 768px) {
    .wp-block-search__inside-wrapper {
        flex-direction: row;
    }

    .wp-block-search__button {
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   ARTICLE TAGS - ENHANCED 2025-01-06
   ============================================ */

/* Tags at bottom of article */
.blog-post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray, #dcdee0);
}

.blog-post-tags h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark, #1d2939);
}

.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--light-gray, #dcdee0);
    border-radius: 25px;
    color: var(--primary-dark, #1d2939);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    border-color: var(--primary-magenta, #e6005c);
    color: var(--primary-magenta, #e6005c);
    background: var(--light-pink, #f9cedf);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tags at top of article (in-content) */
.taxonomy-post_tag,
.wp-block-post-terms {
    margin-bottom: 1.5rem;
}

.wp-block-post-terms a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    margin-right: 0.5rem;
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--light-gray, #dcdee0);
    border-radius: 25px;
    color: var(--primary-dark, #1d2939);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-post-terms a:hover {
    border-color: var(--primary-magenta, #e6005c);
    color: var(--primary-magenta, #e6005c);
    background: var(--light-pink, #f9cedf);
    transform: translateY(-2px);
}

/* Hide comma separators */
.wp-block-post-terms__separator {
    display: none;
}

/* Dark Mode for Article Tags */
body.dark-mode .post-tag,
body.dark-mode .wp-block-post-terms a {
    background: var(--bg-secondary, #232937);
    border-color: var(--border-default, #2a3142);
    color: var(--text-primary, #e8ecf2);
}

body.dark-mode .post-tag:hover,
body.dark-mode .wp-block-post-terms a:hover {
    border-color: var(--primary-magenta, #e6005c);
    color: var(--primary-magenta, #e6005c);
    background: rgba(230, 0, 92, 0.15);
}

body.dark-mode .blog-post-tags {
    border-top-color: var(--border-default, #2a3142);
}

body.dark-mode .blog-post-tags h3 {
    color: var(--text-primary, #e8ecf2);
}

/* ============================================
   SEARCH RESULTS PAGE - FIXES 2025-01-06
   ============================================ */

.blog-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.search-navigation {
    margin-bottom: 2rem;
}

.back-to-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-magenta, #e6005c);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog-link:hover {
    color: #cc0052;
    transform: translateX(-4px);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--text-secondary, #555555);
    margin-bottom: 1.5rem;
}

.no-results a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-magenta, #e6005c);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results a:hover {
    background: #cc0052;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Dark Mode for Search Results */
body.dark-mode .back-to-blog-link {
    color: var(--primary-magenta, #e6005c);
}

body.dark-mode .no-results p {
    color: var(--text-secondary, #b8c3d1);
}

/* Mobile for Search Results */
@media (max-width: 768px) {
    .blog-container-wide {
        padding: 1.5rem 1rem;
    }
}

/* End of Style Fixes 2025-01-06 */