/* SOAR4 News Manager frontend styles.
 * Intentionally neutral and theme-friendly: header/footer/brand font stay controlled by the active site theme.
 */
.soar4-news,
.soar4-news-single {
    --soar4-text: #171717;
    --soar4-muted: #686868;
    --soar4-border: rgba(0, 0, 0, .12);
    --soar4-bg: #ffffff;
    --soar4-soft: #f6f6f4;
    color: var(--soar4-text);
    background: var(--soar4-bg);
}

.soar4-news__container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.soar4-news__hero {
    padding: clamp(56px, 8vw, 118px) 0 clamp(42px, 6vw, 82px);
    text-align: center;
}

.soar4-news__hero-title {
    margin: 0;
    font: inherit;
    line-height: .95;
    letter-spacing: -0.035em;
    font-size: clamp(54px, 9vw, 118px);
    font-weight: 700;
}

.soar4-news__hero-title span {
    display: block;
}

.soar4-news__hero-title span:last-child {
    font-size: .52em;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-top: .18em;
}

.soar4-news__list {
    padding: 0 0 clamp(70px, 9vw, 128px);
}

.soar4-news-card {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(30px, 5vw, 74px);
    align-items: start;
    padding: clamp(42px, 6vw, 78px) 0;
    border-top: 1px solid var(--soar4-border);
}

.soar4-news-card--reverse .soar4-news-card__media {
    order: 2;
}

.soar4-news-card--reverse .soar4-news-card__content {
    order: 1;
}

.soar4-news-card--no-image {
    display: block;
    max-width: 900px;
    margin-inline: auto;
}

.soar4-news-card__media {
    display: block;
    overflow: hidden;
    background: var(--soar4-soft);
}

.soar4-news-card__media img,
.soar4-news-single__media img {
    display: block;
    width: 100%;
    height: auto;
}

.soar4-news-card__title {
    margin: 0 0 8px;
    font-size: clamp(30px, 3.2vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.soar4-news-card__title a,
.soar4-news-card__read-more,
.soar4-news-single__back a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.soar4-news-card__title a {
    text-decoration: none;
}

.soar4-news-card__date {
    margin: 0 0 24px;
    color: var(--soar4-muted);
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: .03em;
}

/* Client direction: longer News copy should be left aligned, not centered. */
.soar4-news-card__body,
.soar4-news-single__content {
    text-align: left !important;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.72;
}

.soar4-news-card__body > :first-child,
.soar4-news-single__content > :first-child {
    margin-top: 0;
}

.soar4-news-card__body > :last-child,
.soar4-news-single__content > :last-child {
    margin-bottom: 0;
}

.soar4-news-card__body p,
.soar4-news-card__body ul,
.soar4-news-card__body ol,
.soar4-news-single__content p,
.soar4-news-single__content ul,
.soar4-news-single__content ol {
    margin: 0 0 1.1em;
}

.soar4-news-card__body h3,
.soar4-news-single__content h2,
.soar4-news-single__content h3 {
    margin: 1.5em 0 .55em;
    line-height: 1.15;
}

.soar4-news__pagination {
    margin-top: 34px;
}

.soar4-news__pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    flex-wrap: wrap;
}

.soar4-news__pagination a,
.soar4-news__pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--soar4-border);
    padding: 7px 12px;
    color: inherit;
    text-decoration: none;
}

.soar4-news-single {
    padding: clamp(46px, 7vw, 92px) 0 clamp(70px, 10vw, 130px);
}

.soar4-news-single__container {
    max-width: 940px;
}

.soar4-news-single__back {
    margin: 0 0 38px;
}

.soar4-news-single__header h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.soar4-news-single__media {
    margin: 38px 0 42px;
}

.soar4-news__empty {
    text-align: center;
    padding: 50px 0;
}

