#news-home-slider .sp-slide,
    #slider .sp-slide {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    #video-bg {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;
    }

    #video-bg iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 56.25vw;
        min-height: 100%;
        min-width: 100%;
        transform: translate(-50%, -50%);
    }

    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
    }

    .media {
        position: relative;
    }

    .media img {
        width: 100%;
    }

    .media .media-body {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
    }

    /* Additional styles extracted from home.php */

    /* Small transform fix */
    #news-home-slider .sp-slide,
    #slider .sp-slide {
            -webkit-transform: translateZ(0);
    }

    /* Keys swiper styles */
    .keys-item {
            width: 500px; 
            transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .keys-content {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
    }

    .keys-content img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
    }

    .keys-title {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 10px;
            background: rgba(0,0,0,0.5);
            text-align: center;
            transition: background 0.3s ease, transform 0.3s ease;
    }

    .keys-title h3 {
            color: #fff;
            margin: 0;
            font-size: 20px;
    }

    .keys-item:hover .keys-content img {
            transform: scale(1.05);
    }

    .keys-item:hover .keys-content {
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .keys-item:hover .keys-title {
            background: rgba(255, 69, 0, 0.8);
            transform: scale(1.1);
    }

    /* News/home styles */
    .news-home__tab {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        padding: 20px;
        overflow: hidden;
    }

    .news-home__tab .tab-pane {
        animation: fadeIn 0.5s ease-in-out;
    }

    @keyframes fadeIn {
        from {opacity: 0; transform: translateY(10px);} 
        to {opacity: 1; transform: translateY(0);} 
    }

    .news-item__col2,
    .news-item__col {
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        border-radius: 12px;
        background: #f9fafc;
    }

    .news-item__col2 {
        width: 50%;
        float: left;
        padding: 10px;
    }

    .news-item__col {
        width: 33.333%;
        float: left;
        padding: 10px;
    }

    .news-item__col2:hover,
    .news-item__col:hover {
        transform: translateY(-5px);
        background: #f0f4ff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .news-item__col2 img,
    .news-item__col img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 10px;
        transition: all 0.4s ease;
    }

    .news-item__col2:hover img,
    .news-item__col:hover img {
        filter: brightness(0.85);
    }

    .news-item__header {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
        color: #fff;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        transition: all 0.3s ease;
    }

    .news-item__title h2 {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;
        margin-top: 8px;
        color: #fff;
        transition: color 0.3s ease;
    }

    .news-item__col2:hover .news-item__title h2,
    .news-item__col:hover .news-item__title h2 {
        color: #ffd700;
    }

    .news-item__date span {
        font-size: 13px;
        opacity: 0.9;
        display: block;
    }

    .clearfix::after {
        content: "";
        display: table;
        clear: both;
    }

    .hrblock-content { position: relative; padding-left: 20px; }
    .hrblock-content .hrblock-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 20px; }

    .home-video__main img { max-width: 100%; height: auto; }
