/*
Theme Name:   Hello Elementor Child
Theme URI:    https://elementor.com/hello-theme/
Description:  Child theme for Hello Elementor
Author:       Freedom in Christ
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ===================================
   Fonts (Salina)
   Note: currently using OTF files (best practice is WOFF2/WOFF).
   =================================== */

:root {
    --second-family: "Salina Trial", serif;
}
html, body{
    overflow-x: hidden;
}

/* Sticky footer: body → #tahefobu-header, #main, .turbo-footer-template */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    font-weight: 400;b
}
body #main,
body #content {
    flex: 1;
}


@font-face {
    font-family: "Salina Trial";
    src:
        url("assets/fonts/salina/Salina-Trial-Regular.woff2") format("woff2"),
        url("assets/fonts/salina/Salina-Trial-Regular.woff") format("woff"),
        url("assets/fonts/salina/Salina-Trial-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Salina Trial";
    src:
        url("assets/fonts/salina/Salina-Trial-Medium.woff2") format("woff2"),
        url("assets/fonts/salina/Salina-Trial-Medium.woff") format("woff"),
        url("assets/fonts/salina/Salina-Trial-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Salina Trial";
    src:
        url("assets/fonts/salina/Salina-Trial-Bold.woff2") format("woff2"),
        url("assets/fonts/salina/Salina-Trial-Bold.woff") format("woff"),
        url("assets/fonts/salina/Salina-Trial-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Salina Trial";
    src:
        url("assets/fonts/salina/Salina-Trial-RegularItalic.woff2") format("woff2"),
        url("assets/fonts/salina/Salina-Trial-RegularItalic.woff") format("woff"),
        url("assets/fonts/salina/Salina-Trial-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Salina Trial";
    src:
        url("assets/fonts/salina/Salina-Trial-MediumItalic.woff2") format("woff2"),
        url("assets/fonts/salina/Salina-Trial-MediumItalic.woff") format("woff"),
        url("assets/fonts/salina/Salina-Trial-MediumItalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Salina Trial";
    src:
        url("assets/fonts/salina/Salina-Trial-BoldItalic.woff2") format("woff2"),
        url("assets/fonts/salina/Salina-Trial-BoldItalic.woff") format("woff"),
        url("assets/fonts/salina/Salina-Trial-BoldItalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

body{
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #644f40;
}
.elementor-widget-text-editor ul{
    padding-left: 25px;
}
.elementor-widget-text-editor a{
    text-decoration: underline!important;
    transition: all 0.3s ease;
}
.elementor-widget-text-editor a:hover{
    text-decoration: none!important;
}
.selina .elementor-heading-title{
    font-family: "Salina Trial" ;
    font-weight: 400;
}

.selina-gradient .elementor-heading-title{
    font-family: "Salina Trial" ;
    font-weight: 500 ;
    background: linear-gradient(90deg, #FFFFFF 0%, #E3C3AD 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.selinaMdGradientContent .elementor-heading-title{
    font-family: "Salina Trial" ;
    font-weight: 500;
    background: linear-gradient(90deg, #614D3E 0%, #E1AF8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.selinaMdContent .elementor-heading-title{
    font-family: "Salina Trial" ;
    font-weight: 500;
    margin: 0;
}
.selinaMd.elementor-widget-text-editor p{
    font-family: "Salina Trial" ;
    font-weight: 500;
}
.selinaMdItalicContent .elementor-heading-title{
    font-family: "Salina Trial" ;
    font-weight: 500;
    font-style: italic;
}

.phone-number a strong{
    text-decoration: underline;
}
.phone-number a:hover strong{
    text-decoration: none;
}

/* Header */
#tahefobu-header.tahefobu-ready{
    position: relative;
    z-index: 10;
}
#tahefobu-header .tahefobu-nav-menu > li > a{
    position: relative;
    padding-left: 0;
    padding-right: 0;
}
#tahefobu-header .tahefobu-nav-menu > li > a::after{
    content: '';
    position: absolute;
    bottom: 9px;
    left: 0;
    width: 0;
    height: 1px;
    background: #655040;
    transition: all 0.3s ease;
}
#tahefobu-header .tahefobu-nav-menu > li:hover > a::after{
    width: 100%;
}
#tahefobu-header .tahefobu-nav-menu > li:hover > a{
    transition: all 0.3s ease;
}
#tahefobu-header .tahefobu-nav-menu li .sub-menu{
    padding-top: 11px;
    padding-bottom: 11px;
    background: #FFF5EC;
    min-width: 321px;
}

.trp-current-language-item__wrapper svg{
    margin: 0 5px 0 3px;
}

#tahefobu-header .tahefobu-nav-menu li .sub-menu li:hover > a{
    text-decoration: underline;
}

#tahefobu-header .tahefobu-nav-menu .tahefobu-sub-icon::before{
    content: url(assets/images/Down_Arrow.svg);
    display: block;
    width: 12px;
    height: 7px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
}
#tahefobu-header .trp-language-switcher{
    padding: 0;
    border: none;
}
#tahefobu-header .trp-language-item{
    padding: 6px 0px 6px 8px;
}
#tahefobu-header .trp-current-language-item__wrapper{
    border: 1px solid #947762;
    border-radius: 4px;
    padding-right: 3px;
}
#tahefobu-header .trp-language-switcher.is-open{
    border: none; 
}
#tahefobu-header .trp-language-switcher.is-open .trp-switcher-dropdown-list{
    border: 1px solid #947762;
    border-radius: 0 0 4px 4px;
    border-top: none;
    margin-top: -3px;
}



