#welcome-carousel {
    width: 100%;
    margin: 80px auto 0px auto;
    height: calc(100vh - 200px);
    /* Leaves enough room to bring the heading further up */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.flipkart-carousel {
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    gap: 15px;
    /* Space between slides */
    padding: 0 4%;
    /* Peek effect on mobile and desktop */
    align-items: center;
}

.fc-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Edge */
}

.fc-slide {
    flex: 0 0 92%;
    /* Each slide takes 92% width on mobile */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.fc-slide.active {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .fc-slide {
        flex: 0 0 75%;
        /* Peek more on desktop */
    }
}

@media (min-width: 1200px) {
    .fc-slide {
        flex: 0 0 60%;
    }
}

.fc-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Fill container completely — no bars on any device */
    border-radius: 12px;
    pointer-events: none;
    /* prevent drag ghosting */
}

/* Dots */
.fc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #c2c2c2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-dot.active {
    background-color: var(--teal-500, #007bb5);
    width: 24px;
    border-radius: 4px;
}

/* Navigation buttons (Desktop only) */
.fc-prev,
.fc-next {
    position: absolute;
    top: calc(50% - 25px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    width: 45px;
    height: 90px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.fc-prev:hover,
.fc-next:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--teal-500, #007bb5);
}

@media (min-width: 768px) {

    .fc-prev,
    .fc-next {
        display: flex;
    }
}

.fc-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.fc-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

/* Reduce padding on the section directly below the carousel */
#popularTests {
    padding-top: 15px !important;
    border-top: none !important;
}

/* --- Mobile: Compact carousel to show heading above fold --- */
@media (max-width: 768px) {
    #welcome-carousel {
        height: 50vh;
        margin: 70px auto 0;
    }

    .fc-dots {
        margin-top: 6px;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    #welcome-carousel {
        height: 42vh;
        margin: 60px auto 0;
    }

    .fc-slide {
        border-radius: 8px;
    }

    .fc-slide img {
        border-radius: 8px;
    }

    .fc-dot {
        width: 6px;
        height: 6px;
    }

    .fc-dot.active {
        width: 18px;
    }
}