.directions-wrap__list .item.item--main {
    background: linear-gradient(135deg, #FFD84F 0%, #FFCE22 100%);
    color: #343C56;
    position: relative;
    padding: 24px;
    align-items: flex-start;
    justify-content: flex-end;
}

.directions-wrap__list .item.item--main::before {
    display: none;
}

.directions-wrap__list .item.item--main .item-title {
    color: #343C56;
    font-weight: 600;
    font-size: 24px;
}

.directions-wrap__list .item.item--main::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 31 31' fill='none'><path d='M7.83 7.55L22.93 7.55L22.93 22.65' stroke='%23343C56' stroke-width='2.46' stroke-linecap='round' stroke-linejoin='round'/><path d='M7.52 22.91L22.76 7.67' stroke='%23343C56' stroke-width='2.46' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
}


.footer-wrap__contacts--logo-text {
    display: flex;
    align-items: center;
}

.footer-wrap__contacts--logo-text img {
    display: none;
}

.footer-wrap__logo-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-wrap__logo-sun {
    width: 22px;
    height: 12px;
}


.header-wrap__languages {
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 999px;
    padding: 10px 22px;
    margin-right: 24px;
    flex-shrink: 0;
}

.header-wrap__languages .lang {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    text-transform: lowercase;
    text-decoration: none;
    padding: 0 8px;
    transition: opacity .2s ease;
    opacity: 0.55;
}

.header-wrap__languages .lang.active {
    opacity: 1;
}

.header-wrap__languages .lang-sep {
    color: #fff;
    opacity: 0.55;
    font-size: 15px;
    line-height: 1;
}

.results-wrap__list .item-title {
    white-space: break-spaces;
    margin-top: 0 !important;
}

.results-wrap__list .item-text {
    margin-top: 6px;
    line-height: 1.2;
}

.form-wrap__form {
    display: flex;
    flex-direction: column;
}

.form-wrap__form input,
.form-wrap__form textarea {
    margin-bottom: 32px;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
    outline: none;
    border-radius: 0;
    font-family: inherit;
}

.form-wrap__form textarea {
    resize: vertical;
    min-height: 60px;
}

.form-wrap__form input::placeholder,
.form-wrap__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.form-wrap__form input:focus,
.form-wrap__form textarea:focus {
    border-bottom-color: #fff;
}

.form-wrap__form button[type="submit"] {
    align-self: center;
    margin-top: 16px;
    background: #2047D2;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 16px 56px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s ease;
    font-family: inherit;
}

.form-wrap__form button[type="submit"]:hover {
    background: #1a3bb0;
}

