/* =============================================
   ZAGINIENI PRZED LATY - MODERN NEWSPAPER STYLE
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f5ab56;
    --primary-dark: #e09540;
    --primary-light: #ffc078;
    --accent: #e74c3c;
    --secondary: #1a1a2e;
    --dark: #0d0d0d;
    --light: #f5f5f5;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 0;
    --radius-lg: 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--secondary);
    background-color: var(--white);
}

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

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

/* =============================================
   HEADER - Modern Newspaper Style
   ============================================= */

.header {
    background: var(--white);
    position: relative; /* Nie sticky - przewija się z treścią */
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.header-top a {
    color: rgba(255,255,255,0.8);
}

.header-top a:hover {
    color: var(--primary);
}

.header-main {
    padding: 15px 0;
    border-bottom: 3px solid var(--dark);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

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

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

/* Navigation - inline */
.nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-main ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-main li {
    position: relative;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Search */
.search-wrapper {
    position: relative;
}

.search-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--dark);
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-form {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.search-form.active {
    width: 320px;
    opacity: 1;
}

.search-form input {
    width: 100%;
    padding: 12px 90px 12px 20px;
    border: 2px solid var(--dark);
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--white);
}

.search-form input:focus {
    outline: none;
}

.search-form button[type="submit"] {
    position: absolute;
    right: 44px;
    top: 0;
    bottom: 0;
    width: 44px;
    background: var(--dark);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-form button[type="submit"]:hover {
    background: var(--primary);
}

.search-close {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    background: var(--gray);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    background: var(--danger);
}

.nav-main a {
    display: block;
    padding: 12px 12px;
    color: var(--dark);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-main a:hover::after,
.nav-main a.active::after {
    width: 100%;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--primary);
}

/* Wyroznienie w menu - Poszukiwani */
.nav-main a.nav-highlight {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 11px;
}
.nav-main a.nav-highlight:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
}
.nav-main a.nav-highlight::after {
    display: none;
}
.nav-main a.nav-highlight i {
    margin-right: 4px;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: var(--dark);
    border: none;
    padding: 12px 18px;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */

.breaking-news {
    background: var(--accent);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
}

.breaking-label {
    background: var(--dark);
    padding: 8px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    margin-right: 25px;
    white-space: nowrap;
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-ticker ul {
    display: flex;
    animation: ticker 25s linear infinite;
    list-style: none;
}

.breaking-ticker li {
    white-space: nowrap;
    padding-right: 60px;
    font-weight: 500;
}

.breaking-ticker a {
    color: var(--white);
}

.breaking-ticker a:hover {
    text-decoration: underline;
}

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

/* =============================================
   HERO SECTION - Featured Articles Grid
   ============================================= */

.hero-section {
    padding: 40px 0;
    background: var(--white);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    height: 480px; /* Stała wysokość dla całego gridu */
}

.hero-main {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    height: 100%; /* Wypełnia całą wysokość gridu */
}

.hero-main .hero-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-main .hero-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    z-index: 10;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.hero-main:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.hero-main .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 40px 40px;
    background: linear-gradient(to top,
        rgba(0,0,0,0.98) 0%,
        rgba(0,0,0,0.85) 30%,
        rgba(0,0,0,0.5) 60%,
        transparent 100%);
    color: var(--white);
}

.hero-main .hero-content::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 30px;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.hero-category {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition);
}

.hero-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 171, 86, 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title a {
    color: var(--white);
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0% 3px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease;
}

.hero-title a:hover {
    color: var(--white);
    background-size: 100% 3px;
}

.hero-excerpt {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.7;
    max-width: 90%;
}

.hero-meta {
    font-size: 13px;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%; /* Wypełnia całą wysokość gridu */
}

.hero-sidebar-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-sidebar-item .hero-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-sidebar-item .hero-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sidebar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.hero-sidebar-item:hover img {
    transform: scale(1.08);
}

.hero-sidebar-item img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-sidebar-item .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 25px 25px;
    background: linear-gradient(to top,
        rgba(0,0,0,0.98) 0%,
        rgba(0,0,0,0.7) 50%,
        transparent 100%);
    color: var(--white);
}

.hero-sidebar-item .hero-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.hero-sidebar-item .hero-title a {
    background-size: 0% 2px;
}

.hero-sidebar-item .hero-category {
    padding: 5px 14px;
    font-size: 10px;
    margin-bottom: 12px;
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.section-title span {
    color: var(--primary);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* =============================================
   ARTICLE CARDS - Modern Style
   ============================================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.article-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

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

.article-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gray-light);
}

a.article-card-image {
    cursor: pointer;
}

.hero-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.article-card-body {
    padding: 22px;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
}

.article-card-title a {
    color: var(--dark);
}

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

.article-card-excerpt {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray);
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.article-card-meta i {
    margin-right: 5px;
}

/* Article Card - Horizontal */
.article-card-horizontal {
    display: flex;
    border: 1px solid var(--gray-light);
    background: var(--white);
    transition: var(--transition);
}

.article-card-horizontal:hover {
    box-shadow: var(--shadow);
}

.article-card-horizontal .article-card-image {
    width: 280px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.article-card-horizontal .article-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Article List - Compact */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

.article-list-item:first-child {
    padding-top: 0;
}

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

.article-list-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-light);
}

