/* ============================================================
   karjerosdienos/hero-split block
   ============================================================ */

.kd-hs {
    display: grid;
    /* grid-template-columns set via inline style from leftWidth attribute */
    grid-template-columns: 50% 50%; /* fallback */
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Left panel ---- */
.kd-hs__left {
    background: linear-gradient(160deg, var(--purple, #333C75) 0%, var(--blue, #0B4DC7) 100%);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Override .entry-content h2/p colour/margin rules */
.entry-content .kd-hs__title,
.kd-hs__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.18;
    color: #fff !important;
    margin: 0 0 14px !important;
    letter-spacing: -0.3px;
}

.entry-content .kd-hs__subtitle,
.kd-hs__subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 28px !important;
}

/* ---- Stat cards — compact, square corners, bigger gap ---- */
.kd-hs__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kd-hs__stat {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kd-hs__stat-num {
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.kd-hs__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
}

/* ---- Buttons — stacked, equal width, explicit contrast ---- */
.kd-hs__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.kd-hs__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* White bg + blue text — always readable on blue panel */
.kd-hs__btn--primary {
    background: #fff;
    color: var(--blue, #0B4DC7) !important;
    border-color: #fff;
}

.kd-hs__btn--primary:hover,
.kd-hs__btn--primary:focus {
    background: #dbeafe;
    border-color: #dbeafe;
    color: var(--blue, #0B4DC7) !important;
    text-decoration: none !important;
}

/* Transparent + white text + white border */
.kd-hs__btn--outline {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.7);
}

.kd-hs__btn--outline:hover,
.kd-hs__btn--outline:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- Right panel — fills its grid cell via background-image ---- */
.kd-hs__right {
    background-color: #cbd5e1;
    background-size: cover;
    background-position: center;
    /* background-image + background-position set via inline style */
}

.kd-hs__placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .kd-hs {
        grid-template-columns: 1fr !important; /* override inline split */
    }

    .kd-hs__left {
        padding: 40px 28px;
    }

    .kd-hs__title {
        font-size: 26px !important;
    }

    /* Photo above text on mobile */
    .kd-hs__right {
        min-height: 240px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .kd-hs__stat-num {
        font-size: 22px;
    }

    .kd-hs__left {
        padding: 32px 20px;
    }
}
