/*
Theme Name: Kwidzyn News
Theme URI: http://localhost/kwidzyn
Author: Antigravity & User
Description: Lekki, szybki motyw dla lokalnego portalu newsowego z miejscem na reklamy i partnerow.
Version: 1.1 (Dark Magazine)
Text Domain: kwidzyn-news
*/


:root {
    --primary-color: #0ea5e9;
    /* Logo Blue */
    --accent-color: #0284c7;
    --text-color: #222;
    --bg-color: #f3f4f6;
    --header-bg: #111111;
    /* Dark Header */
    --header-text: #ffffff;
    --footer-bg: #000000;
    --footer-text: #9ca3af;
    --container-width: 1280px;
}

/* Global Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    line-height: 1.6;
}

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (White, Sticky, Modern) */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
    /* Fixed lighter height */
    border: none;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: 15px;
    /* Zmniejszony margines, aby menu się mieściło */
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -0.5px;
    margin: 0;
    display: block;
    white-space: nowrap;
}

.site-description {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    display: block;
}

.site-title-colored {
    color: var(--primary-color);
}

.custom-logo {
    max-height: 55px;
    width: auto;
}

/* Navigation (Desktop) */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-navigation li {
    position: relative;
    /* Context for dropdown */
}

.main-navigation a {
    display: block;
    padding: 24px 8px;
    /* Zredukowane z 15px, aby menu nie było ucinane */
    text-decoration: none;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary-color);
    background: transparent;
}

/* Active Line Indicator */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Search Icon & Mobile Toggle Group */
.header-right-section {
    display: flex;
    align-items: center;
}

/* Search Icon */
.header-actions {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #e5e7eb;
}

.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 5px;
    transition: color 0.2s;
}

.search-toggle-btn:hover {
    color: var(--primary-color);
}

/* Search Overlay */
.search-overlay {
    background: #111;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
}

.search-overlay.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Dropdowns (Desktop White) */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    padding: 10px 0;
    min-width: 220px;
    display: none;
    /* Hidden by default */
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: left;
}

/* Show on hover (Desktop) */
.main-navigation li:hover>ul,
.main-navigation li:focus-within>ul {
    display: flex;
}

.main-navigation ul ul a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
    text-transform: none;
    /* Keep submenus readable */
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

/* Main Grid Layout */
.site-content {
    display: block;
    /* Full Width */
    margin-top: 40px;
    margin-bottom: 40px;
}



/* Desktop Only Styles */
@media (min-width: 769px) {
    .hero-excerpt {
        display: block !important;
    }
}

/* Magazine Layout - Hero Section */
.magazine-top-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    height: 460px;
    /* Fixed height to force alignment */
}

/* Hero Post (First one) */
.post-card.hero-post {
    position: relative;
    height: 100%;
    /* Fill parent */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: 4px;
    border: none;
    background: #000;
    /* Dark bg for transparent images */
}

.hero-post .post-thumbnail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    overflow: hidden;
    /* Ensure zoom stays inside */
}

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

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