/* Mobile Menu */
.fic-wp-menu ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    gap: 30px;
}

.fic-wp-menu .fic-menu-item-label{
    gap: 0;
}

.fic-wp-menu .fic-submenu-open .fic-menu-item-label a{
    font-weight: 500;
}
.fic-wp-menu .sub-menu{
    max-width: 235px;
}
.fic-wp-menu .sub-menu li{
    margin: 10px 0;
}
.fic-wp-menu .sub-menu li a{
    font-size: 14px;
    display: block;
}

.fic-wp-menu ul li a{
    text-decoration: none;
    color: #1E1E1E;
    font-size: 16px;
    line-height: 140%;
    font-weight: 300;
}

/* Load More Button */
.fic-gallery-load-more-wrap{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 35px!important;
}
.fic-gallery-load-more-wrap .fic-gallery-load-more-button{
    background: none!important;
    border: none;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter";
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #644F40!important;
    gap: 7px;
}
.fic-gallery-load-more-wrap .fic-gallery-load-more-button::before{
    content: '';
    width: 0;
    height: 1px;
    background: #644F40;
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
}
.fic-gallery-load-more-wrap .fic-gallery-load-more-button:hover::before{
    width: 82%;
}
.fic-gallery-load-more-wrap .fic-gallery-load-more-button::after{
    content: '';
    width: 15px;
    height: 15px;
    background: url(assets/images/rightArrow.svg) no-repeat center center;
    display: inline-block;
}


/* ===================================
   Projects Map Section
   =================================== */
.projects-map-section {
    /* site container settings (match your global container) */
    --site-max: 1398px;
    --site-pad: 10px;
}

