.marquees {
    display: block;
    padding: 4rem 2rem;
    position: relative;
    color: white;
}

.marquees .container,
.marquees .marquee-row {
    position: relative;
    z-index: 1;
}

.marquees .section-title small {
    font-size: 36px;
    display: block;
}

.marquees .section-content {
    font-family: 'Cachet';
    font-size: 22px;
}

.marquees .container {
    text-align: center;
}

.marquees::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--light-green);
    opacity: 0.1;
}

.marquees .section-title {
    font-size: 50px;
    margin-bottom: 1.5rem;
}

.marquees .marquee-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.marquees .block-marquee {
    position: relative;
    border: 7px solid white;
    border-radius: 10px;
    box-shadow: 0px 3px 6px #00000029;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 500px;
}

.marquees .block-marquee .marquee-image img,
.marquees .block-marquee .marquee-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.marquees .block-marquee .marquee-inner::before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(213deg, #01a490 0%, #015248 100%);
    border-radius: 3px;
    opacity: 0.92;
    z-index: -1;
}

.marquees .block-marquee .marquee-inner {
    position: relative;
    padding: 2rem;
    z-index: 1;
    width: 100%;
    height: 105px;
    color: white;
    display: flex;
    flex-direction: column;
    transition: height 0.5s ease;
    justify-content: center;
}

.marquees .block-marquee:hover .marquee-inner {
    height: 100%;
}

.marquees .block-marquee .marquee-header {
    position: relative;
    padding-left: 3rem;
    transition: margin-bottom 0.3s ease, padding-bottom 0.3s ease;
}

.marquees .block-marquee:hover .marquee-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.marquees .block-marquee .marquee-header::after {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: var(--yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marquees .block-marquee:hover .marquee-header::after {
    opacity: 1;
}

.marquees .block-marquee .marquee-header h3 {
    position: relative;
    font-family: 'Cachet', sans-serif;
    font-weight: bold;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.8px;
    text-transform: capitalize;
}

.marquees .block-marquee .marquee-header h3::before {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-block;
    content: '';
    background-image: url(https://www.lasvegasymca.org/dev/wp-content/uploads/2024/03/arrow-graphic.png);
    background-size: auto 45px;
    background-repeat: no-repeat;
    height: 45px;
    width: 45px;
    transform: translate(-48px, -50%);
}

.marquees .block-marquee .marquee-content {
    padding-left: 3rem;
    height: 100%;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marquees .block-marquee:hover .marquee-content {
    opacity: 1;
    max-height: 100%;
}

.marquees .block-marquee .marquee-content p {
    font-family: 'Cachet', sans-serif;
    font-size: 16px;
    margin: 10px 0;
}

@media (max-width: 1440px) {
    .marquees .marquee-row {
        justify-content: space-evenly;
    }
}

@media (max-width: 1200px) {
    .marquees .block-marquee .marquee-header h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .marquees .block-marquee .marquee-header h3 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .marquees .block-marquee:hover .marquee-inner {
        height: 105px;
    }

    .marquees .block-marquee:hover .marquee-header {
        padding-top: 2rem;
        padding-left: 3rem;
        margin: 0;
    }

    .marquees .block-marquee:hover .marquee-header::after {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .marquees .block-marquee .marquee-content {
        padding-left: 1rem;
    }

    .marquees .block-marquee {
        margin: 0;
        margin-bottom: 2rem;
    }
}