.form-wrap__status {
    text-align: center;
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.form-wrap__status--success {
    background: rgba(46, 160, 67, 0.18);
    color: #1a5b27;
}

.form-wrap__status--error {
    background: rgba(220, 53, 69, 0.18);
    color: #7a1320;
}

.directions-partners__list .wrapper img,
.directions-partners__slider--list .wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.form-wrap .wpforms-field-html,
.form-wrap .wpforms-field-checkbox {
    display: none !important;
}

.form-wrap .wpforms-field-label.wpforms-label-hide {
    display: none !important;
}

.form-wrap .wpforms-form .wpforms-field-container {
    display: flex;
    flex-direction: column;
}

.form-wrap .wpforms-field {
    padding: 0;
    margin-bottom: 40px;
    border: 0;
    border-bottom: 2px solid #F1F7FF;
}

.form-wrap .wpforms-field-label,
.form-wrap .wpforms-field>label {
    color: #F1F7FF;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 6px;
    display: block;
}

.form-wrap .wpforms-required-label {
    display: none !important;
}

.form-wrap .wpforms-field input,
.form-wrap .wpforms-field textarea {
    width: 100%;
    border: 0;
    background: transparent;
    color: #F1F7FF;
    font-weight: 600;
    font-size: 18px;
    padding: 0;
    margin: 0 !important;
    margin-bottom: 15px !important;
    outline: none;
    box-shadow: none;
    font-family: inherit;
}

.form-wrap .wpforms-field textarea {
    resize: none;
    min-height: 24px;
}

.form-wrap .wpforms-field input::placeholder,
.form-wrap .wpforms-field textarea::placeholder {
    color: #F1F7FF;
    opacity: 1;
}

.form-wrap .wpforms-submit-container {
    text-align: center;
    margin-top: 32px;
    padding: 0;
}

.form-wrap .wpforms-error,
.form-wrap label.wpforms-error {
    color: #ff3b3b !important;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-wrap .wpforms-field.wpforms-has-error,
.form-wrap .wpforms-field input.wpforms-error,
.form-wrap .wpforms-field textarea.wpforms-error {
    border-bottom-color: #ff3b3b !important;
}

.form-wrap .wpforms-field input.wpforms-error::placeholder,
.form-wrap .wpforms-field textarea.wpforms-error::placeholder {
    color: #ff3b3b !important;
}

.form-wrap .wpforms-confirmation-container-full {
    color: #F1F7FF;
    text-align: center;
    padding: 16px 0;
}

/* Partners — fix large item overflow on mobile */
@media (max-width: 900px) {
    .directions-partners__slider--list .wrapper.large .item {
        width: 100%;
        overflow: hidden;
    }

    .directions-partners__slider--list .wrapper .item {
        overflow: hidden;
    }
}

/* ── Mobile Partners & Gallery: full-width, bigger ── */
@media (max-width: 550px) {

    /* Partners — full width, equal-height cards */
    .directions-partners__slider {
        max-width: calc(100% - 30px);
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 72px 72px;
        gap: 10px;
    }

    .directions-partners__slider--list .wrapper {
        height: 100%;
    }

    .directions-partners__slider--list .wrapper .item {
        padding: 10px 14px;
        height: 100%;
        box-sizing: border-box;
    }

    /* Gallery — fixed height on small screens */
    .gallery-wrap__list {
        aspect-ratio: unset;
        height: 320px;
    }
}

/* Gallery — 5-column masonry layout (7 photos), desktop only */
@media (min-width: 901px) {
    .gallery-wrap__list {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 15px;
        height: 430px;
    }

    .gallery-wrap__list .row {
        flex: 0 0 calc((100% - 4 * 15px) / 5);
        max-width: calc((100% - 4 * 15px) / 5);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 26px;
        height: 100%;
        transform: none;
    }

    .gallery-wrap__list .row img {
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
        display: block;
        flex-shrink: 0;
    }

    /* Col 1 & 5: 2 images stacked — tall + small */
    .gallery-wrap__list .row:nth-child(1) img:nth-child(1),
    .gallery-wrap__list .row:nth-child(5) img:nth-child(1) {
        height: 278px;
    }

    .gallery-wrap__list .row:nth-child(1) img:nth-child(2),
    .gallery-wrap__list .row:nth-child(5) img:nth-child(2) {
        height: 126px;
    }

    /* Col 2 & 4: single tall image, offset from top */
    .gallery-wrap__list .row:nth-child(2),
    .gallery-wrap__list .row:nth-child(4) {
        justify-content: flex-start;
        padding-top: 38px;
    }

    .gallery-wrap__list .row:nth-child(2) img,
    .gallery-wrap__list .row:nth-child(4) img {
        height: 392px;
    }

    /* Col 3: single medium image, offset lower */
    .gallery-wrap__list .row:nth-child(3) {
        justify-content: flex-start;
        padding-top: 154px;
    }

    .gallery-wrap__list .row:nth-child(3) img {
        height: 276px;
    }
}

/* ── Про нас у ЗМІ ── */
.media-press {
    padding: 80px 0 100px;
    background: #F1F7FF;
}

.media-press-wrap__title {
    font-size: 36px;
    font-weight: 700;
    color: #343C56;
    margin-bottom: 40px;
}

.media-press-wrap__table {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(52, 60, 86, 0.12);
}

.media-press-wrap__table--head {
    display: flex;
    background: #343C56;
    color: #F1F7FF;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 24px;
}

.media-press-wrap__table--body .row {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(52, 60, 86, 0.08);
    background: #fff;
    transition: background .15s ease;
}

.media-press-wrap__table--body .row:last-child {
    border-bottom: 0;
}

.media-press-wrap__table--body .row:nth-child(even) {
    background: #f8fbff;
}

.media-press-wrap__table--body .row:hover {
    background: #edf4ff;
}

.media-press-wrap__table .col {
    font-size: 14px;
    color: #343C56;
    line-height: 1.45;
    padding-right: 12px;
}

.media-press-wrap__table .col--year {
    flex: 0 0 7%;
    min-width: 7%;
    font-weight: 600;
}

.media-press-wrap__table .col--media {
    flex: 0 0 18%;
    min-width: 18%;
    font-weight: 500;
}

.media-press-wrap__table .col--title {
    flex: 1;
}

.media-press-wrap__table .col--type {
    flex: 0 0 16%;
    min-width: 16%;
    color: #5a6380;
}

.media-press-wrap__table .col--link {
    flex: 0 0 5%;
    min-width: 5%;
    padding-right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.media-press-wrap__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2047D2;
    color: #fff;
    transition: background .2s ease;
    flex-shrink: 0;
}

.media-press-wrap__link:hover {
    background: #1a3bb0;
}

@media (max-width: 900px) {
    .media-press-wrap__table--head {
        display: none;
    }

    .media-press-wrap__table--body .row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 14px 16px;
    }

    .media-press-wrap__table .col--year {
        flex: 0 0 auto;
        order: 1;
        font-size: 12px;
        color: #8090b5;
    }

    .media-press-wrap__table .col--type {
        flex: 0 0 auto;
        order: 2;
        font-size: 12px;
        color: #8090b5;
    }

    .media-press-wrap__table .col--media {
        flex: 0 0 100%;
        order: 3;
        font-size: 15px;
    }

    .media-press-wrap__table .col--title {
        flex: 0 0 100%;
        order: 4;
        font-size: 14px;
    }

    .media-press-wrap__table .col--link {
        flex: 0 0 100%;
        order: 5;
        justify-content: flex-start;
        margin-top: 4px;
    }
}

/* ── /Про нас у ЗМІ ── */

.js-news-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.js-news-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.js-news-more-btn .btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    animation: rwp-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes rwp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Article body links — inherit text color, underline only (skip download buttons) */
.article-wrap__content a:not(.wp-block-file__button) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-wrap__content a:not(.wp-block-file__button):hover {
    opacity: 0.75;
}

/* === Article body fix (root cause verified via live DOM, prostoneba article) ===

   The existing rule `.article-wrap__content p:has(> img:only-child) { line-height: 0 }`
   misfires on <p>text<img/></p>: CSS :only-child counts ELEMENT siblings only and
   ignores text nodes, so a paragraph that contains both text AND a single <img>
   element matches `> img:only-child`. It then gets line-height: 0 — and every line
   of the paragraph's text renders on top of the previous one, producing the
   visible "garbled" overlap. Fix: undo the line-height collapse, and style the
   image directly on the <img> (not via the <p> wrapper). */

/* Regular article paragraph — match Figma node 22:2418 (Artegra Sans Medium = 500) */
.article-wrap__content,
.article-wrap__content p {
    font-weight: 500;
}

.article-wrap__content p:has(> img) {
    line-height: 29px !important;
    margin: 60px 0 !important;
}

/* Image spacing: apply margin to <img> directly (don't rely on :only-child since
   it ignores text nodes and matches even mixed text+img paragraphs). */
.article-wrap__content p > img.size-large,
.article-wrap__content p > img.size-full,
.article-wrap__content p > img.alignnone,
.article-wrap__content p > img.aligncenter {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 35px;
    margin: 29px auto !important;
}

/* Separation between article body and the "Більше новин" section.
   style.min.css sets `.news-second .news-wrap { padding-top: 0 }`, snapping the
   "Більше новин" <h2> against the end of the article. */
.news.news-second {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    clear: both;
}

.news.news-second .news-wrap {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .news.news-second {
        margin-top: 40px;
    }
    .news.news-second .news-wrap {
        padding-top: 40px;
    }
    .article-wrap__content p:has(> img) {
        margin: 30px 0 !important;
    }
    .article-wrap__content p > img.size-large,
    .article-wrap__content p > img.size-full,
    .article-wrap__content p > img.alignnone,
    .article-wrap__content p > img.aligncenter {
        border-radius: 20px;
    }
}

/* Blockquote — Figma node 22:2351 (gradient pill, italic, no left bar) */
.article-wrap__content blockquote,
.article-wrap__content .wp-block-quote {
    margin: 0 0 29px;
    padding: 22px 62px;
    border: 0;
    border-radius: 35px;
    background: linear-gradient(90deg, #88c0ff 0%, rgba(198, 225, 255, 0) 100%);
    box-shadow: -3px 4px 42.8px 0 rgba(148, 185, 228, 0.03);
    color: #343c56;
    font-family: 'Artegra Sans', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 20px;
    line-height: 28px;
}

.article-wrap__content blockquote > *,
.article-wrap__content .wp-block-quote > * {
    margin: 0 0 14px;
}

.article-wrap__content blockquote > *:last-child,
.article-wrap__content .wp-block-quote > *:last-child {
    margin-bottom: 0;
}

.article-wrap__content blockquote p,
.article-wrap__content .wp-block-quote p {
    line-height: 28px;
    margin-bottom: 14px;
}

.article-wrap__content blockquote cite,
.article-wrap__content .wp-block-quote cite,
.article-wrap__content blockquote .wp-block-quote__citation,
.article-wrap__content .wp-block-quote .wp-block-quote__citation {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-style: normal;
    font-weight: 500;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .article-wrap__content blockquote,
    .article-wrap__content .wp-block-quote {
        padding: 18px 24px;
        border-radius: 24px;
        font-size: 16px;
        line-height: 24px;
    }

    .article-wrap__content blockquote p,
    .article-wrap__content .wp-block-quote p {
        line-height: 24px;
    }
}


/* ===== Task 1: Gallery img link hover ===== */
.gallery-wrap__list .row .gallery-img-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}
.gallery-wrap__list .row .gallery-img-link img {
    display: block;
    width: 100%;
    border-radius: 20px;
}
.gallery-wrap__list .row .gallery-img-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(265.07deg, #FFCE22 51.24%, rgba(255, 206, 34, 0) 100.55%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    border-radius: 20px;
}
.gallery-wrap__list .row .gallery-img-link:hover::after {
    opacity: 1;
}

/* ===== Task 2: Active state for projects type tabs (opacity-based) ===== */
.projects-wrap__top--type span {
    opacity: 0.6;
    transition: opacity .2s ease;
    color: inherit !important;
}
.projects-wrap__top--type span.active,
.projects-wrap__top--type span:hover {
    opacity: 1;
    color: inherit !important;
    background: transparent !important;
}

/* ===== Task 4: Header dropdown for Напрямки діяльності ===== */
.header-wrap__nav ul li.has-submenu {
    position: relative;
}
.header-wrap__nav ul li.has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.header-wrap__nav ul li.has-submenu > a .submenu-arrow {
    display: inline-flex;
    transition: transform .3s ease;
    line-height: 0;
}
.header-wrap__nav ul li.has-submenu:hover > a .submenu-arrow {
    transform: rotate(180deg);
}
.header-wrap__nav .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    width: max-content;
    max-width: 320px;
    margin: 18px 0 0 0;
    padding: 12px 0;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(32, 71, 208, 0.15);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    z-index: 200;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start !important;
}
.header-wrap__nav .submenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}
.header-wrap__nav ul li.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.header-wrap__nav .submenu li {
    width: 100%;
    margin: 0;
}
.header-wrap__nav .submenu a {
    display: block;
    padding: 10px 22px;
    color: #343C56 !important;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.header-wrap__nav .submenu a:hover {
    color: #2047D0 !important;
    background: rgba(241, 247, 255, 0.6);
}

