.cost_section{
    width: 100%;
    height: fit-content;
    box-sizing: border-box;
    padding-top: 150px;
    padding-bottom: 150px;
    padding-left: 18%;
    padding-right: 18%;
    overflow: hidden;
}

/* --- Cost section cards --- */

.cost_section_cards{
    width: 100%;
    height: fit-content;
    margin-top: 80px;
    display: flex;
    gap: 20px;
}

/* --- Cost section card --- */

.cost_section_card{
    width: 100%;
    height: 420px;
    box-sizing: border-box;
    padding: 3px;
    border-radius: 20px;
    background: var(--component);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transform-origin: bottom;
    will-change: opacity, transform;
    transition: 1s ease-in-out;
}

.cost_section_card:last-of-type{ transition-delay: 0.5s; }
.cost_section_card.visible{
    opacity: 1;
    transform: none;
}

/* --- Cost section card overlay --- */

@keyframes overlayRotate {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cost_section_card_overlay{
    width: 100%;
    height: 100%;
    padding-left: 100px;
    padding-right: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    animation: overlayRotate 10s linear infinite;
}

.cost_section_card:first-of-type .cost_section_card_overlay{ background: linear-gradient(to top, transparent, var(--blue), transparent); }
.cost_section_card:last-of-type .cost_section_card_overlay{ background: linear-gradient(to top, transparent, var(--red), transparent); }

/* --- Cost section card content --- */

.cost_section_card_content{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-radius: 18px;
    background: var(--component);
    position: relative;
}

/* cost section card text */

.cost_section_card_text{
    width: 300px;
    font-size: 13px;
    text-align: center;
    line-height: 1.8;
    color: var(--text2);
}

/* --- Cost section card logo --- */ 

.cost_section_card_logo{
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0.8;
}

/* logo icon */

.cost_section_card_logo img{
    width: 32px;
    height: 32px;
}

/* name */

.cost_section_card_logo h4{
    font-size: 16px;
    color: var(--text1);
}

/* --- Cost section card info --- */

.cost_section_card_info{
    width: 320px;
    height: fit-content;
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

/* --- Cost section card info div --- */

.cost_section_card_info div{
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: white;
}

/* text */

.cost_section_card_info div p:first-of-type{
    font-size: 12px;
    color: var(--text2);
}

/* cost */

.cost_section_card_info div p:last-of-type{
    font-size: 25px;
    color: var(--text1);
}

.cost_section_card_info div p:last-of-type span{
    font-size: 16px;
    color: var(--text2);
}

/* --- MEDIA --- */

@media screen and (max-width: 1300px) {
    
    .cost_section_cards{
        flex-direction: column;
    }
    
    /* remove delay from last cost section card */

    .cost_section_card:last-of-type{ 
        transition-delay: 0s; 
    }
}

@media screen and (max-width: 820px) {
    
    .cost_section{
        padding-top: 90px;
        padding-bottom: 90px;
        padding-left: 8%;
        padding-right: 8%;
    }
}

@media screen and (max-width: 600px) {

    .cost_section_card{
        height: fit-content;
    }

    /* --- Cost section card overlay --- */

    .cost_section_card_overlay{
        height: 50%;
        padding-left: 200px;
        padding-right: 200px;
    }

    /* --- Cost section card content ---  */

    .cost_section_card_content{
        box-sizing: border-box;
        padding-top: 50px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* text */

    .cost_section_card_text{
        width: 80%;
    }

    /* --- Cost section card info --- */

    .cost_section_card_info{
        width: 100%;
        flex-direction: column;
    }
}