/* ============================================================
   News Slider (extrahováno z news-slider.php)
   ============================================================ */

    /* News Slider Section */
    .unicef-news-slider-section {
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .news-slider-wrapper {
        max-width: 1440px;
        margin: 0 auto;
    }
    
    .news-slider-inner {
        display: flex;
        align-items: flex-start;
        gap: 80px;
        position: relative;
    }
    
    /* Header Section - Left Side */
    .news-slider-header {
        flex: 0 0 300px;
        padding-top: 20px;
    }
    
    .news-slider-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 900;
        margin: 0 0 20px 0;
        color: #000;
        letter-spacing: -1px;
        line-height: 1;
    }
    
    .news-slider-subtitle {
        font-size: 16px;
        color: #666;
        margin: 0 0 40px 0;
        line-height: 1.5;
    }
    
    /* Navigation Arrows */
    .news-slider-nav {
        display: flex;
        gap: 10px;
    }
    
    .news-slider-prev,
    .news-slider-next {
        width: 40px;
        height: 40px;
        background: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #000;
        padding: 0;
    }
    
    .news-slider-prev:hover,
    .news-slider-next:hover {
        background: #f0f0f0;
        transform: scale(1.1);
    }
    
    .news-slider-prev:disabled,
    .news-slider-next:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    /* Slider Container - Right Side */
    .news-slider-container {
        flex: 1;
        overflow-x: hidden;
        overflow-y: visible;
        margin-right: -20px;
        padding-right: 20px;
        position: relative;
    }
    
    .news-slider-track {
        display: flex;
        gap: 30px;
        transition: transform 0.5s ease;
    }
    
    /* Calculate card width to show exactly 3 cards with the 3rd one cut off */
    .news-slide {
        flex: 0 0 calc((100% - 60px) / 2.5);
        min-width: calc((100% - 60px) / 2.5);
    }
    
    .news-slide-link {
        display: block;
        text-decoration: none;
        color: inherit;
        height: 100%;
    }
    
    .news-slide-image {
        position: relative;
        width: 100%;
        height: 280px;
        border-radius: 20px;
        overflow: hidden;
        background: #e0e0e0;
    }
    
    .news-slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .news-slide:hover .news-slide-image img {
        transform: scale(1.1);
    }
    
    .news-slide-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        color: #ccc;
    }
    
    /* Title Bar - Top with inline background effect */
    .news-slide-title-bar {
        position: absolute;
        top: 20px;
        left: 30px;
        right: 30px;
        z-index: 2;
    }
    
    .news-slide-title {
        margin: 0;
        font-size: 22px;
        font-weight: 900;
        text-transform: uppercase;
        line-height: 1.45;
        text-align: left;
    }
    
    /* The magic for inline background - using span inside h3 */
    .news-slide-title .title-text {
        background: #00AEEF;
        color: white;
        padding: 4px 0;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        /* Left and right padding using box-shadow */
        box-shadow: 12px 0 0 #00AEEF, -12px 0 0 #00AEEF;
        /* For better line breaks */
        display: inline;
        position: relative;
    }
    
    /* Arrow Icon - Bottom Right */
    .news-slide-arrow {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        z-index: 3;
        transition: all 0.3s ease;
    }
    
    .news-slide:hover .news-slide-arrow {
        transform: scale(1.1);
    }
    
    /* Tlačítko "Všechny novinky" bylo odebráno - přidává se ručně přes Divi builder */
    
    /* Make container extend beyond right edge */
    @media (min-width: 1441px) {
        .news-slider-container {
            width: calc(100% + ((100vw - 1440px) / 2));
            margin-right: calc(-1 * ((100vw - 1440px) / 2));
            padding-right: 0;
        }
    }
    
    /* Responsive */
    @media (max-width: 1200px) {
        .news-slider-inner {
            gap: 60px;
        }
        
        .news-slider-header {
            flex: 0 0 250px;
        }
        
        .news-slide {
            flex: 0 0 calc((100% - 30px) / 2.2);
            min-width: calc((100% - 30px) / 2.2);
        }
        
        .news-slide-title {
            font-size: 18px;
        }
        
        .news-slide-title .title-text {
            box-shadow: 10px 0 0 #00AEEF, -10px 0 0 #00AEEF;
        }
    }
    
    @media (max-width: 1024px) {
        .news-slider-inner {
            flex-direction: column;
            gap: 40px;
        }
        
        .news-slider-header {
            flex: none;
            width: 100%;
        }
        
        .news-slider-container {
            width: calc(100% + 40px);
            margin-left: -20px;
            margin-right: -20px;
            padding: 0 20px;
            overflow-x: auto;
            overflow-y: visible;
        }
        
        .news-slide {
            flex: 0 0 320px;
            min-width: 320px;
        }
    }
    
    @media (max-width: 768px) {
        .news-slider-title {
            font-size: 2.5rem;
        }
        
        .news-slide {
            flex: 0 0 280px;
            min-width: 280px;
        }
        
        .news-slide-image {
            height: 240px;
        }
        
        .news-slider-prev,
        .news-slider-next {
            width: 36px;
            height: 36px;
        }
        
        .news-slide-title {
            font-size: 16px;
        }
        
        .news-slide-title .title-text {
            box-shadow: 8px 0 0 #00AEEF, -8px 0 0 #00AEEF;
        }
        
        .news-slide-arrow {
            width: 36px;
            height: 36px;
        }
    }
    
    @media (max-width: 480px) {
        .unicef-news-slider-section {
            padding: 60px 0;
        }
        
        .news-slider-title {
            font-size: 2rem;
        }
        
        .news-slider-subtitle {
            font-size: 14px;
        }
        
        .news-slide {
            flex: 0 0 250px;
            min-width: 250px;
        }
        
        .news-slide-image {
            height: 200px;
            border-radius: 15px;
        }
        
        .news-slide-title {
            font-size: 14px;
        }
        
        .news-slide-title .title-text {
            padding: 3px 0;
            box-shadow: 6px 0 0 #00AEEF, -6px 0 0 #00AEEF;
        }
        
        .news-slide-arrow {
            width: 32px;
            height: 32px;
            bottom: 15px;
            right: 15px;
        }
    }
