/* ===== MEDIA CAROUSEL SLIDER STYLES ===== */

/* Desktop styles (768px and above) */
@media (min-width: 768px) {
    .media-carousel {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 100vw;
        position: relative;
        overflow: hidden;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .media-cards-slider {
        display: flex;
        gap: 15px;
        align-items: center;
        flex: 1;
        justify-content: center;
        position: relative;
        max-width: calc(100vw - 200px);
        overflow: hidden;
    }

    /* Base card styles */
    .media-card {
        background: #2E2E2E;
        padding: 20px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    /* Previous and Next cards (side cards) */
    .media-card.prev,
    .media-card.next {
        background: rgba(46, 46, 46, 0.7);
        padding: 15px 20px;
        width: 180px;
        max-width: 180px;
        height: 80px;
        transform: scale(0.85);
        opacity: 0.7;
        border: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    .media-card.prev:hover,
    .media-card.next:hover {
        background: rgba(46, 46, 46, 0.9);
        transform: scale(0.9);
        opacity: 0.9;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Center card (main testimonial) */
    .media-card.center {
        background: rgba(47, 50, 65, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 44px;
        flex-direction: column;
        gap: 32px;
        width: 100%;
        max-width: 500px;
        min-height: 200px;
        transform: scale(1);
        opacity: 1;
        border: 2px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 2;
        flex-shrink: 1;
    }

    .media-card.center::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(47, 50, 65, 0.1) 0%, rgba(47, 50, 65, 0.3) 100%);
        border-radius: 16px;
        z-index: -1;
    }

    /* Text styles */
    .media-logo {
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 700;
        color: #FFFFFF;
        text-align: center;
        margin: 0;
        transition: all 0.3s ease;
    }

    /* Side cards text */
    .media-card.prev .media-logo,
    .media-card.next .media-logo {
        font-size: 18px;
        line-height: 1.2;
    }

    /* Center card text */
    .media-card.center .media-logo {
        font-size: 28px;
        line-height: 1.1;
    }

    .media-quote {
        font-family: 'Abel', sans-serif;
        font-weight: 400;
        font-size: 22px;
        line-height: 1.3;
        color: #FFFFFF;
        text-align: center;
        margin: 0;
        max-width: 450px;
        opacity: 0.95;
    }

    /* Arrow buttons */
    .carousel-arrow {
        width: 56px;
        height: 56px;
        background: rgba(47, 50, 65, 0.8);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: #FFFFFF;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 3;
    }

    .carousel-arrow:hover {
        background: rgba(47, 50, 65, 1);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .carousel-arrow:active {
        transform: scale(0.95);
    }

    .carousel-arrow svg {
        transition: transform 0.2s ease;
    }

    .carousel-arrow:hover svg {
        transform: scale(1.1);
    }

    /* Animation effects */
    .media-card {
        animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Responsive adjustments for tablets */
    @media (min-width: 768px) and (max-width: 1024px) {
        .media-carousel {
            gap: 15px;
            padding: 0 15px;
        }

        .media-cards-slider {
            gap: 10px;
            max-width: calc(100vw - 150px);
        }

        .media-card.center {
            max-width: 400px;
            padding: 32px;
        }

        .media-card.prev,
        .media-card.next {
            width: 150px;
            max-width: 150px;
            height: 70px;
            padding: 12px 15px;
        }

        .media-quote {
            font-size: 20px;
            max-width: 350px;
        }

        .carousel-arrow {
            width: 48px;
            height: 48px;
        }

        .carousel-arrow {
            width: 48px;
            height: 48px;
        }
    }

    /* Large desktop adjustments */
    @media (min-width: 1200px) {
        .media-carousel {
            gap: 30px;
            padding: 0 40px;
        }

        .media-cards-slider {
            gap: 20px;
            max-width: calc(100vw - 300px);
        }

        .media-card.center {
            max-width: 600px;
            padding: 50px;
        }

        .media-card.prev,
        .media-card.next {
            width: 200px;
            max-width: 200px;
            height: 85px;
            padding: 18px 25px;
        }

        .carousel-arrow {
            width: 60px;
            height: 60px;
        }
    }

    /* Large desktop adjustments */
    @media (min-width: 1440px) {
        .media-carousel {
            gap: 80px;
        }

        .media-card.center {
            min-width: 600px;
            padding: 50px;
        }

        .media-quote {
            font-size: 25px;
            max-width: 500px;
        }
    }
}

/* Mobile styles (below 768px) - Keep original structure */
@media (max-width: 767px) {
    .media-carousel {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .media-cards-slider {
        display: flex;
        justify-content: center;
        flex: 1;
    }

    .media-card.prev,
    .media-card.next {
        display: none;
    }

    .media-card.center {
        display: block;
        width: 100%;
        max-width: 350px;
        background: rgba(47, 50, 65, 0.5);
        border-radius: 12px;
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }

    .media-cards {
        display: flex;
        gap: 10px;
        align-items: center;
        flex: 1;
        justify-content: center;
    }

    .media-card {
        background: #2E2E2E;
        padding: 10px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        min-width: auto;
        height: auto;
    }

    .media-logo {
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.1;
        color: #FFFFFF;
        margin: 0;
        text-align: center;
    }

    .media-card.center .media-logo {
        font-size: 20px;
    }

    .media-quote {
        font-family: 'Abel', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.3;
        color: #FFFFFF;
        text-align: center;
        margin: 0;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        background: #2F3241;
        border: none;
        border-radius: 50%;
        color: #FFFFFF;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
}

@media (max-width: 470px) {
    .media-carousel {
        padding: 0px 100px;
    }

}
