/*
 * MRG Foundation brand palette
 * Derived from the logo: orange (primary), brown (secondary), green (leaf accent)
 */
:root {
    --mrg-orange: #f3911e;
    --mrg-orange-dark: #e07e0a;
    --mrg-brown: #8a5a2b;
    --mrg-brown-dark: #6f4720;
    --mrg-green: #6fa63c;
    --mrg-green-dark: #4f7a2f;
}

/* ===== Logo sizing ===== */
.theme_menu .main-logo {
    margin: 16px 0 !important;
}
.theme_menu .main-logo img {
    max-height: 84px;
    width: auto;
}
.theme_menu.stricky-fixed .main-logo {
    margin: 10px 0 !important;
}

/* Footer logo: clean rounded badge on the dark background */
.main-footer .section-title .image-box img,
.main-footer .footer-logo img {
    max-width: 190px;
    height: auto;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
}

/* ===== Tighten the white top-bar so there is less empty space above the logo ===== */
.top-bar {
    padding-top: 8px;
}
.top-bar .column {
    margin-bottom: 8px !important;
}

/* ===== Green leaf accent (eyebrow headings + dividers) ===== */
.section-title h5 {
    color: var(--mrg-green) !important;
}
.main-footer .footer-title:after {
    background: var(--mrg-green) !important;
}

/* ===== Brown secondary accents ===== */
.page-banner .breadcumb-wrapper ul.link-list li a:hover {
    color: var(--mrg-green) !important;
}

/* ===== Secondary button uses green to balance the palette ===== */
.thm-btn2 {
    background: var(--mrg-green) !important;
    border-color: var(--mrg-green) !important;
    color: #ffffff !important;
}
.thm-btn2:hover {
    background: var(--mrg-green-dark) !important;
    border-color: var(--mrg-green-dark) !important;
    color: #ffffff !important;
}

/* ===== Scroll-to-top button in brand orange ===== */
.scroll-top {
    background: var(--mrg-orange) !important;
    color: #ffffff !important;
}

/* ===== Form focus + links tuned to brand ===== */
.default-form .form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--mrg-orange) !important;
}

/* ===== Our Initiatives slider (home page) ===== */
.urgent-cause .content .initiative-label {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mrg-orange);
    margin-bottom: 14px;
    padding-left: 38px;
    position: relative;
}

.urgent-cause .content .initiative-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--mrg-orange);
    transform: translateY(-50%);
}

.urgent-cause .content p {
    font-size: 15px;
    line-height: 27px;
    color: #777777;
    margin-bottom: 22px;
}

.our-missions .item-box .item .image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff 0%, #fff8f0 55%, #f9efe3 100%);
    border: 2px solid rgba(243, 145, 30, 0.12);
    box-shadow: 0 10px 28px rgba(138, 90, 43, 0.1);
}

.our-missions .item-box .item:hover .image-box {
    border-color: rgba(243, 145, 30, 0.28);
    box-shadow: 0 14px 34px rgba(243, 145, 30, 0.18);
}

.our-missions .item-box .item .image-box img {
    margin-top: 0;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(138, 90, 43, 0.12));
}

.urgent-cause .img-box img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

/* ===== Footer contact info + social icons ===== */
.main-footer .information-widget .contact-info li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    line-height: 22px;
}
.main-footer .information-widget .contact-info li .fa {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--mrg-orange);
}
.main-footer .information-widget .contact-info li strong {
    color: #ffffff;
    display: inline-block;
    margin-bottom: 4px;
}
.main-footer .information-widget .contact-info li a {
    color: inherit;
}
.main-footer .information-widget .contact-info li a:hover {
    color: var(--mrg-orange);
}
.main-footer .footer-social {
    margin-top: 22px;
}
.main-footer .footer-social li {
    display: inline-block;
    margin: 0 8px 0 0;
}
.main-footer .footer-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}
.main-footer .footer-social li a:hover {
    background: var(--mrg-orange);
    color: #ffffff;
}

/* ===== Initiative detail page ===== */
.initiative-detail {
    padding: 60px 0 70px;
}

.initiative-detail__wrap {
    overflow: hidden;
}

.initiative-detail__image {
    float: left;
    width: 38%;
    max-width: 380px;
    margin: 0 32px 18px 0;
}

.initiative-detail__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.initiative-detail__content h2 {
    font-size: 26px;
    line-height: 36px;
    margin-bottom: 20px;
    color: #282828;
}

.initiative-detail__content p {
    font-size: 15px;
    line-height: 27px;
    color: #666666;
    margin-bottom: 16px;
    text-align: justify;
}

.initiative-detail__content p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .initiative-detail__image {
        width: 42%;
        max-width: 340px;
        margin-right: 24px;
    }

    .initiative-detail__image img {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .initiative-detail {
        padding: 40px 0 50px;
    }

    .initiative-detail__image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 22px;
    }

    .initiative-detail__image img {
        height: 240px;
    }

    .initiative-detail__content h2 {
        font-size: 22px;
        line-height: 30px;
    }
}