/* Make the outer wrapper full-width, but keep sidebar aligned to the centered site container */
.projects-map-section .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.projects-map-section .row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    margin-left: 0;
    margin-right: 0;
}
.projects-intro h1{
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 48px;
    background: linear-gradient(90deg, #614d3e 0%, #e1af8c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.projects-intro .section-subtitle{
    font-family: var(--second-family);
    font-style: italic;
    font-weight: 300;
    font-size: 48px;
    line-height: 125%;
    background: linear-gradient(90deg, #655040 0%, #ddad8a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.section-description{
    font-size: 14px;
    line-height: 140%;
    color: #644f40;
    margin-bottom: 16px;
}
.btn-learn-more{
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0.15em;
    text-decoration-skip-ink: none;
    color: #655040;
    transition: all 0.3s ease;
    text-transform: uppercase;
    &:hover{
        color: #655040;
        transform: translateX(5px);
    }
}

/* ===================================
   Projects Sidebar (Left Side)
   =================================== */

.projects-sidebar {
    width: 40%;
    box-sizing: border-box;
    /* Left gutter equals centered container offset + its inner padding */
    padding-left: max(var(--site-pad), calc((100vw - var(--site-max)) / 2 + var(--site-pad)));
    padding-right: 62px;
    background: #f2dfcc;
    padding-top: 20px;
    padding-bottom: 57px;
    height: 72vh;
}

/* ===================================
   World Map Column (Right Side)
   =================================== */
.map-container {
    flex: 1;
    width: auto;
    margin: 0;
    padding: 0; /* no horizontal gutters: map goes to the screen edge */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    /* max-height: 746px; */
    overflow: hidden;
    height: 72vh;
    max-height: none
}

/* Убираем фиксированную высоту на экранах ниже Full HD+ по высоте (универсальное правило) */
@media (max-height: 1080px) {
    .projects-sidebar,
    .map-container {
        height: auto;
    }
}

/* Для высоких мониторов (2K, Retina MacBook Pro и выше) увеличиваем высоту */
@media (min-height: 1600px) {
    .projects-sidebar,
    .map-container {
        height: 85vh;
    }
}


.map-container .btn-learn-more{
    position: absolute;
    bottom: 37px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    padding: 14px 47px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    color: #443830;
    border-radius: 50px;
    text-transform: none;
    letter-spacing: normal;
}

.map-container .btn-learn-more:hover{
    background: #F2DFCC;
}
/* ===================================
   Projects Grid
   =================================== */
.projects-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    --projects-grid-col-gap: 20px;
    gap: 12px var(--projects-grid-col-gap);
}

.projects-grid .project-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}



.projects-grid .project-card:nth-child(5) {
    grid-column: 1 / -1;
}

/* Make the 5th (full-width) card's image height match a normal card's height.
   Normal card height is based on one column width with aspect-ratio 16/9.
   Since the 5th card spans the full grid width, we can compute one-column width as:
   (fullWidth - columnGap) / 2
*/
.projects-grid .project-card:nth-child(5) .project-image {
    aspect-ratio: auto;
    height: auto;
    /* Use padding-top because % here is relative to WIDTH (what we need). */
    padding-top: calc(((100% - var(--projects-grid-col-gap)) / 2) * 9 / 16);
}

.projects-grid .project-card:nth-child(5) .project-image img {
    position: absolute;
    inset: 0;
}

.projects-grid .project-card .project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.projects-grid .project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* Hover effect only on the specific card being hovered */
.projects-grid .project-card:hover .project-image img {
    filter: grayscale(0%);
}

/* Active state when marker is hovered */
.projects-grid .project-card.active .project-image img {
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 18% 0;
    background: linear-gradient(180deg, rgba(179, 123, 82, 0) 0%, #432916 100%);
    /* Performance optimization */
    will-change: opacity;
    text-align: center;
    min-height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-title{
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: #fff;
    margin: 0;
}


/* ===================================
   World Map (Right Side) - Optimized with Image
   =================================== */

.world-map-wrapper {
    width: 100%;
    position: relative;
}
.map-container{
    background: url(assets/images/World_map_bg.png) no-repeat center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.world-map-container {
    position: relative;
    width: 100%;
    padding-bottom: 70%; /* Aspect ratio 898/628 = 1.43 */
    
}

.world-map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Country Markers - Simple HTML version */
.country-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 1;
}

.marker-dot {
    display: block;
    width: 14px;
    height: 14px;
    background: #947762;
    border: 3px solid #947762;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-sizing: border-box; /* prevent "jump" when border-width changes */
    transform-origin: center;
}

.marker-dot::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    background: #FCECDD;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

.marker-dot::before{
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    position: absolute;
    border: 0 solid #fff;
    transition: all 0.1s ease;

}

.country-marker:hover .marker-dot {
    background: #c17a5c;
    border-color: #a0654a;
    border-width: 4px;
}


.country-marker.active .marker-dot{
    width: 16px;
    height: 16px;
}
.country-marker.active .marker-dot::before{
    width: 22px;
    height: 22px;
    border-width: 1px;
}

.country-marker:hover .marker-dot::after,
.country-marker.active .marker-dot::after {
    background: #fff;
}


/* Слой подсветки стран: SVG с viewBox, совпадающим с размером PNG карты */
.map-country-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Все оверлеи (группы <g>) скрыты по умолчанию */
.map-country-overlays .country-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Подсветка конкретной страны при hover */
.world-map-container.hover-usa .map-country-overlays .country-overlay[data-country="usa"],
.world-map-container.hover-ukraine .map-country-overlays .country-overlay[data-country="ukraine"],
.world-map-container.hover-india .map-country-overlays .country-overlay[data-country="india"],
.world-map-container.hover-ethiopia .map-country-overlays .country-overlay[data-country="ethiopia"],
.world-map-container.hover-dominican .map-country-overlays .country-overlay[data-country="dominican"] {
    opacity: 1 !important;
}

/* Скрываем оверлеи на мобилке, т.к. другая карта с другими пропорциями */
@media (max-width: 992px) {
    .map-country-overlays {
        display: none;
    }
}

/* Pulsing Animation - Simple */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6;  }
}

