.methodology_gallery {
    position: relative;
    width: var(--rn-width1);
    margin: auto;
    min-height: 86vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.methodology_header p {
    font-size: var(--discrSize);
}

.methodology_header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 10;
}
.methodology_cards_wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; 
    margin-top: 120px;
}

.methodology_cards {
    position: relative;
    width: 100%;
    /* height: 600px; */
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    /* perspective: 1500px; */
}

.methodology_cards li {
    position: absolute;
    width: 420px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 2px solid var(--red);
    box-shadow: 0 20px 60px var(--red);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 60px 40px 40px;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s ease;
}

.methodology_cards li.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(171, 62, 62, 0.3), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.card_icon {
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card_icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 255, 255, 0.3));
}

.methodology_cards li h3 {
    margin: 0 0 20px;
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

.methodology_cards li p {
    margin: 0;
    font-size: var(--discrSize);
    line-height: 1.6;
    color: #1a1a1a;
    text-align: center;
}

.carousel-nav.methodology {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    justify-content: flex-end;
    top: 127px;
    position: absolute;
    right: 0px;
}

@media (max-width: 768px) {
    .methodology_header h2 {
        font-size: 36px;
    }

    .methodology_header p {
        font-size: var(--discrSize);
    }

    .methodology_cards li {
        width: 320px;
        height: 420px;
        padding: 40px 30px 30px;
    }
}

.methodology_cards li {
    cursor: grab;
    user-select: none; 
    touch-action: pan-x;
    transform-style: preserve-3d; 
    will-change: transform; 
}

.methodology_cards li:active {
    cursor: grabbing; 
}
@media (min-width: 1441px) {
    .methodology_cards li {
        position: absolute;
        width: 420px;
        height: 400px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 24px;
        border: 2px solid var(--red);
        box-shadow: 0 20px 60px var(--red);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 60px 40px 40px;
        opacity: 0;
        transform: scale(0.85);
        transition: all 0.4s ease;
    }
        }
@media (max-width: 1440px) {
    .methodology_cards li {
        position: absolute;
        width: 420px;
        height: 380px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 24px;
        border: 2px solid var(--red);
        box-shadow: 0 20px 60px var(--red);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 60px 40px 40px;
        opacity: 0;
        transform: scale(0.85);
        transition: all 0.4s ease;
    }
        }
@media (max-width: 1024px) {
            .methodology_cards li {
                position: absolute;
                width: 350px;
                height: 330px;
                background: rgba(255, 255, 255, 0.1);
                backdrop-filter: blur(10px);
                border-radius: 24px;
                border: 2px solid var(--red);
                box-shadow: 0 20px 60px var(--red);
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                padding: 60px 30px 40px;
                opacity: 0;
                transform: scale(0.85);
                transition: all 0.4s ease;
            }
                }
@media (max-width: 768px){
    .methodology_cards li {
        position: absolute;
        width: 310px;
        height: 340px;
        /* padding: 40px 30px 30px; */
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 24px;
        border: 2px solid var(--red);
        box-shadow: 0 20px 60px var(--red);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 40px 40px;
        opacity: 0;
        transform: scale(0.85);
        transition: all 0.4s ease;
    }
}

@media (max-width: 425px){
    .methodology_cards li {
        position: absolute;
        width: 249px;
        height: 358px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 24px;
        border: 2px solid var(--red);
        box-shadow: 0 20px 60px var(--red);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 60px 40px 40px;
        opacity: 0;
        transform: scale(0.85);
        transition: all 0.4s ease;
    }
}
@media (max-width: 320px){
    .methodology_cards li {
        position: absolute;
        width: 225px;
        height: 378px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 24px;
        border: 2px solid var(--red);
        box-shadow: 0 20px 60px var(--red);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 60px 40px 40px;
        opacity: 0;
        transform: scale(0.85);
        transition: all 0.4s ease;
    }
}