@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

:root {
    --mian-color: rgb(79, 81, 96);
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/*small*/
@media (min-width: 577px) {
    .container {
        width: 550px;
    }
}

/* tablet */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

/* Medium */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

/* desktop  */
@media (min-width: 1300px) {
    .container {
        width: 1170px;
    }
}

.heading {
    text-align: center;
    color: var(--mian-color);
    margin: 60px auto;
    max-width: 500px;
}

.first_text {
    font-size: 36px;
    font-weight: 200;
}

.second_text {
    font-size: 36px;
    font-weight: 600;
}

.third_text {
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    margin-top: 20px;
    opacity: 0.4;
}

.cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: auto;
}

.first_card,
.second_card,
.third_card,
.fourth_card {
    width: 250px;
    padding: 30px;
    background-color: white;
    box-shadow: 0 10px 18px 0px rgb(219 219 219);
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: 90% 90%;
    background-size: 20%;
    padding-bottom: 12%;
}

.first_card {
    border-top: 5px solid #45d3d3;
    background-image: url(images/icon-supervisor.svg);
}

.second-and-third {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.second_card {
    border-top: 5px solid #ea5353;
    background-image: url(images/icon-team-builder.svg);
    padding-bottom: 36%;
}

.third_card {
    border-top: 5px solid #fcaf4a;
    background-image: url(images/icon-karma.svg);
    padding-bottom: 36%;
}

.fourth_card {
    border-top: 5px solid #549ef2;
    background-image: url(images/icon-calculator.svg);
}

.first_text_card {
    font-size: 20px;
    font-weight: 600;
    color: var(--mian-color);
    text-transform: capitalize;
}


.second_text_card {
    font-size: 12px;
    font-weight: 400;
    color: var(--mian-color);
    margin-top: 10px;
    opacity: 0.6;
}

.second_text_card::first-letter {
    text-transform: uppercase;
}

/*! start Attribution */
.attribution {
    position: relative;
    top: 3rem;
    color: var(--mian-color);
    font-size: 16px;
    font-weight: 600;
    margin: auto;
    text-align: center;
    padding: 20px 0;
}

.attribution a {
    font-size: smaller;
    text-decoration: none;
    color: var(--mian-color);
    text-transform: capitalize;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.attribution a:hover::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    content: "\f0a9";
    font-size: 14px;
    padding: 0 8px;
}

/*! end Attribution */
@media (max-width: 999px) {

    .first_card,
    .second_card,
    .third_card,
    .fourth_card,
    .second-and-third {
        width: 170px;
    }
}

@media (max-width: 769px) {

    .first_card,
    .second_card,
    .third_card,
    .fourth_card,
    .second-and-third {
        width: 112px;
    }

    .second_card,
    .third_card {
        padding-bottom: 50%;
    }
}

@media (max-width: 580px) {
    .cards {
        flex-direction: column;
    }

    .second-and-third {
        flex-direction: column;
    }

    .first_card,
    .second_card,
    .third_card,
    .fourth_card,
    .second-and-third {
        width: 200px;
    }

    .first_card,
    .fourth_card {
        padding-bottom: 30%;
    }
}