﻿/* ============================================================
   CREATOR PUBLIC PAGE CONTENT BLOCKS
   Shared styling for Text, ImageText, Metric, Feature, Quote,
   Video, FullImage and CTA blocks.
   ============================================================ */

.eg-page-block {
    position: relative;
    overflow: hidden;
}

.eg-block-text {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.eg-block-small-title {
    color: var(--site-primary, #ff5a3c);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.eg-page-block h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 950;
    line-height: 1.12;
    margin-bottom: 18px;
}

.eg-page-block h3 {
    font-weight: 900;
    line-height: 1.25;
}

.eg-block-content {
    font-size: 17px;
    line-height: 1.8;
}

    .eg-block-content p:last-child,
    .eg-block-content ul:last-child,
    .eg-block-content ol:last-child {
        margin-bottom: 0;
    }

    .eg-block-content img {
        max-width: 100%;
        height: auto;
    }

.eg-block-image,
.eg-block-full-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
}

.eg-block-image {
    max-height: 560px;
}

.eg-block-full-image {
    max-height: 720px;
}

.eg-metric-block {
    max-width: 700px;
    margin: 0 auto;
}

.eg-metric-value {
    color: var(--site-primary, #ff5a3c);
    font-size: clamp(45px, 8vw, 84px);
    font-weight: 950;
    line-height: 1;
    margin-bottom: 15px;
}

.eg-feature-block {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.eg-feature-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 90, 60, .12);
    color: var(--site-primary, #ff5a3c);
    font-size: 24px;
}

.eg-quote-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    border-left: 5px solid var(--site-primary, #ff5a3c);
    border-radius: 18px;
    background: rgba(15, 23, 42, .06);
    font-size: 24px;
    font-weight: 700;
}

    .eg-quote-block footer {
        margin-top: 18px;
        font-size: 15px;
        opacity: .75;
    }

.eg-cta-block {
    max-width: 900px;
    margin: 0 auto;
}

.eg-page-block .ratio iframe {
    border: 0;
    border-radius: 22px;
}

@media (max-width: 767.98px) {
    .eg-page-block .container {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .eg-page-block h2 {
        font-size: 30px;
    }

    .eg-block-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .eg-feature-block {
        gap: 13px;
    }

    .eg-feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .eg-quote-block {
        padding: 24px;
        font-size: 19px;
    }

    .eg-block-image,
    .eg-block-full-image {
        border-radius: 18px;
    }
}