/* Compact main menu so all items fit in one row */
.header-wrap__nav {
    padding: 5px 6px 5px 20px !important;
    gap: 16px !important;
    max-width: 1140px !important;
}
.header-wrap__nav > ul {
    gap: 18px !important;
    flex-wrap: nowrap !important;
    margin-right: 6px !important;
}
.header-wrap__nav > ul li {
    flex-shrink: 0;
}
.header-wrap__nav > ul li > a {
    font-size: 14px !important;
    line-height: 1.15;
    white-space: nowrap !important;
}
.header-wrap__nav .btn {
    min-height: 36px !important;
    min-width: 132px !important;
    max-width: 140px !important;
    font-size: 14px !important;
    padding: 4px 12px !important;
    margin-left: 8px !important;
    flex-shrink: 0;
}
@media (max-width: 1340px) {
    .header-wrap__flex {
        max-width: none !important;
    }
}

/* ===== Task 5: Mobile sticky header ===== */
@media (max-width: 1200px) {
    .header {
        position: fixed;
    }
}

/* Reset compact rules on mobile */
@media (max-width: 1200px) {
    .header-wrap__nav {
        padding: 57px 23px !important;
        gap: 0 !important;
    }
    .header-wrap__nav > ul {
        gap: 0 !important;
    }
    .header-wrap__nav > ul li > a {
        font-size: 16px !important;
        white-space: normal;
    }
}

/* Mobile dropdown — inline expand */
@media (max-width: 1200px) {
    .header-wrap__nav .submenu {
        position: static !important;
        transform: none !important;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease, visibility .3s;
        border-radius: 12px;
        min-width: 0;
        max-width: none;
        width: auto;
    }
    .header-wrap__nav .submenu::before {
        display: none;
    }
    .header-wrap__nav ul li.has-submenu.open .submenu {
        visibility: visible;
        pointer-events: auto;
        max-height: 600px;
        padding: 8px 0;
        margin-top: 8px;
    }
    .header-wrap__nav ul li.has-submenu:hover > a .submenu-arrow {
        transform: none;
    }
    .header-wrap__nav ul li.has-submenu.open > a .submenu-arrow {
        transform: rotate(180deg);
    }
    .header-wrap__nav .submenu a {
        color: #fff !important;
        padding: 8px 18px;
        font-size: 15px;
        white-space: normal;
        background: transparent !important;
    }
    .header-wrap__nav .submenu a:hover {
        color: #FFD446 !important;
        background: transparent !important;
    }
    /* Make sure menu items collapse vertically and submenu doesn't overlap */
    .header-wrap__nav ul li.has-submenu {
        display: block;
    }
}

