/* ==========================================================================
   Prospero — site-wide layout fixes
   Loaded last (after style.css, responsive.css and the inline header styles)
   so these rules win without needing to edit the purchased theme files.

   1. Home page slider: every slide is the same height
   2. Partner logos: uniform tiles on the home strip and Partner With Us page
   3. Floating Donate button, shown on every page and every screen size
   4. Pages created in the admin area: banner and article text
   5. Standard picture frames so uploads never stretch or squash
   ========================================================================== */

/* ── 1. Home page slider ─────────────────────────────────────────────── */

.banner-section-one {
    background-color: #1b2429 !important;
}

/* Until the slider script starts, show only the first slide (no stacked flash). */
.banner-silder-one:not(.slick-initialized) .banner-slide-item-one:not(:first-child) {
    display: none;
}

/* Lay the slides out as equal-height flex items: the tallest slide sets the
   height for all of them, so the page never jumps when the slide changes.
   (The slider script wraps each slide as .slick-slide > div > .banner-slide-item-one.) */
.banner-silder-one .slick-track {
    display: flex !important;
    align-items: stretch;
}

.banner-silder-one .slick-slide {
    display: flex !important;
    float: none;
    height: auto !important;
}

.banner-silder-one .slick-slide > div {
    display: flex;
    width: 100%;
}

.banner-slide-item-one {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: clamp(520px, 74vh, 780px);
    padding: 64px clamp(18px, 6vw, 110px) 112px clamp(18px, 7vw, 140px);
    box-sizing: border-box;
}

.banner-slide-item-one > .container-fluid {
    width: 100%;
    position: relative;
    z-index: 1;
    padding-left: 0;
    padding-right: 0;
}

/* A gradient instead of a flat tint keeps the words readable on any photo. */
.banner-slide-item-one::after {
    background: linear-gradient(90deg, rgba(12, 18, 17, .78) 0%, rgba(12, 18, 17, .52) 42%, rgba(12, 18, 17, .18) 100%);
    pointer-events: none;
}

.banner-image-one picture {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-image-one img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-section-one .heading-box {
    margin-top: 0 !important;
    max-width: 720px;
}

.banner-slide-item-one .heading-title {
    font-family: var(--uniqo-heading-font, "Montserrat", sans-serif);
    font-size: clamp(34px, 4.4vw, 66px) !important;
    font-weight: 500 !important;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 20px !important;
    text-wrap: balance;
    animation: fade-left 1s ease;
}

.slick-active .banner-slide-item-one .heading-title {
    animation: fade-left2 1s ease;
}

.banner-section-one p.heading-details {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.35vw, 20px) !important;
    font-weight: 400 !important;
    line-height: 1.6;
    max-width: 54ch !important;
    margin: 0 0 28px !important;
}

.banner-section-one .heading-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.banner-section-one ul.slick-dots {
    left: clamp(18px, 7vw, 140px);
    right: auto;
    bottom: 44px;
    z-index: 2;
}

.banner-section-one ul.slick-dots li button {
    background-color: rgba(255, 255, 255, .38) !important;
    height: 3px;
    width: 40px;
    padding: 0;
    cursor: pointer;
}

.banner-section-one ul.slick-dots li.slick-active button {
    background-color: #fff !important;
}

#slider-info {
    right: clamp(18px, 6vw, 110px);
    bottom: 34px;
    z-index: 2;
    color: rgba(255, 255, 255, .85) !important;
    font-size: 15px;
}

@media (max-width: 767.98px) {
    .banner-slide-item-one {
        min-height: clamp(440px, 68vh, 600px);
        padding: 44px 18px 84px;
    }

    .banner-slide-item-one::after {
        background: linear-gradient(180deg, rgba(12, 18, 17, .5) 0%, rgba(12, 18, 17, .72) 100%);
    }

    .banner-section-one ul.slick-dots { left: 18px; bottom: 32px; }
    #slider-info { display: none; }
}

/* ── 2. Partner logos ────────────────────────────────────────────────
   Sized to match the live site: every logo gets the same 250 × 130 area in a
   tall tile with thin dividers, and is scaled to fit inside it. */

.patner-section-one {
    background-color: #fff !important;
    padding: 56px 0 0;
    border-top: 1px solid #e6e9e6;
}

.partner-strip-heading {
    text-align: center;
    font-family: var(--uniqo-body-font, "Inter", sans-serif);
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #5c6968;
    margin: 0 0 26px;
}

