/*
 * Czechs Online - Newspaper Style CSS
 * Layout giornalistico professionale
 */

/* ===== VARIABLES CSS ===== */
:root {
    /* Czech & Italian colors from logo - palette uniforme */
    --color-primary: #DC143C;      /* Rosso (torri, bandiera ceca) */
    --color-secondary: #0066CC;    /* Blu (CZ del logo) */
    --color-success: #009933;      /* Verde (IT del logo, bandiera italiana) */
    --color-accent: #11457E;       /* Blu navy scuro */
    --color-white: #FFFFFF;
    --color-black: #1a1a1a;
    --color-gray-dark: #2c3e50;
    --color-gray: #6c757d;
    --color-gray-light: #f8f9fa;
    --color-border: #dee2e6;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Merriweather', Georgia, serif;

    /* Spacing */
    --container-max-width: 1260px;
    --section-padding: 2rem;

    /* Shadows */
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
}

/* ===== BACKGROUND ADVERTISING LAYOUT ===== */
.page-wrapper {
    min-height: 100vh;
    background: #f0f0f0;
    background-image: 
        url('https://images.unsplash.com/photo-1560472354-b33ff0c44a43?ixlib=rb-4.0.3&auto=format&fit=crop&w=400&q=80'),
        url('https://images.unsplash.com/photo-1551698618-1dfe5d97d256?ixlib=rb-4.0.3&auto=format&fit=crop&w=400&q=80');
    background-position: 
        left center,
        right center;
    background-repeat: no-repeat, no-repeat;
    background-size: 
        calc((100vw - 1260px) / 2) 100vh,
        calc((100vw - 1260px) / 2) 100vh;
    background-attachment: fixed, fixed;
    position: relative;
}