@media (max-width: 800px) {
    .soar4-news__container {
        width: min(100% - 28px, 1180px);
    }
    .soar4-news-card {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .soar4-news-card--reverse .soar4-news-card__media,
    .soar4-news-card--reverse .soar4-news-card__content {
        order: initial;
    }
    .soar4-news-card__title {
        font-size: clamp(30px, 9vw, 44px);
    }
}

/* v1.2 live-clone compatibility layer. The original Elementor IDs/classes and
 * page-specific stylesheet control the legacy design; these rules only prevent
 * plugin wrappers from changing dimensions and apply the approved readability tweak. */
.soar4-news--live-clone,
.soar4-news--live-clone .soar4-news__legacy-root {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.soar4-news--live-clone .soar4-news-long-copy,
.soar4-news--live-clone .soar4-news-long-copy p,
.soar4-news--live-clone .soar4-news-long-copy li {
    text-align: left !important;
}

.soar4-news__new-posts {
    padding: 42px 0;
}

.soar4-news__new-posts .soar4-news-card:first-child {
    border-top: 0;
}


/* v1.2.1: fallback only for legacy entries whose description lived outside the
 * title/date Elementor container. Keeps the complete original body visible. */
.soar4-news--live-clone .soar4-news__legacy-description-fallback {
    text-align: left !important;
    width: 100%;
}
.soar4-news--live-clone .soar4-news__legacy-description-fallback .elementor-widget-container {
    text-align: left !important;
}
.soar4-news--live-clone .soar4-news__legacy-description-fallback p,
.soar4-news--live-clone .soar4-news__legacy-description-fallback ul,
.soar4-news--live-clone .soar4-news__legacy-description-fallback ol,
.soar4-news--live-clone .soar4-news__legacy-description-fallback blockquote {
    text-align: left !important;
}


/* v1.2.2: archive descriptions are part of each News item, immediately below
 * the title/date group. Keep the live Elementor width/direction while forcing
 * readable long-form copy to align left as approved. */
.soar4-news--live-clone .soar4-news__legacy-description-fallback {
    margin-top: 12px;
    align-self: stretch;
}
.soar4-news--live-clone .soar4-news__legacy-description-fallback,
.soar4-news--live-clone .soar4-news__legacy-description-fallback .elementor-widget-container,
.soar4-news--live-clone .soar4-news__legacy-description-fallback p,
.soar4-news--live-clone .soar4-news__legacy-description-fallback li,
.soar4-news--live-clone .soar4-news__legacy-description-fallback blockquote {
    text-align: left !important;
}
.soar4-news--live-clone .soar4-news__legacy-description-fallback > .elementor-widget-container > :first-child {
    margin-top: 0;
}
.soar4-news--live-clone .soar4-news__legacy-description-fallback > .elementor-widget-container > :last-child {
    margin-bottom: 0;
}

/* v1.3 exact clone mode
 * Imported legacy content is rendered from the complete live Elementor snapshot,
 * so these rules intentionally do not touch that markup. They are only for future
 * CPT posts inserted after the preserved hero marker.
 */
.soar4-news-exact-new-posts {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 8px;
}
.soar4-news-exact-new-post {
    text-align: center;
    padding: 34px 0 46px;
}
.soar4-news-exact-new-post + .soar4-news-exact-new-post {
    border-top: 1px solid rgba(0, 0, 0, .5);
}
.soar4-news-exact-new-post__image {
    margin: 0 auto 24px;
    max-width: 560px;
}
.soar4-news-exact-new-post__image img {
    display: block;
    width: 100%;
    height: auto;
}
.soar4-news-exact-new-post__title {
    margin: 0 0 8px;
    font: inherit;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}
.soar4-news-exact-new-post__title a {
    color: inherit;
    text-decoration: none;
}
.soar4-news-exact-new-post__date {
    margin: 0 0 18px;
    font-size: 14px;
}
.soar4-news-exact-new-post__body {
    text-align: left;
    line-height: 1.65;
}
.soar4-news-exact-new-post__body > :first-child {
    margin-top: 0;
}
.soar4-news-exact-new-post__body > :last-child {
    margin-bottom: 0;
}

/* v1.6 — exact live mirror compatibility. These selectors are intentionally scoped
 * so the already-approved legacy /news/ design is not restyled. */
.soar4-news-live-mirror a.soar4-news-post-link,
.soar4-news-exact-clone a.soar4-news-post-link {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
}
.soar4-news-live-mirror a.soar4-news-post-link:hover,
.soar4-news-live-mirror a.soar4-news-post-link:focus,
.soar4-news-live-mirror a.soar4-news-post-link:focus-visible,
.soar4-news-live-mirror a.soar4-news-post-link:active,
.soar4-news-live-mirror a.soar4-news-post-link:visited,
.soar4-news-exact-clone a.soar4-news-post-link:hover,
.soar4-news-exact-clone a.soar4-news-post-link:focus,
.soar4-news-exact-clone a.soar4-news-post-link:focus-visible,
.soar4-news-exact-clone a.soar4-news-post-link:active,
.soar4-news-exact-clone a.soar4-news-post-link:visited {
    color: inherit !important;
    text-decoration: none !important;
}
.soar4-news-live-mirror .soar4-video-fallback,
.soar4-news-exact-clone .soar4-video-fallback {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}
.soar4-news-live-mirror video.soar4-video-fallback,
.soar4-news-exact-clone video.soar4-video-fallback {
    aspect-ratio: auto;
}

/* Editable/local News posts.
 * v1.7.4 uses the preserved legacy News entries as the visual reference. The
 * runtime script measures the approved "Growing Hope's Garden" block (or the
 * nearest compatible legacy item) and feeds those dimensions into the variables
 * below. !important is intentional here: the local CPT markup lives inside an
 * Elementor snapshot and must not inherit arbitrary widget widths from that tree. */
.soar4-news-local-posts {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.soar4-news-editable-post {
    --soar4-legacy-logo-width: 112px;
    --soar4-legacy-photo-width: 860px;
    --soar4-legacy-copy-width: 1500px;
    --soar4-legacy-divider-width: 1440px;
    --soar4-legacy-headline-gap: 42px;
    --soar4-legacy-date-gap: 42px;
    --soar4-legacy-body-gap: 42px;
    --soar4-legacy-divider-gap: 54px;
    box-sizing: border-box !important;
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(54px, 4.4vw, 76px) 0 0 !important;
    text-align: center !important;
    clear: both;
}
/* The original News design always has a thin centered divider after an entry.
 * This also covers the important local-post -> first legacy-post boundary. */
.soar4-news-editable-post::after {
    content: "";
    display: block;
    width: min(var(--soar4-legacy-divider-width), 84vw);
    max-width: calc(100% - 80px);
    margin: var(--soar4-legacy-divider-gap) auto 0;
    border-top: 1px solid rgba(0, 0, 0, .72);
}
.soar4-news-editable-post__layout,
.soar4-news-editable-post__copy {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}
/* Logo + title are one compact centered row, matching the hand-built legacy
 * cards. width:fit-content fixes the v1.7.3 case where Elementor pushed the
 * short title all the way to the far right of the page. */
.soar4-news-editable-post__headline {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: fit-content !important;
    max-width: min(90vw, 1540px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--soar4-legacy-headline-gap) !important;
    vertical-align: top;
}
.soar4-news-editable-post--beside_title .soar4-news-editable-post__layout {
    display: grid !important;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr) !important;
    width: min(var(--soar4-legacy-copy-width), 90vw) !important;
    margin: 0 auto !important;
    gap: var(--soar4-legacy-headline-gap) !important;
    align-items: start !important;
}
.soar4-news-editable-post--beside_title .soar4-news-editable-post__copy {
    text-align: left !important;
}
.soar4-news-editable-post--beside_title .soar4-news-editable-post__headline {
    justify-content: flex-start !important;
    margin-left: 0 !important;
}
.soar4-news-editable-post__title {
    box-sizing: border-box !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: min(1180px, calc(90vw - var(--soar4-legacy-logo-width) - var(--soar4-legacy-headline-gap))) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 4.5vw, 82px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.02em;
    text-align: left;
    white-space: normal;
}
.soar4-news-editable-post__title a,
.soar4-news-editable-post__title a:hover,
.soar4-news-editable-post__title a:focus,
.soar4-news-editable-post__title a:focus-visible,
.soar4-news-editable-post__title a:active,
.soar4-news-editable-post__title a:visited {
    display: inline !important;
    width: auto !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    text-decoration: none !important;
}
.soar4-news-editable-post__date {
    box-sizing: border-box !important;
    width: auto !important;
    margin: var(--soar4-legacy-date-gap) auto 0 !important;
    padding: 0 !important;
    font-size: clamp(18px, 1.45vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center !important;
}
.soar4-news-editable-post__description {
    box-sizing: border-box !important;
    width: min(var(--soar4-legacy-copy-width), 90vw) !important;
    max-width: min(var(--soar4-legacy-copy-width), 90vw) !important;
    margin: var(--soar4-legacy-body-gap) auto 0 !important;
    padding: 0 !important;
    font-size: clamp(20px, 1.6vw, 31px);
    line-height: 1.66;
    text-align: center !important;
}
.soar4-news-editable-post__description p,
.soar4-news-editable-post__description li,
.soar4-news-editable-post__description blockquote {
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: inherit !important;
}
.soar4-news-editable-post__description p {
    margin-top: 0 !important;
    margin-bottom: .42em !important;
}
.soar4-news-editable-post__description > :first-child { margin-top: 0 !important; }
.soar4-news-editable-post__description > :last-child { margin-bottom: 0 !important; }
.soar4-news-editable-post__main-image {
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
.soar4-news-editable-post__main-image--logo {
    box-sizing: border-box !important;
    flex: 0 0 var(--soar4-legacy-logo-width) !important;
    width: var(--soar4-legacy-logo-width) !important;
    max-width: var(--soar4-legacy-logo-width) !important;
    min-width: var(--soar4-legacy-logo-width) !important;
    margin: 0 !important;
    padding: 0 !important;
}
.soar4-news-editable-post__main-image--logo a {
    display: block !important;
    width: 100% !important;
}
.soar4-news-editable-post__main-image--logo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
}
.soar4-news-editable-post__main-image--photo {
    box-sizing: border-box !important;
    width: min(var(--soar4-legacy-photo-width), 88vw) !important;
    max-width: min(var(--soar4-legacy-photo-width), 88vw) !important;
    margin: 0 auto clamp(34px, 3vw, 50px) !important;
}
.soar4-news-editable-post__main-image--photo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}
.soar4-news-editable-post--below_description .soar4-news-editable-post__main-image {
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}
.soar4-news-editable-post--align-left .soar4-news-editable-post__main-image { text-align: left !important; }
.soar4-news-editable-post--align-center .soar4-news-editable-post__main-image { text-align: center !important; }
.soar4-news-editable-post--align-right .soar4-news-editable-post__main-image { text-align: right !important; }
.soar4-news-editable-post__main-image img { height: auto !important; }
.soar4-news-editable-post__media-list,
.soar4-news-single__extra-media {
    display: grid;
    gap: 22px;
    width: min(var(--soar4-legacy-copy-width), 90vw);
    margin: 32px auto 0;
}
.soar4-news-media-item img,
.soar4-news-media-item video,
.soar4-news-media-item iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}
.soar4-news-media-item iframe,
.soar4-news-responsive-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
.soar4-news-responsive-video { width: 100%; }
.soar4-news-video { width: 100%; }
@media (max-width: 800px) {
    .soar4-news-editable-post {
        --soar4-legacy-logo-width: 96px;
        --soar4-legacy-headline-gap: 18px;
        padding-top: 42px !important;
    }
    .soar4-news-editable-post::after {
        width: calc(100% - 36px);
        max-width: none;
        margin-top: 38px;
    }
    .soar4-news-editable-post__headline {
        display: flex !important;
        flex-direction: column !important;
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
        gap: 18px !important;
    }
    .soar4-news-editable-post__title {
        max-width: 100% !important;
        font-size: clamp(38px, 11vw, 56px);
        text-align: center !important;
    }
    .soar4-news-editable-post__date { font-size: 18px; }
    .soar4-news-editable-post__description {
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        font-size: clamp(18px, 5.4vw, 23px);
        line-height: 1.55;
    }
    .soar4-news-editable-post--beside_title .soar4-news-editable-post__layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: calc(100% - 28px) !important;
    }
    .soar4-news-editable-post--beside_title .soar4-news-editable-post__copy { text-align: center !important; }
    .soar4-news-editable-post--beside_title .soar4-news-editable-post__headline { justify-content: center !important; margin: 0 auto !important; }
}


