/* ===================================
   BASE CAROUSEL STYLES (BOTH TYPES)
   =================================== */

/* Carousel Wrapper - Common */
.carousel-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    align-items: end;
    overflow: hidden;
}

#signature .carousel-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    align-items: end;
    margin-top: -118px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex: 1;
    border-radius: 15px;
}

/* ===================================
   MAIN CAROUSEL SYSTEM 
   (Uses .carousel-track-container and .carousel-slide)
   =================================== */

.carousel-track-container {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc((100% - 20px) / 2);
    border-radius: 8px;
    overflow: hidden;
}

.carousel-slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    border-radius: 12px;
}

.carousel-slide-image:hover {
    transform: translateY(-20px);
}

.carousel-slide-content {
    padding: 15px;
}

.carousel-slide-title-link {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   HOME CAROUSEL SYSTEM
   (Uses .carousel-track and .carousel-card)
   =================================== */

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 20px 0 0;
}

/* Desktop: 3 cards */
.carousel-card {
    min-width: calc((100% - 40px) / 3);
    /* max-width: calc((100% - 40px) / 3); */
    flex: 0 0 calc((100% - 40px) / 3);
    flex-shrink: 0;
    border: 2.25px solid #ffffff;
    border-radius: 15px;
    overflow: hidden;
    height: 369px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-20px);
}

.carousel-card-overlay {
    position: absolute;
    inset: 0;
    transition: background 0.3s ease;
    width: 369px;
}

.carousel-card-image {
    display: none;
}

.carousel-card-image img {
    display: none;
}

.carousel-card-content {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: auto;
    padding: 20px 30px 20px 10px;
    z-index: 2;
    background-image: url(https://devecity.evokad.com/wp-content/uploads/2025/10/Vector.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: auto;
    max-width: 85%;
    min-width: 200px;
    margin-left: 10px;
}

.carousel-card-title {
    color: var(--accent);
    font-size: clamp(1.75rem, 2.5vw, 2.1rem);
    text-align: left;
    font-weight: 400;
    margin: 0;
    text-transform: capitalize;
    line-height: 1.2;
    padding-left: 10px;
}

/* ===================================
   SEASONAL CAROUSEL SPECIFIC
   =================================== */

.seasonal-carousel .carousel-slide {
    flex: 0 0 calc((100% - 60px) / 4);
}

.seasonal-carousel .carousel-card {
    display: block;
    width: 100%;
    /* height: 300px; */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
}

.seasonal-carousel .carousel-card:hover {
    transform: translateY(-10px);
}

.seasonal-carousel .carousel-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

.seasonal-carousel .carousel-card-title h4 {
    margin: 0;
    transition: color 0.3s ease;
}

.seasonal-carousel .carousel-card-title:hover h4 {
    color: #335575;
}

/* ===================================
   CAROUSEL NAVIGATION
   =================================== */

.carousel-nav-vertical,
.carousel-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    margin-bottom: 10px !important;
}

