/* ---------- Default page css ---------- */

.padd {
    padding: 92px 92px;
}

/* ---------- Main content block: establishes its own containing context,
   so nothing inside (image, floats, absolute-positioned children from
   the global theme) can escape and land elsewhere on the page ---------- */
.page-content-block {
    position: relative !important;
    display: block !important;
    overflow: visible;
    width: 100%;
}

/* Image: explicit box, floated top-right, forced static positioning
   so any theme-wide "img { position: absolute }" style can't hijack it */
.page-content-block.has-image .page-content-image {
    position: relative !important;
    float: right !important;
    width: 380px;
    max-width: 40%;
    height: 320px;
    margin: 0 0 24px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-content-image img {
    position: static !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.page-content-text {
    position: relative !important;
    width: 100%;
}

/* Clearfix — guarantees the container properly wraps around the float,
   so the PDF viewer / extra-images sections below never overlap it */
.page-content-clear {
    clear: both;
    display: block;
    height: 0;
}

/* ---------- Heading + description spacing ---------- */
.page-content-text .title {
    margin-bottom: 20px;
}

.page-content-text .title-blue {
    margin: 0 0 20px;
}

.page-content-text p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ---------- PDF viewer ---------- */
.page-content-pdf {
    margin-top: 30px;
    clear: both;
}

.page-content-pdf iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
}

/* ---------- Extra images grid ---------- */
.page-extra-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
    clear: both;
}

.page-extra-images__item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.page-extra-images__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Responsive: stack on smaller screens ---------- */
@media (max-width: 767px) {
    .page-content-block.has-image .page-content-image {
        float: none !important;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 0 24px 0;
    }

    .page-extra-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .padd {
        padding: 40px 20px;
    }

    .page-extra-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-content-pdf iframe {
        height: 500px;
    }
}