/* Overlay pubblicitario sui lati per rendere l'immagine più come una vera ads */
.page-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: calc((100vw - 1260px) / 2);
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.85) 0%,
        rgba(220, 20, 60, 0.7) 50%,
        rgba(0, 153, 51, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.page-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: calc((100vw - 1260px) / 2);
    height: 100vh;
    background: linear-gradient(
        45deg,
        rgba(0, 153, 51, 0.85) 0%,
        rgba(220, 20, 60, 0.7) 50%,
        rgba(0, 102, 204, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.main-content-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    background: var(--color-white);
    position: relative;
    z-index: 2;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Testo pubblicitario sui lati per completare l'effetto ads */
.side-ad-overlay {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: calc((100vw - 1260px) / 2 - 40px);
    text-align: center;
    color: white;
    font-family: var(--font-serif);
    z-index: 3;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.side-ad-overlay.left {
    left: 20px;
}

.side-ad-overlay.right {
    right: 20px;
}

.ad-overlay-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.ad-overlay-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.ad-overlay-cta {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-shadow: none;
}

/* Responsive - nascondi background ads sui dispositivi piccoli */
@media (max-width: 1600px) {
    .page-wrapper {
        background: #f8f9fa;
        background-image: none;
    }
    
    .page-wrapper::before,
    .page-wrapper::after {
        display: none;
    }
    
    .side-ad-overlay {
        display: none;
    }
    
    .main-content-wrapper {
        box-shadow: none;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.newspaper-logo {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.newspaper-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem; /* Reduced from 0.85rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Reduced from 0.15em */
    color: var(--color-gray);
    margin-bottom: 0.5rem; /* Reduced margin */
}

.founding-year {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* ===== HEADER STYLES ===== */
.top-bar {
    background: var(--color-black) !important;
    font-size: 0.8rem;
    position: relative;
    z-index: 1105;
}

.top-links .dropdown-menu {
    z-index: 2000;
}

.top-links {
    width: 100%;
}

.top-links > a,
.top-links > .dropdown > .btn,
.top-links > .dropdown > button,
.top-links .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.5rem;
}

.top-links > a,
.top-links > .dropdown > .btn,
.top-links > .dropdown > button,
.top-links .btn-success {
    font-weight: 400;
    line-height: 1.2;
}

.top-links > a,
.top-links > .dropdown > .btn,
.top-links > .dropdown > button,
.top-links .btn-link,
.top-links .dropdown-toggle {
    text-decoration: none !important;
}

.top-links > .dropdown > .btn-link,
.top-links > .dropdown > button.btn-link,
.top-links .btn-link,
.top-links .dropdown-toggle {
    border: 0;
    box-shadow: none;
}

.top-links > .dropdown > .btn-link:hover,
.top-links > .dropdown > .btn-link:focus-visible,
.top-links > .dropdown > button.btn-link:hover,
.top-links > .dropdown > button.btn-link:focus-visible,
.top-links .btn-link:hover,
.top-links .btn-link:focus-visible,
.top-links .dropdown-toggle:hover,
.top-links .dropdown-toggle:focus-visible {
    text-decoration: none !important;
}

.top-bar a:hover {
    color: var(--color-primary) !important;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: var(--color-primary) !important;
    position: relative;
    overflow: hidden;
}

.breaking-label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ticker-wrapper {
    display: flex;
    min-width: max-content;
    animation: ticker 60s linear infinite;
}

.ticker-item {
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
}

@media (min-width: 768px) {
    .breaking-news-ticker {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .breaking-news-ticker .ticker-wrapper {
        line-height: 1.1;
    }

    .breaking-news-ticker .ticker-item {
        min-height: 1.8rem;
    }
}

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

/* Main Header */
.main-header {
    border-bottom: 3px solid var(--color-primary);
}

.header-logo {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0; /* Reduced from py-4 (which is typically 1.5rem = 24px) */
    max-width: 100%;
}

/* Reduced horizontal padding in the logo wrapper */
.logo-wrapper {
    padding: 0 15px; /* Add some responsive padding */
    max-width: 100%;
}

/* Adjust the logo image to be more compact */
.site-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    max-height: 150px; /* Reduced from 200px */
    transition: transform var(--transition-normal);
    object-fit: contain;
}

@media (max-width: 576px) {
    .site-logo {
        max-height: 110px;
    }
}

@media (max-width: 360px) {
    .site-logo {
        max-height: 90px;
    }
}

/* Navigation */
.main-navigation {
    background: var(--color-white);
}

.main-navigation .nav-link {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-black) !important;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}

.main-navigation .nav-link:hover {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary);
}

.main-navigation .nav-link-premium {
    color: #FFB800 !important;
}

.main-navigation .nav-link-premium:hover {
    color: #E0A000 !important;
    border-bottom-color: #FFB800 !important;
}

/* Categories Bar */
.categories-bar {
    background: var(--color-gray-light) !important;
    border-bottom: 1px solid var(--color-border);
}

.category-tag {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all var(--transition-fast);
}

.category-tag:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-light);
}

/* ===== NEWS GRID ===== */
.news-grid-section {
    padding: 2rem 0;
}

/* Main Article */
.main-article {
    transition: transform var(--transition-normal);
}

.main-article:hover {
    transform: translateY(-2px);
}

.main-article .article-title {
    font-family: var(--font-serif);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-article .article-subtitle {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.4;
}

.hover-glow:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.8) !important;
}

/* News Cards */
.news-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border) !important;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium) !important;
    border-color: var(--color-primary) !important;
}

.news-card .card-title a:hover {
    color: var(--color-primary) !important;
}

/* Most Read Widget */
.most-read-widget {
    background: var(--color-gray-light) !important;
}

.most-read-item .article-title a:hover {
    color: var(--color-primary) !important;
}

/* ===== WIDGETS ===== */
.newsletter-widget {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-success)) !important;
}

.newsletter-widget .btn-light:hover {
    background: var(--color-white) !important;
    color: var(--color-primary) !important;
    transform: translateY(-1px);
}

.weather-widget {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-success)) !important;
}

/* Editorial Section */
.editorial-section {
    background: var(--color-gray-light) !important;
    border-left: 4px solid var(--color-primary);
}

/* ===== SIDEBAR ===== */
.sidebar-news .badge {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ===== ADVERTISING ===== */
.ad-leaderboard,
.ad-rectangle {
    background: var(--color-gray-light);
    border: 0 !important;
    color: var(--color-gray);
    transition: all var(--transition-fast);
}

.ad-leaderboard:hover,
.ad-rectangle:hover {
    border: 0 !important;
    background: var(--color-white);
}

/* ===== UTILITIES ===== */
.hover-primary:hover {
    color: var(--color-primary) !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.transition-all {
    transition: all var(--transition-normal);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-success)) !important;
}

/* ===== LOGO STYLES ===== */
.site-logo {
    transition: transform var(--transition-normal);
}