.carousel-nav {
    background: var(--mint);
    border: none;
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.home-under-hero-container .carousel-nav-vertical button:hover,
.home-under-hero-container .carousel-nav-vertical button:focus,
.seasonal-highlights-container .carousel-nav-vertical button:hover,
.seasonal-highlights-container .carousel-nav-vertical button:focus {
    background-color: var(--mint) !important;
}

.carousel-nav svg {
    color: #2c4a5e;
    width: 32px;
    height: 32px;
    stroke-width: 3;
}

.carousel-nav-bottom {
    position: absolute;
    bottom: -80px;
    right: 0;
    transform: translateX(-50%);
    background-color: transparent;
    border: none;
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav-bottom:hover,
.carousel-nav-bottom:focus {
    background: transparent;
}

.carousel-nav-bottom svg {
    color: #fff;
    width: 32px;
    height: 32px;
    stroke-width: 3;
}

/* ===================================
   SEASONAL SECTION
   =================================== */

.seasonal-section {
    padding-top: 90px;
}

.seasonal-highlights-container {
    display: flex;
    flex-direction: column;
    max-width: 1700px;
    width: 100%;
    margin: auto;
    justify-content: center;
    padding: 0 20px;
}

.seasonal-section .carousel-nav-vertical {
    margin-bottom: 90px;
}

/* ===================================
   CARD CONTAINERS
   =================================== */

.card-carousel-container {
    width: 100%;
    min-width: calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
    flex: 0 0 calc((100% - 60px) / 4);
}

.card-carousel-container.two {
    width: 100%;
    min-width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
    flex: 0 0 calc((100% - 20px) / 2);
}

.carousel-card.four {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
    display: block;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet - 1200px */
@media (max-width: 1200px) {
    #signature .carousel-wrapper {
        margin-top: 0 !important;
    }

    /* Home carousel: 2 cards on tablet */
    .carousel-card {
        min-width: calc((100% - 20px) / 2);
        /* max-width: calc((100% - 20px) / 2); */
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* Tablet - 992px */
@media (max-width: 992px) {
    .seasonal-carousel .carousel-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    
    /* .seasonal-carousel .carousel-card {
        height: 280px;
    } */
}

/* Tablet - 991px */
@media (max-width: 991px) {
    .main-container {
        flex-direction: column;
        gap: 40px;
    }

    .main-card {
        max-width: 100%;
    }

    .carousel-wrapper {
        width: 100%;
        margin-top: 0 !important;
    }

    .seasonal-section .carousel-nav-vertical {
        margin-bottom: 0;
    }
}

/* Mobile - 767px */
@media (max-width: 767px) {
    .carousel-slide {
        flex: 0 0 100%;
    }

    /* button.carousel-nav.carousel-right,
    button.carousel-nav.carousel-left {
        padding: 10px;
    } */

    .carousel-header {
        text-align: center;
    }

    .carousel-slide-content {
        padding: 12px;
    }

    .carousel-vertical,
    .carousel-nav-vertical {
        display: flex;
        flex-direction: row-reverse;
        gap: 15px;
        flex-shrink: 0;
        margin-bottom: 10px !important;
    }
}

/* Mobile - 70rem (1120px) */
@media (max-width: 70rem) {
    .carousel-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .card-carousel-container.two {
        width: 100%;
        min-width: 100%;
    }

   
}

/* Mobile - 576px */
@media (max-width: 576px) {

    a.carousel-card.home {
        aspect-ratio: 1/1 !important;
        height: auto !important;
    }



    
    .seasonal-carousel .carousel-slide {
        flex: 0 0 100%;
    }
    
    /* .seasonal-carousel .carousel-card {
        height: 250px;
    } */
}

/* Mobile - 575px */
@media (max-width: 575px) {
    .carousel-vertical,
    .carousel-nav-vertical {
        gap: 10px;
    }

    .carousel-nav {
        width: 40px !important;
        height: 40px !important;
        padding: 0;
    }

    .carousel-nav svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Mobile - 48rem (768px) */
@media (max-width: 48rem) {
    .carousel-wrapper {
        width: 100%;
        margin-top: 30px;
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
        gap: 20px;
        align-items: end;
        flex-direction: column-reverse;
    }

    .carousel-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .card-carousel-container {
        width: 100%;
        min-width: 100%;
    }

    .carousel-wrapper.margined {
        margin-top: 0;
    }

    .carousel-nav-bottom-container {
        display: none;
    }

    .carousel-container {
        flex: 1;
        overflow: hidden;
        border-radius: 15px;
        width: 100%;
    }

    .seasonal-highlights-container .carousel-nav-vertical {
        display: flex;
        flex-direction: row-reverse;
        gap: 15px;
        width: 100%;
        justify-content: space-between;
        flex-shrink: 0;
    }

    a.carousel-card-title.text-decoration-none.pt-3 {
        text-align: center;
        justify-content: center;
    }
}