/*
 * Styles the blog post body rendered by Elementor's "theme-post-content"
 * widget (the Single Post Template applied to every singular `post`). Scoped
 * to that widget's wrapper class so it only touches the structured content
 * area — title, hero, and everything else in the template is untouched.
 *
 * Uses the same --soves-* variables (soves-frontend.css) and card/border/
 * radius conventions as tour-single.css / hotel-single.css so a blog post
 * reads as part of the same site, not a bolted-on WordPress default post.
 */
.elementor-widget-theme-post-content .elementor-widget-container {
    max-width: 760px;
    margin: 0 auto;
}

.elementor-widget-theme-post-content p {
    margin: 0 0 22px;
    color: var(--soves-text);
    font-size: 17px;
    line-height: 1.75;
}

.elementor-widget-theme-post-content p:last-of-type {
    margin-bottom: 0;
}

/* Lead-in paragraph: the post's opening line gets a bit more weight than the
   rest of the body, the way a magazine intro reads before the piece settles
   into its normal rhythm. */
.elementor-widget-theme-post-content .elementor-widget-container > p:first-of-type {
    color: var(--soves-text);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
}

.elementor-widget-theme-post-content h2,
.elementor-widget-theme-post-content h3,
.elementor-widget-theme-post-content h4 {
    margin: 36px 0 16px;
    color: var(--soves-text);
    font-weight: 700;
    line-height: 1.3;
}

.elementor-widget-theme-post-content h2 {
    font-size: 26px;
}

.elementor-widget-theme-post-content h3 {
    font-size: 21px;
}

.elementor-widget-theme-post-content h4 {
    font-size: 18px;
}

.elementor-widget-theme-post-content .wp-block-image,
.elementor-widget-theme-post-content figure {
    margin: 32px 0;
}

.elementor-widget-theme-post-content .wp-block-image img,
.elementor-widget-theme-post-content figure img {
    display: block;
    width: 100%;
    /* A fixed ratio keeps every photo the same height regardless of what an
       editor uploads, so a tall portrait shot doesn't tower over the two
       landscape ones next to it — the current biggest inconsistency when a
       non-technical editor is picking their own images. */
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.elementor-widget-theme-post-content .wp-block-image figcaption,
.elementor-widget-theme-post-content figure figcaption {
    margin-top: 10px;
    color: var(--soves-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.elementor-widget-theme-post-content a {
    color: var(--soves-primary);
    text-decoration: underline;
    text-decoration-color: rgba(10, 48, 105, 0.35);
    text-underline-offset: 2px;
}

.elementor-widget-theme-post-content a:hover,
.elementor-widget-theme-post-content a:focus-visible {
    color: var(--soves-primary-dark);
}

.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--soves-text);
    font-size: 17px;
    line-height: 1.75;
}

.elementor-widget-theme-post-content blockquote {
    margin: 32px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--soves-primary);
    border-radius: 0 10px 10px 0;
    background: #f7f9fc;
    color: var(--soves-text);
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
}

/* "Recommended for you" — the soves/recommendations block the locked post
   template always ends with. Gets its own section treatment instead of
   looking like a stray paragraph after the last image. */
.elementor-widget-theme-post-content .soves-recommendations-block {
    margin: 48px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--soves-border);
}

.elementor-widget-theme-post-content .soves-recommendations-block__heading {
    margin: 0 0 20px;
    color: var(--soves-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .elementor-widget-theme-post-content p,
    .elementor-widget-theme-post-content ul,
    .elementor-widget-theme-post-content ol {
        font-size: 16px;
    }

    .elementor-widget-theme-post-content .wp-block-image img,
    .elementor-widget-theme-post-content figure img {
        border-radius: 10px;
    }
}
