/**
 * Stylesheet cho Shortcode Báo chí (Press List Slider)
 * Theme: pixels-app
 */

.pixels-bao-chi-section {
    position: relative;
    width: 100%;
    margin: 25px 0;
    box-sizing: border-box;
}

.pixels-bao-chi-section .bao-chi-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Owl Carousel Container */
.pixels-bao-chi-section .bao-chi-carousel {
    position: relative;
    width: 100%;
}

.pixels-bao-chi-section .bao-chi-carousel .owl-stage-outer {
    /* Đảm bảo bóng đổ của logo badge không bị cắt */
    padding-bottom: 12px;
    margin-bottom: -12px;
    padding-top: 5px;
    margin-top: -5px;
}

/* Individual Card */
.pixels-bao-chi-section .bao-chi-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Thumbnail wrapper */
.pixels-bao-chi-section .bao-chi-thumb-wrapper {
    position: relative;
    margin-bottom: 22px;
    width: 100%;
}

/* Thumbnail holder / link */
.pixels-bao-chi-section .bao-chi-thumb-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f1f5f9;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pixels-bao-chi-section .bao-chi-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pixels-bao-chi-section .bao-chi-item:hover .bao-chi-thumb-img {
    transform: scale(1.04);
}

/* Logo badge đè lên góc dưới bên trái của ảnh */
.pixels-bao-chi-section .bao-chi-logo-badge {
    position: absolute;
    bottom: -12px;
    left: 14px;
    z-index: 2;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    max-width: 135px;
    height: 40px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pixels-bao-chi-section .bao-chi-item:hover .bao-chi-logo-badge {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.pixels-bao-chi-section .bao-chi-logo-img {
    max-height: 26px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Content & Title */
.pixels-bao-chi-section .bao-chi-content {
    padding: 0 6px;
    text-align: center;
}

.pixels-bao-chi-section .bao-chi-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #1e293b;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    letter-spacing: -0.2px;
}

.pixels-bao-chi-section .bao-chi-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.pixels-bao-chi-section .bao-chi-item:hover .bao-chi-title a {
    color: #0099e6;
}

/* 2 Nút điều hướng Previous / Next (Tròn trắng hai bên giống mẫu ảnh) */
.pixels-bao-chi-section .bao-chi-nav-btn {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    z-index: 15;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #334155 !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pixels-bao-chi-section .bao-chi-nav-prev {
    left: -22px;
}

.pixels-bao-chi-section .bao-chi-nav-next {
    right: -22px;
}

.pixels-bao-chi-section .bao-chi-nav-btn:hover {
    background: #ffffff !important;
    color: #0099e6 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-50%) scale(1.08);
}

.pixels-bao-chi-section .bao-chi-nav-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.pixels-bao-chi-section .bao-chi-nav-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.pixels-bao-chi-section .bao-chi-nav-prev:hover svg {
    transform: translateX(-2px);
}

.pixels-bao-chi-section .bao-chi-nav-next:hover svg {
    transform: translateX(2px);
}

/* Hỗ trợ trường hợp nếu Owl Carousel tự render nav */
.pixels-bao-chi-section .owl-nav {
    display: none !important;
}

/* Dots (nếu bật) */
.pixels-bao-chi-section .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.pixels-bao-chi-section .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 5px 4px;
    background: #cbd5e1;
    display: block;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.pixels-bao-chi-section .owl-dots .owl-dot.active span {
    background: #0099e6;
    width: 22px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 1240px) {
    .pixels-bao-chi-section .bao-chi-nav-prev {
        left: -10px;
    }

    .pixels-bao-chi-section .bao-chi-nav-next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .pixels-bao-chi-section .bao-chi-nav-btn {
        width: 36px;
        height: 36px;
    }

    .pixels-bao-chi-section .bao-chi-nav-prev {
        left: 2px;
    }

    .pixels-bao-chi-section .bao-chi-nav-next {
        right: 2px;
    }

    .pixels-bao-chi-section .bao-chi-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .pixels-bao-chi-section .bao-chi-title {
        font-size: 14px;
    }

    .pixels-bao-chi-section .bao-chi-logo-badge {
        left: 10px;
        height: 34px;
        min-width: 80px;
        max-width: 110px;
        padding: 3px 8px;
    }

    .pixels-bao-chi-section .bao-chi-logo-img {
        max-height: 22px;
    }
}