.country-marker.active .marker-dot {
    animation: pulse 1s ease infinite;
}

/* ===================================
   Project Tooltip (Map)
   =================================== */
.project-tooltip {
    position: absolute;
    z-index: 30;
    width: 326px;
    max-width: 70vw;
    transform: translate(-35%, 6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    transition-property: opacity, visibility;
    border: 1px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(#bda1a100, #ffffff00) padding-box,
        linear-gradient(135deg, rgba(192, 162, 141, 1) 0%, rgba(255, 255, 255, 0) 100%) border-box;
    overflow: hidden;
}

.project-tooltip.is-mobile-clamped {
    /* When JS clamps left edge, don't also shift with translateX */
    transform: translate(0, 6px) !important;
    max-width: calc(100vw - 24px);
}

.project-tooltip__content-inner{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.project-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-tooltip__inner {
    /* Gradient border */
    
    position: relative;
    backdrop-filter: blur(36px);
    background: rgba(107, 76, 48, 0.34);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px 13px 17px;
}

.project-tooltip__single {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.project-tooltip__single[hidden] {
    display: none !important;
}

.project-tooltip__multi {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.project-tooltip__multi[hidden] {
    display: none !important;
}

.project-tooltip--multi {
    width: min(380px, 92vw);
}

/* USA: desktop — справа от маркера (JS задаёт left/top; без сдвига translate от стандартного) */
.project-tooltip.project-tooltip--usa-right {
    transform: translate(0, 0);
}

/* USA: mobile — по центру блока карты */
.project-tooltip.project-tooltip--usa-mobile-center {
    transform: translate(0, 0) !important;
    z-index: 50;
}

.project-tooltip__item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

.project-tooltip__item + .project-tooltip__item {
    margin-top: 15px;
}

.project-tooltip__item .project-tooltip__content {
    min-width: 0;
    flex: 1;
    min-height: 0;
}

button.project-tooltip__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1em;
    padding: 0;
    background: none!important;
}

.project-tooltip__close:hover {
    background: #fff;
}

.project-tooltip.is-pinned .project-tooltip__close {
    display: inline-flex;
}

/* Один проект в тултипе — размер как раньше (файл project-tooltip) */
.project-tooltip__single .project-tooltip__media {
    min-width: 100px;
}
.project-tooltip__single .project-tooltip__img {
    display: block;
    border-radius: 7px;
    width: 100px;
    height: 135px;
    object-fit: cover;
}

/* Несколько проектов — картинки уже 99×106 (размер project-tooltip-multi), не растягивать */
.project-tooltip__multi .project-tooltip__media {
    min-width: 99px;
}
.project-tooltip__multi .project-tooltip__img {
    display: block;
    border-radius: 7px;
    width: 99px;
    height: 106px;
    object-fit: cover;
}

.project-tooltip__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.project-tooltip__title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1.2;
}

.project-tooltip__desc {
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    line-height: 1.2;
}

.project-tooltip__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #fff;
}

.project-tooltip__link:hover {
    text-decoration: none;
    color: #fff;
}


/* ===================================
   Header Styles
   =================================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.main-navigation {
    flex: 1;
    margin: 0 40px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.primary-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
    color: #c17a5c;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.current-lang {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ===================================
   Footer Styles
   =================================== */

.turbo-footer-template .elementor-icon-box-content:hover h3,
.turbo-footer-template .elementor-icon-box-content:hover a{
    text-decoration: underline!important;
}

#location-footer-icon  .elementor-icon-box-wrapper{
    align-items: center;
}

/* Pages */
#content .elementor-widget-image-gallery .gallery{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
#content .elementor-widget-image-gallery .gallery .gallery-item{
    max-width: 100%;
}

