/* Home messages */
#home-messages {
    padding-bottom: 25px;
    padding-top: 25px;
}

/* Main */
.home-title {
    width: 75%;
    font-size: 28px!important;
    color: var(--darkgreen);
    line-height: 1.2;
    margin: 4rem auto!important;
    text-align: center;
}

/* Cards */
.cards-container {
    display: flex;
    gap: 32px;
    margin: 4rem auto 4rem auto!important;
    min-height: 250px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-landing {
    cursor: pointer;
    width: 350px;
    height: 300px;
    background-color: var(--newgreen);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-out;
}

.card-icon {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.card-title {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 900!important;
}

.card-text {
    color: white;
    font-size: 18px;
    line-height: 1.5;
}

/* Cards hover */
.hover-content {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.hover-content span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hover-content a:hover {
    color: var(--newgreen);
}

.arrow-icon {
    height: 24px;
    width: auto;
}

.card-landing:hover {
    background-color: var(--darkgreen);
    height: 325px;
}

.card-landing:hover .hover-content {
    opacity: 1;
}

section:not(.cards-container) {
    position: relative;
    z-index: 1;
}

/* Counters */

.counter-number {
    font-size: 40px;
}

h3 {
    font-size: 24px;
    padding-top: 16px;
}

/* MEDIA QUERIES */
/* Horizontal */
@media (max-width: 1400px) {
    .card-title {
        font-size: 24px;
    }
}

@media (max-width: 1200px) {
    .home-title,
    .cards-container {
        margin: 80px 120px;
    }

    .home-title {
        font-size: 40px;
    }

    .card-icon {
        height: 40px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    #main-container::before {
        background-image: none;
    }

    .home-title {
        text-align: center;
    }

    .home-title,
    .cards-container {
        margin: 64px 16px;
    }

    .home-title {
        width: 90%;
    }

    .cards-container {
        position: relative;
        flex-direction: column;
        align-items: center;
    }

    .card-landing {
        width: calc(100% - 32px);
        max-width: 80%;
    }

    .card-icon {
        width: 64px;
        height: auto;
    }

    .card-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {}

@media (max-width: 576px) {
    .home-title {
        font-size: 24px;
    }

    .card-icon {
        width: 40px;
    }

    .card-title {
        font-size: 28px;
    }
}

/* Vertical */
@media (max-height: 950px) {
    .home-title {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .cards-container {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .home-title {
        font-size: 40px;
    }
}

@media (max-height: 800px) {
    .home-title {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .cards-container {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .home-title {
        font-size: 32px;
    }
}

@media (max-height: 750px) {
    .home-title {
        margin-top: 8px;
        margin-bottom: 32px;
    }

    .cards-container {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .card-title {
        font-size: 28px;
    }

    .home-title {
        font-size: 24px;
    }
}

@media (max-height: 700px) {
    .home-title {
        margin-bottom: 32px;
        font-size: 24px;
    }

    .card-icon {
        width: 32px;
        height: auto;
    }

    .card-title {
        font-size: 28px;
    }
}
