/* Layout fixes (2026-09). Loaded after main.css on every page. */

/* Language dropdown was clipped by `.container { overflow-x: hidden }` from style.css */
#header .container {
    overflow: visible;
}

@media (max-width: 767px) {
    .dropdown-content {
        left: auto;
        right: 0;
        transform: none;
        max-width: calc(100vw - 30px);
    }
}

/* Hero: links were dark blue on a dark photo */
.banner-content a:not(.primary-btn) {
    color: #fab700;
    text-decoration: underline;
}

/* Home hero on phones: keep the text below the flags strip of the background image */
@media (max-width: 767px) {
    .banner-content {
        margin-top: 45%;
    }
}

/* Consultation block on phones: style.css removed the row's negative margins,
   so this block was indented twice as much as the rest of the page */
@media (max-width: 767px) {
    .home-about-area .container > .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
    }
    .home-about-area .home-about-right {
        margin: 0 15px;
        width: auto !important;
        max-width: calc(100% - 30px);
        padding: 0 !important;
    }
}

/* Footer: payment logos in their own column instead of a float that wrapped to a second line */
.footer-area .row {
    align-items: center;
    flex-wrap: wrap;
}

.pay_logs {
    zoom: normal;
    -moz-transform: none;
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 16px;
    padding: 20px 0;
}

.pay_logs_img {
    height: 32px;
    width: auto;
    margin: 0;
}

@media (max-width: 767px) {
    .footer-area .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .footer-area .single-footer-widget {
        margin-bottom: 0;
    }
    .pay_logs {
        justify-content: flex-start;
        gap: 12px 18px;
        padding-top: 10px;
    }
    .pay_logs_img {
        height: 28px;
    }
}

/* Text pages with floated pictures (water purification) */
.cat-area h5 {
    clear: both;
    padding-top: 10px;
}

.leftimg {
    margin: 4px 20px 12px 0;
    max-width: 100%;
    height: auto;
}

.cat-area .container::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 575px) {
    .leftimg,
    .rightimg {
        float: none;
        display: block;
        width: 100%;
        height: auto;
        margin: 8px 0 12px;
    }
}

/* Details / donate: requisites blocks */
.requisites {
    margin-bottom: 18px;
}

.requisites h6 {
    margin-bottom: 4px;
}

.requisites .alert-success {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 3px;
    word-break: break-all;
}

/* Donate form: label column was too narrow on phones */
@media (max-width: 575px) {
    .cat-area form table,
    .cat-area form tbody,
    .cat-area form tr,
    .cat-area form td {
        display: block;
        width: 100% !important;
    }
    .cat-area form td:first-child {
        padding-top: 10px;
    }
}

/* News feed */
.news-item {
    padding: 22px 0;
    border-bottom: 1px solid #eee;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item h5 {
    clear: none;
    padding-top: 0;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-item h5 a {
    color: #222;
}

.news-item h5 a:hover {
    color: #639143;
}

.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
