/*
Theme Name: GesundeFakten Theme
Description: Ein WordPress-Theme für GesundeFakten.com
Version: 1.0
Author: Custom Development
*/

/* Reset und Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg,
        #f8f9fa 0%,
        #ffffff 25%,
        #f8f9fa 50%,
        #ffffff 75%,
        #f8f9fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
}

/* Bulletproof CSS-Only Slider */
.hero-slider-section {
    padding: 30px 20px;
    margin: 20px 0;
}

.slider-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    text-align: center;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bulletproof-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Hide radio inputs */
.bulletproof-slider input[type="radio"] {
    display: none;
}

/* Slide styling */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

/* Show active slide */
.bulletproof-slider input[type="radio"]:checked + .slide {
    opacity: 1;
    z-index: 2;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.slide-link:hover .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    display: none;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.03) 15%,
        transparent 30%,
        transparent 100%
    );
}

.slide-category {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-excerpt {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.slide-link:hover .slide-cta {
    background: linear-gradient(135deg, #2980b9, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Navigation Dots - Light Theme */
.slider-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.5);
}

.nav-dot:hover {
    background: rgba(52, 152, 219, 0.6);
    transform: scale(1.2);
    border-color: #3498db;
}

/* Individual dot activation - Light Theme */
.bulletproof-slider input[type="radio"]#slide-1:checked ~ .slider-navigation .nav-dot[data-slide="1"],
.bulletproof-slider input[type="radio"]#slide-2:checked ~ .slider-navigation .nav-dot[data-slide="2"],
.bulletproof-slider input[type="radio"]#slide-3:checked ~ .slider-navigation .nav-dot[data-slide="3"],
.bulletproof-slider input[type="radio"]#slide-4:checked ~ .slider-navigation .nav-dot[data-slide="4"] {
    background: #3498db;
    border-color: #2980b9;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
    transform: scale(1.3);
}

/* Progress Bars */
.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10;
    display: flex;
}

.progress-bar {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

/* Progress bar activation */
.bulletproof-slider input[type="radio"]#slide-1:checked ~ .slider-progress .progress-bar[data-slide="1"]::before,
.bulletproof-slider input[type="radio"]#slide-2:checked ~ .slider-progress .progress-bar[data-slide="2"]::before,
.bulletproof-slider input[type="radio"]#slide-3:checked ~ .slider-progress .progress-bar[data-slide="3"]::before,
.bulletproof-slider input[type="radio"]#slide-4:checked ~ .slider-progress .progress-bar[data-slide="4"]::before {
    width: 100%;
}

/* Auto-play Animation */
@keyframes autoSlide {
    0%, 20% { opacity: 1; }
    25%, 95% { opacity: 0; }
    100% { opacity: 0; }
}

/* AutoPlay handled by JavaScript */


/* Swipe indicators for mobile */
.swipe-indicator {
    display: none;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: #4a5568;
    font-size: 12px;
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Enhanced dots for better mobile interaction */
.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

/* Larger touch targets for mobile */
.nav-dot::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bulletproof-slider {
        height: 400px;
        border-radius: 15px;
        position: relative;
    }

    .slide-content {
        padding: 25px;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero-slider-section {
        padding: 20px 15px;
    }

    .slider-title {
        font-size: 26px;
    }


    .swipe-indicator {
        display: block;
    }

    /* Larger dots for mobile */
    .nav-dot {
        width: 14px;
        height: 14px;
        margin: 0 2px;
    }

    .slider-navigation {
        bottom: 20px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .bulletproof-slider {
        height: 350px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .slide-excerpt {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .slide-cta {
        padding: 10px 20px;
        font-size: 12px;
    }


    .nav-dot {
        width: 12px;
        height: 12px;
    }
}

/* Hide Tags section in posts */
.post-tags,
.entry-tags,
.tags,
.tag-links,
.post-meta .tags,
.entry-meta .tags,
.single-post .tags {
    display: none !important;
}

/* Hide any element containing "Tags:" */
p:contains("Tags:"),
div:contains("Tags:"),
span:contains("Tags:") {
    display: none !important;
}

/* Featured Posts Grid */
.featured-posts-section {
    padding: 40px 25px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(52, 152, 219, 0.08);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.section-title:after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #1e88e5);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
}

.post-card-main {
    grid-row: 1 / 3;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.post-card-image {
    position: relative;
    overflow: hidden;
}

.post-card-main .post-card-image {
    height: 320px;
}

.post-card-small .post-card-image {
    height: 160px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: contrast(1.1) brightness(1.05);
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
    filter: contrast(1.15) brightness(1.1);
}

.post-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(52, 152, 219, 0.05) 100%
    );
    pointer-events: none;
}

.post-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.4);
    backdrop-filter: blur(8px);
}

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 320px);
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.post-card-small .post-card-content {
    height: calc(100% - 160px);
    padding: 18px;
}

.post-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease;
}

.post-card:hover .post-card-title {
    color: #2980b9;
}

.post-card-main .post-card-title {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 800;
}

.post-card-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
    font-size: 14px;
    font-weight: 400;
}

.post-card-small .post-card-excerpt {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(52, 152, 219, 0.1);
}

