/**
 * Block Name: TPH - Text and Image
 * Styles for the Text and Image block
 */

.tph-text-image {
    width: 100%;
    padding: 2rem 0 0;
    position: relative;
    z-index: 1;
}

.tph-text-image h1{
    font-weight: 800;
}

/* Full-width background style (container width, not viewport) */
.tph-text-image--full-width-background {
    background: #ffffff;
    border-radius: 12px 0 12px 0;
    padding: 3rem;
    box-shadow: 8px 8px 20px 0px #97979740;
}

.tph-text-image--full-width-background .tph-text-image__container {
    max-width: 100%;
    padding: 0;
}

.tph-text-image__container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

/* Text Section */
.tph-text-image__text {
    flex: 1;
    min-width: 0;
}

.tph-text-image--download-block {
    max-width: 1046px;
    margin: 0 auto;
    p{
        font-size: 1.6rem;
    }
}

/* Download block: 75/25 split instead of 50/50 */
.tph-text-image--download-block .tph-text-image__text {
    flex: 3;
}

.tph-text-image--download-block .tph-text-image__image {
    flex: 1;
}

.tph-text-image__content-wrapper {
    background: #ffffff;
    border-radius: 12px 0 12px 0;
    padding: 5rem 3rem 3rem;
    box-shadow: 8px 8px 20px 0px #97979740;
    font-family: "Nunito Sans", sans-serif;
}

.tph-text-image--download-block .tph-text-image__content-wrapper {
    padding: 3rem 0;
}
.tph-text-image__content-wrapper.tph-text-image--no-background {
    background: transparent;
    box-shadow: none;
}

.tph-text-image__heading {
    margin: 0 0 1rem 0;
}

.tph-text-image__heading-text {
    display: block;
    margin: 0 0 1rem 0;
}

.tph-text-image__heading-highlight {
    display: block;
    margin: 0 0 1.25rem 0;
}

.tph-text-image__subheading {
    margin: 0 0 2rem 0;
}

.tph-text-image__body {
    margin: 2.5rem 0;
}

.tph-text-image__body p {
    margin: 0 0 1rem 0;
}

.tph-text-image__body p:last-child {
    margin-bottom: 0;
}

.tph-text-image__button {
    display: inline-block;
    background-color: #053b81;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    border: none;
}

/* Image Section */
.tph-text-image__image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tph-text-image__img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout: Text Right / Image Left */
.tph-text-image.text-right .tph-text-image__container {
    flex-direction: row-reverse;
}

/* When no image, allow text alignment and constrain width */
.tph-text-image--no-image .tph-text-image__container {
    justify-content: flex-start;
}

.tph-text-image--no-image.text-right .tph-text-image__container {
    justify-content: flex-end;
}

.tph-text-image--no-image .tph-text-image__text {
    flex: 0 1 auto;
    max-width: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tph-text-image__container {
        flex-direction: column !important;
        align-items: stretch;
        gap: 2rem;
        padding: 0 1rem;
    }

    .tph-text-image__text,
    .tph-text-image__image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tph-text-image--no-image .tph-text-image__text {
        max-width: 100%;
    }
}

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