.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-list-item:hover .article-list-image img {
    transform: scale(1.1);
}

.article-list-content {
    flex: 1;
}

.article-list-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.article-list-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-list-title a {
    color: var(--dark);
}

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

.article-list-meta {
    font-size: 12px;
    color: var(--gray);
}

/* =============================================
   SIDEBAR
   ============================================= */

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--dark);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* Categories widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--dark);
    color: var(--white);
}

.category-list .count {
    background: var(--white);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

.category-list a:hover .count {
    background: var(--primary);
    color: var(--dark);
}

/* Popular posts in sidebar */
.popular-posts .article-list-item {
    padding: 15px 0;
}

.popular-posts .article-list-image {
    width: 80px;
    height: 60px;
}

.popular-posts .article-list-title {
    font-size: 14px;
}

/* Newsletter widget */
.newsletter-widget {
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.newsletter-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget .widget-title::after {
    background: var(--primary);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 14px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: none;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
}

.newsletter-form .btn {
    width: 100%;
}

/* =============================================
   SINGLE ARTICLE
   ============================================= */

.article-single {
    background: var(--white);
    border: 1px solid var(--gray-light);
}

.article-header {
    padding: 50px;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.article-header .category-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 25px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    color: var(--gray);
    font-size: 14px;
}

.article-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.article-excerpt {
    font-size: 19px;
    line-height: 1.7;
    color: var(--gray);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    font-style: italic;
    text-align: justify;
}

.article-featured-image {
    width: 100%;
}

.article-featured-image img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

.article-content {
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.85;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-top: 45px;
    margin-bottom: 20px;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 15px;
}

.article-content img {
    margin: 30px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 35px 0;
    background: var(--light);
    font-style: italic;
    font-size: 18px;
}

/* Tags */
.article-tags {
    padding: 30px 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--gray-light);
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    background: var(--light);
    color: var(--gray-dark);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

/* Share buttons */
.share-buttons {
    padding: 25px 50px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons span {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    min-width: 150px;
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn i {
    font-size: 1.3rem;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0a66c2; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: var(--white);
}

/* =============================================
   COMMENTS
   ============================================= */

.comments-section {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 50px;
    margin-top: 30px;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--dark);
}

.comment {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-light);
}

.comment:last-of-type {
    border-bottom: none;
}

.comment-avatar {
    width: 55px;
    height: 55px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 12px;
}

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

.comment-reply {
    margin-left: 75px;
    border-left: 3px solid var(--gray-light);
    padding-left: 25px;
}

/* Comment form */
.comment-form {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
}

.comment-form h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
}

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

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

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

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

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

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

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

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

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

.btn-lg {
    padding: 18px 45px;
    font-size: 14px;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============================================
   PAGINATION
   ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-top: 50px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 18px;
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/* =============================================
   BREADCRUMBS
   ============================================= */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 20px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-item {
    color: var(--gray);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 12px;
    color: var(--gray-light);
}

.breadcrumb-item a {
    color: var(--gray);
}

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

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 600;
}

/* =============================================
   FOOTER - Modern Style
   ============================================= */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 0;
    margin-top: 70px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-widget p {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-size: 14px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--dark);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

.footer-credits {
    margin-top: 8px;
    font-size: 12px;
}

.footer-credits a {
    color: var(--primary);
    font-weight: 500;
}

.footer-credits a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--gray);
    font-size: 14px;
}