.patner-slider-one {
    border-top: 1px solid rgba(0, 0, 0, .12);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.patner-slider-one:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
}

.patner-slide-item-one {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 230px !important;
    padding: 0 24px;
    border: 0 !important;
    border-left: 1px solid rgba(0, 0, 0, .12) !important;
    background: #fff !important;
    box-sizing: border-box;
}

.patner-slide-item-one a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.patner-slide-item-one img {
    width: 100% !important;
    max-width: 250px;
    height: 130px !important;
    max-height: 130px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    filter: none;
}

.partner-name-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    height: 130px;
    padding: 12px 16px;
    border: 1px solid #dfe3df;
    border-radius: 12px;
    background: #f7f8f6;
    color: #33403e;
    font-family: var(--uniqo-heading-font, "Montserrat", sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
}

/* Partner With Us page: a wall of equal tiles. */
.partner-wall {
    padding: 70px 0 90px;
    background: #f6f7f5;
}

.partner-wall .heading-box { margin-bottom: 34px; }

.partner-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.partner-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e3e6e3;
    border-radius: 12px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.partner-logo-tile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-logo-tile img {
    width: 100% !important;
    max-width: 230px;
    height: 120px !important;
    max-height: 120px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.partner-logo-tile:hover {
    box-shadow: 0 8px 22px rgba(27, 36, 41, .1);
    transform: translateY(-2px);
}

.partner-logo-tile .partner-name-tile {
    border: 0;
    background: transparent;
    max-width: none;
    height: auto;
    padding: 0;
}

@media (max-width: 1199.98px) {
    .patner-slide-item-one { height: 190px !important; padding: 0 18px; }
    .patner-slide-item-one img { max-width: 220px; height: 110px !important; max-height: 110px; }
    .partner-name-tile { height: 110px; max-width: 220px; font-size: 15px; }
}

@media (max-width: 575.98px) {
    .patner-section-one { padding-top: 40px; }
    .patner-slide-item-one { height: 140px !important; padding: 0 12px; }
    .patner-slide-item-one img { max-width: 150px; height: 84px !important; max-height: 84px; }
    .partner-name-tile { height: 84px; max-width: 150px; font-size: 13px; padding: 8px 10px; }
    .partner-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .partner-logo-tile { height: 130px; padding: 14px; }
    .partner-logo-tile img { height: 90px !important; max-height: 90px; }
    .partner-wall { padding: 48px 0 60px; }
}

/* ── 3. Floating Donate button ───────────────────────────────────────── */

.donate-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990; /* above page content, below the menu drawer and pop-ups */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px 0 20px;
    border: 0;
    border-radius: 999px;
    background: #D1A97A;
    color: #1b2429;
    font-family: var(--uniqo-body-font, "Inter", sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(15, 22, 21, .32), 0 2px 6px rgba(15, 22, 21, .2);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.donate-fab:hover,
.donate-fab:focus-visible {
    background: #1b2429;
    color: #fff;
    transform: translateY(-2px);
}

.donate-fab:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.donate-fab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* The "back to top" circle moves up so the two never overlap. */
.prgoress_indicator {
    right: 26px;
    bottom: 92px;
}

/* Leave room at the very bottom of the page so the button never hides the
   last line of the footer. */
.footer-lower-one {
    padding-bottom: 78px;
}

@media (max-width: 767.98px) {
    .donate-fab {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        min-height: 50px;
        padding: 0 20px 0 16px;
        font-size: 14px;
    }

    /* On phones the "back to top" circle sits in the opposite corner. */
    .prgoress_indicator {
        left: 14px;
        right: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media print {
    .donate-fab, .prgoress_indicator { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .donate-fab { transition: none; }
}

/* ── 4. Pages created in the admin area ──────────────────────────────── */

.page-header-section.has-banner {
    background-color: rgba(10, 16, 15, .46);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
}

.page-header-heading p.lead {
    max-width: 60ch !important;
    margin-top: 14px;
}

.cms-page {
    padding: 80px 0 100px;
}

.cms-content {
    max-width: 780px;
    margin: 0 auto;
    color: #2a3433;
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.cms-content > :first-child { margin-top: 0; }
.cms-content > :last-child { margin-bottom: 0; }

.cms-content h2 {
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.2;
    margin: 1.7em 0 .6em;
    color: #1b2429;
}

.cms-content h3 {
    font-size: clamp(21px, 2.2vw, 26px) !important;
    line-height: 1.25;
    margin: 1.5em 0 .5em;
    color: #1b2429;
}

.cms-content h3,
.cms-content h4 {
    font-weight: 600 !important;
}

.cms-content h4 {
    font-size: 20px !important;
    margin: 1.4em 0 .5em;
    color: #1b2429;
}

.cms-content p { margin: 0 0 1.15em; }

.cms-content a {
    color: #3f5e57;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-content a:hover { color: #1b2429; }

.cms-content ul,
.cms-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.cms-content ul li { list-style: disc; }
.cms-content ol li { list-style: decimal; }
.cms-content li { margin-bottom: .45em; }

.cms-content blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 4px solid #D1A97A;
    background: #faf6f0;
    border-radius: 0 10px 10px 0;
    font-size: 20px;
    color: #1b2429;
}

.cms-content blockquote p:last-child { margin-bottom: 0; }

.cms-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
    border-radius: 12px;
}

.cms-content hr {
    border: 0;
    border-top: 1px solid #dfe3df;
    margin: 2.2em 0;
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 16px;
}

.cms-content th,
.cms-content td {
    border: 1px solid #dfe3df;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.cms-content th { background: #f3f5f2; }

@media (max-width: 767.98px) {
    .cms-page { padding: 44px 0 60px; }
    .cms-content { font-size: 17px; }
    .cms-content table { display: block; overflow-x: auto; }
}

/* ── 5. Standard picture frames ──────────────────────────────────────── */

/* A frame keeps its shape whatever picture is put in it: the picture fills
   the frame and any overflow is cropped, never stretched. */
.media-frame {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #e7eae7;
    aspect-ratio: 3 / 2;
}

.media-frame picture { display: block; width: 100%; height: 100%; }

.media-frame img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.media-frame.is-wide { aspect-ratio: 16 / 9; }
.media-frame.is-square { aspect-ratio: 1 / 1; }

/* Home page service cards: the picture always fills the card. */
.service-image-two picture { display: block; height: 100%; }
.service-image-two img { display: block; object-position: center; }

/* ── 6. Projects, vacancies and blog posts (managed in the admin area) ── */

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-item .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 24px;
}

.portfolio-list-box .media-frame { margin: 0; }

.project-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #dfe3df;
}

.project-pager-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1b2429;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    text-decoration: none;
}

.project-pager-link small {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5c6968;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 3px;
}

.project-pager-link.is-next { justify-content: flex-end; text-align: right; }
.project-pager-link:hover { color: #56736C; }

.vacancy-list {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 46px auto 0;
}

.vacancy-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid #e0e4e0;
    border-left: 4px solid #D1A97A;
    border-radius: 12px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.vacancy-card:hover {
    box-shadow: 0 10px 28px rgba(27, 36, 41, .1);
    transform: translateY(-2px);
}

.vacancy-card-main { min-width: 0; }

.vacancy-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    margin: 0 0 10px;
}

.vacancy-title a { color: #1b2429; text-decoration: none; }
.vacancy-title a:hover { color: #56736C; }

.vacancy-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #4c5957;
    font-size: 15px;
}

.vacancy-facts i { color: #b8915f; margin-right: 6px; }

.vacancy-summary {
    margin: 12px 0 0;
    color: #3a4544;
    font-size: 16px !important;
    line-height: 1.6;
}

.vacancy-card-action { flex-shrink: 0; }

.vacancy-aside {
    background: #f6f7f5;
    border: 1px solid #e0e4e0;
    border-radius: 14px;
    padding: 26px 26px 22px;
    position: sticky;
    top: 110px;
}

.vacancy-aside h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 0 16px;
}

.vacancy-aside dl { margin: 0 0 20px; }

.vacancy-aside dt {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5c6968;
    margin-top: 12px;
}

.vacancy-aside dd { margin: 2px 0 0; font-size: 16px; color: #1b2429; }

.vacancy-actions { display: grid; gap: 10px; }
.vacancy-actions .btn { width: 100%; text-align: center; justify-content: center; }
.vacancy-back { margin: 18px 0 0; font-size: 15px !important; }
.vacancy-back a { color: #3f5e57; }

.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: #56736C; }
.blog-card-image picture, .blog-card-image a { display: block; height: 100%; }

.page-header-heading p.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-size: 17px !important;
    font-weight: 500 !important;
    opacity: .95;
}

.blog-post-author {
    margin: 34px 0 0;
    padding-top: 20px;
    border-top: 1px solid #dfe3df;
    color: #5c6968;
    font-size: 15px !important;
}

.blog-recent { list-style: none; margin: 0; padding: 0; }
.blog-recent li { padding: 12px 0; border-bottom: 1px solid #dfe3df; }
.blog-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-recent a { display: block; color: #1b2429; font-weight: 600; font-size: 16px; line-height: 1.35; text-decoration: none; }
.blog-recent a:hover { color: #56736C; }
.blog-recent small { color: #5c6968; font-size: 13.5px; }

@media (max-width: 767.98px) {
    .vacancy-card { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
    .vacancy-card-action, .vacancy-card-action .btn { width: 100%; }
    .vacancy-title { font-size: 21px !important; }
    .vacancy-aside { position: static; }
    .project-pager { grid-template-columns: 1fr; }
    .project-pager-link.is-next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
}

/* ── 7. Footer: one calm, consistent set of text sizes ──────────────────
   The site's global heading rules had inflated the footer (30px headings,
   24px paragraphs, 18px links with 30px gaps). These bring it back to a
   compact, readable scale and tighten the spacing to match.

     tagline            19px semibold
     column headings    13px capitals
     links and details  15px
     copyright / legal  13.5px
   ───────────────────────────────────────────────────────────────────── */

.main-footer footer.footer-one {
    padding-top: 72px;
}

.main-footer .footer-about-one {
    padding-right: clamp(0px, 4vw, 70px);
}

.main-footer .footer-logo-one {
    margin-bottom: 20px;
}

.main-footer .footer-logo-one img {
    height: 62px;
    width: auto;
}

.main-footer .footer-about-one h4 {
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.45;
    max-width: 30ch;
    margin: 0 0 12px;
    color: #1b2429;
}

.main-footer .footer-about-one p.lead,
.main-footer .footer-newslatter-one p.lead {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.65;
    max-width: 46ch;
    margin: 0 0 10px !important;
    color: #44514f;
}

.main-footer .footer-newslatter-one p.lead a {
    color: #2c3837;
}

.main-footer .footer-newslatter-one p.lead a:hover {
    color: #56736C;
}

.main-footer .footer-widget-one h4,
.main-footer .footer-newslatter-one h4 {
    font-family: var(--uniqo-body-font, "Inter", sans-serif);
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 6px 0 20px !important;
    color: #1b2429;
}

.main-footer .footer-widget-one {
    padding-left: clamp(0px, 3vw, 44px);
}

.main-footer ul.footer-menu-one li {
    column-gap: 10px;
    margin-bottom: 11px;
}

.main-footer ul.footer-menu-one li:last-child {
    margin-bottom: 0;
}

.main-footer ul.footer-menu-one li img {
    max-width: 16px;
    height: 16px;
    opacity: .55;
}

.main-footer ul.footer-menu-one li a {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.45;
    color: #2c3837;
}

.main-footer ul.footer-menu-one li a:hover {
    color: #56736C;
}

.main-footer .footer-newslatter-one .form-control {
    font-size: 15px;
    padding: 10px 30px 10px 0;
    margin-bottom: 20px;
}

.main-footer ul.footer-social-media-one {
    margin-bottom: 16px;
}

.main-footer .footer-lower-one {
    margin-top: 44px;
    padding-top: 20px;
    padding-bottom: 78px; /* room for the floating Donate button */
    row-gap: 8px;
}

.main-footer .footer-lower-one,
.main-footer .footer-lower-one p,
.main-footer .footer-lower-one p.lead,
.main-footer .footer-lower-one ul li,
.main-footer .footer-lower-one ul li a {
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.5;
    color: #44514f;
}

.main-footer .footer-lower-one ul {
    column-gap: 12px;
}

.main-footer .footer-lower-one ul li a:hover {
    color: #1b2429;
}

@media (max-width: 1199.98px) {
    /* The four columns stack into two rows: give the first block room below it. */
    .main-footer .footer-about-one { padding-right: 0; margin-bottom: 8px; }
    .main-footer .footer-widget-one { padding-left: 0; }
    .main-footer ul.footer-menu-one::after { display: none; }
}

@media (max-width: 767.98px) {
    .main-footer footer.footer-one { padding-top: 48px; }
    .main-footer .footer-about-one h4 { font-size: 18px !important; }
    .main-footer .footer-widget-one h4,
    .main-footer .footer-newslatter-one h4 { margin-bottom: 14px !important; }
    .main-footer .footer-lower-one { margin-top: 32px; }
}
