/* =============================================================
   Impact Echo - custom styles
   Section background images and spacing tweaks on top of the
   Jago Welfare theme. Images are credited on the /credits page.
   ============================================================= */

/* ---- Spacing: home page project / charity cards ----
   (the theme only adds a bottom margin inside #trending_causes_main) */
#trending_causes .case_boxed_wrapper,
#featured_charities .case_boxed_wrapper {
    margin-bottom: 30px;
}

/* ---- Header: a slimmer top bar + navbar so real content (and SEO text)
   sits higher above the fold ----
   The theme's defaults (topbar 10px/10px, navbar 12px padding, full-size
   logo) eat a lot of vertical space before the page content. */
.topbar-area {
    padding-top: 6px;
    padding-bottom: 6px;
}

.topbar-tagline {
    font-size: 13px;
}

.main-navbar {
    padding: 8px 0;
}

.main_header_arae .navbar-brand img,
.main_header_arae .main-responsive-menu .logo img {
    height: 50px;
    width: auto;
}

/* ---- Section backgrounds ----
   Light sections: subtle photo tint behind the content.
   Dark sections: navy overlay so white text stays readable. */

#about_top_area,
#about_area {
    background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)),
        url('../img/bg/community.jpg') center / cover no-repeat;
}

#trending_causes,
#trending_causes_main {
    background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)),
        url('../img/bg/teamwork.jpg') center / cover no-repeat;
}

#donate_area {
    background: linear-gradient(rgba(8, 26, 54, 0.62), rgba(8, 26, 54, 0.62)),
        url('../img/bg/donate.jpg') center / cover no-repeat;
}

#counter_area {
    background: linear-gradient(rgba(8, 26, 54, 0.78), rgba(8, 26, 54, 0.78)),
        url('../img/bg/teamwork.jpg') center / cover no-repeat;
    padding: 70px 0;
}

.counter_area_wrapper {
    background: rgba(255, 255, 255, 0.95);
}

#subscribe_area {
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url('../img/bg/community.jpg') center / cover no-repeat;
}

#testimonial_area {
    background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)),
        url('../img/bg/kids-education.jpg') center / cover no-repeat;
}

#contact_full_map {
    background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)),
        url('../img/bg/hands.jpg') center / cover no-repeat;
}

#newletter_banner {
    background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url('../img/bg/kids.jpg') center / cover no-repeat;
}

/* ---- Search overlay: full width on phones / small screens ---- */
@media (max-width: 767px) {
    .search-overlay .search-overlay-form {
        width: 92%;
        max-width: 92%;
    }
    .search-overlay .search-overlay-form form .input-search {
        height: 52px;
        border-radius: 26px;
    }
}

/* ---- Equal-width auth buttons in the navbar ---- */
.auth-btn {
    min-width: 150px;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
}

/* ---- Topbar tagline (SEO text) ---- */
.topbar-tagline {
    font-size: 14px;
    color: var(--navber-color);
    line-height: 1.4;
    margin-top: 2px;
}
.topbar-tagline i {
    margin-right: 8px;
}

/* ---- Language switcher (flag + submenu) ---- */
.topbar-list-right .lang-parent {
    position: relative;
    display: inline-block;
    margin-right: 12px;
}
.topbar-list-right .lang-toggle {
    display: inline-flex;
    align-items: center;
}
.topbar-list-right .lang-toggle .flag {
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 160px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    padding: 8px 0;
    z-index: 9999;
    display: none;
    margin: 0;
    list-style: none;
}
.lang-menu.show {
    display: block;
}
.lang-menu li {
    display: block;
    margin: 0;
}
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}
.lang-menu a:hover {
    background: #eef4f8;
    color: var(--main-color);
}
.lang-menu .flag {
    display: inline-flex;
    align-items: center;
}

