/* ------------------------------------------------------------------ */
/* Page opening. Built from the martyr's own portrait — blurred and     */
/* dimmed — so every profile has its own ground and nothing depends on  */
/* a shared banner file that may be missing on the server.              */
/* ------------------------------------------------------------------ */
.martyr-hero {
    position: relative;
    display: flex;
    min-height: 260px;
    align-items: flex-end;
    overflow: hidden;
    padding: 34px 0 64px;
    color: #fff;
    background: #101d16;
    isolation: isolate;
}

.martyr-hero__art {
    position: absolute;
    z-index: -2;
    inset: -40px;
    background-position: center 22%;
    background-size: cover;
    filter: blur(26px) saturate(.85) brightness(.62);
    transform: scale(1.06);
}

.martyr-hero__veil {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10, 23, 18, .93) 8%, rgba(10, 23, 18, .62) 52%, rgba(10, 23, 18, .88) 100%),
        radial-gradient(circle at 82% 16%, rgba(216, 189, 97, .22), transparent 44%);
}

.martyr-hero__inner {
    position: relative;
    z-index: 1;
}

.martyr-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.martyr-hero__crumbs a { color: rgba(255, 255, 255, .78); }
.martyr-hero__crumbs a:hover { color: #f0dc91; }

.martyr-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid rgba(216, 189, 97, .45);
    border-radius: 999px;
    color: #f0dc91;
    font-size: 13px;
    font-weight: 700;
}

.martyr-hero h1 {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.55;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
    overflow-wrap: anywhere;
}

.martyr-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 18px;
}

.martyr-hero__facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    backdrop-filter: blur(6px);
}

.martyr-hero__facts b { color: #fff; font-weight: 700; }
.martyr-hero__facts i { color: #e7cf7c; }

/* The card below the hero lifts into it, as on the other content pages. */
.martyr-hero + section .post-details-style {
    margin-top: -34px;
}

@media (max-width: 767px) {
    .martyr-hero {
        min-height: 0;
        padding: 22px 0 42px;
    }

    .martyr-hero__crumbs { margin-bottom: 10px; font-size: 12.5px; }
    .martyr-hero__eyebrow { padding: 4px 11px; font-size: 12px; }
    .martyr-hero h1 { margin-top: 10px; line-height: 1.5; }
    .martyr-hero__facts { gap: 8px; margin-top: 14px; }
    .martyr-hero__facts span { padding: 6px 11px; font-size: 12.5px; }
    .martyr-hero + section .post-details-style { margin-top: -18px; }
}

/* ------------------------------------------------------------------ */
/* The card holds the portrait and the biography — the facts are stated */
/* once, in the hero above.                                             */
/* ------------------------------------------------------------------ */
.post-details-style .martyr-portrait {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.post-details-style .martyr-portrait img {
    width: auto;
    max-width: 100%;
    max-height: 560px;
    border-radius: 12px;
    object-fit: contain;
}

.post-details-style .martyr-portrait img.is-fallback {
    width: min(260px, 70%);
    max-height: 260px;
    opacity: .65;
}

/* Martyr profile: the biography is long-form Arabic prose, so it reads at a
   calmer rhythm than the theme's default 1.65 line-height, with real space
   between paragraphs and between the data rows above it. */
.post-details-style .dz-info > div:last-child {
    color: inherit;
    font-size: 1.05rem;
    line-height: 2.1;
    text-align: justify;
}

.post-details-style .dz-info > div:last-child p,
.post-details-style .dz-info > div:last-child li {
    margin: 0 0 1.35em;
    line-height: 2.1;
}

.post-details-style .dz-info > div:last-child p:last-child {
    margin-bottom: 0;
}

.post-details-style .dz-info > div:last-child h1,
.post-details-style .dz-info > div:last-child h2,
.post-details-style .dz-info > div:last-child h3,
.post-details-style .dz-info > div:last-child h4 {
    margin: 1.5em 0 .6em;
    line-height: 1.7;
}

.post-details-style .dz-info > div:last-child ul,
.post-details-style .dz-info > div:last-child ol {
    margin: 1.2em 0;
    padding-inline-start: 1.6em;
}

.post-details-style .dz-info > div:last-child blockquote {
    margin: 1.4em 0;
    padding-inline-start: 1em;
    border-inline-start: 3px solid var(--secondary, #dec53c);
}

@media (max-width: 767px) {
    .post-details-style .dz-info > div:last-child,
    .post-details-style .dz-info > div:last-child p,
    .post-details-style .dz-info > div:last-child li {
        line-height: 1.95;
    }
}

/* ------------------------------------------------------------------ */
/* Phones. The card's 50px padding left a 260px column on a 390px      */
/* screen, so the portrait, the data rows and the biography were all   */
/* squeezed into a narrow strip. Give the page the width it has.       */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
    .post-details-style {
        margin: 22px 0;
        padding: 18px 14px 24px;
        border-radius: 10px;
    }

    .post-details-style .martyr-portrait {
        margin-bottom: 22px;
    }

    .post-details-style .martyr-portrait img {
        width: 100%;
        max-width: 340px;
        height: auto;
        border-radius: 10px;
    }

    .post-details-style .dz-info > div:last-child {
        margin-top: 6px;
        font-size: 16px;
    }

    /* Previous / next martyr cards stack with breathing room. */
    .similar-posts {
        margin-top: 26px;
    }

    .similar-posts > div {
        margin-left: 0;
        margin-bottom: 14px;
        padding: 18px 16px;
    }

    .similar-posts > div h4 {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .dz-share-post {
        margin-top: 6px;
    }

    .dz-share-post .dz-social-icon ul {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 575px) {
    .post-details-style {
        margin: 16px 0;
        padding: 14px 12px 20px;
    }

    .post-details-style .dz-info > div:last-child { font-size: 15.5px; }
}