.site-logo:hover {
    transform: scale(1.02);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-color: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-success {
    background: var(--color-success);
    border-color: var(--color-success);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-success:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* ===== BADGES ===== */
.badge {
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--color-primary) !important;
}

.badge-secondary {
    background-color: var(--color-secondary) !important;
}

.badge-success {
    background-color: var(--color-success) !important;
}

.breaking-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Mobile First - Base styles */
@media (max-width: 575.98px) {
    .newspaper-logo {
        font-size: 3rem;
    }
    
    .newspaper-tagline {
        font-size: 1.05rem;
    }
    
    .main-navigation .nav-link {
        font-size: 1.15rem;
        padding: 0.9rem 1rem;
        min-height: 2.75rem;
        display: flex;
        align-items: center;
    }
    
    .categories-bar {
        padding: 0.5rem 0;
    }
    
    .category-tag {
        font-size: 0.875rem;
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
        padding: 0.6rem 0.85rem;
    }
    
    .main-article .article-title {
        font-size: 1.5rem;
    }
    
    .ticker-item {
        padding-right: 2.5rem;
        min-height: 2.5rem;
    }

    .top-bar {
        font-size: 1.05rem;
    }

    .top-links {
        gap: 0.5rem;
    }

    .top-links .topbar-action {
        font-size: 1.1rem !important;
    }

    .top-links > a,
    .top-links > .dropdown > .btn,
    .top-links > .dropdown > button,
    .top-links .btn-success {
        min-height: 2.75rem;
        min-width: 2.75rem;
        padding: 0.55rem 0.8rem !important;
        font-size: 1.1rem !important;
    }

    .top-links .badge {
        font-size: 0.75rem !important;
    }

    .top-links .dropdown-menu {
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    #notification-bell-btn,
    #message-bell-btn {
        width: 2.75rem;
        padding-inline: 0.55rem !important;
    }

    .header-logo {
        padding: 0.75rem 0;
    }

    .header-search-mobile {
        min-width: 0;
        margin: 0 0 0 0.75rem !important;
    }

    .header-search-mobile .input-group-text,
    .header-search-mobile .form-control {
        min-height: 2.75rem;
        font-size: 1.05rem;
    }

    .site-footer .small,
    .site-footer .footer-links a,
    .site-footer .contact-info a,
    .site-footer .footer-legal a,
    .site-footer .editorial-disclaimer,
    .site-footer .editorial-disclaimer a {
        font-size: 0.875rem !important;
    }

    .site-footer .footer-legal {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
    }

    .site-footer .footer-legal a,
    .site-footer .footer-cookie-settings {
        width: 100%;
        justify-content: flex-start;
        justify-self: stretch;
        margin: 0 !important;
        text-align: left;
    }
}

/* Small devices */
@media (min-width: 576px) {
    .newspaper-logo {
        font-size: 3rem;
    }
}

/* Medium devices */
@media (min-width: 768px) {
    .newspaper-logo {
        font-size: 3.5rem;
    }
    
    .main-article .article-title {
        font-size: 2rem;
    }
}

/* Large devices */
@media (min-width: 992px) {
    .newspaper-logo {
        font-size: 4rem;
    }
    
    .main-article .article-title {
        font-size: 2.2rem;
    }
}

/* Extra large devices */
@media (min-width: 1200px) {
    .newspaper-logo {
        font-size: 4.5rem;
    }
}

/* ===== SEARCH ===== */
.search-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* ===== SOCIAL ICONS ===== */
.social-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.social-header a {
    transition: all var(--transition-fast);
    padding: 0.25rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.social-header a:hover {
    background: var(--color-gray-light);
    color: var(--color-primary) !important;
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    margin-top: 3rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: var(--color-white) !important;
    font-family: var(--font-serif);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--color-primary) !important;
}

/* Fix Bootstrap text classes in footer */
.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer .text-white {
    color: var(--color-white) !important;
}

.site-footer .small {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer specific overrides */
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

.site-footer .footer-links a:hover {
    color: var(--color-success) !important;
}

/* Alternate hover colors for variety */
.site-footer .footer-links li:nth-child(even) a:hover {
    color: var(--color-secondary) !important;
}

.site-footer .contact-info .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.site-footer .contact-info strong {
    color: var(--color-white) !important;
}

.site-footer .contact-info a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer .contact-info a:hover {
    color: var(--color-primary) !important;
}

/* Copyright and legal links */
.site-footer .copyright {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer .footer-legal a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer .footer-legal a:hover {
    color: var(--color-primary) !important;
}

.site-footer .footer-legal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.5rem 0.75rem;
    justify-content: end;
    align-items: start;
}

.site-footer .footer-legal a,
.site-footer .footer-cookie-settings {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    line-height: 1.35;
    width: auto;
    justify-self: end;
    text-align: right;
}

/* Editorial disclaimer */
.site-footer .editorial-disclaimer {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer .editorial-disclaimer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer .editorial-disclaimer a:hover {
    color: var(--color-primary) !important;
}

/* Footer bottom section */
.footer-bottom {
    background: #000000 !important;
}

/* Social icons in footer */
.site-footer .social-links a {
    color: var(--color-white) !important;
    background-color: var(--color-primary);
    border: none !important;
}

.site-footer .social-links a:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-2px);
}

/* App download buttons */
.site-footer .app-download .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer .app-download .btn-outline-light:hover {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
    border-color: var(--color-white) !important;
}

@media (max-width: 575.98px) {
    .site-footer .footer-legal {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .site-footer .footer-legal a,
    .site-footer .footer-cookie-settings {
        width: 100% !important;
        justify-self: stretch !important;
        justify-content: flex-start !important;
        text-align: left !important;
        margin: 0 !important;
    }
}

/* ===== HOME PAGE SPECIFIC STYLES ===== */
/* Category colors alternating with logo palette */
.category-article:nth-child(3n+1) .badge {
    background-color: var(--color-primary) !important;
}

.category-article:nth-child(3n+2) .badge {
    background-color: var(--color-secondary) !important;
}

.category-article:nth-child(3n+3) .badge {
    background-color: var(--color-success) !important;
}

/* News cards badge colors */
.news-card:nth-child(3n+1) .badge-primary {
    background-color: var(--color-primary) !important;
}

.news-card:nth-child(3n+2) .badge-primary {
    background-color: var(--color-secondary) !important;
}

.news-card:nth-child(3n+3) .badge-primary {
    background-color: var(--color-success) !important;
}

/* Live updates widget */
.live-updates-widget {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
}

/* Video widget */
.video-widget {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary)) !important;
}