/* v1.6.1 — archive click routing only. No dimensions, colors, spacing, typography,
 * transforms or positioning are changed, so the approved live-clone design stays intact. */
.soar4-news-live-mirror a.soar4-news-media-link,
.soar4-news-exact-clone a.soar4-news-media-link {
    color: inherit !important;
    text-decoration: none !important;
}
.soar4-news-live-mirror a.soar4-news-media-link:hover,
.soar4-news-live-mirror a.soar4-news-media-link:focus,
.soar4-news-live-mirror a.soar4-news-media-link:active,
.soar4-news-exact-clone a.soar4-news-media-link:hover,
.soar4-news-exact-clone a.soar4-news-media-link:focus,
.soar4-news-exact-clone a.soar4-news-media-link:active {
    color: inherit !important;
    text-decoration: none !important;
}
.soar4-news-live-mirror .soar4-news-clickable-entry img,
.soar4-news-live-mirror .soar4-news-clickable-entry .elementor-widget-text-editor,
.soar4-news-exact-clone .soar4-news-clickable-entry img,
.soar4-news-exact-clone .soar4-news-clickable-entry .elementor-widget-text-editor {
    cursor: pointer;
}


/* v1.6.2 — real archive anchors, visually transparent.
 * These rules intentionally do not set font, size, margin, padding, position, width,
 * height, line-height or transforms. The live-cloned Elementor design is unchanged. */