/* Page */
.grsc-bg .elementor-widget-image img{
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    transition: filter 0.25s ease, -webkit-filter 0.25s ease;
    will-change: filter;
    border-radius: 5px;
}
.grsc-bg .elementor-widget-image:hover img{
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
}
.grsc-bg .elementor-widget-image::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(67, 41, 22, 1));
    z-index: 1;
    border-radius: 5px;
}

#achievements .e-con-inner .elementor-element{
    min-width: 200px;
    position: relative;
}
#achievements .e-con-inner .elementor-element::after{
    content: '';
    position: absolute;
    top: -10px;
    left: -5%;
    width: 1px;
    height: 61px;
    background: #D9D9D9;
    z-index: 1;
}
#achievements .e-con-inner .elementor-element:first-child::after{
    display: none;
}
#achievements .elementor-counter-number-wrapper span{
    font-family: "Salina Trial";
    font-weight: 500;
    
}
#achievements .elementor-counter-number-wrapper span.elementor-counter-number{
    background: linear-gradient(90deg, #614D3E 0%, #E1AF8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#achievements #uniq span.elementor-counter-number{
    display: none;
}
#achievements #uniq span.elementor-counter-number-prefix{
    background: linear-gradient(90deg, #614D3E 0%, #E1AF8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#achievements #uniq .elementor-counter-title{
    text-align: center;
}

/* Recent Pasts */
.fic-urp .fic-urp-title{
    font-family: "Salina Trial" ;
    font-weight: 500 ;
    background: linear-gradient(90deg, #614D3E 0%, #E1AF8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.elementor-widget-fic-urp-recent-posts .fic-urp .fic-urp-button-icon {
    width: 15px;
    height: 15px;
}
.fic-urp-button .fic-urp-button-text{
    position: relative;
}
.fic-urp-button .fic-urp-button-text::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #644F40;
}
.fic-urp-button .fic-urp-button-text:hover::after{
    width: 0;
}
.elementor-widget-fic-urp-recent-posts .fic-urp .fic-urp-excerpt{
    margin-top: 18px;
}
.elementor-widget-fic-urp-recent-posts .fic-urp .fic-urp-button-wrap{
    padding-top: 19px;
}

/* Progress Bar */
/*
Move Elementor progress percentage above the bar.
Markup usually places `.elementor-progress-percentage` inside `.elementor-progress-bar`,
so we position it absolutely relative to `.elementor-progress-wrapper`.
*/
.elementor-widget-progress .elementor-progress-wrapper{
    position: relative;
    /* allow the percentage label to overflow above without stretching backgrounds */
    padding-top: 0;
    overflow: visible !important;
}
.elementor-widget-progress .elementor-progress-bar{
    position: relative;
    overflow: visible !important;
}
.elementor-widget-progress .elementor-progress-percentage{
    position: absolute;
    top: 0;
    right: 0;
    /* Center the badge on the end of the filled bar */
    transform: translate(50%, calc(-100% - 8px));
    z-index: 2;

    /* optional label styling (tweak as needed) */
    background: #5F4C40;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 4px 5px;
    border-radius: 0;
}

/* Arrow under the percentage badge */
.elementor-widget-progress .elementor-progress-percentage::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #5F4C40;
}