/* Photo gallery hover effect */
.photo-gallery-widget img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
}

/* Special focus section */
.special-focus-section .border-primary {
    border-color: var(--color-secondary) !important;
}

/* Most read numbers */
.most-read-item .article-number {
    border-radius: 50% !important;
    flex: 0 0 30px;
    min-width: 30px;
    min-height: 30px;
}

.most-read-item:nth-child(odd) .article-number {
    background-color: var(--color-primary) !important;
}

.most-read-item:nth-child(even) .article-number {
    background-color: var(--color-secondary) !important;
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Focus styles - using logo colors */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .breaking-news-ticker,
    .categories-bar,
    .ad-leaderboard,
    .ad-rectangle,
    .newsletter-widget,
    .social-header {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .newspaper-logo {
        font-size: 24pt;
        color: black;
    }
    
    .main-article .article-title {
        font-size: 18pt;
        color: black;
    }
    
    .news-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* ===== PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ticker-wrapper {
        animation: none;
    }
    
    .breaking-badge {
        animation: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* Implementa dark mode se necessario */
    :root {
        --color-black: #ffffff;
        --color-white: #1a1a1a;
        --color-gray-light: #2c3e50;
    }
}

/* ===== EVENTS ===== */
.events-section .upcoming-events .event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.events-section .upcoming-events .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.events-section .featured-event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.events-section .featured-event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.events-section .upcoming-events .event-card .event-image {
    flex: 0 0 auto;
}

.events-section .upcoming-events .event-card .p-4 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.events-section .upcoming-events .event-card .event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-height: 1.6rem;
}

.events-section .upcoming-events .event-card .event-meta small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-section .upcoming-events .event-card .event-title {
    line-height: 1.25;
    min-height: calc(1em * 1.25 * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.events-section .upcoming-events .event-card .event-description {
    line-height: 1.4;
    min-height: calc(1em * 1.4 * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.events-section .upcoming-events .event-card .event-details {
    min-height: 1.6rem;
}

.events-section .upcoming-events .event-card .btn {
    margin-top: auto;
}