/* ===== Task 6: Slick arrows — uniform sizing, side-by-side, no overlap ===== */
.slick-arrow svg {
    pointer-events: none;
}
.slick-arrow {
    cursor: pointer;
}
.slick-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10;
}
/* All arrows inside slick-nav-group: static positioning so flex actually lays them side-by-side. */
.slick-nav-group .slick-arrow {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 70px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    background-color: #073ad0;
    border-radius: 100px;
    transition: .3s;
    cursor: pointer;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.slick-nav-group .slick-arrow svg {
    width: 32px;
    height: 14px;
}
.slick-nav-group .slick-arrow.slick-disabled {
    opacity: 0.35;
    cursor: default;
}
.slick-nav-group .slick-arrow:not(.slick-disabled):hover {
    background-color: #FFCE22;
}
.team-wrap .slick-nav-group .slick-arrow {
    background-color: #b4d7ff;
}
.team-wrap .slick-nav-group {
    position: absolute;
    right: 40px;
    bottom: 15px;
    z-index: 10;
}
.news-wrap__top .slick-nav-group .slick-arrow {
    background-color: #b3d7ff;
}
.news-about .news-wrap__top .slick-nav-group {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 10;
}
/* "Focus areas" / how-wrap section — keep title centered, arrows pinned right */
.how-wrap__top {
    position: relative;
    justify-content: center;
}
.how-wrap__top .slick-nav-group {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
/* Mobile (≤1024px): how-wrap is unslicked — render as horizontal scroll
   so swipe just scrolls naturally, no slick layout glitches. */
@media (max-width: 1024px) {
    .how-wrap__top .slick-nav-group {
        display: none !important;
    }
    .how-wrap__list:not(.slick-initialized) {
        display: flex !important;
        overflow-x: auto;
        gap: 12px;
        padding: 0 15px 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .how-wrap__list:not(.slick-initialized)::-webkit-scrollbar {
        display: none;
    }
    .how-wrap__list:not(.slick-initialized) > * {
        flex: 0 0 80%;
        scroll-snap-align: start;
        width: auto !important;
    }
}
/* News listing sections — keep title centered, arrows pinned right (desktop) */
.news-wrap__top {
    position: relative;
}
@media (min-width: 901px) {
    .news-wrap__top {
        align-items: center;
    }
    .news-wrap__top .news-wrap__title {
        flex: 1;
        text-align: center;
        margin: 0;
    }
    .news-wrap__top .slick-nav-group {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}
/* Hide arrows entirely when there's no room (under 480px) — keep dots only */
@media (max-width: 480px) {
    .slick-nav-group {
        display: none !important;
    }
}

/* ===== Task 7: Disable hover on buttons and slick arrows for mobile ===== */
@media (max-width: 768px) {
    .btn:hover {
        color: inherit !important;
    }
    .btn:hover::before {
        left: -100% !important;
    }
    .btn:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .btn-primary:hover {
        color: #F1F7FF !important;
    }
    .slick-nav-group .slick-arrow:hover {
        background-color: #073ad0 !important;
    }
    .team-wrap .slick-nav-group .slick-arrow:hover {
        background-color: #b4d7ff !important;
    }
    .news-wrap__top .slick-nav-group .slick-arrow:hover {
        background-color: #b3d7ff !important;
    }
    .directions-partners__slider--next:hover {
        background-color: #94c6ff !important;
    }
    .gallery-wrap__list .row .gallery-img-link:hover::after {
        opacity: 0;
    }
    .header-wrap__languages:hover {
        background: inherit !important;
    }
    .projects-wrap__top--categories span:hover {
        background-color: inherit !important;
    }
}

/* ===== Task 8: Sticky modal close button ===== */
.modal-wrap__project--content {
    position: relative;
}
.modal-wrap__project--content-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: inherit;
    padding-top: 8px;
}
@media (max-width: 768px) {
    .modal-wrap__project--content-top_close.modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        background: rgba(32, 71, 208, 0.85);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }
}

/* ===== Gallery hover: 'Читати більше' button ===== */
.gallery-wrap__list .row .gallery-img-link__btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    background: #2047D0;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 12px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 2;
}
.gallery-wrap__list .row .gallery-img-link:hover .gallery-img-link__btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 768px) {
    .gallery-wrap__list .row .gallery-img-link__btn {
        display: none;
    }
}

/* ===== Modal-documents sticky close ===== */
.modal-documents .modal-wrap {
    position: relative;
}
.modal-documents .modal-wrap__close.modal-close {
    position: sticky;
    top: 12px;
    margin-left: auto;
    z-index: 10;
}
@media (max-width: 768px) {
    .modal-documents .modal-wrap__close.modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        background: #fff;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
    }
}

/* ===== Gallery mobile — 3-column masonry per Figma (no slider) ===== */
@media (max-width: 900px) {
    .gallery-wrap__list,
    .gallery-wrap__list .row,
    .gallery-wrap__list .row .gallery-img-link,
    .gallery-wrap__list .row .gallery-img-link img,
    .gallery-wrap__list .slick-list,
    .gallery-wrap__list .slick-track,
    .gallery-wrap__list .slick-slide {
        transform: none !important;
        zoom: 1 !important;
        scale: none !important;
    }
    .gallery-wrap__list .row .gallery-img-link::after {
        display: none;
    }
    /* Always render as static grid even when slick wrapped it */
    .gallery-wrap__list,
    .gallery-wrap__list.slick-initialized {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px !important;
        padding: 0 15px !important;
        height: auto !important;
        aspect-ratio: unset !important;
        overflow: visible !important;
    }
    .gallery-wrap__list .slick-list,
    .gallery-wrap__list .slick-track {
        display: contents !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
    }
    .gallery-wrap__list .slick-slide,
    .gallery-wrap__list .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }
    /* Reorder: row 1 (2-images) → center column, rows 2+3 → outer columns; hide rows 4+5 */
    .gallery-wrap__list .row:nth-child(1) { order: 2 !important; }
    .gallery-wrap__list .row:nth-child(2) { order: 1 !important; }
    .gallery-wrap__list .row:nth-child(3) { order: 3 !important; }
    .gallery-wrap__list .row:nth-child(4),
    .gallery-wrap__list .row:nth-child(5) { display: none !important; }
    .gallery-wrap__list .row .gallery-img-link {
        margin: 0 !important;
        display: block;
        width: 100%;
    }
    .gallery-wrap__list .row .gallery-img-link img {
        height: auto !important;
        width: 100% !important;
        object-fit: cover;
        aspect-ratio: 5 / 13;
        border-radius: 14px;
    }
    /* Center column (row 1) — 2 stacked images per Figma */
    .gallery-wrap__list .row:nth-child(1) .gallery-img-link:nth-child(1) img {
        aspect-ratio: 2 / 3;
    }
    .gallery-wrap__list .row:nth-child(1) .gallery-img-link:nth-child(2) img {
        aspect-ratio: 1 / 1;
    }
}