/* Contact Page */
#contact-section p{
    margin-bottom: 15px;
    color: #34343B;
    line-height: 17px;
}
#contact-section p a{
    color: #947762;
    text-decoration: underline;
}
#contact-section p a:hover{
    text-decoration: none;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="time"],
.wpcf7 input[type="datetime-local"],
.wpcf7 input[type="month"]{
    border: none;
    border-radius: 5px;
    background: #fff;
    height: 45px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 400;
    color: #1E1E1E;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="time"]:focus,
.wpcf7 input[type="datetime-local"]:focus,
.wpcf7 input[type="month"]:focus,
.wpcf7 textarea:focus{
    outline: none;
}
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="number"]::placeholder,
.wpcf7 input[type="date"]::placeholder,
.wpcf7 input[type="time"]::placeholder,
.wpcf7 input[type="datetime-local"]::placeholder,
.wpcf7 input[type="month"]::placeholder,
.wpcf7 textarea::placeholder{
    color: #88888C;
}
.wpcf7 textarea{
    border: none;
    border-radius: 5px;
    background: #fff;
    height: 117px;
    padding: 15px;
    font-size: 16px;
    font-weight: 400;
    color: #1E1E1E;
    line-height: 1.2;
    transition: all 0.3s ease;
}
#contact-section .wpcf7-submit{
    background: #8B6E5A;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 400;
    width: 210px;
    height: 50px;
    margin: 24px auto 0;
    display: block;
    transition: all 0.3s ease;
}
#contact-section .wpcf7-submit:hover{
    background: #674F3E;
}


/* ===================================
   Mobile Header & Footer
   =================================== */

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        margin: 0;
        padding: 20px 30px;
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    #content .elementor-widget-image-gallery .gallery{
        grid-template-columns: 1fr;
        gap: 15px;
    }
    #achievements .e-con-inner .elementor-element{
        min-width: 146px;
    }
}

@media (max-width: 767px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    .elementor-widget-fic-urp-recent-posts .fic-urp .fic-urp-excerpt{
        margin-top: 10px;
    }
    .elementor-widget-fic-urp-recent-posts .fic-urp .fic-urp-button-wrap{
        padding-top: 10px;
    }

    #achievements .e-con-inner #uniq.elementor-element::after{
        display: none;
    }

}

.turbo-footer-template .footer-copyright p{
    margin: 0;
}

.turbo-footer-template .footer-copyright a{
    color: #fff;
    text-decoration: none!important;
}

.turbo-footer-template .footer-copyright a:hover{
    text-decoration: underline!important;
}


/* 404 */
#content.error-page,
#content.thank-you-page{
    text-align: center;
    padding: 71px 0 145px;
    border-top: 1px solid #E8D8CD;
    max-width: 100%!important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
#content.error-page h1{
    font-family: "Inter" ;
    font-weight: 800;
    font-size: 40px;
    line-height: 120%;
    color: #1E1E1E;
    margin: 34px 0 0;
}

#content.thank-you-page h1{
    font-family: "Salina Trial" ;
    font-weight: 500 ;
    background: linear-gradient(90deg, #614D3E 0%, #E1AF8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 48px;
    line-height: 120%;
    margin-bottom: 0;
}
#content.error-page p,
#content.thank-you-page p{
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;
    color: #1E1E1E;
    max-width: 490px;
    margin: 0 auto;
}
#content.thank-you-page p{
    max-width: 405px;
}
#content.error-page a,
#content.thank-you-page a{
    width: 210px;
    height: 50px;
    background: #8B6E5A;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    padding: 12px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 43px;
    display: inline-block;

}
#content.thank-you-page a{
    margin-top: 49px;
}
#content.error-page a:hover,
#content.thank-you-page a:hover{
    background: #674F3E;
}


