@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.steps-section{
    --gap: 1rem;
    --pad: 1rem;
    --bg: #0f1724;
    --text: #e6eef6;
}

.steps-section{
    margin:0;
    font-family: 'Montserrat', sans-serif;
    background:#353535;
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    min-height: 100vh;
    padding: var(--pad);
}

.steps-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 2rem);
}

.steps-section .section-header {
    margin-bottom: 3rem;
}

.steps-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
    color: var(--text);
    line-height: 1.2;
}

.steps-section .section-desc {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.5;
    font-weight: 400;
}

.steps-section .grid{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:var(--gap);
    align-content:stretch;
    align-items:stretch;
    justify-content: center;
}

.steps-section .carousel-container {
    display: none;
    position: relative;
}

.steps-section .carousel-nav {
    position: absolute;
    top: 115%;
    transform: translateY(-50%);
    background-color: rgba(230, 238, 246, 0.2);
    border: 2px solid rgba(230, 238, 246, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.steps-section .carousel-nav:hover {
    background-color: rgba(230, 238, 246, 0.3);
    border-color: rgba(230, 238, 246, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.steps-section .carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.steps-section .carousel-prev {
    left: 40px;
}

.steps-section .carousel-next {
    right: 40px;
}

.steps-section .carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: var(--text);
}

.steps-section .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.steps-section .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(230, 238, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.steps-section .dot.active {
    background-color: var(--text);
    transform: scale(1.2);
}

.steps-section .carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
}

.steps-section .carousel-slide.active {
    display: block;
    opacity: 1;
}

.steps-section .card{
    flex:1 1 calc(25% - var(--gap));
    min-width:220px;
    display:flex;
    flex-direction:column;
    text-align:center;
    background-color: transparent;
    border: none;             
    box-shadow: none;

}

.steps-section .card img{
    width:100%;
    height:auto;
    border-radius:8px;
}

.steps-section .card-image {
    width: auto;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.steps-section .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--text);
}

.steps-section .desc{
    margin-top:0.75rem;
    font-size:1rem;
    line-height:1.4;
    text-align:center;

}

@media (max-width:1200px){
    .steps-section .section-title {
        font-size: 2.5rem;
    }
    .steps-section .section-desc {
        font-size: 1.1rem;
    }
    .steps-section .card-title {
        font-size: 1.8rem;
    }
}

@media (max-width:1000px){
    .steps-section .card{flex-basis:calc(50% - var(--gap));}
    .steps-section .section-title {
        font-size: 2.2rem;
    }
    .steps-section .section-desc {
        font-size: 1rem;
    }
    .steps-section .section-header {
        margin-bottom: 2.5rem;
    }
    .steps-section .card-title {
        font-size: 1.6rem;
    }
}

@media (max-width:768px){
    .steps-section .section-title {
        font-size: 2rem;
    }
    .steps-section .section-desc {
        font-size: 0.95rem;
    }
    .steps-section .section-header {
        margin-bottom: 2rem;
    }
    .steps-section .card-title {
        font-size: 1.4rem;
    }
}

@media (max-width:520px){
    .steps-section{padding:0.5rem;
    }
    .steps-section .section-title {
        font-size: 1.7rem;
        text-align: center;
    }
    .steps-section .section-desc {
        font-size: 1.2rem;
        text-align: center;
        max-width: 80%;
        margin: 0 auto;
    }
    .steps-section .section-header {
        margin-bottom: 1.5rem;
    }
    .steps-section .card-title {
        font-size: 1.3rem;
        text-align:center

    }
    .steps-container {
        min-height: calc(120vh - 1rem);
    }
    
    
    .steps-section .grid {
        display: none;
    }
    
  
    .steps-section .carousel-container {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .steps-section .card {
        flex-basis: 100%;
        min-width: unset;
        max-width: 100%;
    }
}