/* ===== Form submit button styled as .btn (UK form fix) ===== */
.form-wrap .wpforms-submit,
.form-wrap button[type="submit"],
.form-wrap input[type="submit"] {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-width: 249px;
    min-height: 62px;
    padding: 7px 28px;
    border: 0;
    border-radius: 47px;
    background: radial-gradient(50% 147.32% at 50% 50%, #FFCE22 0%, #FFE487 100%);
    color: #343C56 !important;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
    font-family: inherit;
    text-align: center;
    line-height: 1.2;
}
.form-wrap .wpforms-submit:hover,
.form-wrap button[type="submit"]:hover,
.form-wrap input[type="submit"]:hover {
    background: radial-gradient(50% 147.32% at 50% 50%, #2047D0 0%, #5276F7 100%);
    color: #fff !important;
}

/* Hero glass effect */
.hero-wrap {
  background: transparent;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(98px);
  -webkit-backdrop-filter: blur(98px);
  z-index: 0;
}

.hero-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(234, 243, 255, 0.5);
  mix-blend-mode: soft-light;
  z-index: 1;
}

.hero-wrap__title,
.hero-wrap__content {
  position: relative;
  z-index: 2;
}

/* Glass effect — news cards */
.item-content {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.item-content::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(98px);
  -webkit-backdrop-filter: blur(98px);
  z-index: 0;
}

.item-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(234, 243, 255, 0.5);
  mix-blend-mode: soft-light;
  z-index: 1;
}

.item-content > * {
  position: relative;
  z-index: 2;
}

/* Glass effect — direction article wrap */
.direction-wrap {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.direction-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(98px);
  -webkit-backdrop-filter: blur(98px);
  z-index: 0;
}

.direction-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(234, 243, 255, 0.5);
  mix-blend-mode: soft-light;
  z-index: 1;
}

.direction-wrap > * {
  position: relative;
  z-index: 2;
}

/* Glass effect — article top flex (dark frosted glass) */
.article-wrap__top--flex {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
}

.article-wrap__top--flex::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(98px);
  -webkit-backdrop-filter: blur(98px);
  z-index: 0;
  pointer-events: none;
}

.article-wrap__top--flex::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(52, 60, 86, 0.6);
  mix-blend-mode: normal;
  z-index: 1;
  pointer-events: none;
}

.article-wrap__top--flex > * {
  position: relative;
  z-index: 2;
}

/* News cards — semi-transparent overlay for text readability */
.news-wrap__list .item-content::before {
  display: none;
}