/* ===================================
   Responsive Design
   =================================== */
    @media (min-width: 1920px) {
        .projects-sidebar{
            width: 44%;
        }
    }

   @media (max-width: 991px) {
    .projects-map-section .row {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-sidebar {
        width: 100%;
        padding: 20px 15px 26px;
    }

    .map-container {
        width: 100%;
        padding-bottom: 120px;
    }
    .map-container .btn-learn-more{
        bottom: 43px;
        padding: 15px 114px 15px 114px;
    }


    /* On 1-column layout the 5th card should behave like all others */

    
    .project-card:nth-child(5) {
        grid-column: 1;
    }
    .world-map-container {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
    }
    .country-marker[data-country="ukraine"]{
        left: 69%!important;
    }
    .country-marker[data-country="india"]{
        left: 89%!important;
    }
    .country-marker[data-country="ethiopia"]{
        left: 72%!important;
    }
}

@media (max-width: 767px) {
    #achievements .e-con-inner .elementor-element{
        min-width: 146px;
    }
    #content.error-page,
    #content.thank-you-page{
        padding: 93px 15px 108px;
    }
    #content.error-page svg,
    #content.thank-you-page svg{
        max-width: 80%;
        height: auto;
    }
    #content.error-page h1,
    #content.thank-you-page h1{
        font-size: 40px;
        margin-top: 38px;
    }
    #content.error-page p,
    #content.thank-you-page p{
        font-size: 20px;
        line-height: 24px;
    }
    #content.thank-you-page p{
        max-width: 248px;
        margin: 0 auto;
    }
    #content.error-page a,
    #content.thank-you-page a{
        width: 100%;
        margin-top: 44px;
    }
    #content.thank-you-page{
        width: 100%;
    }
}

@media (max-width: 575px) {
    .projects-intro h1,
    .projects-intro .section-subtitle{
        font-size: 32px;
    }
    .section-description{
        margin-top: 21px;
    }
    .projects-grid{
        gap: 10px;
    }
    .project-title{
        font-size: 14px;
        line-height: 116%;
    }
    .project-overlay{
        min-height: 43%;
    }
    #achievements .e-con-inner .elementor-element{
        min-width: 78px;
    }
    #achievements .e-con-inner .elementor-element::after {
        height: 54px;
        left: -28%;
    }
}

/* ===================================
   Donate Modal (page-like takeover)
   =================================== */

/* Lock page scroll completely when modal is open */
html.donate-modal-open {
    overflow: hidden;
}
html.donate-modal-open body {
    overflow: hidden;
    position: fixed;
    top: var(--donate-page-top, 0);
    left: 0;
    right: 0;
    width: 100%;
}

/* Freeze background wrapper while modal is open */
html.donate-modal-open #page {
    position: fixed;
    top: var(--donate-page-top, 0px);
    left: 0;
    right: 0;
    width: 100%;
}

/* Modal: full-viewport scroll container (only thing that scrolls) */
.donate-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.donate-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

/* Backdrop fixed to viewport so it doesn't move when modal content scrolls */
.donate-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.donate-modal.is-open .donate-modal__backdrop {
    opacity: 1;
}

.donate-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(673px, calc(100% - 40px));
    margin: 20px auto 60px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(-24px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.donate-modal.is-open .donate-modal__sheet {
    transform: translateY(0);
    opacity: 1;
}

#donate-modal .donate-modal__close {
    border: none;
    background: transparent;
    width: 23px;
    height: 23px;
    border-radius: 10px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #1e1e1e;
    position: absolute;
    top: 17px;
    right: 18px;
    transition: all 0.3s ease;
    padding: 0;
}

#donate-modal .donate-modal__close:hover {
    transform: rotate(180deg);
}

#donate-modal form{
    max-width: 398px;
    margin: 0 auto;
}

.donate-modal__body {
    padding: 35px 20px;
}

/* Select2 base fit */
.donate-modal .select2-container {
    width: 100% !important;
}

/* Hide disabled placeholder option in dropdown */
.donate-modal .select2-results__option[aria-disabled="true"] {
    display: none;
}

#donate-modal form h3{
    font-family: "Salina Trial" ;
    font-weight: 500 ;
    background: linear-gradient(90deg, #614D3E 0%, #E1AF8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    line-height: 120%;
    margin: 0 auto 24px;
    text-align: center;
    max-width: 259px;
}
#donate-modal .select2-container--default .select2-results>.select2-results__options{
    max-height: none!important;
}
.bottom-text{
    font-weight: 300;
    font-size: 12px;
    color: #6B635D;
    line-height: 15px;
    margin-top: 24px;
}
.wpcf7-spinner{
    display: none!important;
}