.soar4-news-live-mirror a.soar4-news-post-link,
.soar4-news-live-mirror a.soar4-news-media-link,
.soar4-news-exact-clone a.soar4-news-post-link,
.soar4-news-exact-clone a.soar4-news-media-link {
    color: inherit !important;
    text-decoration: none !important;
}
.soar4-news-live-mirror a.soar4-news-post-link:hover,
.soar4-news-live-mirror a.soar4-news-post-link:focus,
.soar4-news-live-mirror a.soar4-news-post-link:active,
.soar4-news-live-mirror a.soar4-news-post-link:visited,
.soar4-news-live-mirror a.soar4-news-media-link:hover,
.soar4-news-live-mirror a.soar4-news-media-link:focus,
.soar4-news-live-mirror a.soar4-news-media-link:active,
.soar4-news-live-mirror a.soar4-news-media-link:visited,
.soar4-news-exact-clone a.soar4-news-post-link:hover,
.soar4-news-exact-clone a.soar4-news-post-link:focus,
.soar4-news-exact-clone a.soar4-news-post-link:active,
.soar4-news-exact-clone a.soar4-news-post-link:visited,
.soar4-news-exact-clone a.soar4-news-media-link:hover,
.soar4-news-exact-clone a.soar4-news-media-link:focus,
.soar4-news-exact-clone a.soar4-news-media-link:active,
.soar4-news-exact-clone a.soar4-news-media-link:visited {
    color: inherit !important;
    text-decoration: none !important;
}
.soar4-news-layout-transparent-link {
    display: contents !important;
}
.soar4-news-description-click-target,
.soar4-news-clickable-entry img {
    cursor: pointer;
}


/* v1.7.2 — local CPT posts must live inside the approved Elementor below-hero shell.
 * Let that shell control the page width/background instead of creating a separate
 * 900px island outside it. This is intentionally scoped to the known News wrapper. */
.below-hero-banner .soar4-news-local-posts,
.elementor-element-601ac15 .soar4-news-local-posts {
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.below-hero-banner .soar4-news-editable-post,
.elementor-element-601ac15 .soar4-news-editable-post {
    box-sizing: border-box;
}