.news-wrap__list .item-content::after {
  background: rgba(52, 60, 86, 0.55);
  mix-blend-mode: normal;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   ===== FIXES 2026-05-04 (per user request) ==================
   ============================================================ */

/* Task 1 — Language switcher: per-item hover only, no whole-block hover */
.header-wrap__languages:hover {
    background: url('../img/main/bg-header.png') no-repeat center center / cover !important;
}
.header-second .header-wrap__languages:hover { background: #99c8ff !important; }
.header-third .header-wrap__languages:hover { background: rgba(122, 155, 173, 0.75) !important; }
.header-wrap__languages .lang {
    transition: color .2s ease, opacity .2s ease;
}
.header-wrap__languages .lang:hover {
    color: #FFCE22 !important;
    opacity: 1;
}

/* Task 2 — News card glass effect per Figma 22:977 (blur 98px + soft-light overlay) */
.news-wrap__list .item-content {
    position: relative;
    overflow: hidden;
    background: transparent;
}
.news-wrap__list .item-content::before {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    backdrop-filter: blur(98px) !important;
    -webkit-backdrop-filter: blur(98px) !important;
    z-index: 0 !important;
    background: none !important;
}
.news-wrap__list .item-content::after {
    background: rgba(234, 243, 255, 0.5) !important;
    mix-blend-mode: soft-light !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.news-wrap__list .item-content > * {
    position: relative;
    z-index: 2;
}

/* Task 3 — Gallery image-link hover gradient: bottom-up direction */
.gallery-wrap__list .row .gallery-img-link::after {
    background: linear-gradient(0deg, #FFCE22 51.24%, rgba(255, 206, 34, 0) 100.55%) !important;
}

/* Task 5 — Active/Completed projects type tabs: opacity 1, active = yellow, no extra right padding */
.projects-wrap__top--type {
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.projects-wrap__top .projects-wrap__top--type span,
.projects-wrap__top--type span {
    opacity: 1 !important;
    color: #F1F7FF !important;
    background: transparent !important;
    transition: color .2s ease;
}
.projects-wrap__top .projects-wrap__top--type span:hover,
.projects-wrap__top--type span:hover {
    color: #FFCE22 !important;
    opacity: 1 !important;
}
.projects-wrap__top .projects-wrap__top--type span.active,
.projects-wrap__top--type span.active {
    color: #FFCE22 !important;
    opacity: 1 !important;
    background: transparent !important;
}

/* Task 6 — Mobile button click feedback: colored shadow on :active */
@media (max-width: 768px) {
    .btn { -webkit-tap-highlight-color: transparent; }
    .btn:active { box-shadow: 0 0 0 4px rgba(255, 206, 34, 0.45) !important; }
    .btn-primary:active { box-shadow: 0 0 0 4px rgba(32, 71, 208, 0.45) !important; }
    .btn-more:active { box-shadow: 0 0 0 4px rgba(185, 213, 252, 0.55) !important; }
    .slick-arrow:active { box-shadow: 0 0 0 4px rgba(7, 58, 208, 0.45) !important; }
    .slick-nav-group .slick-arrow:active { box-shadow: 0 0 0 4px rgba(7, 58, 208, 0.45) !important; }
}

/* Task 7 — Slick arrows split: prev to LEFT, next to RIGHT of block container */
.how-wrap__top,
.news-wrap__top,
.team-wrap,
.news-about .news-wrap__top {
    position: relative;
}
.how-wrap__top .slick-nav-group,
.news-wrap__top .slick-nav-group,
.team-wrap .slick-nav-group,
.news-about .news-wrap__top .slick-nav-group {
    display: contents !important;
}
.how-wrap__top .slick-nav-group .slick-arrow--prev,
.news-wrap__top .slick-nav-group .slick-arrow--prev,
.team-wrap .slick-nav-group .slick-arrow--prev,
.news-about .news-wrap__top .slick-nav-group .slick-arrow--prev {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}
.how-wrap__top .slick-nav-group .slick-arrow:not(.slick-arrow--prev),
.news-wrap__top .slick-nav-group .slick-arrow:not(.slick-arrow--prev),
.team-wrap .slick-nav-group .slick-arrow:not(.slick-arrow--prev),
.news-about .news-wrap__top .slick-nav-group .slick-arrow:not(.slick-arrow--prev) {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}
@media (max-width: 480px) {
    .how-wrap__top .slick-nav-group .slick-arrow,
    .news-wrap__top .slick-nav-group .slick-arrow,
    .team-wrap .slick-nav-group .slick-arrow,
    .news-about .news-wrap__top .slick-nav-group .slick-arrow {
        display: none !important;
    }
}


/* ============================================================
   ===== FIXES round 2 (2026-05-04) ===========================
   ============================================================ */

/* Task 2 v2 — News card glass effect: stronger frost + readable text.
   The previous mix-blend-mode soft-light + light tint left text washed out
   on light photos. Apply backdrop-filter directly on .item-content with
   a darker tinted overlay so text always has contrast. */
.news-wrap__list .item-content {
    position: relative !important;
    overflow: hidden !important;
    background: rgba(52, 60, 86, 0.35) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.05) !important;
    backdrop-filter: blur(20px) saturate(1.05) !important;
    isolation: isolate;
}
.news-wrap__list .item-content::before {
    display: none !important;
}
.news-wrap__list .item-content::after {
    display: none !important;
}
.news-wrap__list .item-content > * {
    position: relative;
    z-index: 2;
}
.news-wrap__list .item-content,
.news-wrap__list .item-content * {
    color: #F1F7FF;
}

/* Task 7 v2 — split slick arrows for ALL slick-nav-group, regardless of
   parent. Generalizes earlier fix that only covered specific wrappers. */
.slick-nav-group {
    display: contents !important;
}
.slick-nav-group .slick-arrow--prev {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}
.slick-nav-group .slick-arrow:not(.slick-arrow--prev) {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}
/* Make typical slider parents the positioning context for the split arrows. */
.history-wrap, .history-wrap__list,
.team-wrap, .team-wrap__list,
.how-wrap__top, .how-wrap,
.news-wrap__top, .news-wrap,
.media-wrap, .media-wrap__list,
.partners-wrap, .partners-wrap__list,
.directions-partners__slider {
    position: relative;
}
@media (max-width: 480px) {
    .slick-nav-group .slick-arrow {
        display: none !important;
    }
}

/* Logo hover — indicate clickability */
.header-wrap__logo {
    transition: transform .25s ease, box-shadow .25s ease;
}
.header-wrap__logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(32, 71, 208, 0.35);
}
.footer-wrap__contacts--logo,
.footer-wrap__contacts--logo a,
.footer-wrap__logo,
.footer-wrap__logo-name {
    transition: opacity .25s ease, transform .25s ease;
}
.footer-wrap__contacts--logo:hover,
.footer-wrap__contacts--logo a:hover,
a.footer-wrap__logo:hover,
.footer-wrap__logo:hover,
.footer-wrap__logo-name:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}


/* ============================================================
   ===== Mobile button click feedback v2 =======================
   ============================================================ */
/* Use a JS-driven .is-pressed class via touchstart/touchend so the
   feedback is visible during the entire tap, not just the brief
   :active window which iOS Safari often skips on link taps. */
@media (max-width: 1024px) {
    .btn,
    .slick-arrow {
        -webkit-tap-highlight-color: transparent;
        transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    }
    .btn:active,
    .btn.is-pressed {
        transform: scale(0.96) !important;
        box-shadow: 0 0 0 6px rgba(255, 206, 34, 0.55), 0 6px 18px rgba(255, 206, 34, 0.45) !important;
        filter: brightness(0.94);
    }
    .btn-primary:active,
    .btn-primary.is-pressed {
        box-shadow: 0 0 0 6px rgba(32, 71, 208, 0.45), 0 6px 18px rgba(32, 71, 208, 0.45) !important;
    }
    .btn-more:active,
    .btn-more.is-pressed {
        box-shadow: 0 0 0 6px rgba(185, 213, 252, 0.7), 0 6px 18px rgba(185, 213, 252, 0.55) !important;
    }
    .slick-arrow:active,
    .slick-arrow.is-pressed {
        transform: scale(0.92) !important;
        box-shadow: 0 0 0 6px rgba(7, 58, 208, 0.45), 0 4px 14px rgba(7, 58, 208, 0.45) !important;
    }
}


/* ============================================================
   ===== FIXES round 3 (2026-05-04) ===========================
   ============================================================ */

/* Slick arrows: split to opposite ends of the slider area, at the dots level (bottom).
   Replaces earlier display:contents approach which placed arrows in arbitrary spots. */
.history-wrap, .history-wrap__list,
.team-wrap, .team-wrap__list,
.gallery-wrap, .gallery-wrap__list {
    position: relative;
}
.history-wrap .slick-nav-group,
.team-wrap .slick-nav-group,
.gallery-wrap .slick-nav-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -10px !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    pointer-events: none;
    padding: 0 8px;
    z-index: 10;
}
.history-wrap .slick-nav-group .slick-arrow,
.team-wrap .slick-nav-group .slick-arrow,
.gallery-wrap .slick-nav-group .slick-arrow {
    position: static !important;
    transform: none !important;
    pointer-events: auto;
    flex: 0 0 auto;
}

/* Header-row sliders (news/how) keep header positioning split — prev to far left of the
   header row, next to far right (between/around the title). */
.how-wrap__top,
.news-wrap__top {
    position: relative;
}
.how-wrap__top .slick-nav-group,
.news-wrap__top .slick-nav-group {
    display: contents !important;
}
.how-wrap__top .slick-nav-group .slick-arrow--prev,
.news-wrap__top .slick-nav-group .slick-arrow--prev {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}
.how-wrap__top .slick-nav-group .slick-arrow:not(.slick-arrow--prev),
.news-wrap__top .slick-nav-group .slick-arrow:not(.slick-arrow--prev) {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}

@media (max-width: 480px) {
    .slick-nav-group .slick-arrow {
        display: none !important;
    }
}

/* Mobile button click feedback — ensure CSS rules can be triggered by JS .is-pressed. */
@media (max-width: 1024px) {
    a.btn.is-pressed,
    button.btn.is-pressed,
    .btn.is-pressed {
        transform: scale(0.96) !important;
        box-shadow: 0 0 0 6px rgba(255, 206, 34, 0.55), 0 6px 18px rgba(255, 206, 34, 0.45) !important;
        filter: brightness(0.94);
    }
    a.btn-primary.is-pressed,
    .btn-primary.is-pressed {
        box-shadow: 0 0 0 6px rgba(32, 71, 208, 0.45), 0 6px 18px rgba(32, 71, 208, 0.45) !important;
    }
    .slick-arrow.is-pressed {
        transform: scale(0.92) !important;
        box-shadow: 0 0 0 6px rgba(7, 58, 208, 0.45), 0 4px 14px rgba(7, 58, 208, 0.45) !important;
    }
}


/* ============================================================
   ===== FIXES round 4 — slick arrows clip fix ================
   ============================================================ */
/* Anchor arrow positioning to the wrap (constrained by .container)
   instead of the inner __list (which slick widens beyond container). */
.history-wrap__list,
.team-wrap__list,
.gallery-wrap__list {
    position: static !important;
}
.history-wrap .slick-nav-group,
.team-wrap .slick-nav-group,
.gallery-wrap .slick-nav-group {
    /* relative to .history-wrap (already position:relative) */
    left: 8px !important;
    right: 8px !important;
}


/* ============================================================
   ===== FIXES round 5 — slick arrows position alongside dots =
   ============================================================ */
/* Center the nav-group at the dots, with arrows tightly grouped on left/right of dots. */
.history-wrap .slick-nav-group,
.team-wrap .slick-nav-group,
.gallery-wrap .slick-nav-group {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: clamp(220px, 40%, 360px);
    gap: 24px;
    padding: 0 !important;
    bottom: -8px !important;
}


/* ===== FIXES round 6b — only history-wrap arrows split, leave team/gallery alone ===== */
.history-wrap .slick-nav-group {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    padding: 0 16px !important;
    gap: 0 !important;
    bottom: -8px !important;
    justify-content: space-between !important;
}
/* Revert team-wrap and gallery-wrap to default original behaviour.
   Stop our earlier round-3/round-4 overrides from applying. */
.team-wrap .slick-nav-group,
.gallery-wrap .slick-nav-group {
    position: absolute !important;
    display: inline-flex !important;
    width: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    left: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    transform: none !important;
}
.team-wrap .slick-nav-group {
    right: 40px !important;
    bottom: 15px !important;
}
/* gallery: no special positioning, fallback to default flow */
.gallery-wrap .slick-nav-group {
    position: relative !important;
    margin: 16px auto 0 !important;
    right: auto !important;
}
.team-wrap .slick-nav-group .slick-arrow,
.gallery-wrap .slick-nav-group .slick-arrow {
    position: static !important;
    width: 70px !important;
    height: 40px !important;
    transform: none !important;
}


/* ===== FIXES round 7 — lift history arrows up, split team-wrap arrows ===== */
/* History — pull arrows above the bottom edge of .history-wrap (no overflow). */
.history-wrap .slick-nav-group {
    bottom: 24px !important;
}
/* Team — apply the same edge-split pattern as history-wrap. */
.team-wrap {
    position: relative;
    padding-bottom: 80px;
}
.team-wrap .slick-nav-group {
    position: absolute !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 24px !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    padding: 0 16px !important;
    gap: 0 !important;
    z-index: 10;
}
.team-wrap .slick-nav-group .slick-arrow {
    position: static !important;
    width: 70px !important;
    height: 40px !important;
    transform: none !important;
    flex: 0 0 auto;
}


.footer-wrap__nav .footer-submenu {
  display: none !important;
}



/* Single news: direction-style hero content without inner breadcrumbs. */
.article-wrap__direction .direction-wrap__flex {
    margin-top: 0;
}



/* Reduce article-wrap top padding by half (was 238px in style.min.css) */
.article-wrap {
    padding-top: 119px;
}

/* Project modal: image stretches to match content height */
.modal-wrap__project--image {
    max-height: none;
    overflow: hidden;
    border-radius: 30px;
}

.modal-wrap__project--image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}




