﻿/* Purple background for step cards */
.bg-purple {
    background-color: #4B2354;
}

/* Step card styling */
.step-card {
    margin-top: 60px;
    background-color: #4B2354; /* purple */
    border-radius: 20px !important;
    padding: 2rem 1.5rem;
    color: white;
    position: relative;
    /*min-height: 300px;*/
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: 410px;
    height: 610px !important;
    justify-content: space-around;
    display: flex;
    flex-direction: column;
}


/* Step circle on top of card */
.step-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(226deg, #FFD5AB 0%, #C16747 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    color: #8C3C24;
    position: absolute;
    top: -25px; /* lift it above the card */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
    height: 170px;
    width: 170px;
}

.step-number {
    font-size: 96px;
    font-weight: 700;
    line-height: 78px;
}

.step-heading {
    font-size: 36px;
    font-weight: 500;
    margin-top: 10rem;
}

.step-description {
    font-size: 16px;
    font-family: Montserrat;
    font-weight: 400;
    line-height: 27px;
}

/* Carousel indicators as bullets, scoped per carousel */
.stepcarousel .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stepcarousel .carousel-indicators button {
    width: 10px!important;
    height: 10px!important;
    border-radius: 50%;
    border: none;
    background-color: #ccc!important;
}

.stepcarousel .carousel-indicators .active {
    background-color: #4B2354 !important;
}


/* Arrows aligned with bullets */
.stepcarousel .carousel-control-prev,
.stepcarousel .carousel-control-next {
    width: auto;
    padding: 0.25rem;
    display: inline-block;
    position: static !important;
}

.stepcarousel .carousel-control-prev-icon,
.stepcarousel .carousel-control-next-icon {
    background-size: 1.5rem 1.5rem; /* smaller arrows */
    filter: invert(30%) sepia(30%) saturate(500%) hue-rotate(250deg);
}

/* Carousel controls container */
.stepcarousel .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Make sure multiple carousels are spaced properly */
.stepcarousel .carousel.slide + .carousel.slide {
    margin-top: 3rem;
}

.row-wrapper {
    padding-bottom: 5rem!important; /* acts like bottom margin for the row */
}


.carousel-item.active {
    display: flex;
    justify-content: center;
}

/* Force gutters between columns in desktop/tablet */
#steps-section .first-div .col-12 {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
}

/* Shrink cards slightly on tablets (landscape) */
@media (min-width: 768px) and (max-width: 1400px) {
    #steps-section .first-div .step-card {
        width: 100% !important;
        max-width: 320px; /* shrink card width to fit 3 columns */
        height: auto !important;
        padding: 1.5rem !important;
    }

    #steps-section .first-div .step-heading {
        font-size: 28px !important;
        margin-top: 6rem;
    }

    #steps-section .first-div .step-description {
        font-size: 14px !important;
    }

    .step-circle{
        top:-90px;
        width:140px;
        height:140px;
    }

    .step-number {
        font-size: 88px;
        font-weight: 700;
        line-height: 75px;
    }   
}

@media (min-width: 768px) {
    #steps-section .col-12.col-md-3.d-flex {
        width: 30%;
    }
}

/* Optional: further shrink on smaller tablets / landscape phones */
@media (max-width: 767.98px) {
    .first-div {
        display: none !important; /* hide desktop div on portrait mobile */
    }
}