/* Block: Tekst + slika */
.rw-split { display: grid; gap: 32px; align-items: center; }
.rw-split-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.18; letter-spacing: -.02em; }
.rw-split-text h2::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--rw-gold); }
.rw-split-figure img { display: block; width: 100%; border-radius: 20px; box-shadow: var(--rw-shadow-lg); }
.rw-block-text-image + .rw-block-text-image { padding-top: 0; }

@media (min-width: 1024px) {
    .rw-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
    .rw-split:not(:has(.rw-split-figure)) { grid-template-columns: minmax(0, 820px); }
    .rw-image-left .rw-split-figure { order: -1; }
    .rw-block-text-image { padding: 64px 0; }
}

@media (max-width: 767px) {
    .rw-split { gap: 18px; }
    .rw-split-text h2 { font-size: clamp(1.35rem, 6vw, 1.65rem); }
    .rw-split-text h2::before { width: 28px; margin-bottom: 12px; }
    .rw-split-figure img { max-height: 230px; object-fit: cover; border-radius: 14px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .rw-split-figure img { max-height: 360px; object-fit: cover; }
}

/* Without an image (1.28.0): the whole width, the heading left and the text right */
.rw-story { display: grid; gap: 14px; }
.rw-story-title { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.18; letter-spacing: -.02em; }
.rw-story-title::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--rw-gold); }
.rw-story-body > :first-child { margin-top: 0; }
.rw-story-body p { font-size: 1.08rem; line-height: 1.7; }
.rw-split-actions { margin: 22px 0 0; }

/* Variant "Poziv" (1.28.0): a highlighted call with a button */
.rw-callout { display: grid; gap: 24px; align-items: center; padding: 40px 28px; border-radius: var(--rw-radius); background: var(--rw-dark); color: #fff; text-align: center; box-shadow: var(--rw-shadow-lg); }
.rw-callout h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.18; letter-spacing: -.02em; }
.rw-callout h2::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: var(--rw-gold); }
.rw-callout p { max-width: 42em; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .8); font-size: 1.06rem; line-height: 1.65; }
.rw-callout a:not(.rw-btn) { color: var(--rw-gold-light); }
.rw-callout .rw-split-actions { margin-top: 24px; }
.rw-callout-figure img { display: block; width: 100%; border-radius: 14px; }

@media (min-width: 1024px) {
    .rw-story { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
    .rw-callout { padding: 56px 64px; }
    .rw-callout-image { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); text-align: left; }
    .rw-callout-image h2::before { margin-left: 0; }
    .rw-callout-image p { margin-left: 0; }
}
@media (max-width: 767px) {
    .rw-story-title { font-size: clamp(1.35rem, 6vw, 1.65rem); }
    .rw-story-title::before { width: 28px; margin-bottom: 12px; }
    .rw-story-body p { font-size: 1rem; }
    .rw-callout { padding: 28px 18px; }
    .rw-callout .rw-btn { width: 100%; }
}
/* Buttons inside the text keep their own look (not the link style of the text) */
.rw-prose .rw-split-actions .rw-btn-primary, .rw-callout .rw-split-actions .rw-btn-primary { background: var(--rw-gold); color: var(--rw-dark); text-decoration: none; opacity: 1; }
.rw-prose .rw-split-actions .rw-btn-primary:hover { background: var(--rw-gold-light); }