/* Direction taxonomy: projects section top spacing */
.news.news-second.news-projects {
    padding-top: 90px;
    margin-top: 0;
}

.news.news-second.news-projects .news-wrap {
    padding-top: 0;
}

/* VOLUNTEERS GRID — uniform 5-row layout (3-4-3-4-3), title clearance +130px */

.volunteers-wrap { height: 1280px; overflow: visible; }
.volunteers-wrap__list { height: 1280px; }
.volunteers-wrap__list .item--1  { left: 180px; top: 230px; }
.volunteers-wrap__list .item--2  { left: 556px; top: 200px; }
.volunteers-wrap__list .item--3  { left: 878px; top: 220px; }
.volunteers-wrap__list .item--4  { left:  30px; top: 430px; }
.volunteers-wrap__list .item--5  { left: 355px; top: 400px; }
.volunteers-wrap__list .item--6  { left: 710px; top: 420px; }
.volunteers-wrap__list .item--7  { left:1060px; top: 400px; }
.volunteers-wrap__list .item--8  { left: 180px; top: 610px; }
.volunteers-wrap__list .item--9  { left: 540px; top: 580px; }
.volunteers-wrap__list .item--10 { left: 900px; top: 600px; }
.volunteers-wrap__list .item--11 { left:  30px; top: 810px; }
.volunteers-wrap__list .item--12 { left: 355px; top: 780px; }
.volunteers-wrap__list .item--13 { left: 710px; top: 800px; }
.volunteers-wrap__list .item--14 { left:1060px; top: 780px; }
.volunteers-wrap__list .item--15 { left: 200px; top: 990px; }
.volunteers-wrap__list .item--16 { left: 540px; top: 970px; }
.volunteers-wrap__list .item--17 { left: 900px; top: 990px; }
.volunteers-wrap__heart--1 { width:  97px; height:  89px; left: 460px; top: 365px; }
.volunteers-wrap__heart--2 { width:  80px; height:  73px; left: 855px; top: 710px; }
.volunteers-wrap__heart--3 { width: 128px; height: 117px; left: 455px; top: 950px; }