.post-card-date {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.post-card-date::before {
    content: '📅';
    margin-right: 6px;
    font-size: 10px;
}

.post-card-read-more {
    font-size: 12px;
    color: #3498db;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.post-card-read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-read-more {
    color: #2980b9;
}

.post-card:hover .post-card-read-more::after {
    transform: translateX(4px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .post-card-main {
        grid-row: auto;
    }

    .post-card-main .post-card-image,
    .post-card-small .post-card-image {
        height: 200px;
    }

    .featured-posts-section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* Normale, schicke Tabelle */
.treatment-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: white;
}

.treatment-comparison-table th,
.treatment-comparison-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 33.33%;
}

.treatment-comparison-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.treatment-comparison-table .high { color: #d73527; }
.treatment-comparison-table .medium { color: #f57c00; }
.treatment-comparison-table .low { color: #388e3c; }
.treatment-comparison-table .neutral { color: #666; }

/* Mobile Optimierung */
@media (max-width: 768px) {
    .treatment-comparison-table table {
        font-size: 13px;
    }

    .treatment-comparison-table th,
    .treatment-comparison-table td {
        padding: 10px 8px;
    }
}





/* Dynamic color accents */
.dynamic-accent {
    --accent-color: #37b8eb;
    animation: colorCycle 12s ease-in-out infinite;
}

@keyframes colorCycle {
    0%, 100% { --accent-color: #37b8eb; }
    25% { --accent-color: #28a745; }
    50% { --accent-color: #fd7e14; }
    75% { --accent-color: #dc3545; }
}

/* Header */
.site-header {
    background: #fff;
    padding: 0;
    text-align: center;
    border-bottom: none;
}

.site-branding {
    padding: 20px 0 10px 0;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
}

.logo-icon {
    flex-shrink: 0;
}

.site-branding h1 {
    font-size: 36px;
    font-weight: normal;
    margin: 0;
    color: #333;
}

.site-branding h1 .blue {
    color: #37b8eb;
}

.site-branding h1 a {
    color: #333;
    text-decoration: none;
}

.site-title {
    background: none !important;
}

.site-branding p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 13px;
}

/* Top Navigation */
.top-nav {
    background: #37b8eb;
    padding: 8px 0;
    font-size: 11px;
}

.top-nav .container {
    box-shadow: none;
    background: none;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-left .current-date {
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.top-nav-center a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    font-size: 11px;
}

.top-nav-center a:hover {
    text-decoration: underline;
}

.top-nav-right {
    display: flex;
    align-items: center;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

.header-search-field {
    border: none;
    padding: 6px 10px;
    font-size: 11px;
    outline: none;
    width: 120px;
    background: transparent;
}

.header-search-field::placeholder {
    color: #999;
}

.header-search-submit {
    background: #37b8eb;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.header-search-submit:hover {
    background: #2a8fc7;
}

.header-search-submit svg {
    width: 14px;
    height: 14px;
}

/* Enhanced Main Navigation */
.main-navigation {
    background: linear-gradient(135deg, #37b8eb 0%, #2a9fd9 50%, #1e8bc3 100%);
    padding: 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(55, 184, 235, 0.3);
    overflow: hidden;
}

.main-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 3s ease-in-out;
    animation: navShine 6s infinite;
}

@keyframes navShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main-navigation li {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.main-navigation li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main-navigation li:hover::before {
    left: 100%;
}

.main-navigation a {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 -60px 30px rgba(255, 255, 255, 0.1);
}

.main-navigation a:hover::after {
    width: 80%;
}

.main-navigation a:active {
    transform: translateY(0);
}

/* Active menu item */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 -60px 30px rgba(255, 255, 255, 0.1);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 80%;
    background: #fff;
}

/* Dropdown Menu Enhancement */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(55, 184, 235, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
    flex-direction: column;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul a {
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.main-navigation ul ul a:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 25px;
}


/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(55, 184, 235, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(55, 184, 235, 0.1) 0%,
        rgba(220, 53, 69, 0.1) 25%,
        rgba(40, 167, 69, 0.1) 50%,
        rgba(253, 126, 20, 0.1) 75%,
        rgba(55, 184, 235, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
    animation: colorShift 10s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% { opacity: 0.2; }
    25% { opacity: 0.4; }
    50% { opacity: 0.3; }
    75% { opacity: 0.5; }
}

.slider-container {
    position: relative;
    height: 100%;
    z-index: 2;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
    transition: filter 0.8s ease, transform 0.3s ease;
}

.slide:hover .slide-image {
    filter: brightness(0.9) contrast(1.2) saturate(1.3);
    transform: scale(1.02);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    color: #ffffff;
    padding: 40px 30px 25px;
    z-index: 3;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(0, 0, 0, 1),
        0 0 2px rgba(0, 0, 0, 1);
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #37b8eb, #4ecdc4);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(55, 184, 235, 0.5);
    transition: width 0.1s linear;
}

.slide.active .progress-bar {
    animation: progressAnimation 5s linear;
}

@keyframes progressAnimation {
    from { width: 0%; }
    to { width: 100%; }
}

/* Slider Navigation */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #37b8eb;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 200px;
    }

    .slide-title {
        font-size: 16px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}

/* Main Content Layout */
.site-main {
    display: flex;
    gap: 20px;
    padding: 0 15px 0 15px;
}

.content-area {
    flex: 2;
}

.widget-area {
    flex: 1;
    background: none;
    padding: 0;
}

/* Category Showcase Section */
.category-showcase {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(0);
}

.category-showcase[data-category] {
    --category-color: #37b8eb;
}

.category-showcase[data-category="diaeten"] {
    --category-color: #37b8eb;
}

.category-showcase[data-category="ernaehrung"] {
    --category-color: #28a745;
}

.category-showcase[data-category="fitness"] {
    --category-color: #fd7e14;
}

.category-showcase[data-category="gesundheit"] {
    --category-color: #dc3545;
}

.category-showcase.fade-in {
    animation: showcaseFadeIn 0.5s ease-in-out forwards;
}

.category-showcase.fade-out {
    animation: showcaseFadeOut 0.3s ease-in-out forwards;
}

@keyframes showcaseFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes showcaseFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.category-title {
    background-color: var(--category-color, #f8f8f8);
    border-bottom: 1px solid #ddd;
    padding: 8px 15px;
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.category-content {
    display: flex;
    gap: 15px;
    padding: 12px;
    align-items: flex-start;
}

.featured-article {
    flex: 2;
    max-width: 60%;
}

.featured-image {
    margin-bottom: 10px;
}

.featured-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
}

.featured-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.featured-title a {
    color: #333;
    text-decoration: none;
}

.featured-title a:hover {
    color: #37b8eb;
}

.featured-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.weiterlesen-btn {
    display: inline-block;
    background: #37b8eb;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
}

.weiterlesen-btn:hover {
    background: #2a8fc7;
}

.related-articles {
    flex: 1;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 3px;
    min-width: 200px;
    max-width: 40%;
}

.related-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #ddd;
}

.related-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.related-image {
    flex-shrink: 0;
}

.related-image img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
}

.related-content {
    flex: 1;
}

.related-title {
    font-size: 11px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.related-title a {
    color: #333;
    text-decoration: none;
}

.related-title a:hover {
    color: #37b8eb;
}

/* Mobile Responsive for Category Showcase */
@media (max-width: 768px) {
    .category-content {
        flex-direction: column;
        gap: 15px;
    }

    .featured-image img {
        height: 150px;
    }

    .related-articles {
        background: none;
        padding: 0;
    }

    .related-item {
        background: #f8f8f8;
        padding: 10px;
        border-radius: 3px;
        border-bottom: none;
        margin-bottom: 10px;
    }
}

/* Cool Category Tab System */
.category-tabs-system {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.category-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.category-tab:hover {
    color: #37b8eb;
    background: rgba(55, 184, 235, 0.1);
}

.category-tab.active {
    background: linear-gradient(135deg, #37b8eb, #4ecdc4);
    color: white;
    box-shadow: 0 4px 20px rgba(55, 184, 235, 0.3);
}

/* Clean Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 0;
}

/* Modern Post Cards */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: translateY(0);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-card.featured-post {
    grid-column: span 2;
    grid-row: span 2;
}

/* Category Filter States */
.post-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-card.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Post Image */
.post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-img {
    transform: scale(1.05);
}

.featured-post .post-image {
    aspect-ratio: 16/9;
}

/* Post Content */
.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #37b8eb, #4ecdc4);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Post Title */
.post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #37b8eb;
}

.featured-post .post-title {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #888;
}

.post-date, .post-author {
    display: flex;
    align-items: center;
}

/* Post Excerpt */
.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Read More Button */
.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #37b8eb;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    background: #2a8fc7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 184, 235, 0.3);
}

/* Parallax Content */
.masonry-tile .tile-content-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.masonry-tile:hover .tile-content-wrapper {
    transform: translateZ(20px);
}

/* Magnetic Effect */
.masonry-tile.magnetic {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Staggered Animation Classes */
.masonry-tile:nth-child(6n+1) {
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.masonry-tile:nth-child(6n+2) {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.masonry-tile:nth-child(6n+3) {
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.masonry-tile:nth-child(6n+4) {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.masonry-tile:nth-child(6n+5) {
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.masonry-tile:nth-child(6n+6) {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Ripple effect animation */
@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design for New System */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .post-card.featured-post {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 6px;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-content {
        padding: 15px;
    }

    .post-title {
        font-size: 16px;
    }

    .featured-post .post-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .category-tabs-system {
        margin-bottom: 30px;
    }

    .category-tabs {
        padding: 4px;
    }

    .category-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .post-content {
        padding: 12px;
    }
}

/* Kachel-Größen */
.tile-large {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-wide {
    grid-column: span 2;
}

.tile-tall {
    grid-row: span 2;
}

.tile-normal {
    /* Standard-Größe */
}

/* Bild-Container */
.tile-image-container {
    position: relative;
    overflow: hidden;
}

.tile-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1) contrast(1.05) saturate(1.1);
    transform-origin: center center;
}

.masonry-tile.featured .tile-image {
    height: 300px;
}

.masonry-tile.wide .tile-image {
    height: 240px;
}

.masonry-tile.tall .tile-image {
    height: 300px;
}

.masonry-tile:hover .tile-image {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.2) contrast(1.2) saturate(1.4) hue-rotate(5deg);
}

/* Floating Animation */
.floating-tile {
    animation: floatingTile 4s ease-in-out infinite;
}

@keyframes floatingTile {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

/* Category-specific glow effects */
.category-diaeten::after {
    background: linear-gradient(45deg, #37b8eb, #4ecdc4, #37b8eb);
}

.category-ernaehrung::after {
    background: linear-gradient(45deg, #28a745, #20c997, #28a745);
}

.category-fitness::after {
    background: linear-gradient(45deg, #fd7e14, #ff9500, #fd7e14);
}

.category-gesundheit::after {
    background: linear-gradient(45deg, #dc3545, #e91e63, #dc3545);
}

/* Overlay */
.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(55, 184, 235, 0.85) 0%,
        rgba(42, 143, 199, 0.7) 50%,
        rgba(30, 120, 180, 0.9) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.masonry-tile:hover .tile-overlay {
    opacity: 1;
}

.tile-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.masonry-tile:hover .tile-category {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Content */
.tile-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.tile-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.tile-large .tile-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.tile-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, #37b8eb, #4ecdc4);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    position: relative;
    display: inline-block;
}

.tile-title a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(55, 184, 235, 0.1),
        rgba(78, 205, 196, 0.1));
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.tile-title a:hover {
    color: #37b8eb;
    background-size: 100% 2px;
    transform: translateX(3px) translateY(-1px);
}

.tile-title a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced tile link */
.tile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #37b8eb, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(55, 184, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.tile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s;
}

.tile-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(55, 184, 235, 0.4);
    background: linear-gradient(135deg, #4ecdc4, #37b8eb);
}

.tile-link:hover::before {
    left: 100%;
}

.tile-link svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tile-link:hover svg {
    transform: translateX(3px);
}

.tile-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.tile-meta .tile-date {
    margin-right: 10px;
}

.tile-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tile-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #37b8eb, #2a8fc7);
    color: #fff;
    padding: 8px 15px;
    font-size: 11px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.tile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(55, 184, 235, 0.3);
}

.tile-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.tile-link:hover::after {
    transform: translateX(3px);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .tile-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .tile-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tile-large,
    .tile-wide,
    .tile-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .tile-image {
        height: 180px;
    }

    .tile-large .tile-image,
    .tile-tall .tile-image {
        height: 180px;
    }
}

/* Legacy Article Grid Support */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

/* Sidebar */
.widget {
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #ddd;
}

.widget-title {
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-transform: none;
}

.widget-content {
    padding: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 12px;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.widget a:hover {
    color: #37b8eb;
    text-decoration: underline;
}

/* Tab Widget */
.tab-widget {
    background: #fff;
    border: 1px solid #ddd;
}

.tab-navigation {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.tab-btn.active {
    background: #fff;
    color: #333;
    border-bottom: 2px solid #37b8eb;
    font-weight: bold;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 10px;
}

.tab-pane.active {
    display: block;
}

.tab-article-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ddd;
}

.tab-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tab-article-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

.tab-article-content {
    flex: 1;
}

.tab-article-title {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 3px 0;
}

.tab-article-title a {
    color: #333;
    text-decoration: none;
}

.tab-article-title a:hover {
    color: #37b8eb;
}

.tab-article-meta {
    font-size: 10px;
    color: #999;
}

/* Tags Cloud in Tab */
.tags-cloud {
    line-height: 1.6;
}

.tag-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin: 2px 4px;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #37b8eb;
    color: #fff;
    border-color: #37b8eb;
}

/* Mobile Responsive for Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: auto;
        font-size: 10px;
        padding: 6px 8px;
    }
}

/* Legacy Support for non-tab articles */
.latest-articles-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ddd;
}

.latest-articles-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.latest-article-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    flex-shrink: 0;
}

.latest-article-content {
    flex: 1;
}

.latest-article-title {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 3px 0;
}

.latest-article-title a {
    color: #333;
    text-decoration: none;
}

.latest-article-title a:hover {
    color: #37b8eb;
}

.latest-article-meta {
    font-size: 10px;
    color: #999;
}

/* Enhanced Pagination */
.pagination-wrapper {
    margin: 30px 0;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.custom-pagination a,
.custom-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    min-width: 35px;
    text-align: center;
    transition: all 0.3s;
}

.custom-pagination a:hover {
    background: #37b8eb;
    color: #fff;
    border-color: #37b8eb;
}

.custom-pagination .current {
    background: #37b8eb;
    color: #fff;
    border-color: #37b8eb;
    font-weight: bold;
}

.custom-pagination .dots {
    background: transparent;
    border: none;
    color: #999;
}

.pagination-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Legacy Pagination Support */
.pagination {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 8px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.pagination a:hover {
    background: #37b8eb;
    color: #fff;
    border-color: #37b8eb;
}

.pagination .current {
    background: #37b8eb;
    color: #fff;
    border-color: #37b8eb;
}

/* Clean Footer Like Original */
.site-footer {
    background: #e8e8e8;
    color: #888;
    padding: 0;
    margin-top: 0;
    border-top: 4px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 0;
    padding: 40px 40px 20px 40px;
}

/* Footer Brand */
.footer-brand {
    padding-right: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 28px;
    font-weight: 400;
    color: #888;
    margin: 0;
}

.footer-logo h3 .blue {
    color: #37b8eb;
    font-weight: 400;
}

.footer-tagline {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: normal;
}

/* Footer Categories */
.footer-categories h4,
.footer-nav h4 {
    color: #666;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #37b8eb;
}

.category-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-link:hover {
    color: #37b8eb;
    background: rgba(55, 184, 235, 0.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #37b8eb;
    background: rgba(55, 184, 235, 0.1);
}

/* Sidebar Categories Widget */
.categories-widget {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.categories-widget .widget-title {
    background: #37b8eb;
    color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.categories-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.categories-list .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
}

.categories-list .category-link:last-child {
    border-bottom: none;
}

.categories-list .category-link:hover {
    color: #37b8eb;
    background: rgba(55, 184, 235, 0.1);
}

.categories-list .category-name {
    flex: 1;
}

.categories-list .category-count {
    color: #666;
    font-size: 12px;
}

/* Popular Posts Widget */
.popular-posts-widget {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.popular-posts-widget .widget-title {
    background: #37b8eb;
    color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.popular-posts-list {
    padding: 12px;
}

.popular-post-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item:hover {
    background: rgba(55, 184, 235, 0.05);
}

.popular-post-thumb-link {
    flex-shrink: 0;
}

.popular-post-thumb,
.popular-post-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 20px;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.3;
}

.popular-post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.popular-post-title a:hover {
    color: #37b8eb;
}

.popular-post-meta {
    font-size: 11px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-post-views {
    color: #37b8eb;
    font-weight: 600;
}

/* Sidebar Tags Widget */
.tags-widget {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.tags-widget .widget-title {
    background: #37b8eb;
    color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.tags-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tags-list .tag-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
}

.tags-list .tag-link:last-child {
    border-bottom: none;
}

.tags-list .tag-link:hover {
    color: #37b8eb;
    background: rgba(55, 184, 235, 0.1);
}

.tags-list .tag-name {
    flex: 1;
}

.tags-list .tag-count {
    color: #666;
    font-size: 12px;
}

/* Footer Navigation */
.footer-nav {
    text-align: left;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.6;
}

.footer-link:hover {
    color: #37b8eb;
}

/* Footer Social */
.footer-social {
    text-align: right;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #d0d0d0;
    border-radius: 0;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.social-link:hover {
    background: #37b8eb;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #ccc;
    padding: 25px 40px 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-disclaimer {
    flex: 1;
}

.footer-disclaimer p {
    color: #666;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    padding-right: 20px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    font-size: 11px;
}

.legal-link {
    color: #888;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #37b8eb;
}

.copyright {
    color: #888;
    font-size: 11px;
    font-weight: normal;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-disclaimer p {
        padding-right: 0;
    }
}

/* Category and Archive Pages */
.category-main,
.archive-main {
    background: #fff;
    padding: 0;
    margin: 0;
}

.category-header,
.archive-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.category-header-content,
.archive-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.category-title-section,
.archive-title-section {
    padding: 40px 0 60px 0;
    text-align: center;
}

.category-title,
.archive-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-description,
.archive-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.category-meta,
.archive-meta {
    color: #37b8eb;
    font-weight: 600;
    font-size: 16px;
}

.category-content,
.archive-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.category-posts-grid,
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-post-card,
.archive-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}


.category-post-card:hover,
.archive-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #37b8eb;
}

.category-post-link,
.archive-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-post-image,
.archive-post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-post-image img,
.archive-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post-card:hover .category-post-image img,
.archive-post-card:hover .archive-post-image img {
    transform: scale(1.05);
}

.category-post-image-placeholder,
.archive-post-image-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    color: #ccc;
    text-align: center;
}

.category-post-content,
.archive-post-content {
    padding: 25px;
}

.category-post-category,
.archive-post-category {
    display: inline-block;
    background: #37b8eb;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.category-post-title,
.archive-post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #333;
}

.category-post-excerpt,
.archive-post-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.category-post-meta,
.archive-post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.category-post-date,
.archive-post-date,
.category-post-author,
.archive-post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-post-date svg,
.archive-post-date svg,
.category-post-author svg,
.archive-post-author svg {
    opacity: 0.7;
}

/* Pagination */
.category-pagination,
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.category-pagination ul,
.archive-pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.category-pagination li,
.archive-pagination li {
    margin: 0;
}

.category-pagination a,
.archive-pagination a,
.category-pagination span,
.archive-pagination span {
    display: block;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pagination a:hover,
.archive-pagination a:hover {
    background: #37b8eb;
    color: white;
    border-color: #37b8eb;
}

.category-pagination .current,
.archive-pagination .current {
    background: #37b8eb;
    color: white;
    border-color: #37b8eb;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 80px 40px;
    grid-column: 1 / -1;
}

.no-posts-found h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.no-posts-found p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-block;
    background: #37b8eb;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: #2a9fd9;
    transform: translateY(-2px);
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .category-posts-grid,
    .archive-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .category-posts-grid,
    .archive-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .category-header-content,
    .archive-header-content,
    .category-content,
    .archive-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .category-title,
    .archive-title {
        font-size: 32px;
    }

    .category-posts-grid,
    .archive-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: none;
    }

    .category-post-meta,
    .archive-post-meta {
        flex-direction: column;
        gap: 8px;
    }

}

/* Enhanced Beautiful Single Post Page */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(55, 184, 235, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #37b8eb, #2a9fd9);
    width: 0%;
    transition: width 0.2s ease;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 0;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.breadcrumb-nav a {
    color: #37b8eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #2a9fd9;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Hero Section */
.single-post-hero {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.single-post-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.single-post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 50px 40px 40px;
    color: white;
}

.single-post-category-badge {
    display: inline-block;
    margin-bottom: 15px;
}

.single-post-category-badge a {
    background: #37b8eb;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.single-post-category-badge a:hover {
    background: #2a9fd9;
    transform: translateY(-1px);
}

.single-post-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(0, 0, 0, 1),
        0 0 2px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: inline-block;
    max-width: fit-content;
}

.single-post-meta {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post-meta svg {
    opacity: 0.8;
}

/* Header Simple (no featured image) */
.single-post-header-simple {
    text-align: center;
    margin: 0;
    padding: 60px 40px;
    background: transparent;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header-simple .single-post-title {
    color: #333;
    text-shadow: none;
    margin-bottom: 20px;
}

.single-post-header-simple .single-post-meta {
    justify-content: center;
    color: #666;
}

/* Enhanced Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
}

.table-of-contents::before {
    content: '📋';
    position: absolute;
    top: -10px;
    left: 30px;
    background: #37b8eb;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(55, 184, 235, 0.3);
}

.table-of-contents.show {
    display: block;
    animation: slideInTOC 0.5s ease-out;
}

@keyframes slideInTOC {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-of-contents h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.table-of-contents li {
    margin-bottom: 12px;
    counter-increment: toc-counter;
    position: relative;
}

.table-of-contents a {
    color: #37b8eb;
    text-decoration: none;
    padding: 12px 20px 12px 45px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
}

.table-of-contents a::before {
    content: counter(toc-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #37b8eb;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.table-of-contents a:hover {
    background: rgba(55, 184, 235, 0.1);
    border-left-color: #37b8eb;
    transform: translateX(5px);
    color: #2a9fd9;
}

.table-of-contents a.active {
    background: rgba(55, 184, 235, 0.15);
    border-left-color: #37b8eb;
    color: #2a9fd9;
    font-weight: 600;
}

.table-of-contents a.active::before {
    background: #2a9fd9;
}

/* Social Share Sticky */
.social-share-sticky {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy-link {
    background: #666;
}

/* Post Content */
.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 40px 60px 40px;
    background: #fff;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.single-post-content h2 {
    font-size: 32px;
    border-bottom: 3px solid #37b8eb;
    padding-bottom: 10px;
}

.single-post-content h3 {
    font-size: 26px;
    color: #37b8eb;
}

.single-post-content h4 {
    font-size: 22px;
}

.single-post-content p {
    margin-bottom: 25px;
}

.single-post-content blockquote {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-left: 5px solid #37b8eb;
    margin: 35px 0;
    padding: 25px 35px;
    font-style: italic;
    font-size: 20px;
    color: #495057;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(55, 184, 235, 0.1);
    position: relative;
}

.single-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 25px;
    font-size: 60px;
    color: #37b8eb;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.single-post-content blockquote p {
    margin: 0;
    line-height: 1.6;
}

.single-post-content ul,
.single-post-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

/* Beautiful Tables */
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e6ed;
}

.single-post-content thead {
    background: linear-gradient(135deg, #37b8eb, #2a9fd9);
    color: white;
}

.single-post-content th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.single-post-content td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: top;
    transition: background-color 0.3s ease;
}

.single-post-content tr:nth-child(even) td {
    background: #f8f9fa;
}

.single-post-content tr:hover td {
    background: rgba(55, 184, 235, 0.05);
}

.single-post-content tr:last-child td {
    border-bottom: none;
}

/* Table responsive wrapper */
.single-post-content .table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Enhanced Images */
.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    margin: 25px 0;
    transition: all 0.3s ease;
}

.single-post-content img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Image captions */
.single-post-content .wp-caption {
    max-width: 100%;
    margin: 30px 0;
    text-align: center;
}

.single-post-content .wp-caption img {
    margin: 0;
}

.single-post-content .wp-caption-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    padding: 0 20px;
}

/* Figure elements */
.single-post-content figure {
    margin: 30px 0;
    text-align: center;
}

.single-post-content figure img {
    margin-bottom: 15px;
}

.single-post-content figcaption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    padding: 0 20px;
}

/* Enhanced Content Elements */
.single-post-content strong,
.single-post-content b {
    color: #2c3e50;
    font-weight: 700;
}

.single-post-content em,
.single-post-content i {
    color: #495057;
}

.single-post-content a {
    color: #37b8eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.single-post-content a:hover {
    color: #2a9fd9;
    border-bottom-color: #2a9fd9;
}

/* Code styling */
.single-post-content code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 85%;
}

.single-post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Horizontal rules */
.single-post-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #37b8eb, transparent);
    margin: 40px 0;
    border-radius: 3px;
}

/* Callout boxes */
.single-post-content .callout,
.single-post-content .notice {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border-left: 5px solid #37b8eb;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(55, 184, 235, 0.1);
}

.single-post-content .callout.warning {
    background: linear-gradient(135deg, #fff3cd, #f8f9fa);
    border-left-color: #ffc107;
}

.single-post-content .callout.error {
    background: linear-gradient(135deg, #f8d7da, #f8f9fa);
    border-left-color: #dc3545;
}

.single-post-content .callout.success {
    background: linear-gradient(135deg, #d4edda, #f8f9fa);
    border-left-color: #28a745;
}

/* Tags Section - Hidden */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: white;
    color: #37b8eb;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #37b8eb;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #37b8eb;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Post Navigation */
.enhanced-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.nav-post {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    border-right: 1px solid #eee;
}

.nav-post:last-child {
    border-right: none;
}

.nav-post:hover {
    background: #f8f9fa;
    transform: none;
}

.nav-direction {
    display: block;
    padding: 15px 20px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
    background: #f8f9fa;
}

.nav-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.nav-post-image {
    height: 180px;
    overflow: hidden;
}

.nav-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-post:hover .nav-post-image img {
    transform: scale(1.05);
}

.nav-post-content {
    padding: 20px 30px 30px 30px;
}

.nav-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.nav-post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.prev-post .nav-direction {
    text-align: left;
}

.next-post .nav-direction {
    text-align: right;
}

/* Related Articles */
.related-articles {
    margin: 0;
    padding: 60px 40px;
    background: #f8f9fa;
    width: 100%;
    max-width: none;
}

.related-articles h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    position: relative;
}

.related-articles h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #37b8eb;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #37b8eb;
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

/* Better placeholder for related articles without images */
.related-image:empty::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ccc' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.related-content {
    padding: 25px;
}

.related-category {
    color: #37b8eb;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.related-title {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #333;
}

.related-meta {
    color: #666;
    font-size: 14px;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .social-share-sticky {
        position: static;
        transform: none;
        margin: 30px 0;
        left: auto;
        top: auto;
    }

    .social-share-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .single-post-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .single-post-hero-overlay {
        padding: 30px 20px 25px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .enhanced-post-navigation {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .single-post-content {
        font-size: 16px;
    }

    .breadcrumb-nav {
        font-size: 12px;
    }

    .share-btn {
        width: 45px;
        height: 45px;
    }
}

/* Natural Single Post Page */
.single-post-main {
    background: #fff;
    padding: 0;
    margin: 0;
}

.single-post-wrapper {
    max-width: none;
    margin: 0;
    background: transparent;
    min-height: auto;
    box-shadow: none;
    border: none;
}

.single-post-article {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.single-post-article {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
}

.single-post-thumbnail {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.single-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.single-post-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #37b8eb, #4ecdc4);
    color: white;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.single-post-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #888;
}

.single-post-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #333;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.single-post-content h2 {
    font-size: 24px;
}

.single-post-content h3 {
    font-size: 20px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-navigation {
    padding: 30px 40px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-navigation a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.nav-title {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive Single Post */
@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 0 15px;
    }

    .single-post-thumbnail {
        height: 250px;
    }

    .single-post-header {
        padding: 30px 20px 15px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .single-post-content {
        padding: 30px 20px;
        font-size: 15px;
    }

    .single-post-navigation {
        padding: 20px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-content a {
        display: block;
        margin: 5px 0;
    }
}

/* Search Form */
.search-form {
    margin-bottom: 15px;
}

.search-field {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    font-size: 12px;
}

.search-submit {
    width: 100%;
    padding: 6px;
    background: #666;
    color: #fff;
    border: none;
    font-size: 12px;
    margin-top: 5px;
    cursor: pointer;
}

.search-submit:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 95% !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 98% !important;
        margin: 0 auto !important;
        padding: 0 5px !important;
    }
}

@media (max-width: 768px) {
    .site-main {
        flex-direction: column;
        padding: 0 10px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-navigation {
        background: linear-gradient(135deg, #37b8eb 0%, #2a9fd9 100%);
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
        font-size: 16px;
    }

    .main-navigation a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
        padding-left: 30px;
    }

    .hero-section {
        height: 200px;
    }

    .site-branding h1 {
        font-size: 28px;
    }
}

/* Similar Topics Box - RICHTIGE GROSSE BUTTONS! */
.similar-topics-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.similar-topics-box h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.big-topic-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.big-topic-btn {
    display: block;
    background: #37b8eb;
    color: white !important;
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.big-topic-btn:hover {
    background: #2a9fd9;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 184, 235, 0.3);
}

.big-topic-btn:active {
    transform: translateY(0);
}

/* Mobile - NOCH GRÖSSERE BUTTONS */
@media (max-width: 768px) {
    .similar-topics-box {
        padding: 25px 20px;
        margin: 30px 0;
    }

    .big-topic-btn {
        padding: 25px 20px;
        font-size: 17px;
        min-height: 90px;
    }

    .similar-topics-box h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    z-index: 1000;
}

.cookie-banner button {
    background: #37b8eb;
    color: #fff;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
}

/* Back to Top Button - Improved accessibility */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #37b8eb;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: #2a8fc7;
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Infinite Scroll Styles */
.infinite-scroll-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #37b8eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.article-separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding: 15px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #37b8eb, transparent);
}

.separator-text {
    padding: 0 15px;
    background: #fff;
    color: #37b8eb;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

/* Mobile Navigation Toggle */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: #37b8eb;
        color: #fff;
        border: none;
        padding: 10px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        position: absolute;
        top: 10px;
        right: 15px;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #fff;
        margin: 4px auto;
        transition: all 0.3s;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(55, 184, 235, 0.95) 0%, rgba(42, 159, 217, 0.95) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 999;
        border-radius: 0 0 12px 12px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-navigation ul.is-open {
        display: flex;
    }

    .menu-toggle {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.05);
    }
}

/* Additional Accessibility and Performance Improvements */

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    background: #37b8eb;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    display: block;
    text-align: center;
}

/* Improved responsive design with 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;
    }

    .hero-slider .slide {
        transition: none !important;
    }

    .masonry-tile {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .masonry-tile {
        border: 2px solid #000;
    }

    .tab-btn.active {
        border: 3px solid #000;
    }

    .slide-overlay {
        background: rgba(0, 0, 0, 0.9) !important;
    }
}

/* Search Results Styling */
.search-results-main {
    padding: 40px 0;
}

.search-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #37b8eb 0%, #2a9fd9 100%);
    color: white;
    margin-bottom: 40px;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.search-term {
    color: #fff3cd;
    font-style: italic;
}

.search-count {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 0 20px 40px 20px;
}

@media (min-width: 1200px) {
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto 40px auto;
        padding: 0 20px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.search-result-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.search-result-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.search-result-image .result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .result-img {
    transform: scale(1.05);
}

.search-result-content {
    padding: 25px;
}

.result-category {
    margin-bottom: 10px;
}

.result-category a {
    background: linear-gradient(135deg, #37b8eb, #2a9fd9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #37b8eb;
}

.result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.result-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.result-read-more {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #37b8eb, #2a9fd9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.result-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(55, 184, 235, 0.3);
}

.search-pagination {
    margin-top: 50px;
}

.search-pagination .pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-pagination .pagination-wrapper a,
.search-pagination .pagination-wrapper span {
    padding: 12px 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-pagination .pagination-wrapper a:hover {
    background: #37b8eb;
    color: white;
    border-color: #37b8eb;
}

.search-pagination .pagination-wrapper .current {
    background: #37b8eb;
    color: white;
    border-color: #37b8eb;
}

.no-search-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

.no-search-results h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.no-search-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.search-suggestions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    margin-bottom: 15px;
    color: #333;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.search-suggestions li {
    margin-bottom: 8px;
    color: #555;
}

.search-form-wrapper {
    margin-top: 30px;
}

.search-form-wrapper h3 {
    margin-bottom: 15px;
    color: #333;
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-title {
        font-size: 22px;
    }

    .search-header {
        padding: 20px;
        margin-bottom: 30px;
    }

    .search-result-content {
        padding: 20px;
    }

    .result-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Legal Pages Styling */
.legal-page-main {
    padding: 40px 0;
    min-height: 80vh;
}

.legal-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.legal-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.legal-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.legal-content {
    line-height: 1.7;
    color: #555;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #37b8eb;
    margin: 30px 0 20px 0;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.legal-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin: 20px 0 10px 0;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: #37b8eb;
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.contact-info p {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #37b8eb;
    border-radius: 5px;
}

.contact-info strong {
    color: #333;
}

.privacy-summary {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #37b8eb;
    border-radius: 5px;
    margin: 20px 0;
}

.privacy-summary h3 {
    margin-top: 0;
    color: #37b8eb;
}

.privacy-summary ul {
    margin-bottom: 0;
}

.privacy-summary li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .legal-page-content {
        padding: 25px;
        margin: 0 20px;
    }

    .legal-page-header h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 22px;
    }

    .legal-content h3 {
        font-size: 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
        color: #e0e0e0;
    }

    .container {
        background: rgba(30, 30, 30, 0.95);
    }

    .masonry-tile {
        background: #2d2d2d;
        border: 1px solid #444;
    }

    .widget {
        background: #2d2d2d;
        border: 1px solid #444;
    }

    .site-header {
        background: #2d2d2d;
    }
}

/* Print styles */
@media print {
    .hero-slider,
    .slider-dots,
    .slider-arrow,
    .widget-area,
    .site-footer,
    .back-to-top,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .masonry-tile {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Performance: Optimize font loading */
@font-face {
    font-family: 'Segoe UI';
    font-display: swap;
}

/* Improve focus management for accessibility */
*:focus {
    outline: 2px solid #37b8eb;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #37b8eb;
    outline-offset: 2px;
}

/* Loading states for better UX */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #37b8eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error states */
.error {
    border: 2px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success states */
.success {
    border: 2px solid #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

.success-message {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}