.hero-post .post-content-overlay {
    position: relative;
    z-index: 2;
    /* Very strong gradient */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
    width: 100%;
    padding: 30px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.hero-post .post-title {
    margin: 0 0 10px;
    line-height: 1.2;
}

.hero-post .post-title a {
    color: #fff;
    text-decoration: none;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-post .post-meta {
    color: #ccc;
}

/* Secondary Posts (Column) */
.secondary-posts-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    /* Fill parent */
}

.secondary-post {
    display: flex;
    flex-direction: row;
    /* Horizontal layout for side posts */
    align-items: center;
    height: calc(50% - 10px);
    /* Exact split minus gap */
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.secondary-post .post-thumbnail-link {
    height: 100%;
    width: 40%;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}

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

.secondary-post:hover .post-thumbnail {
    transform: scale(1.05);
    /* Add hover effect to secondary too */
}

.secondary-post .post-content {
    padding: 10px 15px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.secondary-post .post-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* General Post Card */
.post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin-top: 0;
}

.post-title a {
    text-decoration: none;
    color: var(--text-color);
}

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

/* Universal Image Zoom Animation for all cards */
.post-card .post-thumbnail img,
.carousel-item .post-thumbnail,
.event-card img {
    transition: transform 0.5s ease;
    display: block;
}

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

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-contact-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-section {
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.main-partner-area {
    text-align: center;
}

.main-partner-area .widget-title {
    color: #fff;
    border-color: var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid;
}

.footer-credits {
    text-align: center;
    font-size: 0.9rem;
}

.site-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Category Labels (Badges) */
.cat-label,
.post-categories {
    display: inline-block;
    margin-bottom: 10px;
}

.cat-label a,
.post-categories li a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s, transform 0.2s;
}

.cat-label a:hover,
.post-categories li a:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* Specific Category Colors (Example Slugs) */
.cat-label a[href*="polityka"],
.post-categories a[href*="polityka"] {
    background-color: #e11d48;
}

.cat-label a[href*="sport"],
.post-categories a[href*="sport"] {
    background-color: #16a34a;
}

.cat-label a[href*="technologia"],
.post-categories a[href*="technologia"] {
    background-color: #9333ea;
}

.cat-label a[href*="film"],
.post-categories a[href*="film"] {
    background-color: #ea580c;
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    margin: 40px 0 20px;
    border-bottom: 2px solid #ddd;
    position: relative;
}

.section-heading h2 {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    position: relative;
    top: 1px;
    /* Overlap border */
}

/* Posts Carousel (Horizontal Scroll) */
.posts-carousel {
    display: flex;
    flex-wrap: nowrap;
    /* Force single row */
    gap: 20px;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    width: 100%;
}

.posts-carousel::-webkit-scrollbar {
    height: 8px;
}

.posts-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.posts-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.carousel-item {
    flex: 0 0 280px;
    /* Fixed width cards */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.carousel-item .post-thumbnail {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Category Carousel Wrapper */
.category-carousel-wrapper {
    margin-bottom: 40px;
    position: relative;
    padding: 0 40px;
    /* Space for buttons */
}

.category-carousel-track {
    /* Reuse posts-carousel styles but ensure it handles overflow */
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-carousel-track::-webkit-scrollbar {
    display: none;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, opacity 0.2s;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.see-more-card {
    transition: transform 0.2s;
}

.see-more-card:hover {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .carousel-item {
        flex: 0 0 85%;
        /* Wider on mobile */
    }
}

/* --- Reklamy (Advanced Ads) --- */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    text-align: center;
    width: 100%;
    clear: both;
}

.ad-banner-a,
.ad-banner-a2 {
    max-width: 970px;
    min-height: 200px;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ad-container:empty {
    display: none;
    /* Ukryj jeśli wtyczka jeszcze nic nie wyświetla */
}

/* =========================================
   6.5 Banery Boczne (Kolumna C1, C2)
   ========================================= */
.sidebar-ad {
    margin-bottom: 0px;
    margin-top: 0px;
    text-align: center;
}
.sidebar-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.ad-banner-c1, .ad-banner-c2 {
    /* Typowo 300x250 lub 300x600 */
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   6.6 Banery Śródtekstowe (Artykuł F1, F2)
   ========================================= */
.banner-f-wrapper {
    margin: 2rem 0;
    clear: both;
}
.in-article-ad {
    text-align: center;
}
.in-article-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Single Post Styles */
/* .single-post-container layout is handled via inline styles or specific media queries */

/* Typography for Article */
.single-post-article .entry-header {
    margin-bottom: 30px;
}

.single-post-article .entry-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.single-post-article .cat-label {
    /* Reuse existing badge style but allow override */
    margin-bottom: 0;
}

.single-post-article .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.single-post-article .entry-content {
    font-size: 1.1rem;
    /* Larger font for reading */
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #111;
}

.entry-content blockquote {
    border-left: 5px solid var(--primary-color);
    margin: 2em 0;
    padding: 10px 20px;
    background: #f9fafb;
    font-style: italic;
    color: #555;
}

/* Sidebar Specifics */
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Mobile responsive for Single Post */
@media (max-width: 1024px) {
    .single-post-container {
        grid-template-columns: 1fr !important;
        /* Stack sidebar below content */
    }

    .single-post-article .entry-title {
        font-size: 2rem;
    }
}

/* Media Query for Mobile and Tablets - MOVED TO END FOR SPECIFICITY */
/* Header Search Styles (General) */
.header-right-widget {
    flex-shrink: 0;
    margin-left: auto;
    /* Push to right */
}

.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    border-radius: 50px;
    /* Fully rounded */
    padding: 5px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 280px;
    /* Fixed styling width */
}

.header-search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

.header-search-form label {
    display: none;
    /* Hide label visually */
}

.header-search-input {
    background: transparent !important;
    /* Force transparent */
    border: none !important;
    color: #fff;
    padding: 8px 10px;
    width: 100%;
    font-size: 0.95rem;
    outline: none !important;
    appearance: none;
    /* Remove browser defaults */
    -webkit-appearance: none;
}

.header-search-input::placeholder {
    color: rgba(70, 69, 69, 0.6);
}

.header-search-submit {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.header-search-submit:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.header-search-submit svg {
    width: 18px;
    height: 18px;
}


/* Media Query for Mobile and Tablets */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Reset inner site-main if it's inside a container to avoid double padding */
    .container>.site-main,
    .container .site-main:not(.container) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .site-content {
        grid-template-columns: 1fr;
    }

    /* 1. Header Layout - Keep it in a Row */
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        height: 60px;
        padding: 0 20px;
    }

    /* 2. Compact Logo */
    .site-branding {
        flex-direction: row !important;
        text-align: left;
        width: auto;
        gap: 8px !important;
        flex-shrink: 1 !important;
        min-width: 0;
        margin-right: 5px;
    }

    .site-title {
        font-size: 0.95rem !important;
        line-height: 1.1;
        white-space: normal;
        /* Pozwalamy na zawijanie jeśli jest bardzo mało miejsca */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .site-description {
        display: none;
        /* Hide description on mobile to save space */
    }

    .custom-logo {
        max-height: 35px;
        width: auto;
    }

    /* 3. Navigation - Slide Down / Absolute */
    /* 3. Navigation - REFACTORED TO HORIZONTAL SCROLL */
    /* Reseting old absolute positioning */
    /* 3. Navigation - REFACTORED TO HORIZONTAL SCROLL */
    /* Reseting old absolute positioning */
    .main-navigation {
        display: none !important;
        /* Hide primary menu on mobile */
        position: static !important;
        width: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }



    .main-navigation ul {
        flex-direction: row !important;
        /* Force row */
        align-items: center !important;
        width: auto !important;
    }

    .cat-sidebar-item {
        padding: 5px !important;
        border: none !important;
    }

    .main-navigation a {
        padding: 10px 10px !important;
        border: none !important;
        width: auto !important;
        text-align: center !important;
    }

    .main-navigation a:hover {
        background: transparent !important;
    }

    /* 4. Mobile Dropdowns - HIDDEN */
    .main-navigation ul ul {
        display: none !important;
    }

    /* 5. Mobile Toggle Button - OLD HIDDEN */
    .menu-toggle {
        display: none !important;
    }

    .hamburger-icon {
        width: 24px;
        height: 18px;
        position: relative;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    .hamburger-icon span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #000;
        /* Dark icon */
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .hamburger-icon span:nth-child(1) {
        top: 0px;
    }

    .hamburger-icon span:nth-child(2) {
        top: 8px;
    }

    .hamburger-icon span:nth-child(3) {
        top: 16px;
    }

    /* Animated Hamburger */
    .menu-toggle.is-active .hamburger-icon span:nth-child(1) {
        top: 8px;
        transform: rotate(135deg);
    }

    .menu-toggle.is-active .hamburger-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .menu-toggle.is-active .hamburger-icon span:nth-child(3) {
        top: 8px;
        transform: rotate(-135deg);
    }

    /* Adjust Search Icon for Mobile to be close to Menu Toggle */
    .header-actions {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }


    /* Hide other desktop widgets */
    .header-right-widget {
        display: none;
    }

    .hero-excerpt,
    .magazine-top-section {
        display: block;
        /* Restore normal block behavior or adjust as needed */
    }
}



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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide toggle on Desktop */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-right-widget {
        width: 100%;
        display: flex;
        justify-content: center;
    }

}

/* Refactored Inline Styles (Clean Code) */

/* Header Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title-text {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
}

.site-title-text a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}

.site-description {
    margin: 5px 0 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
}

/* Post Cards & Carousel */
.hero-excerpt {
    font-size: 1rem;
    margin-top: 10px;
    color: #eee;
}

.secondary-post .post-meta {
    margin-bottom: 5px;
}

.post-meta-date-small {
    font-size: 0.8rem;
    color: #888;
}



/* Carousel Item Content */
.carousel-item-content {
    padding: 15px;
}

.carousel-post-title {
    font-size: 1rem;
    margin: 0 0 5px;
}

.carousel-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}



.see-more-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Single Post Layout */
.single-post-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.single-post-container.full-width {
    display: block;
    grid-template-columns: none;
}

/* Page Layout */
.site-main-centered {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Sidebar Widgets */
.latest-posts-widget {
    background: white;
    padding: 0;
}

.latest-posts-widget .widget-title {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 0.5px;
}

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

.latest-posts-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-left: 15px;
}

.latest-posts-item:last-child {
    border-bottom: none;
}

.latest-posts-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    /* Align with date */
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.latest-posts-item-date {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

.latest-posts-item-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.latest-posts-item-title a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}

.latest-posts-item-title a:hover {
    color: var(--primary-color);
}

.latest-posts-item-img {
    display: none;
    /* Hide images for timeline look, text only is cleaner for "Latest" */
}

/* Mobile Overrides for Refactored Styles */
@media (max-width: 1024px) {
    .single-post-container {
        grid-template-columns: 1fr;
    }
}

/* Events Calendar Styles */
.event-card {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    gap: 20px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    padding: 8px 15px;
    background: #f3f4f6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #e5e7eb;
}

.current-month-label {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: capitalize;
}

/* Desktop Calendar Grid */
.desktop-calendar-view {
    display: block;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px 8px 0 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e5e7eb;
    gap: 1px;
    border: 1px solid #e5e7eb;
}

.calendar-day {
    background: #fff;
    min-height: 120px;
    padding: 10px;
    position: relative;
}

.calendar-day.empty {
    background: #f9fafb;
}

.calendar-day.today {
    background: #f0f9ff;
    border: 2px solid var(--primary-color) inset;
}

.day-number {
    position: absolute;
    top: 5px;
    right: 10px;
    font-weight: bold;
    color: #888;
}

.calendar-event-link {
    display: block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 25px;
    /* space for day number */
    margin-bottom: 5px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-link:hover {
    background: #0284c7;
    color: white;
}

.event-dot-time {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-right: 3px;
}

/* Mobile List View */
.mobile-calendar-view {
    display: none;
}

.mobile-day-group {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-date-header {
    background: #f3f4f6;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-day-num {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.mobile-events-list {
    padding: 10px;
}

.mobile-event-card {
    display: flex;
    flex-direction: column;
    /* Vertical Layout */
    gap: 0;
    padding: 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Slight shadow for card feel */
    overflow: hidden;
}

.mobile-event-card:last-child {
    margin-bottom: 0;
}

.mobile-event-thumb {
    width: 100%;
    height: 200px;
    /* Large visible image */
    flex-shrink: 0;
    border-radius: 0;
    /* Full usage of card top */
    overflow: hidden;
}

.mobile-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mobile-event-card:hover .mobile-event-thumb img {
    transform: scale(1.05);
}

.mobile-event-details {
    display: flex;
    flex-direction: column;
    padding: 15px;
    /* Comfortable spacing */
}

.mobile-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    align-items: center;
}

.mobile-event-time {
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-event-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-event-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Responsive Switching */
@media (max-width: 768px) {
    .desktop-calendar-view {
        display: none;
    }

    .mobile-calendar-view {
        display: block;
    }

    .calendar-header-row {
        display: none;
    }

    /* Adjust navigation for mobile */
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
}

/* FOOTER STYLES */
.site-footer {
    background-color: #1f2937;
    /* Dark Gray */
    color: #d1d5db;
    /* Light Gray Text */
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Footer Column 1: About */
/* Footer Column 1: About */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.footer-logo-img .custom-logo {
    max-width: 60px;
    height: auto;
    display: block;
}

.footer-branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.footer-site-title-link {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-site-title-link:hover {
    color: var(--primary-color);
}

.footer-site-description {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin: 4px 0 0;
    font-weight: 600;
    line-height: 1.2;
}

.footer-desc {
    line-height: 1.6;
    color: #9ca3af;
}

/* Footer Column 2: Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer Column 3: Contact */
.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.footer-contact a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-socials a {
    text-decoration: none;
    transition: transform 0.2s;
}

.footer-socials a:hover {
    transform: scale(1.1);
}

/* Copyright Bar */
.site-info {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .site-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-widgets-grid {
        text-align: center;
        gap: 30px;
    }

    .footer-heading {
        margin-bottom: 15px;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-logo .custom-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* --- REFRACTORING: PAGE CONTACT --- */
.contact-page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-color);
}

/* --- CONTACT PAGE UPDATED STYLES --- */
.contact-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    background: #f8fafc;
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-card-icon {
    font-size: 2rem;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-card-title {
    margin: 0;
    font-size: 1.25rem;
    color: #111;
    font-weight: 700;
}

.contact-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-card-info {
    margin-bottom: 25px;
    color: #4b5563;
    line-height: 1.5;
    font-size: 1.05rem;
}

.contact-card-info strong a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.contact-card-info strong a:hover {
    text-decoration: underline;
}

/* Base Form Styles (Restored) */
.form-group {
    margin-bottom: 15px;
}

.form-checkbox-group {
    margin-top: 10px;
    margin-bottom: 20px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
}

.form-checkbox {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #374151;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

/* Premium File Input Styling */
.input-file {
    padding: 8px;
    background: #f9fafb;
    cursor: pointer;
    border: 2px dashed #d1d5db;
}

.input-file::file-selector-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.input-file:hover::file-selector-button {
    background: var(--accent-color);
}

.input-file:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

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

.form-help-text {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
    font-style: italic;
}

.form-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.form-submit-btn:hover {
    background: var(--accent-color);
}

.form-submit-btn:active {
    transform: scale(0.98);
}

.contact-footer-info {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 40px;
}

.contact-social-prompt {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #111;
}

.contact-social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-social-icon {
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.colored-fb {
    background-color: #1877F2;
}

/* Contact Form Overrides inside Card */
.contact-card .contact-form-wrapper {
    background: #fdfdfd;
    padding: 0;
    border-radius: 0;
}

.contact-card .form-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.contact-card .form-submit-btn:hover {
    background: var(--accent-color);
}

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

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

    .contact-footer-info .contact-info-item {
        justify-content: center;
    }

    .contact-footer-info .contact-social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}


/* --- REFRACTORING: PAGE ABOUT US (O NAS) --- */
.about-hero {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    margin-bottom: 40px;
    border-radius: 8px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-desc {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 60px;
}

.about-team-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    margin: 10px 0 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0;
}

.member-bio {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* --- REFRACTORING: SINGLE EVENT --- */
.single-event-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.event-single-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
}

.event-date-badge-single {
    width: auto;
    height: auto;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.single-post-thumbnail-container {
    margin-top: 20px;
}

.single-event-content {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Sidebar Widgets Refactor */
.sidebar-widget-cta {
    background: var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.sidebar-cta-title {
    margin-top: 0;
}

.sidebar-cta-link {
    display: block;
    background: white;
    color: var(--primary-color);
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.sidebar-widget-upcoming {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.upcoming-widget-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.upcoming-event-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.upcoming-event-date {
    background: var(--primary-color);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.upcoming-event-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .single-event-container {
        grid-template-columns: 1fr;
    }
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-content {
    flex-grow: 1;
}

.event-title {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.event-title a {
    text-decoration: none;
    color: var(--text-color);
}

.event-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.event-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .event-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-date-badge {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 5px;
        gap: 10px;
        justify-content: flex-start;
        padding-left: 15px;
    }

    .event-thumbnail {
        display: none;
        /* Hide thumbnail on small mobile to save space */
    }
}

/* Header Info Widget (Date & Weather) */
.header-info-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-family: var(--font-primary);
    line-height: 1.3;

    /* Frame Style (Pill) */
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-date {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
}

.date-day {
    font-weight: bold;
    color: var(--primary-color);
}

.header-weather {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
}

.weather-loading {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
}

@media (max-width: 768px) {

    /* Header layout: Row instead of Column */
    .header-inner {
        flex-direction: row !important;
        /* Override 1024px column */
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0 20px;

        /* 3. Full-Width Image - UNIFIED FOR ALL CARDS */
        .cat-grid-thumb,
        .cat-hero-post .cat-hero-link {
            width: 100%;
            height: 240px !important;
            /* Force fixed height for image area */
            display: block;
            margin-bottom: 12px;
            position: relative;
            overflow: hidden;
        }

        .cat-grid-thumb img,
        .cat-hero-post img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            border-radius: 0;
            max-width: 100%;
            display: block;
        }

        /* 4. Labels & Typography */
        .cat-grid-label,
        .cat-hero-content-overlay .cat-hero-label {
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 4px;
            margin-left: 15px;
            display: inline-block;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        /* UNIFY CARD CONTAINER HEIGHT AND STYLE */
        .cat-grid-item,
        .cat-hero-post.overlay-style {
            display: flex !important;
            flex-direction: column !important;
            height: auto !important;
            /* Let content dictate height, but enforce similarity via image height */
            min-height: 380px !important;
            /* Minimum height for consistency */
            margin-bottom: 30px !important;
            background: #fff;
            border: none !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            /* Unified shadow */
            border-radius: 12px;
            overflow: hidden;
        }

        /* Reset Hero Content Positioning */
        .cat-hero-content-overlay {
            position: static !important;
            background: transparent !important;
            background-image: none !important;
            /* Kill the gradient */
            background-color: #fff !important;
            /* Ensure white bg */
            padding: 0 !important;
            /* Reset container padding */
            width: 100% !important;
            text-shadow: none !important;
            flex-grow: 1;
        }

        /* 6. Unified Labels */
        /* Ensure label aligns with title */
        .cat-grid-label,
        .cat-hero-content-overlay .cat-hero-label {
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 4px;
            margin-left: 15px !important;
            /* Force alignment */
            margin-top: 10px !important;
            /* Add space from image */
            display: inline-block;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        /* 7. Unified Title Styles */
        .cat-hero-title,
        .cat-grid-title {
            font-size: 1.3rem !important;
            color: #111 !important;
            margin: 5px 0 10px 0 !important;
            padding: 0 15px !important;
            line-height: 1.3 !important;
            text-align: left !important;
        }

        /* Unify Meta/Date Styles */
        .cat-hero-meta,
        .cat-grid-date {
            color: #888 !important;
            padding: 0 15px !important;
            font-size: 0.85rem !important;
            text-align: left !important;
            margin-top: auto;
            /* Push to bottom if flex container */
        }

        /* Equal side padding */
    }

    /* Logo area compact */
    .site-branding {
        width: auto !important;
        /* Override 100% */
        flex: 0 1 auto !important;
        margin: 0 !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: row !important;
        /* Side by side */
        align-items: center !important;
        gap: 10px;
    }

    .custom-logo {
        max-width: 60px;
        /* Slightly smaller to fit text */
        height: auto;
        margin-left: -5px;
    }

    .site-identity-text {
        display: block !important;
        /* Show text */
        line-height: 1.2;
    }

    .site-title-text {
        font-size: 1.1rem !important;
        /* Mobile font size */
        margin: 0;
        font-weight: 700;
        text-transform: uppercase;
    }

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

    .site-branding .site-branding .site-branding .site-branding .site-description {
        font-size: 0.75rem !important;
        /* Small subtitle */
        margin: 0;
        color: #d1d5db !important;
        /* Force visible gray color */
        display: block !important;
        opacity: 0.9;
        visibility: visible !important;
        /* Ensure it is not hidden */
    }



    /* Weather widget compact */
    .header-info-widget {
        margin-top: 0;
        align-items: flex-end;
        padding: 5px 12px;
        /* Smaller pill */
        border-radius: 20px;
        color: #333 !important;
        /* Force dark text on white pill */
        width: fit-content;
        /* Only take necessary width */
    }

    .header-info-widget * {
        color: #333 !important;
        /* Force all children to be dark */
    }

    .header-date {
        font-size: 0.75rem;
        margin-bottom: 0;
        display: block;
        /* Show date again but smaller */
        line-height: 1;
    }

    .date-day {
        display: none;
        /* Hide "Niedziela," keep date */
    }

    .header-weather {
        font-size: 0.85rem;
    }
}

/* Main Grid Layout */
.site-grid-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* 75% Content, 25% Sidebar */
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .site-grid-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* =========================================
   CATEGORY BLOCK LAYOUT (v5.6)
   ========================================= */

/* Layout Grid: Left (Hero+News) vs Right (Sidebar LIST) */
.category-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* Main Content vs Sidebar */
    gap: 30px;
    align-items: start;
}

/* --- Left Column --- */
.cat-main-column {
    display: flex;
    flex-direction: column;
}

/* Hero Post (Overlay Style) */
.cat-hero-post.overlay-style {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.cat-hero-link {
    display: block;
    position: relative;
    width: 100%;
}

.cat-hero-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-hero-link:hover img {
    transform: scale(1.05);
}

/* Make image dark to ensure text readability */
.cat-hero-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

.cat-hero-content-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cat-hero-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cat-hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
    margin: 0 0 5px;
    font-weight: 800;
    color: #fff !important;
    /* Force white over overlay */
}

.cat-hero-meta {
    font-size: 0.85rem;
    color: #ddd;
    /* Light gray for meta */
    margin: 0;
}

/* 3x3 Grid of Small News */
.cat-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 in a row */
    gap: 20px;
}

/* Grid Item (Card Style) */
.cat-grid-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.cat-grid-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cat-grid-thumb {
    position: relative;
    margin: -15px -15px 15px -15px;
    /* Negative margin to pull image to edges if desired, or keep inside padding */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cat-grid-thumb img {
    width: 100%;
    height: 160px;
    /* Slightly taller */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cat-grid-item:hover .cat-grid-thumb img {
    transform: scale(1.05);
}

.cat-grid-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.cat-grid-title {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 10px;
    font-weight: 700;
}

.cat-grid-title a {
    text-decoration: none;
    color: #111;
}

.cat-grid-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.cat-grid-title a:hover,
.cat-grid-item:hover .cat-grid-title a {
    color: var(--primary-color);
}

.cat-grid-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
    /* Push to bottom */
}

/* "See More" Button Card (9th slot) */
.see-more-cat-btn {
    border-radius: 4px;
    overflow: hidden;
}

.see-more-cat-btn a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    /* Match neighbor height roughly */
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 20px;
}

.see-more-cat-btn a:hover {
    opacity: 0.9;
}

.see-more-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 10px;
}

.see-more-text {
    font-size: 1.1rem;
    line-height: 1.3;
}

/* --- Right Column: Category Sidebar --- */
.cat-sidebar-column {
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.cat-sidebar-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

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

.cat-sidebar-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    /* Context for absolute link */
}

.cat-sidebar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.cat-sidebar-meta-wrapper {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-sidebar-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.cat-sidebar-date {
    font-size: 0.7rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    /* Keep clickable/selectable separate if needed, but here we want full card click */
    pointer-events: none;
    /* Let clicks pass through to the main link */
}

.cat-sidebar-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    display: block;
}

/* Make link cover the whole card */
.cat-sidebar-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cat-sidebar-link:hover {
    color: var(--primary-color);
}

/* =========================================
   MOBILE CARD REDESIGN (App-like Feel)
   ================================********* */

@media (max-width: 768px) {

    /* 0.0 Fix Archive/Category Page Spacing on Mobile */
    .archive-posts-list {
        display: flex;
        flex-direction: column;
        gap: 10px !important;
        /* Force small gap */
    }

    .category-page-container {
        display: block !important;
        /* Stack vertically */
        margin-top: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .category-page-container .site-main {
        width: 100% !important;
    }

    /* 1. Main Grid Layout - Reset to 1 column */
    .category-layout-grid,
    .cat-news-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        /* Extremely reduced gap */
        margin-top: 5px !important;
        /* Nearly no space above grid */
    }

    /* Reduce space for "Najnowsze" header */
    .category-header {
        margin-bottom: 5px !important;
        /* Minimal margin */
        padding-top: 0 !important;
        /* No padding from top */
    }

    .category-header h1 {
        margin-top: 0 !important;
    }

    .category-header .cat-title {
        margin-bottom: 0 !important;
    }

    /* 2. Unified Card Container */
    .cat-grid-item,
    .cat-hero-post.overlay-style {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 380px !important;
        margin-bottom: 10px !important;
        /* Minimal spacing between cards */
        background: #fff;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        overflow: hidden;
        padding: 0 !important;
        /* Remove internal padding */
    }

    /* 3. Unified Full-Width Image */
    .cat-grid-thumb {
        width: 100%;
        height: 240px !important;
        display: block;
        margin: 0 0 12px 0 !important;
        /* Reset margins */
        position: relative;
        overflow: hidden;
    }

    /* Hero Link Container - needs AUTO height to show content inside */
    .cat-hero-post .cat-hero-link {
        width: 100%;
        height: auto !important;
        /* Allow content to expand */
        min-height: auto !important;
        display: flex !important;
        flex-direction: column;
        text-decoration: none !important;
        /* Remove underline from parent link */
        border: none !important;
        color: inherit !important;
        /* Prevent blue link color */
    }

    /* Force height ONLY on the image inside hero */
    .cat-grid-thumb img,
    .cat-hero-post .cat-hero-link img {
        width: 100% !important;
        height: 240px !important;
        /* Fixed height for image only */
        object-fit: cover !important;
        border-radius: 0;
        max-width: 100%;
        display: block;
        flex-shrink: 0;
        /* Prevent image from shrinking */
    }

    /* 4. Unified Titles */
    .cat-hero-title,
    .cat-grid-title {
        font-size: 1.3rem !important;
        color: #111 !important;
        margin: 10px 0 10px 0 !important;
        /* Unified margins */
        padding: 0 15px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        text-decoration: none !important;
        /* No underline on container */
        border-bottom: none !important;
        /* No border */
    }

    .cat-grid-title a,
    .cat-hero-title a {
        color: #111 !important;
        text-decoration: none !important;
        /* Force no underline on links */
        border-bottom: none !important;
    }

    /* Reset Hero Content Positioning */
    .cat-hero-content-overlay {
        position: static !important;
        background: transparent !important;
        background-image: none !important;
        /* Kill the gradient */
        background-color: #fff !important;
        /* Ensure white bg */
        padding: 0 !important;
        /* Reset container padding */
        width: 100% !important;
        text-shadow: none !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    /* 6. Unified Labels */
    /* Ensure label aligns with title */
    .cat-grid-label,
    .cat-hero-content-overlay .cat-hero-label {
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: 4px;
        margin-left: 15px !important;
        /* Force alignment */
        margin-top: 15px !important;
        /* Add space from image */
        display: inline-block;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 5px !important;
        /* Fixed space before title */
        width: fit-content;
        text-decoration: none !important;
        /* Explicitly remove underline */
        border: none !important;
        border-bottom: none !important;
    }

    /* 5. Unified Meta/Date */
    .cat-hero-meta,
    .cat-grid-date {
        color: #888 !important;
        padding: 0 15px !important;
        font-size: 0.85rem !important;
        text-align: left !important;
        margin-top: auto;
        /* Push to bottom */
        margin-bottom: 20px !important;
        /* Consistent bottom spacing */
        display: block;
    }

    /* 7. Sidebar adjustments */
    .cat-sidebar-column {
        margin-top: 10px !important;
        /* Reduced from 15px */
        padding-top: 20px;
        border-top: 4px solid #eee;
    }

    .cat-sidebar-item {
        padding: 15px 10px !important;
        /* Add horizontal padding */
        border-bottom: 1px solid #eee;
    }

    .cat-sidebar-link {
        font-size: 1.1rem;
        font-weight: 600;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .category-layout-grid {
        grid-template-columns: 1fr;
        /* Content sets sidebar to bottom */
        gap: 40px;
    }

    .cat-sidebar-column {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 20px;
    }

    .cat-news-grid {
        grid-template-columns: 1fr;
        /* Stack grid items on mobile */
    }

    .see-more-cat-btn a {
        min-height: 100px;
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }

}

/* Mobile and Tablet Title & Slogan Fixes */
@media (max-width: 1024px) {
    .site-branding-text {
        margin-left: 10px !important;
        /* Reduce gap */
    }

    .site-title {
        font-size: 1.0rem !important;
        /* Significantly smaller */
        letter-spacing: -0.2px;
        margin-bottom: 0 !important;
        line-height: 1.1;
    }

    .site-description {
        font-size: 0.65rem !important;
        /* Small but readable */
        letter-spacing: 0.2px;
        line-height: 1.1;
        display: block !important;
        margin-top: 1px;
    }
}

/* Breaking News Ticker (Merged) */
.breaking-news-bar {
    background-color: #111;
    color: #fff;
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
    z-index: 50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 40px;
}

.breaking-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    padding: 0;
}

.breaking-label {
    background-color: #e11d48;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    min-width: 100px;
}

.breaking-content-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
}

.breaking-content-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 31s linear infinite;
    display: flex;
    align-items: center;
}

.breaking-content-marquee:hover {
    animation-play-state: paused;
}

.breaking-item {
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.breaking-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin: 0 30px;
    font-size: 1.2rem;
    line-height: 1;
}

.breaking-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.breaking-item a:hover {
    color: #ccc;
    text-decoration: underline;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (max-width: 1024px) {
    .breaking-container {
        padding: 0 20px !important;
    }

    .breaking-label {
        padding: 0 20px;
        min-width: auto;
        font-size: 0.85rem;
    }

    .breaking-weather {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .breaking-news-bar {
        font-size: 0.8rem;
    }

    .breaking-label {
        clip-path: none;
    }
}

/* Partners Carousel */
.partners-section-wrapper {
    background: #ffffff;
    padding: 30px;
    margin-top: 0;
    margin-bottom: 60px;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Card Shadow */
    overflow: hidden;
    position: relative;
}

.partners-section-title {
    text-align: center;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 30px;
    color: #374151;
    letter-spacing: 1px;
}

.partners-carousel-track-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-carousel-track {
    display: flex;
    align-items: flex-start;
    /* Align to top so images line up */
    width: max-content;
    animation: scroll 40s linear infinite;
    gap: 0;
    /* Handled by margin in item */
}

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

    100% {
        transform: translateX(-50%);
    }
}

.partners-carousel-track:hover {
    animation-play-state: paused;
}

.partner-item {
    flex-shrink: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
    padding: 10px;
    margin-right: 30px;
    /* Space between items */
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-item img {
    height: 80px !important;
    /* Fixed height for consistency */
    width: auto !important;
    /* Allow width to scale */
    max-width: none !important;
    /* Prevent shrinking if inside container */
    object-fit: contain;
    border: none;
    box-shadow: none;
    margin-bottom: 8px;
    display: block;
}

.partner-name-carousel {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    line-height: 1.3;
    margin-top: 5px;
    max-width: 200px;
    /* Reasonable limit */
    word-wrap: break-word;
}

.partner-item:hover .partner-name-carousel {
    color: var(--primary-color);
}


@media (max-width: 768px) {
    .partners-section-wrapper {
        padding: 20px 10px;
    }

    .partner-item {
        width: 130px;
        height: auto;
        margin-right: 15px;
        padding: 5px;
    }

    .partner-item img {
        height: 60px !important;
    }

    .partner-name-carousel {
        font-size: 0.7rem;
        margin-top: 4px;
        display: block;
    }
}

/* Single Partner Static View */
.partners-static-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    flex-direction: column;
    /* Allow stacking title below */
    gap: 5px;
}

.partner-item.static-item {
    width: auto;
    max-width: 300px;
    height: auto;
    max-height: 120px;
    opacity: 1;
    filter: none;
    transform: none;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item.static-item img {
    max-height: 100px;
    width: auto;
    display: block;
}

/* Partner Name below logo */
.partner-name-static {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Single Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-weight: 700;
    margin-right: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888;
}

.post-tags a {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    /* Prepare for border change if needed */
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Premium Event Styles - Continuous Moving Border */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

.is-premium {
    position: relative;
    border: 2px solid transparent !important;
    /* Reserve space */
    background: linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545) border-box;
    animation: spin 3s linear infinite;
    z-index: 1;
    border-radius: 8px;
    /* Ensure rounded corners for the effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect - Enhance the glow/speed */
.is-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Removed animation speedup to keep color/speed constant */
}

/* Mobile Adjustments */
.mobile-event-card.is-premium {
    /* Ensure the padding-box works correctly for the white background */
    background: linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545) border-box;
    border-radius: 8px;
}

/* Specific overrides for calendar links */
.calendar-event-link.is-premium {
    display: block;
    margin-bottom: 4px;
    padding: 4px 8px;
    /* Slightly more padding for the border */
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

/* Fix for hover conflict where default calendar link turns blue */
.calendar-event-link.is-premium:hover {
    background: linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545) border-box !important;
    color: #111 !important;
}

/* =========================================
   NEW NAVIGATION STYLES (Side Drawer + Scrollable Primary)
   ========================================= */

/* 1. Primary Navigation (Desktop & Mobile Unified) */
.main-navigation {
    display: block !important;
    /* Force visible everywhere */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    padding-bottom: 0px;
    /* Adjust spacing */
}

.main-navigation::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.main-navigation ul {
    display: flex;
    /* Always flex row */
    flex-wrap: nowrap;
    /* Never wrap */
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    display: inline-block;
    padding: 15px 10px;
    /* Reduced padding for mobile density */
    text-decoration: none;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    /* Prepare for hover/active */
}

/* Hover/Active states */
.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hide Dropdowns in Primary Menu (Assuming simplified top-level only) */
.main-navigation ul ul {
    display: none !important;
    /* Hide submenus in primary strip */
}


/* 2. Side Menu Toggle Button */
.menu-toggle-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
    font-size: 1.2rem;
    margin-left: 10px;
    transition: color 0.2s;
}

.menu-toggle-side:hover {
    color: var(--primary-color);
}

.menu-toggle-side i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.menu-label-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    /* Show label */
}

/* 3. Side Menu Drawer (Off-Canvas) */
.side-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu-drawer.active {
    right: 0;
    /* Slide in */
}

/* Drawer Header */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9fafb;
}

.side-menu-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

.close-side-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.close-side-menu:hover {
    color: #e11d48;
    /* Red on hover */
}

/* Drawer Content (Menu Items) */
.side-menu-content {
    padding: 20px;
}

.side-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-content li {
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
}

.side-menu-content li:last-child {
    border-bottom: none;
}

.side-menu-content a {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, padding-left 0.2s;
}

.side-menu-content a:hover {
    background: #f0f9ff;
    color: var(--primary-color);
    padding-left: 15px;
    /* Slight nudge */
}

/* Icons for Secondary Menu Items (Optional: Add via CSS Classes in WP Menu or Generic) */
/* Example: Add generic arrow or bullet */
.side-menu-content a::before {
    content: '\f105';
    /* FontAwesome generic chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 0.8rem;
    color: #ccc;
    transition: color 0.2s;
}

.side-menu-content a:hover::before {
    color: var(--primary-color);
}


/* 4. Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    /* Below drawer */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu open */
body.side-menu-open {
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .site-branding {
        gap: 10px;
    }

    .site-title {
        font-size: 1.2rem;
        /* Smaller title on mobile */
    }

    .menu-toggle-side {
        padding: 5px;
        font-size: 1rem;
    }

    .menu-label-text {
        display: none;
        /* Ukrywamy tekst 'Więcej' na małych ekranach */
    }

    /* Force primary menu to break out of container padding if needed */


    /* Ensure primary navigation takes full width if desired, or keep inline */
    .main-navigation {
        /* Optional: move below logo on very small screens? No, user wants header bar style likely. */
        /* Let's keep it inline but ensure it doesn't shrink to zero width */
        flex: 1;
        min-width: 0;
        /* Flexbox trick for overflow */
        margin: 0 10px;
    }
}

/* =========================================
   SPECIFIC ICONS FOR CATEGORIES (WOW Factor)
   ========================================= */

/* Sport */
.side-menu-content a[href*="sport"]::before {
    content: '\f1e3';
    /* fa-futbol */
    color: #16a34a;
}

/* Polityka */
.side-menu-content a[href*="polityka"]::before {
    content: '\f66f';
    /* fa-landmark */
    color: #e11d48;
}

/* Technologia */
.side-menu-content a[href*="technologia"]::before {
    content: '\f2db';
    /* fa-microchip */
    color: #9333ea;
}

/* Film / Kultura */
.side-menu-content a[href*="film"]::before,
.side-menu-content a[href*="kultura"]::before {
    content: '\f008';
    /* fa-film */
    color: #ea580c;
}

/* Gospodarka / Biznes */
.side-menu-content a[href*="gospodarka"]::before,
.side-menu-content a[href*="biznes"]::before {
    content: '\f201';
    /* fa-chart-line */
    color: #0ea5e9;
}

/* Edukacja */
.side-menu-content a[href*="edukacja"]::before {
    content: '\f19d';
    /* fa-graduation-cap */
}

/* Zdrowie */
.side-menu-content a[href*="zdrowie"]::before {
    content: '\f0f8';
    /* fa-user-doctor */
    color: #ef4444;
}

/* =========================================
   USER DEFINED ICONS (WordPress Menu Classes)
   ========================================= */

/* Styl dla ręcznych ikon FontAwesome wstawionych przez panel */
.side-menu-content i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Fix double icons: Hide the default FA ion on the li container */
/* The icon inside the link (added via plugin or <i> tag) will remain */
.side-menu-content li.fa::before,
.side-menu-content li.fas::before,
.side-menu-content li.far::before,
.side-menu-content li.fab::before,
.side-menu-content li.fa-solid::before,
.side-menu-content li.fa-regular::before,
.side-menu-content li.fa-brands::before {
    display: none !important;
    content: none !important;
}

/* Fix: Reset font-family for links to prevent corrupted text (tofu) if parent has FA class */
.side-menu-content li.fa a,
.side-menu-content li.fas a,
.side-menu-content li.far a,
.side-menu-content li.fab a,
.side-menu-content li.fa-solid a,
.side-menu-content li.fa-regular a,
.side-menu-content li.fa-brands a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600;
}

/* Hide default theme icon (a::before) if user has custom FA class */
.side-menu-content li.has-custom-icon a::before,
.side-menu-content li.fa a::before,
.side-menu-content li.fas a::before,
.side-menu-content li.far a::before,
.side-menu-content li.fab a::before,
.side-menu-content li.fa-solid a::before,
.side-menu-content li.fa-regular a::before,
.side-menu-content li.fa-brands a::before {
    content: none !important;
    display: none !important;
}

/* FORCE DISPLAY BLOCK for LI with FA classes */
/* FontAwesome sets display: inline-block by default on .fa, .fas, etc. which breaks stacking */
.side-menu-content li.fa,
.side-menu-content li.fas,
.side-menu-content li.far,
.side-menu-content li.fab,
.side-menu-content li.fa-solid,
.side-menu-content li.fa-regular,
.side-menu-content li.fa-brands {
    display: block !important;
    width: 100% !important;
}

/* Upewnij się, że link z własną ikoną ma odpowiedni padding */
.side-menu-content li.has-custom-icon a,
.side-menu-content li.fa-solid a,
.side-menu-content li.fas a {
    padding-left: 15px;
}

.side-menu-content li.has-custom-icon a:hover,
.side-menu-content li.fa-solid a:hover,
.side-menu-content li.fas a:hover {
    padding-left: 20px;
}

/* =========================================
   FORCE HIDE PRIMARY MENU ON MOBILE
   ========================================= */
@media (max-width: 1024px) {
    .main-navigation {
        display: none !important;
    }
}

/* Custom Lightbox Styles */
.kwidzyn-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kwidzyn-lightbox.active {
    display: flex;
    opacity: 1;
}

.kwidzyn-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.kwidzyn-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
    line-height: 1;
}

.kwidzyn-lightbox-close:hover {
    color: var(--primary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Enhanced Lightbox Navigation */
.kwidzyn-lightbox-wrapper {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kwidzyn-lightbox-image {
    max-width: 95vw;
    /* Enlarge to almost full width */
    max-height: 95vh;
    /* Enlarge to almost full height */
    object-fit: contain;
    /* Ensure aspect ratio is preserved */
    width: auto;
    height: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

.kwidzyn-lightbox-prev,
.kwidzyn-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 20px;
    cursor: pointer;
    z-index: 10001;
    /* Above image */
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
    user-select: none;
}

.kwidzyn-lightbox-prev:hover,
.kwidzyn-lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.kwidzyn-lightbox-prev {
    left: 20px;
}

.kwidzyn-lightbox-next {
    right: 20px;
}

/* Close button repositioned slightly for better UX on large images */
.kwidzyn-lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 50px;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.kwidzyn-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}


/* Lightbox Counter */
.kwidzyn-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10002;
    pointer-events: none;
    /* Let clicks pass through if needed */
}


/* Updated Lightbox - Full Fixed Size */
.kwidzyn-lightbox-wrapper {
    position: relative;
    width: 90vw;
    /* Force width to be 90% of viewport */
    height: 90vh;
    /* Force height to be 90% of viewport */
    display: flex;
    align-items: center;
    justify-content: center;
}

.kwidzyn-lightbox-image {
    width: 100%;
    /* Fill wrapper width */
    height: 100%;
    /* Fill wrapper height */
    object-fit: contain;
    /* Scale image inside to fit, keeping ratio */
    max-width: none;
    /* Override previous restrictions */
    max-height: none;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Fix Icon Centering */
.kwidzyn-lightbox-prev,
.kwidzyn-lightbox-next,
.kwidzyn-lightbox-close {
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    /* Use flex to center the icon inside the button */
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 24px;
    /* Adjust icon size */
    background-color: rgba(255, 255, 255, 0.1);
    /* Lighter bg */
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.kwidzyn-lightbox-prev i,
.kwidzyn-lightbox-next i,
.kwidzyn-lightbox-close i {
    display: block;
    /* Ensure icon block behaves well */
}

.kwidzyn-lightbox-prev:hover,
.kwidzyn-lightbox-next:hover,
.kwidzyn-lightbox-close:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Position specifics */
.kwidzyn-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10005;
}

.kwidzyn-lightbox-prev {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.kwidzyn-lightbox-next {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    /* This overrides the hover transform, fix needed below */
}

/* Fix transform conflict on hover for navigation */
.kwidzyn-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.kwidzyn-lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}


/* Lightbox Size Adjustment to prevent overlap with arrows */
.kwidzyn-lightbox-wrapper {
    width: 80vw !important;
    /* Reduced from 90vw */
    height: 90vh !important;
    /* Keep height tall */
}

/* Ensure arrows are pushed out a bit more if needed, or just stay where they are relative to screen */
/* Ensure arrows are pushed out a bit more if needed, or just stay where they are relative to screen */
.kwidzyn-lightbox-prev {
    left: 20px !important;
}

.kwidzyn-lightbox-next {
    right: 20px !important;
}

/* Mobile Specifics for Lightbox */
@media (max-width: 768px) {

    .kwidzyn-lightbox-prev,
    .kwidzyn-lightbox-next {
        top: auto !important;
        bottom: 20px !important;
        bottom: env(safe-area-inset-bottom, 20px) !important;
        transform: none !important;
        width: 50px;
        height: 50px;
        font-size: 20px;
        background-color: rgba(0, 0, 0, 0.6);
        /* Use darker background for contrast */
        border-color: rgba(255, 255, 255, 0.3);
        position: fixed !important;
        z-index: 10002;
    }

    .kwidzyn-lightbox-prev {
        left: 20px !important;
    }

    .kwidzyn-lightbox-next {
        right: 20px !important;
    }

    .kwidzyn-lightbox-wrapper {
        width: 100vw !important;
        /* create space for Top (Close Btn ~60px) and Bottom (Arrows ~100px) */
        height: calc(100vh - 160px) !important;
        max-height: calc(100vh - 160px);
        margin-top: 60px;
        /* Push down so image starts below close button */
        position: fixed;
        top: 0;
    }

    .kwidzyn-lightbox-image {
        max-height: 100% !important;
        width: auto !important;
        max-width: 100vw !important;
    }

    /* Ensure close button is distinct and accessible */
    .kwidzyn-lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 24px !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        z-index: 10006 !important;
        /* Above everything */
    }
}

/* GLOBAL OVERFLOW FIX - AGGRESSIVE */
html,
body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

#page {
    overflow-x: hidden;
    width: 100%;
}


/* Zoom Functionality */
.kwidzyn-lightbox-image {
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Ensure transform is animated */
}

.kwidzyn-lightbox-image.zoomed {
    transform: scale(2);
    /* Zoom 200% */
    cursor: zoom-out;
    z-index: 10010;
    /* Above everything */
    /* Ensure parts outside wrapper aren't just cut off if wrapper has overflow hidden (wrapper is flexible so it should be ok) */
}

/* Hide other controls when zoomed to prevent confusion/overlap */
.kwidzyn-lightbox.is-zoomed .kwidzyn-lightbox-prev,
.kwidzyn-lightbox.is-zoomed .kwidzyn-lightbox-next,
.kwidzyn-lightbox.is-zoomed .kwidzyn-lightbox-counter {
    opacity: 0;
    pointer-events: none;
}


/* Zoom Pan Cursors */
.kwidzyn-lightbox-image.zoomed {
    cursor: grab;
    z-index: 10010;
}

.kwidzyn-lightbox-image.zoomed:active {
    cursor: grabbing;
}


/* --- RESPONSIVE TABLES & MEDIA FIXES --- */

/* 1. Ensure tables don't break layout */
.entry-content table,
table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Ensure table cells have padding */
.entry-content th,
.entry-content td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    min-width: 120px;
    /* Prevent squishing */
}

/* 2. Fix Embeds & Iframes */
.entry-content iframe,
.entry-content object,
.entry-content embed,
.entry-content video {
    max-width: 100%;
    height: auto;
    width: 100%;
    /* Force fit */
}

/* 3. Helper wrapper for WP Tables */
figure.wp-block-table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 0 0 20px;
}

figure.wp-block-table table {
    width: 100%;
    /* Reset inner table to behave normally inside wrapper */
    display: table;
    /* Revert display block on inner table if wrapper exists */
    min-width: 600px;
    /* Force minimum width to trigger scroll on small screens */
}

/* Weather Widget in Breaking News */
.breaking-weather {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
    margin-left: auto;
    /* Push to right */
    background: #111;
    border-left: 1px solid #333;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    gap: 10px;
    font-size: 0.95rem;
    flex-shrink: 0;
    z-index: 10;
}

.breaking-weather .weather-icon {
    color: #f59e0b;
    font-size: 1.1rem;
}

.breaking-weather .weather-temp {
    color: #fff;
    font-weight: 800;
}

.breaking-weather .fa-moon,
.breaking-weather .fa-cloud-moon {
    color: #cbd5e1;
}

.breaking-weather .fa-cloud,
.breaking-weather .fa-cloud-rain,
.breaking-weather .fa-cloud-showers-heavy {
    color: #94a3b8;
}

.breaking-weather .fa-snowflake {
    color: #bae6fd;
}

@media (max-width: 480px) {
    .breaking-weather {
        padding: 0 8px;
        gap: 5px;
        font-size: 0.85rem;
    }
}

/* About Us Page Improvements */
.about-hero {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    margin-bottom: 40px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.about-section {
    padding: 50px 20px;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.section-heading-about {
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    text-align: center;
}

.stat-item {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
}

.stats-desc {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* CTA Section */
.about-cta {
    text-align: center;
    background: var(--primary-color);
    color: #fff;
}

.about-cta h2 {
    color: #fff;
    border-color: #fff;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f9ff;
    color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }
}

/* --- About Us Visual Upgrade --- */

/* 1. Visual Hero (Gradient Only) */
.about-hero-visual {
    position: relative;
    padding: 120px 20px;
    /* Professional modern gradient using brand colors */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    color: #fff;
    /* Subtle inner glow instead of drop shadow */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Remove image-specific pattern/overlay */
.about-hero-visual::before {
    display: none;
}

.hero-overlay {
    display: none;
    /* Removed: built into background */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.about-title-visual {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    /* Removed cheap text-shadow */
    letter-spacing: -1px;
    line-height: 1.2;
}

.about-desc-visual {
    font-size: 1.3rem;
    font-weight: 400;
    color: #cbd5e1;
    /* Light slate text */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2. Mission Grid (Icons) */
.about-mission-visual {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-item {
    padding: 30px;
    transition: transform 0.3s;
}

.mission-item:hover {
    transform: translateY(-10px);
}

.mission-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #f0f9ff;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: background 0.3s, color 0.3s;
}

.mission-item:hover .mission-icon {
    background: var(--primary-color);
    color: #fff;
}

.mission-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111;
}

.mission-item p {
    color: #666;
    font-size: 1.05rem;
}

/* 3. Animated Stats (Clean & Uniform) */
.about-stats-visual {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    /* Separation from previous section */
}

.center-heading {
    text-align: center;
    border-bottom: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 2.2rem;
}


/* Reusing grid structure, ensuring it matches mission grid */
.stats-grid-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.stat-item-visual {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s;
}

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

/* Match Mission Icons */
.stat-icon-wrapper {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #f0f9ff;
    width: 100px;
    height: 100px;
    /* Use Flexbox for perfect centering instead of line-height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: background 0.3s, color 0.3s;
}

.stat-icon-wrapper i {
    line-height: 1;
    /* Critical for vertical centering */
    display: block;
    /* Ensure it behaves as block inside flex */
}

.stat-item-visual:hover .stat-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
}



.stat-item-visual .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #111;
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item-visual .stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-title-visual {
        font-size: 2.2rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid-visual {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-hero-visual {
        height: auto;
        padding: 60px 20px;
    }
}

/* ==========================================
   REPORT (ZGŁOŚ) FEATURE
   ========================================== */

/* Report Button in Header */
.report-lead-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e11d48;
    /* Red accent for reporting */
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

.report-lead-btn:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

.report-lead-btn i {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .report-btn-text {
        display: none;
    }

    .report-lead-btn {
        padding: 10px;
        width: 38px;
        height: 38px;
        justify-content: center;
        border-radius: 50%;
    }

    .report-lead-btn i {
        margin: 0;
    }

    /* Zmniejszenie odstępu między przyciskami na mobilkach, aby wszystko się zmieściło */
    .header-actions {
        margin-left: 5px;
        padding-left: 5px;
        border-left: 1px solid #eee;
        flex-shrink: 0;
    }

    .header-right-section {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0;
    }

    .menu-toggle-side {
        flex-shrink: 0;
        margin-left: 5px !important;
    }

    /* Poprawka wyszukiwarki i marginesów na mobile */
    .header-inner.container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        gap: 5px !important;
    }

    .search-overlay .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .search-form {
        max-width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        width: 100% !important;
    }

    .search-field {
        padding: 10px 10px !important;
        font-size: 0.9rem !important;
        flex: 1 !important;
        min-width: 0 !important;
        /* Pozwala na kurczenie się w flexboxie */
    }

    .search-submit {
        padding: 0 12px !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* Zgłoszenie Page Styles */
.zgloszenie-wrapper {
    max-width: 800px;
    margin: 40px auto;
}

.zgloszenie-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.zgloszenie-card .contact-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 25px;
}

.zgloszenie-card .contact-card-icon {
    background: #ffe4e6;
    color: #e11d48;
}

.file-upload-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 25px;
    border-radius: 8px;
    margin-top: 5px;
    text-align: center;
    transition: border-color 0.2s;
}

.file-upload-container:hover {
    border-color: #e11d48;
}

.file-upload-container .form-input {
    margin: 0 auto 10px;
    max-width: 300px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.report-submit-btn {
    background: #e11d48 !important;
    font-size: 1.1rem !important;
    padding: 18px !important;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.report-submit-btn:hover {
    background: #be123c !important;
    transform: translateY(-2px);
}

.report-submit-btn i {
    font-size: 1.2rem;
}

/* Region Selection Page Styles */
.region-selection-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
}

.region-selection-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
}

.region-selection-wrapper {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.region-btn {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: #111;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.region-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.region-btn-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 25px;
    flex-shrink: 0;
    transition: background 0.3s;
}

.region-btn:hover .region-btn-icon {
    background: var(--primary-color);
    color: #fff;
}

.region-btn-content {
    flex-grow: 1;
}

.region-btn-title {
    margin: 0 0 5px;
    font-size: 1.4rem;
    font-weight: 700;
}

.region-btn-action {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.region-btn:hover .region-btn-action {
    color: var(--primary-color);
}

.region-btn-action i {
    transition: transform 0.3s;
}

.region-btn:hover .region-btn-action i {
    transform: translateX(3px);
}

/* Specific colors/borders for buttons */
.region-btn-powiat:hover {
    border-color: #0284c7;
}

.region-btn-miasto:hover {
    border-color: #0ea5e9;
}

@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .region-selection-title {
        font-size: 2rem;
    }

    .region-btn {
        padding: 20px;
    }

    .region-btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .region-btn-title {
        font-size: 1.2rem;
    }
}

/* ==========================================
   MOBILE CONTENT SPACING FIX
   ========================================== */
@media (max-width: 768px) {

    /* Unified Mobile Margins for all Main Wrappers */
    .container,
    .site-main,
    .single-post-container,
    .category-page-container,
    .single-post-article,
    .entry-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Prevent Double Padding when nested */
    .container .site-main,
    .container .single-post-article,
    .container .single-post-container,
    .container .entry-content,
    .single-post-container .site-main,
    .site-main .single-post-article,
    .single-post-article .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Force images to fill the container width for a consistent look */
    .single-post-article .entry-content img,
    .single-post-article .entry-content figure,
    .single-post-thumbnail img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
        display: block !important;
        border-radius: 8px !important;
    }

    /* Ensure text doesn't touch the edge even if container fails */
    .entry-content p,
    .entry-content h2,
    .entry-content h3,
    .entry-title {
        max-width: 100% !important;
        overflow-wrap: break-word;
    }
}

/* ==========================================
   PAGE: ZGŁOSZENIE (REPORTING) ENHANCEMENTS
   ========================================== */

.zgloszenie-intro-section {
    margin-bottom: 35px;
}

.zgloszenie-info-box {
    background: #fdf2f2;
    border-left: 5px solid #e11d48;
    padding: 25px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    box-shadow: 0 4px 6px rgba(225, 29, 72, 0.05);
}

.zgloszenie-info-box i {
    font-size: 2rem;
    color: #e11d48;
}

.zgloszenie-info-box p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 500;
}

.zgloszenie-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.highlight-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.highlight-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 10px;
    flex-shrink: 0;
}

.highlight-text strong {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.highlight-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.4;
}

.zgloszenie-footer-note {
    text-align: center;
    font-size: 1.05rem;
    color: #475569;
    font-style: italic;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 20px;
}

.zgloszenie-cta-wrapper {
    text-align: center;
    padding: 20px 0;
}

.cta-help-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.zgloszenie-card .contact-card-body {
    padding: 40px;
}

@media (max-width: 600px) {
    .zgloszenie-info-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .zgloszenie-info-box i {
        margin-bottom: 10px;
    }

    .zgloszenie-card .contact-card-body {
        padding: 20px;
    }
}

/* Pagination Styles */
.pagination {
    margin: 50px 0;
    text-align: center;
    width: 100%;
}

.pagination .screen-reader-text {
    display: none;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    background: #ffffff;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-color, #0ea5e9);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.pagination .page-numbers.current {
    background: var(--primary-color, #0ea5e9);
    color: #ffffff;
    border-color: var(--primary-color, #0ea5e9);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #64748b;
    pointer-events: none;
    padding: 0 5px;
    min-width: auto;
}

.pagination .nav-links .prev.page-numbers,
.pagination .nav-links .next.page-numbers {
    padding: 0 20px;
    font-size: 0.9rem;
    background: #f8fafc;
}

.pagination .nav-links .prev.page-numbers:hover,
.pagination .nav-links .next.page-numbers:hover {
    background: #ffffff;
    color: var(--primary-color, #0ea5e9);
}

@media (max-width: 600px) {
    .pagination {
        margin: 30px 0;
    }

    .pagination .nav-links {
        gap: 6px;
    }

    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.95rem;
    }

    .pagination .nav-links .prev.page-numbers,
    .pagination .nav-links .next.page-numbers {
        padding: 0 14px;
        font-size: 0.85rem;
        min-width: auto;
    }

    .pagination .nav-links {
        padding: 0 10px;
    }
}

/* ==========================================
   REDAKTORZY (EDITORS) FEATURE
   ========================================== */

.redaktorzy-title {
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
}

.redaktor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.redaktor-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.redaktor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.redaktor-card-photo {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.redaktor-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.redaktor-card-name {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.redaktor-card-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.redaktor-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    margin-top: auto;
}

.redaktor-card-btn i {
    transition: transform 0.3s;
}

.redaktor-card:hover .redaktor-card-btn {
    color: #0284c7;
}

.redaktor-card:hover .redaktor-card-btn i {
    transform: translateX(4px);
}

/* Redaktor Archive Styles */
.redaktor-archive-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 40px !important;
}

.redaktor-description p {
    margin: 0 0 10px;
}
.redaktor-description p:last-child {
    margin-bottom: 0;
}

/* Redaktor Archive Header Mobile Adjustments */
@media (max-width: 768px) {
    .redaktor-archive-header {
        flex-direction: column;
        text-align: center;
        gap: 20px !important;
        padding: 20px !important;
    }
    .redaktor-archive-photo {
        margin: 0 auto;
    }
    .redaktor-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Category Page Mobile Layout Fixes
   ========================================================================== */
.post-card.secondary-post {
    display: flex;
    flex-wrap: wrap;
    min-height: 140px;
    margin-bottom: 20px;
    background: #fff;
}

.post-card.secondary-post .post-thumbnail-link {
    width: 35%;
    display: block; /* ensure block formatting context */
}

.post-card.secondary-post .post-thumbnail-link img {
    width: 100% !important;
    aspect-ratio: 16 / 10;
    object-fit: cover !important;
    display: block;
    height: 100% !important; /* Forces it to fill its aspect ratio box */
}

.post-card.secondary-post .post-content.has-thumbnail {
    width: 65%;
    padding: 15px;
}

.post-card.secondary-post .post-content.no-thumbnail {
    width: 100%;
    padding: 15px;
}

@media (max-width: 768px) {
    .post-card.secondary-post {
        flex-direction: column;
        border: 1px solid #eee; /* match cat-grid-item */
        min-height: 380px;
    }
    
    .post-card.secondary-post .post-thumbnail-link {
        width: 100%;
    }

    .post-card.secondary-post .post-thumbnail-link img {
        height: 240px;
        object-fit: cover;
        width: 100%;
    }
    
    .post-card.secondary-post .post-content.has-thumbnail,
    .post-card.secondary-post .post-content.no-thumbnail {
        width: 100%;
        padding: 15px 10px;
    }
}