@media (max-width: 1300px) {
  .volunteers-wrap { height: 1160px; }
  .volunteers-wrap__list { height: 1160px; }
  .volunteers-wrap__list .item { width: 207px; height: 207px; }
  .volunteers-wrap__list .item--1  { left: 163px; top: 208px; }
  .volunteers-wrap__list .item--2  { left: 502px; top: 181px; }
  .volunteers-wrap__list .item--3  { left: 842px; top: 199px; }
  .volunteers-wrap__list .item--4  { left:  27px; top: 388px; }
  .volunteers-wrap__list .item--5  { left: 321px; top: 361px; }
  .volunteers-wrap__list .item--6  { left: 641px; top: 379px; }
  .volunteers-wrap__list .item--7  { left: 957px; top: 361px; }
  .volunteers-wrap__list .item--8  { left: 163px; top: 551px; }
  .volunteers-wrap__list .item--9  { left: 488px; top: 524px; }
  .volunteers-wrap__list .item--10 { left: 813px; top: 542px; }
  .volunteers-wrap__list .item--11 { left:  27px; top: 732px; }
  .volunteers-wrap__list .item--12 { left: 321px; top: 705px; }
  .volunteers-wrap__list .item--13 { left: 641px; top: 723px; }
  .volunteers-wrap__list .item--14 { left: 957px; top: 705px; }
  .volunteers-wrap__list .item--15 { left: 181px; top: 894px; }
  .volunteers-wrap__list .item--16 { left: 488px; top: 876px; }
  .volunteers-wrap__list .item--17 { left: 813px; top: 894px; }
  .volunteers-wrap__heart--1 { width:  88px; height:  80px; left: 416px; top: 330px; }
  .volunteers-wrap__heart--2 { width:  72px; height:  66px; left: 772px; top: 641px; }
  .volunteers-wrap__heart--3 { width: 116px; height: 106px; left: 411px; top: 858px; }
}

@media (max-width: 1100px) {
  .volunteers-wrap { height: 978px; }
  .volunteers-wrap__list { height: 978px; }
  .volunteers-wrap__list .item { width: 175px; height: 175px; }
  .volunteers-wrap__list .item--1  { left: 138px; top: 176px; }
  .volunteers-wrap__list .item--2  { left: 425px; top: 153px; }
  .volunteers-wrap__list .item--3  { left: 712px; top: 168px; }
  .volunteers-wrap__list .item--4  { left:  23px; top: 329px; }
  .volunteers-wrap__list .item--5  { left: 271px; top: 306px; }
  .volunteers-wrap__list .item--6  { left: 542px; top: 321px; }
  .volunteers-wrap__list .item--7  { left: 810px; top: 306px; }
  .volunteers-wrap__list .item--8  { left: 138px; top: 466px; }
  .volunteers-wrap__list .item--9  { left: 413px; top: 443px; }
  .volunteers-wrap__list .item--10 { left: 688px; top: 458px; }
  .volunteers-wrap__list .item--11 { left:  23px; top: 619px; }
  .volunteers-wrap__list .item--12 { left: 271px; top: 596px; }
  .volunteers-wrap__list .item--13 { left: 542px; top: 611px; }
  .volunteers-wrap__list .item--14 { left: 810px; top: 596px; }
  .volunteers-wrap__list .item--15 { left: 153px; top: 756px; }
  .volunteers-wrap__list .item--16 { left: 413px; top: 741px; }
  .volunteers-wrap__list .item--17 { left: 688px; top: 756px; }
  .volunteers-wrap__heart--1 { width:  74px; height:  68px; left: 352px; top: 279px; }
  .volunteers-wrap__heart--2 { width:  61px; height:  56px; left: 653px; top: 543px; }
  .volunteers-wrap__heart--3 { width:  98px; height:  89px; left: 348px; top: 726px; }
}

@media (max-width: 900px) {
  .volunteers-wrap { height: 930px; }
  .volunteers-wrap__list { height: 930px; }
  .volunteers-wrap__list .item { width: 165px; height: 165px; }
  .volunteers-wrap__list .item--1  { left: 100px; top: 160px; display: block; }
  .volunteers-wrap__list .item--2  { left: 550px; top: 140px; display: block; }
  .volunteers-wrap__list .item--3  { left:  60px; top: 340px; display: block; }
  .volunteers-wrap__list .item--4  { left: 520px; top: 320px; display: block; }
  .volunteers-wrap__list .item--5  { left: 100px; top: 520px; display: block; }
  .volunteers-wrap__list .item--6  { left: 550px; top: 500px; display: block; }
  .volunteers-wrap__list .item--7  { left:  60px; top: 700px; display: block; }
  .volunteers-wrap__list .item--8  { left: 520px; top: 680px; display: block; }
  .volunteers-wrap__list .item--9  { display: none; }
  .volunteers-wrap__list .item--10 { display: none; }
  .volunteers-wrap__list .item--11 { display: none; }
  .volunteers-wrap__list .item--12 { display: none; }
  .volunteers-wrap__list .item--13 { display: none; }
  .volunteers-wrap__list .item--14 { display: none; }
  .volunteers-wrap__list .item--15 { display: none; }
  .volunteers-wrap__list .item--16 { display: none; }
  .volunteers-wrap__list .item--17 { display: none; }
  .volunteers-wrap__heart--1 { width:  62px; height:  57px; left: 380px; top: 280px; }
  .volunteers-wrap__heart--2 { width:  51px; height:  47px; left: 380px; top: 490px; }
  .volunteers-wrap__heart--3 { display: none; }
}

@media (max-width: 550px) {
  .volunteers-wrap { height: 660px; }
  .volunteers-wrap__list { height: 660px; }
  .volunteers-wrap__list .item { width: 130px; height: 130px; }
  .volunteers-wrap__list .item--1  { left:  70px; top: 140px; display: block; }
  .volunteers-wrap__list .item--2  { left: 195px; top: 110px; display: block; }
  .volunteers-wrap__list .item--3  { left:  10px; top: 250px; display: block; }
  .volunteers-wrap__list .item--4  { left: 180px; top: 240px; display: block; }
  .volunteers-wrap__list .item--5  { left:  70px; top: 370px; display: block; }
  .volunteers-wrap__list .item--6  { left: 200px; top: 360px; display: block; }
  .volunteers-wrap__list .item--7  { left:  15px; top: 490px; display: block; }
  .volunteers-wrap__list .item--8  { left: 185px; top: 480px; display: block; }
  .volunteers-wrap__list .item--9  { display: none; }
  .volunteers-wrap__list .item--10 { display: none; }
  .volunteers-wrap__list .item--11 { display: none; }
  .volunteers-wrap__list .item--12 { display: none; }
  .volunteers-wrap__list .item--13 { display: none; }
  .volunteers-wrap__list .item--14 { display: none; }
  .volunteers-wrap__list .item--15 { display: none; }
  .volunteers-wrap__list .item--16 { display: none; }
  .volunteers-wrap__list .item--17 { display: none; }
  .volunteers-wrap__heart--1 { width: 40px; height: 37px; left: 160px; top: 355px; }
  .volunteers-wrap__heart--2 { width: 33px; height: 30px; left: 158px; top: 473px; }
  .volunteers-wrap__heart--3 { display: none; }
}