/* ---- User menu dropdown (fully custom - no theme interference) ---- */
.topbar-list-right .user-menu-parent {
    position: relative;
    display: inline-block;
}
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    padding: 8px 0;
    z-index: 9999;
    display: none;
    margin: 0;
    list-style: none;
}
.user-menu.show {
    display: block;
}
.user-menu li {
    display: block;
    margin: 0;
}
.user-menu a,
.user-menu button {
    display: block;
    width: 100%;
    padding: 10px 18px;
    color: #333;
    font-size: 14px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.user-menu a:hover,
.user-menu button:hover {
    background: #eef4f8;
    color: var(--main-color);
}
.user-menu a i,
.user-menu button i {
    width: 18px;
    margin-right: 6px;
}
.user-menu .user-menu-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

@media (max-width: 575px) {
    .topbar-tagline {
        font-size: 12px;
        text-align: center;
    }
}

/* ---- Detail page: hero image ----
   Fixed banner height + object-fit:cover so any source image looks
   consistent, and a subtle hover instead of the theme's 1.3x zoom. */
.details_big_img {
    background: #eef1f5;
}
.details_big_img img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.details_big_img img:hover {
    transform: scale(1.02);
}
@media (max-width: 991px) {
    .details_big_img img {
        height: 340px;
    }
}
@media (max-width: 575px) {
    .details_big_img img {
        height: 240px;
    }
}

/* ---- Detail page: "organizing charity" card ---- */
.org-card {
    padding: 0;
    overflow: hidden;
    flex-direction: column;
}
.org-card-cover {
    display: block;
    overflow: hidden;
    background: #eef1f5;
}
.org-card-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.org-card-cover:hover img {
    transform: scale(1.04);
}
.org-card-body {
    padding: 22px 24px 26px;
}
.org-card-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--main-color);
    margin-bottom: 6px;
}
.org-card-name {
    font-size: 22px;
    margin: 0 0 6px;
}
.org-card-name a {
    color: var(--black-color);
}
.org-card-name a:hover {
    color: var(--main-color);
}
.org-card-tagline {
    color: #5a6472;
    font-size: 14px;
    margin-bottom: 14px;
}
.org-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eef1f5;
}
.org-card-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.org-card-meta li i {
    color: var(--main-color);
    width: 16px;
    text-align: center;
    flex: none;
}
.org-card-meta li span {
    color: #333;
}
.org-card-meta li a {
    color: var(--main-color);
}
.org-card-watch {
    margin-top: 16px;
}

/* Info-only variant (no cover image): restore the card padding and give the
   body the full area, e.g. the charity sidebar where the hero already shows
   the same image. */
.org-card-plain {
    padding: 30px 30px;
}
.org-card-plain .org-card-body {
    padding: 0;
}
.org-card-meta li .phone-reveal {
    cursor: pointer;
    margin: 0;
    display: inline;
}
.org-card-meta li .phone-reveal-label {
    color: var(--main-color);
}

/* ---- Project milestones timeline ---- */
.milestone-list {
    position: relative;
    margin-top: 14px;
}
.milestone-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
}
.milestone-media {
    margin-bottom: 14px;
}
.milestone-media .popup-img {
    display: block;
}
.milestone-item::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: #dde4ec;
}
.milestone-item:last-child {
    padding-bottom: 0;
}
.milestone-item:last-child::before {
    display: none;
}
.milestone-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c9d4e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #8b95a3;
}
.milestone-completed .milestone-dot {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}
.milestone-in_progress .milestone-dot {
    border-color: #f0b429;
    color: #f0b429;
}
.milestone-head-text h4 {
    font-size: 17px;
    margin: 0 0 4px;
}
.milestone-meta {
    font-size: 13px;
    color: #6b7684;
}
.milestone-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 4px;
}
.milestone-badge-pending {
    background: #e6ecf2;
    color: #55606e;
}
.milestone-badge-in_progress {
    background: #fff3cd;
    color: #8a6d1a;
}
.milestone-badge-completed {
    background: #d4edda;
    color: #1e7e34;
}
.milestone-desc {
    padding-top: 12px;
    color: var(--paragraph-color);
}
.milestone-desc p {
    margin-bottom: 8px;
}
.milestone-note {
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
}
.milestone-note p:last-child {
    margin-bottom: 0;
}
.milestone-challenges {
    background: #fdf1f0;
    border: 1px solid #f5d6d2;
    color: #7c3a36;
}
.milestone-explanation {
    background: #eef4fb;
    border: 1px solid #d5e2f0;
    color: #2c4a6e;
}
@media (max-width: 575px) {
    .milestone-item {
        padding-left: 36px;
    }
}

/* ---- Completed projects with a results update ---- */
.case_boxed_img .completed-update-badge {
    top: 0;
    right: 0px;
    left: auto;
    background: #28a745;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.completed-update-badge i {
    font-size: 13px;
}

/* "See the results" button on the project page */
.details_top_btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.btn-results {
    color: var(--main-color);
    background: #fff;
    border: 1px solid var(--main-color);
    transition: var(--transition);
}
.btn-results:hover {
    color: #fff;
    background: var(--main-color);
}

/* Smooth scroll to the results section */
html {
    scroll-behavior: smooth;
}
#results {
    scroll-margin-top: 90px;
}

/* "Goal reached" indicator for projects that exceed their target */
.goal-reached-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #28a745;
    border-radius: 20px;
}
.goal-reached-badge i {
    font-size: 11px;
}

/* Extended goal panel on the project page */
.extended-goal-area {
    background: #fff8e6;
    border: 1px solid #f2dd9e;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}
.extended-goal-desc {
    color: var(--paragraph-color);
    margin-bottom: 14px;
}
.extended-goal-desc p:last-child {
    margin-bottom: 0;
}
