.yasmalia-service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 40px;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 24px;
}

.yasmalia-service-hero--image-left {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.yasmalia-service-hero--image-left .yasmalia-service-hero__content {
    order: 2;
}

.yasmalia-service-hero--image-left .yasmalia-service-hero__media {
    order: 1;
}

.yasmalia-service-hero__kicker {
    margin: 0 0 12px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yasmalia-service-hero__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.04;
}

.yasmalia-service-hero__summary {
    margin-top: 18px;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.yasmalia-service-hero__summary p {
    margin: 0;
}

.yasmalia-service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.yasmalia-service-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.yasmalia-service-hero__button:hover {
    transform: translateY(-1px);
}

.yasmalia-service-hero__button--primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.yasmalia-service-hero__button--primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.yasmalia-service-hero__button--secondary {
    background: #eff6ff;
    color: #1d4ed8;
}

.yasmalia-service-hero__button--secondary:hover {
    background: #dbeafe;
    color: #1e40af;
}

.yasmalia-service-hero__media img {
    display: block;
    width: 100%;
    height: min(520px, 58vw);
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .16);
}

body.single-yasmalia_service {
    overflow-x: clip;
}

body.single-yasmalia_service .yasmalia-theme-content {
    overflow: clip;
}

body.single-yasmalia_service #tahefobu-header {
    position: relative;
    z-index: 40;
}

body.single-yasmalia_service #tahefobu-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, .84) 0%, rgba(2, 6, 23, .58) 72%, rgba(2, 6, 23, .2) 100%);
    backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

body.single-yasmalia_service #tahefobu-header > * {
    position: relative;
    z-index: 1;
}

body.single-yasmalia_service .yasmalia-service-hero,
body.single-yasmalia_service .yasmalia-service-hero--image-left {
    position: relative;
    display: block;
    width: 100vw;
    min-height: 0;
    margin: 0 calc(50% - 50vw) clamp(32px, 5vw, 64px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    box-shadow: none;
}

body.single-yasmalia_service .yasmalia-service-hero::before,
body.single-yasmalia_service .yasmalia-service-hero--image-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, .16) 0%, rgba(2, 6, 23, .42) 48%, rgba(2, 6, 23, .72) 100%);
    z-index: 1;
    pointer-events: none;
}

body.single-yasmalia_service .yasmalia-service-hero--image-left {
    display: block;
}

body.single-yasmalia_service .yasmalia-service-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 6vw, 72px);
    text-align: center;
}

body.single-yasmalia_service .yasmalia-service-hero__content > * {
    max-width: min(100%, 960px);
}

body.single-yasmalia_service .yasmalia-service-hero__kicker,
body.single-yasmalia_service .yasmalia-service-hero__summary,
body.single-yasmalia_service .yasmalia-service-hero__actions {
    display: none;
}

body.single-yasmalia_service .yasmalia-service-hero__title {
    color: #fff;
    font-size: clamp(34px, 5.4vw, 76px);
    line-height: 1.02;
    text-shadow: 0 14px 36px rgba(2, 6, 23, .34);
}

body.single-yasmalia_service .yasmalia-service-hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    min-height: 0;
}

body.single-yasmalia_service .yasmalia-service-hero__media::after {
    content: none;
}

body.single-yasmalia_service .yasmalia-service-hero__media img {
    width: 100%;
    height: clamp(320px, 42vw, 560px);
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    filter: none;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 900px) {
    .yasmalia-service-hero,
    .yasmalia-service-hero--image-left {
        grid-template-columns: 1fr;
    }

    .yasmalia-service-hero--image-left .yasmalia-service-hero__content,
    .yasmalia-service-hero--image-left .yasmalia-service-hero__media {
        order: initial;
    }

    .yasmalia-service-hero {
        padding: 24px;
    }

    .yasmalia-service-hero__media img {
        height: auto;
        max-height: 420px;
    }

    body.single-yasmalia_service .yasmalia-service-hero,
    body.single-yasmalia_service .yasmalia-service-hero--image-left {
        display: block;
        min-height: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    body.single-yasmalia_service .yasmalia-service-hero__content {
        padding: 24px;
    }

    body.single-yasmalia_service .yasmalia-service-hero__title {
        font-size: clamp(28px, 8vw, 44px);
    }

    body.single-yasmalia_service .yasmalia-service-hero__media {
        position: relative;
        inset: auto;
    }

    body.single-yasmalia_service .yasmalia-service-hero__media img {
        height: clamp(240px, 54vw, 360px);
    }

    body.single-yasmalia_service #tahefobu-header::before {
        background: linear-gradient(180deg, rgba(2, 6, 23, .9) 0%, rgba(2, 6, 23, .64) 100%);
    }
}

@media (max-width: 767px) {
    body.single-yasmalia_service .yasmalia-service-hero__content {
        padding: calc(max(132px, 34vw) + env(safe-area-inset-top, 0px)) 20px 28px;
    }

    body.single-yasmalia_service .yasmalia-service-hero__media img {
        height: clamp(300px, 108vw, 420px);
    }
}

body.single-yasmalia_service .yasmalia-service-hero,
body.single-yasmalia_service .yasmalia-service-hero--image-left {
    width: auto;
    max-width: none;
    margin: 0 -24px clamp(32px, 5vw, 64px) !important;
}
