/* ==========================================================================
   Shortcode: [uag_blog_carousel]
   Full-Width Blog Posts Slider
   ========================================================================== */

.uag-post-slider-container {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 450px;
    background-color: #222;
    margin-top: 40px;
    margin-bottom: 40px;
}

.uag-post-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.uag-post-slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.uag-post-bg-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.uag-post-bg-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.uag-post-bg-link:hover::after {
    background-color: rgba(0, 0, 0, 0.2);
}

.uag-post-slide img.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uag-post-slide-fallback {
    width: 100%;
    height: 100%;
    background: var(--uag-primary, rgb(121, 36, 47));
}

.uag-post-center-box {
    position: relative;
    z-index: 2;
    background-color: rgba(121, 36, 47, 0.95);
    padding: 30px 40px;
    max-width: 700px;
    width: 85%;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.uag-post-center-box h3 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.uag-post-center-box h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.uag-post-center-box h3 a:hover {
    color: var(--uag-accent, rgb(240, 137, 0));
}

.uag-post-center-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.post-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 35px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.post-slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.8;
    outline: none;
}

.post-prev-btn {
    left: 20px;
}

.post-next-btn {
    right: 20px;
}

@media (max-width: 768px) {
    .uag-post-slider-container {
        height: 380px;
    }

    .uag-post-center-box {
        padding: 25px 20px;
        width: 90%;
    }

    .uag-post-center-box h3 {
        font-size: 1.4rem;
    }

    .uag-post-center-box p {
        font-size: 0.95rem;
    }

    .post-slider-btn {
        padding: 10px;
        font-size: 28px;
    }
}