/* =============================================
   404 PAGE
   ============================================= */

.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-page h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
}

.error-page p {
    color: var(--gray);
    margin-bottom: 30px;
}

/* =============================================
   UTILITIES
   ============================================= */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col { flex: 1; padding: 0 15px; }
.col-2 { width: 16.666%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-8 { width: 66.666%; padding: 0 15px; }
.col-9 { width: 75%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }

/* Alert */
.alert {
    padding: 18px 25px;
    margin-bottom: 25px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        flex-direction: row;
    }

    .hero-sidebar-item {
        min-height: 200px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .article-header h1 {
        font-size: 32px;
    }

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

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-row {
        gap: 15px;
    }

    .logo img {
        height: 40px;
    }

    .nav-main {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        z-index: 100;
    }

    .nav-main.active {
        display: block;
    }

    .nav-main ul {
        flex-direction: column;
    }

    .nav-main a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--white);
    }

    .nav-main a::after {
        display: none;
    }

    .search-toggle {
        display: flex;
    }

    .search-form {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        height: 60px;
        z-index: 1001;
    }

    .search-form.active {
        width: 100%;
    }

    .search-form input {
        height: 60px;
        padding: 15px 100px 15px 20px;
        font-size: 16px;
    }

    .search-form button[type="submit"],
    .search-close {
        height: 60px;
        width: 50px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-main .hero-content {
        padding: 30px 20px 25px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-sidebar {
        flex-direction: column;
    }

    .hero-sidebar-item {
        min-height: 180px;
    }

    .section {
        padding: 35px 0;
    }

    .section-title {
        font-size: 22px;
    }

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

    .article-card-horizontal {
        flex-direction: column;
    }

    .article-card-horizontal .article-card-image {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .article-header, .article-content {
        padding: 30px 20px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer {
        padding: 50px 0 0;
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .article-card-body {
        padding: 18px;
    }

    .article-card-title {
        font-size: 18px;
    }

    .btn {
        padding: 12px 25px;
    }

    .comments-section {
        padding: 30px 20px;
    }

    .error-page h1 {
        font-size: 80px;
    }
}

/* =============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 25px 0;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.cookie-banner-text h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.cookie-banner-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 5px;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--primary-dark);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 12px 20px;
}

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

.btn-outline:hover {
    background: var(--gray-light);
    border-color: var(--gray-light);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

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

.cookie-modal-content {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleIn 0.2s ease-out;
}

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

.cookie-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin: 0;
}

.cookie-modal-header h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.cookie-modal-close:hover {
    color: var(--secondary);
}

.cookie-modal-body {
    padding: 25px 30px;
}

.cookie-modal-body > p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-category {
    background: var(--light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.cookie-category:last-of-type {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cookie-category-info strong {
    font-size: 15px;
    color: var(--secondary);
}

.cookie-always-on {
    font-size: 12px;
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.cookie-category-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: var(--success);
    cursor: not-allowed;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .btn {
    font-size: 14px;
}

/* Cookie Settings Button in Footer */
.cookie-settings-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: color 0.2s;
    margin-top: 10px;
}

.cookie-settings-link:hover {
    color: var(--primary);
}

.footer-bottom .container {
    text-align: center;
}

/* Legal Pages Styling */
.legal-content h2 {
    font-size: 22px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.legal-content h2:first-of-type {
    margin-top: 30px;
}

.legal-content h3 {
    font-size: 18px;
    margin: 25px 0 15px;
}

.legal-content ul, .legal-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.company-info {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.company-info p {
    margin-bottom: 5px;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   MOBILE RESPONSIVE - COMPLETE FIX
   ============================================= */

/* Tablet */
@media (max-width: 992px) {
    .row {
        flex-direction: column !important;
    }

    .col, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .main-content {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Force single column layout */
    .row {
        display: block !important;
    }

    .col, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 20px;
    }

    /* Article grids - single column */
    .articles-grid {
        display: block !important;
    }

    .articles-grid .article-card {
        margin-bottom: 20px;
    }

    .grid-2, .grid-3, .grid-4 {
        display: block !important;
    }

    .grid-2 > *, .grid-3 > *, .grid-4 > * {
        margin-bottom: 20px;
    }

    /* Hero section - mobile */
    .hero-section {
        padding: 15px 0;
    }

    .hero-grid {
        display: block !important;
        height: auto !important;
    }

    .hero-main {
        margin-bottom: 15px;
        height: 280px !important;
        position: relative;
    }

    .hero-main .hero-image-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-main .hero-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-sidebar {
        display: block !important;
        height: auto !important;
    }

    .hero-sidebar-item {
        margin-bottom: 12px;
        height: 160px !important;
        position: relative;
    }

    .hero-sidebar-item .hero-image-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-sidebar-item .hero-image-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Article content - no columns */
    .article-content {
        column-count: 1 !important;
        columns: unset !important;
        padding: 20px 15px !important;
    }

    .article-header {
        padding: 25px 15px !important;
    }

    .article-header h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .article-excerpt {
        font-size: 15px !important;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Comments */
    .comments-section {
        padding: 20px 15px !important;
    }

    .comment {
        gap: 10px;
    }

    .comment-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .comment-reply {
        margin-left: 30px !important;
        padding-left: 12px !important;
    }

    .comment-form .form-row {
        display: block !important;
    }

    .comment-form .form-group {
        width: 100% !important;
        margin-bottom: 15px;
    }

    /* Share & Tags */
    .share-buttons {
        padding: 15px !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-buttons span {
        width: 100%;
        margin-bottom: 5px;
    }

    .article-tags {
        padding: 15px !important;
    }

    .tag {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Sidebar */
    .sidebar-widget {
        margin-bottom: 20px;
        padding: 20px 15px;
    }

    .widget-title {
        font-size: 18px;
    }

    /* Footer */
    .footer-main {
        display: block !important;
    }

    .footer-widget {
        margin-bottom: 30px;
    }

    /* Breaking news - jedna linia na mobile */
    .breaking-news .d-flex {
        flex-direction: row;
        align-items: center;
    }

    .breaking-label {
        margin-bottom: 0;
        padding: 5px 12px;
        font-size: 9px;
        margin-right: 15px;
    }

    .breaking-ticker {
        font-size: 13px;
    }

    /* Archive list */
    .archive-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .archive-list li {
        margin-bottom: 0;
    }

    .archive-list li a {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-light);
    }

    /* Category list */
    .category-list a {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Container padding */
    .container {
        padding: 0 12px !important;
    }

    .section {
        padding: 30px 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px !important;
    }

    .hero-main .hero-content {
        padding: 20px 15px !important;
    }

    .article-card-title {
        font-size: 16px;
    }

    .article-card-body {
        padding: 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .footer {
        padding: 40px 0 0;
    }
}

/* =============================================
   CRITICAL MOBILE FIXES - OVERFLOW & HERO
   ============================================= */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* Fix any overflow issues */
    .container, .section, .article-single, .article-content {
        overflow-x: hidden;
    }

    /* Images should not overflow - but not header elements */
    .article-content img,
    .article-card img,
    .hero-main img,
    .hero-sidebar img,
    .article-featured-image img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Tables responsive */
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }

    /* Pre/code blocks */
    pre, code {
        overflow-x: auto;
        max-width: 100%;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Hero - hide excerpt on mobile */
    .hero-excerpt {
        display: none !important;
    }

    /* Hero - style już ustawione wyżej */

    .hero-main .hero-content {
        padding: 15px !important;
    }

    .hero-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .hero-category {
        padding: 4px 10px !important;
        font-size: 9px !important;
        margin-bottom: 10px !important;
    }

    .hero-meta {
        font-size: 11px !important;
    }

    /* Hero sidebar items smaller */
    .hero-sidebar-item {
        max-height: 180px;
    }

    .hero-sidebar-item .hero-title {
        font-size: 14px !important;
    }

    .hero-sidebar-item .hero-content {
        padding: 12px !important;
    }

    /* Article content - prevent overflow */
    .article-content p,
    .article-content h2,
    .article-content h3,
    .article-content ul,
    .article-content ol,
    .article-content blockquote {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .article-content blockquote {
        margin: 20px 0 !important;
        padding: 15px !important;
    }

    /* Fix long words/URLs breaking layout */
    .article-content {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Breadcrumbs centered on mobile */
    .breadcrumb {
        justify-content: center;
        text-align: center;
    }

    /* Row fix for mobile */
    .row {
        margin: 0 !important;
    }
    .col-8, .col-4, .col-6, .col-3, .col-12 {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* =============================================
   MISSING PERSONS PAGE - RESPONSIVE
   ============================================= */

/* Base styles for missing persons grid */
.missing-persons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.missing-person-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.missing-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.person-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

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

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alphabet-filter a {
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Tablet - Missing persons */
@media (max-width: 992px) {
    .missing-persons-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

/* Mobile - Missing persons */
@media (max-width: 768px) {
    .missing-persons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .missing-person-card {
        border-radius: 8px;
    }

    .person-info {
        padding: 10px !important;
    }

    .person-name {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }

    .person-detail {
        font-size: 0.75rem !important;
    }

    .person-date {
        font-size: 0.7rem !important;
    }

    .alphabet-filter {
        padding: 10px !important;
        gap: 3px !important;
        justify-content: center;
    }

    .alphabet-filter a {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
    }

    .letter-count {
        display: none !important;
    }

    .stat-box {
        width: 100% !important;
        text-align: center;
    }

    .missing-intro {
        font-size: 0.9rem !important;
        padding: 0 5px;
    }

    .search-input-group {
        flex-direction: row;
    }

    .search-input-group input {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }

    .sort-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.85rem;
    }

    .sort-options span {
        width: 100%;
    }

    .sort-options a {
        margin-left: 0 !important;
        padding: 5px 10px;
        background: #f0f0f0;
        border-radius: 4px;
    }

    .data-source-info {
        font-size: 0.8rem !important;
        padding: 12px !important;
    }

    .emergency-numbers {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .sidebar-widget {
        margin-top: 20px;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .section-title i {
        font-size: 1.1rem !important;
    }
}

/* Small mobile - Missing persons */
@media (max-width: 480px) {
    .missing-persons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .person-info {
        padding: 8px !important;
    }

    .person-name {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }

    .person-detail {
        font-size: 0.7rem !important;
    }

    .no-photo {
        font-size: 2rem !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
    }

    .alphabet-filter a {
        padding: 3px 5px !important;
        font-size: 0.7rem !important;
    }
}

/* =============================================
   MISSING PERSONS SECTION - HOME PAGE
   ============================================= */

.missing-persons-section .missing-person-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.missing-persons-section .missing-person-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.missing-persons-section .person-info {
    padding: 15px;
}

.missing-persons-section .person-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.missing-persons-section .person-detail,
.missing-persons-section .person-date {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.missing-persons-section .person-detail i,
.missing-persons-section .person-date i {
    color: var(--primary);
    margin-right: 6px;
    width: 16px;
}

.missing-persons-section .no-photo {
    width: 100%;
    height: 100%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud .tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud .tag:hover,
.tags-cloud .tag.active {
    background: #f5ab56;
    color: #fff;
}

.tags-cloud .tag span {
    font-size: 11px;
    opacity: 0.7;
}

/* Archive List */
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 8px;
}

.archive-list a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.archive-list a:hover,
.archive-list a.active {
    background: #f5ab56;
    color: #fff;
}

.archive-list a i {
    margin-right: 10px;
    opacity: 0.7;
}

.archive-list .count {
    margin-left: auto;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Related Articles - compact cards in 2 columns */
.related-articles .article-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.related-articles .article-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-articles .article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-articles .article-card-body {
    padding: 12px;
}

.related-articles .article-card-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-articles .article-card-meta {
    font-size: 12px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 20px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =============================================
   ARTICLE REACTIONS
   ============================================= */

.article-reactions {
    background: var(--light);
    padding: 20px 25px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reactions-label {
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 15px;
}

.reactions-label i {
    margin-right: 5px;
    color: var(--primary);
}

.reactions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    color: var(--gray-dark);
}

.reaction-btn:hover {
    border-color: var(--reaction-color, var(--primary));
    color: var(--reaction-color, var(--primary));
    transform: translateY(-2px);
}

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

.reaction-btn i {
    font-size: 18px;
}

.reaction-count {
    font-weight: 600;
    font-size: 14px;
}

/* Reakcje na miniaturkach */
.article-card-reactions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.card-reaction {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray);
}

.card-reaction i {
    font-size: 14px;
}

.card-reaction.heart i { color: #e74c3c; }
.card-reaction.thumbsup i { color: #3498db; }
.card-reaction.angry i { color: #e67e22; }
.card-reaction.sad i { color: #9b59b6; }

@media (max-width: 768px) {
    .article-reactions {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .reaction-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .reaction-btn i {
        font-size: 16px;
    }
}
