/* ==============================
   GLOBAL BASE
============================== */
html {
  scroll-behavior: smooth;
}

:root {
  --primary: #105070;
  --secondary: #1f2937;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: #105070;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==============================
   LAYOUT HELPERS
============================== */

.section {
  padding: 90px 20px;
  position: relative;
  overflow: visible !important;
}

/* ==============================
   GLOBAL SECTION HEADING STYLE
============================== */

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #105070;
}

/* Reduce gap between consecutive sections */
.section + .section {
  padding-top: 40px;
}

.text-block {
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.center {
  text-align: center;
}
/* ==============================
   INTERVENTIONS SECTION SPACING
============================== */

.interventions h2 {
  margin-bottom: 12px;   /* tight heading → subtitle */
}

.section-subtitle {
  margin-top: 0;
  margin-bottom: 36px;   /* breathing space before cards */
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
}

/* Cards spacing control */
.interventions .cards-grid {
  margin-top: 0;         /* remove unwanted gap */
}


/* ==============================
   TYPOGRAPHY
============================== */

h1 { font-size: clamp(2.5rem, 5vw, 3.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.4rem); }
h3 { font-size: 1.6rem; }

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==============================
   BUTTONS
============================== */

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 768px) {
  .section {
    padding: 60px 18px;
  }
}

/* ===============================
   RESPONSIVE FIXES
================================ */

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
  height: auto;
}
.map-svg svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
/* ===============================
   GLOBAL PAGE LAYOUT
   Sticky Footer System
================================ */

html, body {

height: 100%;

margin: 0;

display: flex;

flex-direction: column;

}

/* Main content grows */

main {

flex: 1;

}

/* Footer stays bottom */

.site-footer {

margin-top: auto;

}
/* ========================================
   HEARTFUL ALLIES HERO SLIDER
======================================== */

.ha-slider {
    position: relative;
    width: 100%;
}

/* Wrapper */

.ha-slider-wrapper {
    position: relative;
    overflow: hidden;
}

/* Slide */

.ha-slide {
    position: relative;
    display: none;
    width: 100%;
    height: 650px;
}

/* Active Slide */

.ha-slide.active {
    display: block;
    animation: haFade 0.8s ease;
}

/* Fade Animation */

@keyframes haFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Images */

.ha-slide img {

    width: 100%;

    height: 100%;;

    object-fit: cover;

    display: block;
}



/* Content */

.ha-slide-content {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;

    width: 100%;

    max-width: 850px;

    text-align: center;

    padding: 0 20px;
}

/* Title */

.ha-slide-content h2 {

    font-size: 3.5rem;

    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 20px;

    color: #fff;
}

/* Subtitle */

.ha-slide-content p {

    font-size: 1.1rem;

    line-height: 1.8;

    margin-bottom: 30px;

    color: rgba(255,255,255,0.92);
}

/* CTA Button Wrapper */

.ha-slider-btn-wrap {

    position: absolute;

    bottom: 70px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 30;

    width: 100%;

    display: flex;

    justify-content: center;
}

/* CTA Button */

.ha-slider-btn {

    display: inline-block;

    background: #105070;

    color: #000;

    padding: 14px 34px;

    border-radius: 50px;

    font-weight: 700;

    transition: 0.3s ease;
}

.ha-slider-btn:hover {

    background: #2563eb;

    transform: translateY(-2px);
}

/* Prevent Weird Pseudo Icons */

.ha-slider-btn::before,
.ha-slider-btn::after {

    content: none !important;
}

/* Arrows */

.ha-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 60px;
    height: 60px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #fff;

    font-size: 28px;

    cursor: pointer;

    transition: 0.3s ease;
}

.ha-arrow:hover {

    background: transparent;

    transform:
    translateY(-50%) scale(1.05);
}

/* Left */

.ha-prev {
    left: 25px;
}

/* Right */

.ha-next {
    right: 25px;
}

/* MOBILE */

@media(max-width:768px){

    .ha-slide img{
        height:520px;
    }

    .ha-slide-content h2{
        font-size:2rem;
    }
    
    .ha-slider-btn-wrap {

    bottom: 65px;
        
    }

    .ha-slide-content p{
        font-size:1rem;
    }

    .ha-arrow {

        width: 46px;
        height: 46px;

        font-size: 22px;
    }

    .ha-prev {
        left: 10px;
    }

    .ha-next {
        right: 10px;
    }

}

/* ========================================
   SLIDER DOTS
======================================== */

.ha-slider-dots {

    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 12px;

    z-index: 10;
}

/* Each Dot */

.ha-dot {

    width: 14px;
    height: 14px;

    border-radius: 50%;

    border: none;

    background: rgba(255,255,255,0.5);

    cursor: pointer;

    transition: 0.3s ease;
}

/* Active Dot */

.ha-dot.active {

    background: #105070;

    transform: scale(1.2);
}

/* Hover Effect */

.ha-dot:hover {

    background: white;
}

/* ================================
   WORLD MAP DESKTOP + MOBILE
================================ */

.world-map,
.world-map .container,
.map-wrapper,
.map-svg {
    overflow: visible !important;
}

.world-map {
    position: relative;
    z-index: 5;
}

.map-wrapper {
    position: relative;
    z-index: 5;
}

.map-pin {
    position: absolute;
    z-index: 6;
}

.pin-popup {
    display: none;
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    z-index: 9999;
}

.map-pin.active .pin-popup {
    display: block;
}

@media (max-width: 768px) {

    .map-pin .pin-popup {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        position: absolute;
        left: -9999px;
        top: -9999px;

        display: block !important;
    }

    .map-mobile-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999999;
    }

    .map-mobile-modal.open {
        display: block;
    }

    .map-mobile-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .map-mobile-modal__panel {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-height: 70vh;
        overflow-y: auto;
        background: #fff;
        border-radius: 18px;
        padding: 18px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }
    
    .map-mobile-modal__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
        
    }
    
    .map-mobile-modal .popup-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border-radius: 12px;

    background: #f8fafc;
        
    }
    
    .map-mobile-modal .popup-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
        
    }
    .map-mobile-modal__close {
        display: block;
        margin-left: auto;
        border: 0;
        background: transparent;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

    body.no-scroll {
        overflow: hidden;
    }
}
.map-mobile-modal {
    touch-action: none;
}

.map-mobile-modal__panel {
    touch-action: auto;
}