.radcarousel {
    position: relative;
    margin: 1em auto .8em;
    overflow: hidden;
    max-width: 850px;
}

.radcarousel > h2 {
    text-align: center;
    color: #5c5c5c;
    font-weight: bold;
}

.radcarousel-track {
    display: flex;
    height: 15%;
    transition: transform 0.8s ease-in-out;
}

.radcarousel-item {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /*  background: white; */
    padding: 2px;
    /*  text-align: center; */
    box-sizing: border-box;
    margin-bottom: 1em;
    /* Ensures consistent height for centering */
}


.radcarousel-item img {
    max-width: 100%;
    max-height: 80%;
    height: auto;
    border-radius: 8px;
    margin-right: 2em;
    /*  margin-bottom: 15px; */
    /* Space between image and text */
}

.radcarousel-item h3 {
    margin: 15px .3em 10px;
    color: #3c3c3c;
    align-self: flex-start;
    font-weight: bold;
}

.radcarousel-item p {
    margin: .5em;
    color: #3c3c3c;
    align-self: flex-start;
    font-size: .9em;
    line-height: 1.3em;
}

.bold {
    font-weight: bold;
}

.radcarousel-buttons {
    /* position: absolute;
    top: 50%;
    width: 100%; */
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
    margin-top: .5em;
}

.radcarousel-buttons button {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    border: none;
    padding: 5px 15px;
    margin: 0 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.radcarousel-buttons button:hover {
    background: #528b8b;
}

.cta {
    padding: 0.2em 0.5em !important;
    margin: .5em;
    border-radius: .25rem;
    text-align: center;
    font-size: .8em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    color: white !important;
    background-color: #5f9f9f;
    display: inline-block;
    cursor: pointer;
}

.cta:hover {
    text-decoration: none;
    background-color: #c0d9d9;
    color: #3c3c3c !important;
}


.introtext {
    margin: 1rem auto 2rem;
    width: 80%;
    max-width: 1000px;
}

.introtext h3 {
    color: #8b5252 !important;
    font-size: 1.2em;
    margin-left: 1rem;
}

.introtext p {
    border-left: solid 1px #555656;
    padding-left: 1rem;
    margin-bottom: unset;
    margin-top: 0;
}

@media screen and (min-width: 767px) {
    .introtext {
        width: 90%;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        margin-top: 1.3em;
    }

    .introtext h3 {
        margin: 0 1rem
    }

    .introtext p {
        flex: 3;
        font-size: .9em;
        line-height: 1.5em;
    }
}

/* center on smaller screens */
@media only screen and (max-width : 767px) {
    .radcarousel-item {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /*  background: white; */
        padding: 2px;
        text-align: center;
        box-sizing: border-box;
        margin-bottom: 1em;
        /* Ensures consistent height for centering */
    }
    .radcarousel-item h3 {
        font-size: .9em;
    }
    .radcarousel-item img {
        width: 50%;
        height: auto;
        border-radius: 8px;
        margin: auto;
    }
    .radcarousel-item p {
        width: 80%;
        margin: auto;
        font-size: .8em;
    }
}
