.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 90%;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--coral);
}

.carousel-content p {
    font-size: 1.5rem;
    opacity: 0.95;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(232, 166, 135, 0.8);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: var(--coral);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--coral);
}

.dot.active {
    transform: scale(1.2);
}

/* ========================================
   TABLET RESPONSIVE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
        margin-bottom: 1.5rem;
    }

    .carousel-content {
        padding: 1.5rem;
    }

    .carousel-content h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .carousel-content p {
        font-size: 1.1rem;
    }

    .carousel-btn {
        padding: 0.7rem 1rem;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    .carousel-dots {
        bottom: 1.5rem;
        gap: 0.8rem;
    }

    .dot {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   SMALL PHONE RESPONSIVE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    .carousel-container {
        height: 280px;
    }

    .carousel-content {
        padding: 1rem;
    }

    .carousel-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .carousel-content p {
        font-size: 0.95rem;
    }

    .carousel-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1rem;
    }

    .carousel-dots {
        bottom: 1rem;
        gap: 0.6rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .carousel-btn {
        /* Larger touch targets */
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dot {
        /* Larger touch targets for dots */
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        position: relative;
    }

    .dot::after {
        content: '';
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transition: background 0.3s ease;
    }

    .dot.active::after,
    .dot:active::after {
        background: var(--coral);
    }
}