@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", sans-serif;
    min-height: 100vh;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.carousel {
    width: 92vw;
    max-width: 1400px;
    position: relative;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 30px 10px;
    scrollbar-width: none;
    padding-bottom: 70px;
}

.container::before,
.container::after {
    content: "";
    flex: 0 0 var(--edge-space);
}

.container::-webkit-scrollbar {
    display: none;
}

.panel {
    flex: 0 0 280px;
    height: 420px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    opacity: 0.75;
    overflow: hidden;
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.panel:hover {
    transform: translateY(-6px);
}

.panel.active {
    flex: 0 0 320px;
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 2;
    width: 320px;
    min-width: 320px;
}

.content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15));
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.panel.active .content {
    opacity: 1;
    transform: translateY(0);
}

.content h3 {
    margin-bottom: 8px;
    color: white;
}

.content p {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 12px;
    font-size: 14px;
}

.know-more {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.modules-slider-wrapper {
    position: relative;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all .25s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, .9);
}

.nav-btn.prev {
    left: -25px;
}

.nav-btn.next {
    right: -25px;
}

.nav-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .panel {
        flex: 0 0 220px;
        height: 360px;
    }
    .panel.active {
        transform: scale(1.05);
    }
    .nav-btn.prev {
        left: 10px;
    }
    .nav-btn.next {
        right: 10px;
    }
}