#donate-modal .wpcf7 input[type="text"],
#donate-modal .wpcf7 input[type="email"],
#donate-modal .wpcf7 input[type="tel"],
#donate-modal .wpcf7 input[type="number"],
#donate-modal .wpcf7 input[type="date"],
#donate-modal .wpcf7 input[type="time"],
#donate-modal .wpcf7 input[type="datetime-local"],
#donate-modal .wpcf7 input[type="month"],
#donate-modal .wpcf7 textarea{
    border: 1px solid #DCD6D1;
}
#donate-modal .wpcf7-submit{
    background: #8B6E5A;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 400;
    width: 286px;
    height: 50px;
    margin: 17px auto 0;
    display: block;
    transition: all 0.3s ease;
}
#donate-modal .wpcf7-submit:hover{
    background: #674F3E;
}

#donate-modal .select2-selection--single{
    height: 45px;
}
#donate-modal .select2-selection__rendered{
    padding-top: 8px;
    padding-left: 15px;
}
#donate-modal .select2-selection__arrow{
    top: 7px; 
    right: 13px;
    width: 12px;
}
#donate-modal .select2-selection__arrow b{
    background-image: url(assets/images/Down_Arrow1.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 10px;
    height: 10px;
    border: none;
    transition: all 0.3s ease;
}
#donate-modal .select2-container--open .select2-selection__arrow b{
    transform: rotate(180deg);
}

#donate-modal .select2-results__options{
    background: #FFFBF6;
    padding: 12px 17px;
}
#donate-modal .select2-results__option{
    padding: 6px 0;
    color: #1E1E1E;
    font-size: 14px;

}
#donate-modal .select2-results__option--highlighted{
    background: none;
    color: #8B6E5A;
}
#donate-modal label{
    color: #655041;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .donate-modal__sheet {
        width: calc(100% - 24px);
        margin: 12px auto 40px;
        border-radius: 14px;
    }
    .donate-modal__body {
        padding: 35px 11px;
    }
    #donate-modal form h3{
        font-size: 18px;
        max-width: 202px;
    }
}

.wpcf7-response-output{
    display: none!important;
}

.elementor-image-gallery .gallery-item .gallery-icon{
    height: 100%;
}
.elementor-image-gallery .gallery-item img{
    height: 100%;
    object-fit: cover;
}

/*Donate Stripe Button*/
.wpsc-session {
    display: flex;
    justify-content: center;
}

.wpsc-session:before {
    content: '$';
    position: absolute;
    line-height: 39px;
    font-size: 16px;
    color: #adadad;
    margin-top: 6px;
    transition: 0.2s all;
}
.wpsc-session.active:before{
    margin-left: -218px;
}

.wpsc-session [type="submit"] {
    z-index: 1;
}

.wpsc-session .wpstripeco_variable_price_input {
    
}

.wpsc-session .wpstripeco_variable_price_input:focus {
    border-color: #d9d9d9;
    outline: none;
}

.wpsc-session br {
    display: none;
}
.wpsc-session .wpstripeco_variable_price_input {
    width: 100px;
    border-color: #d9d9d9;
    border-radius: 50px 50px 50px 50px;
    display: inline-block;
    border-color: #eaeaea;
    padding: 6px 14px 6px 26px;
    height: 50px;
    font-size: 16px;
    text-align: center;
    color: #1E1E1E;
    font-weight: 500;
    border: 1px solid #d9d9d9;
}

.wpsc-session .wpstripeco_variable_price_input ~ [type="submit"] {
    margin-left: -120px;
    transition: .3s;
    background-color: #8B6E5A;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-radius: 50px 50px 50px 50px;
    padding: 12px 50px 12px 50px;
    border: none!important;
}

.wpsc-session.active .wpstripeco_variable_price_input ~ [type="submit"] {
    margin-left: 2px;
}

/*Donate Stripe Button*/