/* ========== Base / layout ========== */
:root{
  --primary:#15a9e1;
  --ink:#0f0f0f;
  --muted:#6f6f6f;
  --wrap:1200px;
  --gutter:40px;
}
*{box-sizing:border-box}
html,body{
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #111; /* adjust as needed for your primary text color */
  margin: 0; padding: 0;
}
img{max-width:100%;display:block}
.wrap, .about-wrap, .wwd-wrap, .partners-wrap, .team-wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
@media (max-width:700px){ :root{ --gutter:20px } }

/* ========== Header (sticky + dropdowns) ========== */
.header{
  height: 90px;
  position:sticky; top:0; z-index:1000;
  background:#15a9e1; color:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.12);
}
.header-content{
  max-width:var(--wrap); margin:0 auto; padding:14px var(--gutter);
  display:flex; align-items:center; gap:20px; min-height:80px;
}
.sticky-shadow {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.logo-title{display:flex; align-items:center; gap:16px}
.logo-divider{width:2px; height:42px; background:#fff4; border-radius:2px}
.lab-title{font-weight:800; letter-spacing:.5px; line-height:1; font-size:14px}
.nav{margin-left:auto}
.menu{list-style:none; margin:0; padding:0; display:flex; gap:28px; align-items:center}
.menu a{color:#fff; text-decoration:none; font-weight:600; position:relative; padding:10px 2px}
.menu a.active::after{content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; background:#fff; border-radius:2px}
.has-submenu{position:relative}
.chev{display:inline-block; width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid #fff; margin-left:6px; transform:translateY(2px); transition:.2s}
.submenu{
  position:absolute; left:0; top:100%; min-width:340px; background:#fff; color:#123; border-radius:8px;
  box-shadow:0 18px 36px rgba(0,0,0,.15); padding:14px 0; opacity:0; visibility:hidden; transform:translateY(8px);
  transition:.18s; pointer-events:none;
}
.submenu a{color:#234; display:block; padding:12px 18px}
.submenu a:hover{background:#f2fbff}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu{ opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto }
.has-submenu:hover > a .chev{ transform:translateY(2px) rotate(180deg) }

.search input{
  width:200px; max-width:28vw; height:40px; border:none; border-bottom:2px solid #fff4; background:transparent; color:#fff;
  outline:none; padding:0 8px; font-size:15px;
}
.search input::placeholder{color:#d5eef6}

/* Mobile header collapse (simple) */
@media (max-width:980px){
  .menu{gap:16px; font-size:15px}
  .search{display:none}
}
@media (max-width:720px){
  .header-content{flex-wrap:wrap}
  .nav{order:3; width:100%}
  .menu{flex-wrap:wrap; gap:12px}
}

/* ========== Hero slider ========== */
.hero-slider{position:relative; height: calc(100vh - 100px); overflow:hidden}
.hero-slides{width:100%; height:100%; position:relative}
.hero-slide{position:absolute; inset:0; opacity:0; transition:opacity .5s ease}
.hero-slide.is-active{opacity:1}
.hero-slide img{width:100%; height:100%; object-fit:cover; display: block;}
.hero-caption{position:absolute; left:var(--gutter); bottom:12vh; color:#fff; text-shadow:0 3px 16px rgba(0,0,0,.5)}
.hero-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:48px; height:48px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(0,0,0,.35); color:#fff; font-size:28px;
}
.hero-nav.prev{left:16px} .hero-nav.next{right:16px}
.hero-dots{position:absolute; left:50%; transform:translateX(-50%); bottom:18px; display:flex; gap:10px}
.hero-dots button{width:10px;height:10px;border-radius:50%;border:none;background:#ffffff66}
.hero-dots button[aria-selected="true"]{background:#fff}
@media (max-width:700px){ .hero-slider{height:70vh} }

/* ========== About ========== */
.about-section{background:#fdf7f2; padding:60px 0}
.about-top{display:grid; grid-template-columns:0.6fr 0.6fr; align-items:center; gap:24px}
.about-kicker{font-size:96px; line-height:.92; font-weight:800; color:#111; margin:0}
.about-lead{margin-top:16px; font-size:20px; color:#4a4a4a; max-width:40ch}
.about-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:32px}
.about-card{
  position:relative; background:#fff; border-radius:16px; box-shadow:0 10px 35px rgba(0,0,0,.1);
  padding:24px 22px 56px; min-height:240px; transition:.25s; display:flex; flex-direction:column; gap:10px
}
.about-card h3{color:#15a9e1; margin:0 0 6px 0; font-size:24px; font-weight:800}
.about-card p{color:#6b6b6b}
.about-fa{position:absolute; right:18px; bottom:18px; font-size:56px; color:#c7c7c7; transition:.25s}
.about-card:hover{transform:translateY(-6px) scale(1.02); box-shadow:0 16px 48px rgba(21,169,225,.2); background:#15a9e1}
.about-card:hover h3, .about-card:hover p, .about-card:hover .about-fa{color:#fff}
@media (max-width:900px){
  .about-top{grid-template-columns:1fr}
  .about-cards{grid-template-columns:1fr}
  .about-kicker{font-size:76px}
}

/* ========== What we do ========== */
.wwd-section{background:#eaf6fb; padding:48px 0 70px}
.wwd-title{font-size: clamp(40px,6vw,72px); font-weight:900; margin:0 0 16px}
.wwd-grid{display:grid; grid-template-columns:1fr 1fr; gap:36px}
.wwd-card{position:relative; border-radius:22px; overflow:hidden; box-shadow:0 12px 40px rgba(0,0,0,.15)}
.wwd-card img{width:100%; height:520px; object-fit:cover}
.wwd-info{
  --band:118px;
  position:absolute; left:0; right:0; bottom:0; height:var(--band);
  background:#15a9e1; color:#0f0f0f;
  padding:22px 26px 20px;
  padding: 16px 20px;
  transition: height 0.35s ease, padding 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wwd-info .icon {
  flex: 1; /* share height equally */
  display: flex;
  align-items: right;
  justify-content: flex-end;
  font-size: 24px;
}
.wwd-info h3{
  color: #0f0f0f;
  margin: 0;
  flex: 1; /* share height equally */
  display: flex;
  align-items: center;}
.wwd-info p{margin:0; opacity:0; max-height:0; overflow:hidden; transition:opacity .3s ease .08s, max-height .35s ease}
.wwd-icon{font-size:42px; opacity:.95; transition:opacity .25s ease, transform .25s ease}
.wwd-card:hover .wwd-info{height:56%; padding:26px}
.wwd-card:hover .wwd-info p{opacity:1; max-height:260px}
.wwd-card:hover .wwd-icon{opacity:0; transform:scale(.9)}
@media (max-width:900px){ .wwd-grid{grid-template-columns:1fr} .wwd-card img{height:420px} }

/* ========== Partners ========== */
.partners-section{background:#f1fbff; padding:70px 0 90px}
.partners-title{font-size: clamp(44px,7vw,92px); font-weight:900; line-height:.92; margin:0 0 16px}
.partners-intro{max-width:840px; color:#6e6e6e; font-size:clamp(18px,2.1vw,22px)}
.partners-grid{list-style:none; margin:24px 0 0; padding:0; display:grid; grid-template-columns:repeat(6,1fr); gap:34px}
.partner-item{text-align:center}
.partner-logo{width:140px;height:140px;border-radius:50%;background:#eff1f3;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:.2s}
.partner-logo img{max-width:78%;max-height:78%;object-fit:contain}
.partner-item:hover .partner-logo{transform:translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,.08)}
.partner-name{font-size:14px;color:#6e6e6e}
@media (max-width:1100px){ .partners-grid{grid-template-columns:repeat(4,1fr)} }
@media (max-width:800px){ .partners-grid{grid-template-columns:repeat(3,1fr)} .partner-logo{width:120px;height:120px} }
@media (max-width:560px){ .partners-grid{grid-template-columns:repeat(2,1fr)} .partner-logo{width:100px;height:100px} }

/* ========== Team ========== */
.team-section{background:#eaf6fb; padding:64px 0 90px}
.team-title{font-size: clamp(48px,8vw,120px); font-weight:900; line-height:.9; margin:0 0 24px}
.team-grid{display:grid; grid-template-columns:1fr 1fr; gap:34px}
.team-card{display:grid; grid-template-columns:1fr 1.2fr; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,.1); transition:.18s}
.team-card:hover{transform:translateY(-4px); box-shadow:0 14px 36px rgba(0,0,0,.14)}
.team-photo{background:var(--ph-bg,#d9e6ef); display:flex; align-items:center; justify-content:center}
.team-photo img{width:100%;height:100%;object-fit:cover;filter:grayscale(100%)}
.team-info{padding:22px 26px; display:grid; grid-template-rows:auto auto 1fr; row-gap:10px}
.team-name{margin:0; font-size:22px; font-weight:900; color:#111}
.team-role{font-weight:700; color:var(--role,#9cc6e9)}
.team-bio{color:#6f6f6f; line-height:1.6; margin:8px 0 0}
@media (max-width:1000px){ .team-grid{grid-template-columns:1fr} }
@media (max-width:640px){ .team-card{grid-template-columns:1fr} .team-photo{height:280px} }

/* ========== Footer (lightweight) ========== */
.site-footer{background:#15a9e1; color:#fff; margin-top:40px}
.footer-content{max-width:var(--wrap); margin:0 auto; padding:40px var(--gutter); display:grid; grid-template-columns:1.2fr .8fr; gap:26px}
.footer-links-row{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.footer-col h4{margin:.2rem 0}
.footer-col ul{list-style:none; padding:0; margin:0}
.footer-col li{margin:.25rem 0}
.footer-col a{color:#e8fbff; text-decoration:none}
.footer-social-icons a{display:inline-flex; width:34px; height:34px; border-radius:50%; background:#0f7aa6; color:#fff; align-items:center; justify-content:center; margin-right:8px}
.footer-form{background:#fff; color:#123; border-radius:12px; padding:16px; display:grid; gap:10px}
.footer-form input{height:44px; border:1px solid #e6eef2; border-radius:8px; padding:0 12px}
.footer-form button{height:44px; border:none; background:#15a9e1; color:#fff; border-radius:8px; font-weight:700}
.footer-bottom{text-align:center; padding:16px; background:#0e8fbd}
@media (max-width:980px){ .footer-content{grid-template-columns:1fr} .footer-links-row{grid-template-columns:1fr 1fr} }
@media (max-width:600px){ .footer-links-row{grid-template-columns:1fr} }

/* no bullets, ever */
.menu, .submenu { list-style: none; margin: 0; padding: 0; }

/* hamburger hidden on desktop */
.nav-toggle{ display:none; background:transparent; border:0; width:40px; height:34px; cursor:pointer; margin-left:auto; }
.nav-toggle span{ display:block; height:3px; border-radius:2px; background:#fff; margin:6px 0; }

/* mobile drawer */
@media (max-width:900px){
  .nav-toggle{ display:block; }

  .nav{
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,.35);
    transform: translateX(-100%);   /* hidden by default */
    transition: transform .28s ease;
  }
  /* robust: body.nav-open OR .nav.open will open */
  body.nav-open .nav, .nav.open{ transform: translateX(0); }

  /* the white panel */
  .nav .menu{
    width: 86vw; max-width: 520px; height: 100vh;
    background:#fff; box-shadow: 8px 0 32px rgba(0,0,0,.15);
    padding: 20px 22px 32px; overflow-y: auto;
  }

  .nav-close{
    position:absolute; right:10px; top:10px;
    width:36px; height:36px; border:1px solid #cfd9e2; border-radius:6px;
    background:#fff; color:#305eaa; font-size:22px; cursor:pointer;
  }

  .menu > li{ padding: 10px 4px; font-size:26px; font-weight:700; color:#135bb6; }
  .menu > li + li{ border-top:1px solid #e7edf3; }

  .menu > li > a{ display:flex; align-items:center; justify-content:space-between; color:inherit; text-decoration:none; }

  .menu .chev{
    width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent;
    border-top:7px solid #0f56ab; margin-left:10px; transform: rotate(0); transition:.2s;
  }
  .sub-open > a .chev{ transform: rotate(180deg); }

  .submenu{ max-height:0; overflow:hidden; transition:max-height .28s ease; margin-top:6px; }
  .sub-open > .submenu{ max-height: 500px; }
  .submenu li{ padding:14px 0; font-size:22px; font-weight:600; color:#2a76d2; border-top:1px solid #eef3f7; }
}

/* ================= MOBILE NAV TWEAKS ================= */
@media (max-width:900px){

  /* Drawer panel should scroll */
  .nav .menu{
    width: 86vw; max-width: 520px;
    height: 100vh;
    overflow-y: auto;               /* <— scrolling inside panel */
    -webkit-overflow-scrolling: touch;
    padding: max(16px, env(safe-area-inset-top)) 18px 24px;
  }

  /* Tighter top-level items */
  .menu > li{
    padding: 10px 4px;              /* was 22px */
    font-size: 22px;                /* was 26px */
    font-weight: 700;
    line-height: 1.25;
    color:#135bb6;
  }
  .menu > li + li{ border-top:1px solid #e7edf3; }

  .menu > li > a{
    display:flex; align-items:center; justify-content:space-between;
    color:inherit; text-decoration:none;
    gap:12px;
  }

  /* Chevron */
  .menu .chev{
    width:0; height:0;
    border-left:6px solid transparent; border-right:6px solid transparent;
    border-top:7px solid #0f56ab;
    transform: rotate(0); transition: transform .2s ease;
  }
  .sub-open > a .chev{ transform: rotate(180deg); }

  /* ---- Submenu must NOT be absolute on mobile ---- */
  .submenu{
    position: static !important;    /* overrides desktop absolute */
    left:auto; top:auto; min-width:0;
    background: transparent;        /* use panel bg */
    box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none;

    margin: 6px 0 0;
    padding: 0;
    max-height: 0;                  /* accordion */
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .sub-open > .submenu{ max-height: 560px; }

  .submenu li{
    padding: 12px 0;                /* tighter */
    font-size: 18px;                /* smaller than parents */
    font-weight: 600;
    color:#2a76d2;
    border-top: 1px solid #eef3f7;
    line-height: 1.25;
  }
  .submenu a{ display:block; color:inherit; text-decoration:none; }
}

@media (max-width:900px){
  .menu > li{
    padding: 10px 4px; /* reduced vertical space */
  }
  .menu > li > a{
    padding: 8px 0; /* even tighter inside the link */
  }
}

/* ====== MOBILE NAV PATCH (tight spacing + no ghost space) ====== */
@media (max-width:900px){

  /* Make sure the menu is a simple stack and scrolls */
  .nav .menu{
    display:block;                 /* not flex */
    height:100vh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:max(16px, env(safe-area-inset-top)) 18px 24px;
  }

  /* Tighten top-level items (but keep a 48px touch target) */
  .menu > li{
    margin:0;                      /* kill any stray margins */
    padding:8px 2px;               /* vertical spacing between items */
    line-height:1.25;
  }
  .menu > li + li{ border-top:1px solid #e7edf3; }

  .menu > li > a{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    min-height:48px;               /* good tap target */
    padding:6px 0;                 /* inner tightening */
    text-decoration:none; color:#135bb6; font-weight:700; font-size:22px;
  }

  /* Chevron */
  .menu .chev{
    width:0;height:0;
    border-left:6px solid transparent; border-right:6px solid transparent;
    border-top:7px solid #0f56ab; transition:transform .2s;
  }
  .sub-open > a .chev{ transform:rotate(180deg); }

  /* Submenu as true accordion (NO space when closed) */
  .submenu{
    position:static !important; left:auto; top:auto; min-width:0;
    background:transparent; box-shadow:none; border-radius:0;
    margin:0;                      /* <- remove top margin that was adding space */
    padding:0;                     /* <- no inner padding when collapsed */
    max-height:0;                  /* <- clamp height */
    overflow:hidden;               /* <- hide contents */
    opacity:1; visibility:visible; transform:none;
    transition:max-height .28s ease;
  }
  .sub-open > .submenu{
    max-height:460px;              /* plenty for items */
    padding:6px 0;                 /* add small padding only when open */
  }

  .submenu li{
    margin:0; padding:10px 0;
    font-size:18px; font-weight:600; color:#2a76d2;
    border-top:1px solid #eef3f7; line-height:1.25;
  }
  .submenu a{ display:block; color:inherit; text-decoration:none; min-height:40px; }
}

/* ===== Submenu Left Accent Line ===== */
.submenu a {
  position: relative;
  padding-left: 14px; /* create space for the line */
}

.submenu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px; /* line thickness */
  background: transparent;
  transition: background 0.25s ease;
  border-radius: 2px;
}

.submenu a:hover::before {
  background: #15a9e1; /* your blue */
}

/* ===== Hide nav-close on desktop ===== */
@media (min-width: 901px) {
  .nav-close {
    display: none !important;
  }
}

/* ===================== BLOG ===================== */
.blog-section{background:#eef7fb;padding:64px 0}
.blog-wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.blog-title{font-size:clamp(36px,6vw,56px);font-weight:900;margin:0}
.blog-sub{color:#6c7680;margin:.35rem 0 1.75rem}

.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.blog-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.08)}
.blog-media img{width:100%;height:260px;object-fit:cover}
.blog-body{padding:18px 20px 22px}
.blog-meta{font-size:14px;color:#7a8793}
.blog-head{margin:.25rem 0}
.blog-head a{color:#0f0f0f;text-decoration:none;font-weight:800}
.blog-excerpt{color:#59636d;margin:.35rem 0 1rem}
.blog-cta{display:inline-block;background:#15a9e1;color:#fff;padding:10px 16px;border-radius:8px;text-decoration:none;font-weight:700}
@media(max-width:900px){.blog-grid{grid-template-columns:1fr}.blog-media img{height:220px}}

.blog-pager{display:flex;gap:10px;align-items:center;justify-content:center;margin:28px 0 6px}
.pager-prev,.pager-next,.pager-num{
  height:44px;min-width:44px;padding:0 14px;border:1px solid #d7e2ea;border-radius:999px;background:#fff;
  color:#1b4ea1;font-weight:700;cursor:pointer
}
.pager-num{padding:0 0;width:44px;display:grid;place-items:center}
.pager-num.is-active{background:#15a9e1;color:#fff;border-color:#15a9e1}

/* ===================== CTA SUPPORT ===================== */
.cta-support{background:#fcf6ee}
.cta-top{max-width:var(--wrap);margin:0 auto;padding:46px var(--gutter);display:grid;grid-template-columns:.46fr .54fr;gap:20px;align-items:center}
.cta-photo img{width:100%;height:auto;object-fit:contain}
.cta-title{font-size:clamp(42px,7vw,84px);line-height:.95;margin:0;font-weight:900}
.cta-title span{color:#15a9e1}
.cta-lead{color:#5f696f;margin-top:12px}
.cta-band{background:#e1b875; height: 250px;}
.cta-wrap{max-width:var(--wrap);margin:0 auto;padding:34px var(--gutter);display:grid;grid-template-columns:1fr 1fr;gap:22px}
.cta-card{
  display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border-radius:16px;
  padding:26px 28px;text-decoration:none;color:#14202b;box-shadow:0 10px 26px rgba(0,0,0,.08);transition:transform .18s ease, box-shadow .18s ease
}
.cta-card-text{font-size:clamp(30px,5.2vw,50px);font-weight:800;line-height:1.05; margin-top: 5px;}
.cta-card i{font-size:50px;transition:transform .25s ease,color .25s ease}
.cta-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(0,0,0,.12);color:#0f6fb6}
.cta-card:hover i{transform:translateX(6px) rotate(-45deg);color:#0f6fb6}
@media(max-width:960px){.cta-top{grid-template-columns:1fr;gap:24px}.cta-wrap{grid-template-columns:1fr}}

/* ===================== CONTACT ===================== */
.contact-section{background:#eef7fb;padding:68px 0}
.contact-wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter);display:grid;grid-template-columns:1fr 1.1fr;gap:28px}
.contact-title{font-size:clamp(40px,6vw,72px);margin:0 0 12px;font-weight:900}
.contact-kicker{color:#15a9e1;margin:.25rem 0}
.contact-lead{color:#5a6670;max-width:46ch}

.contact-list{list-style:none;margin:16px 0 22px;padding:0;display:grid;gap:14px}
.contact-list li{display:flex;gap:12px;align-items:flex-start}
.chip{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#15a9e1;color:#fff;flex:0 0 auto}

.contact-social .social-title{font-weight:800;margin:10px 0 8px}
.contact-social .social-icons a{display:inline-flex;width:36px;height:36px;border-radius:50%;background:#0f7aa6;color:#fff;align-items:center;justify-content:center;margin-right:8px}

.contact-card{background:#fff;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.12);padding:18px}
.contact-form{display:grid;gap:14px}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form label span{display:block;font-size:14px;color:#5e6a75;margin-bottom:6px}
.contact-form input,.contact-form textarea{
  width:100%;border:1px solid #dbe6ee;border-radius:10px;padding:12px 12px;font:inherit
}
.contact-submit{height:46px;border:none;background:#15a9e1;color:#fff;border-radius:10px;font-weight:800;cursor:pointer}
@media(max-width:900px){.contact-wrap{grid-template-columns:1fr}.row-2{grid-template-columns:1fr}}

/* ===================== DASHBOARD MAIN (tabs + image) ===================== */
.main-section{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter) 56px;display:grid;grid-template-columns:260px 1fr;gap:28px}
.sidebar{position:sticky;top:96px;align-self:start;border-radius:12px}
.tabs{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tabs li{
  cursor:pointer;background:#fff;border:1px solid #e6edf3;border-radius:10px;padding:14px 14px 14px 18px;
  font-weight:700;color:#355e8f;position:relative
}
.tabs li.active{border-color:#15a9e1;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.tabs li.active::before{
  content:"";position:absolute;left:-2px;top:0;height:100%;width:6px;background:#15a9e1;border-radius:6px 0 0 6px
}

.dashboard-title h1{font-size:clamp(28px,4.2vw,44px);margin:0 0 12px;font-weight:900}
.dashboard-title span{color:#15a9e1}
.viz-card{background:#fff;border-radius:16px;box-shadow:0 14px 36px rgba(0,0,0,.1);padding:10px}
.viz-img{width:100%;height:auto;border-radius:12px}
.tab-panel{display:none}.tab-panel.active{display:block}

@media(max-width:1000px){.main-section{grid-template-columns:1fr}.sidebar{position:static;top:auto}}

/* ===================== RELATED POSTS (hover blue) ===================== */
.related-posts-section{background:#fff;padding:56px var(--gutter);}
.related-posts-title h2{font-size:clamp(36px,6vw,60px);font-weight:500;margin:0 0 16px}
.related-posts-grid{max-width:var(--wrap);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.related-post-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.08);transition:.18s}
.related-post-img{width:100%;height:280px;object-fit:cover}
.related-post-content{padding:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.related-post-desc{font-weight:700;color:#23313e}
.download-btn{ width: 90%; margin-left: 20px; margin-right: 20px; margin-bottom: 20px;
  background:#15a9e1;color:#000;border:none;padding:10px 14px;font-weight:800;cursor:pointer
}
.related-post-card:hover{background:#0d7fb4;color:#fff}
.related-post-card:hover .related-post-desc,
.related-post-card:hover .download-btn{color:#fff}
@media(max-width:900px){.related-posts-grid{grid-template-columns:1fr}.related-post-img{height:220px}}

/* ===================== REPORTS ===================== */
.reports-section{background:#f7fbff;padding:68px 0}
.reports-wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.reports-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:14px}
.reports-title{font-size:clamp(36px,6vw,60px);margin:0;font-weight:900}
.reports-sub{color:#65717c}
.reports-share{display:flex;gap:12px;align-items:center}
.share-icons a{display:inline-flex;width:34px;height:34px;border-radius:50%;background:#0f7aa6;color:#fff;align-items:center;justify-content:center;margin-left:6px}

.reports-filters{display:flex;gap:22px;flex-wrap:wrap;margin:10px 0 18px}
.filter-block label{display:block;font-size:13px;color:#5e6a75;margin-bottom:6px}
.select-wrap{position:relative}
.select-wrap select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  border:1px solid #dbe6ee;border-radius:10px;height:44px;padding:0 40px 0 12px;background:#fff
}
.select-wrap .fa-chevron-down{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#748399}

.reports-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.report-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.08);transition:.18s}
.report-thumb img{width:100%;height:320px;object-fit:cover}
.report-body{padding:14px 16px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.report-title{font-size:16px;margin:0;flex:1;color:#27323b}
.report-download{display:inline-flex;gap:8px;align-items:center;color:#0f6fb6;text-decoration:none;font-weight:800}
.report-card:hover{background:#15a9e1}
.report-card:hover .report-title,.report-card:hover .report-download{color:#fff}
@media(max-width:980px){.reports-grid{grid-template-columns:repeat(2,1fr)}.report-thumb img{height:260px}}
@media(max-width:640px){.reports-grid{grid-template-columns:1fr}.report-thumb img{height:220px}}

/* ===================== OUR WORK (tabs) ===================== */
.work-section{background:#fff;padding:60px 0}
.work-wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.work-tabsbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;flex-wrap:wrap}
.work-tabs{display:flex;gap:10px;flex-wrap:wrap}
.work-tab{
  border:none;border-bottom:3px solid transparent;background:transparent;padding:12px 14px;font-weight:800;color:#2e3b47;cursor:pointer
}
.work-tab.is-active{border-color:#15a9e1;color:#0f6fb6}
.work-share{display:flex;gap:10px;align-items:center}
.work-intro{color:#5c6873;margin:10px 0 16px}

.work-panes{margin-top:6px}
.work-pane[hidden]{display:none}
.work-pane.is-active{display:block}
.work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.work-card{display:block;border-radius:14px;overflow:hidden;box-shadow:0 12px 28px rgba(0,0,0,.08)}
.work-card img{width:100%;height:260px;object-fit:cover}
@media(max-width:980px){.work-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.work-grid{grid-template-columns:1fr}.work-card img{height:220px}}

/* ===================== PARTNER CTA ===================== */
.partner-cta-section{background:#222c34;color:#fff;padding:54px 0}
.partner-cta-content{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter);display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}
.partner-cta-left h2{font-size:clamp(40px,6.6vw,86px);line-height:.95;margin:0 0 18px;font-weight:900}
.partner-cta-btn{
  display:inline-flex;align-items:center;gap:10px;background:#15a9e1;color:#fff;text-decoration:none;padding:14px 20px;border-radius:12px;font-weight:800
}
.partner-cta-btn .arrow{display:inline-block;transition:transform .2s ease}
.partner-cta-btn:hover .arrow{transform:translateX(5px)}
.partner-contact{margin-top:16px;color:#d9e7ef}
.partner-cta-right img{width:100%;height:auto;object-fit:contain}
@media(max-width:900px){.partner-cta-content{grid-template-columns:1fr}}

/* Ken Burns on active slide */
.hero-slide img {
  transform: scale(1);
  transition: transform 6s ease-in-out;
  will-change: transform;
}
.hero-slide.is-active img {
  transform: scale(1.06); /* gentle zoom */
}
.hero-nav { opacity:.85; transition: opacity .2s ease; }
.hero-slider:hover .hero-nav { opacity:1; }

/* generic media fill */
.hero-slide img,
.hero-slide video,
.hero-media{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* Ken Burns only for images */
.hero-slide img{ transform:scale(1); transition:transform 6s ease-in-out; will-change:transform; }
.hero-slide.is-active img{ transform:scale(1.06); }

/* ====== FAAYO SECTION ====== */
.faayo-section{background:#eef7fb;padding:48px 0 64px}
.faayo-wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:stretch}

/* Left card */
.faayo-left-card{
  background:#fff;border-radius:18px;box-shadow:0 18px 36px rgba(0,0,0,.08);
  padding:0; overflow:hidden;
}
.faayo-left-inner{padding:34px 28px 24px}
.faayo-title{font-size:clamp(40px,6vw,72px);line-height:.95;margin:0 0 10px;font-weight:900;color:#0f0f0f}
.faayo-title span{color:var(--primary)}
.faayo-lead{color:#495661;max-width:56ch;margin:12px 0 20px}

.faayo-cta-row{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0}
.faayo-btn{
  display:inline-flex;align-items:center;gap:10px;font-weight:800;text-decoration:none;border-radius:12px;
  padding:14px 18px; box-shadow:0 8px 22px rgba(0,0,0,.08)
}
.faayo-btn-primary{background:var(--primary);color:#fff}
.faayo-btn-wa{background:#25D366;color:#0b2e16}
.faayo-btn i{transition:transform .2s ease}
.faayo-btn:hover i{transform:translateX(4px)}

.faayo-qr{display:flex;align-items:center;gap:14px;margin-top:18px}
.faayo-qr small{display:block;color:#7a8a98;font-weight:700}
.faayo-qr img{width:120px;height:120px;object-fit:contain}

/* Right chat panel (replaces 'Capabilities') */
.faayo-chat-panel{
  background:#dff3fd; border-radius:20px; box-shadow:0 18px 36px rgba(0,0,0,.08);
  padding:18px; display:grid; grid-template-rows:auto 1fr auto; min-height:520px;
}
.faayo-chat-head{
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(255,255,255,.6); border-radius:14px; padding:12px 14px; backdrop-filter: blur(4px);
}
.faayo-chat-head h3{margin:0;font-size:24px;font-weight:900;color:#22313c}
.faayo-status{font-weight:700;color:#2a7f49;display:flex;align-items:center;gap:8px}
.faayo-status .fa-circle{font-size:10px}

.faayo-status-off{font-weight:700;color:#fb0101;display:flex;align-items:center;gap:8px}
.faayo-status-off .fa-circle{font-size:10px}

/* Chat window */
.faayo-chat-window{
  margin:14px 0; padding:10px; overflow-y:auto; background:#f7fcff;
  border:1px solid #cfe8f5; border-radius:14px;
}
.faayo-msg{max-width:78%; padding:10px 12px; border-radius:14px; margin:8px 0; line-height:1.4}
.faayo-msg.bot{background:#ffffff; color:#24313b; border:1px solid #ebf3f8}
.faayo-msg.user{background:#15a9e1; color:#fff; margin-left:auto}
.faayo-msg.hint{background:#fff7d6; color:#5b4b12}

/* Input row */
.faayo-chat-input{display:flex;gap:8px}
.faayo-chat-input input{
  flex:1; height:46px; border:1px solid #cfe0ea; border-radius:12px; padding:0 12px; font:inherit;
}
.faayo-send{
  width:46px; height:46px; border:none; border-radius:12px; background:var(--primary); color:#fff; cursor:pointer;
  display:grid; place-items:center; font-size:18px; box-shadow:0 8px 18px rgba(21,169,225,.28)
}

/* Responsive */
@media (max-width:980px){
  .faayo-wrap{grid-template-columns:1fr}
  .faayo-chat-panel{min-height:480px}
}

/* input row */
.faayo-chat-input{display:flex;gap:8px;align-items:flex-end}

.faayo-chat-input textarea{
  flex:1;
  min-height:46px;          /* base */
  max-height:140px;         /* cap before scroll */
  border:1px solid #cfe0ea;
  border-radius:12px;
  padding:10px 12px;
  font:inherit;
  line-height:1.35;
  resize:none;              /* we control height */
  overflow:hidden;          /* becomes auto via JS when capped */
}

.faayo-send{
  width:46px;height:46px;border:none;border-radius:12px;
  background:var(--primary);color:#fff;cursor:pointer;
  display:grid;place-items:center;font-size:18px;
  box-shadow:0 8px 18px rgba(21,169,225,.28)
}


/* keep the right panel at a steady height */
.faayo-chat-panel{
  /* pick a height you like; this keeps it from growing forever */
  height: clamp(520px, 72vh, 760px);
  /* if you want it shorter on small screens: */
}

@media (max-width: 980px){
  .faayo-chat-panel{ height: 64vh; }
}

/* critical for scroll INSIDE the chat window when used in CSS grid */
.faayo-chat-window{
  min-height: 0;         /* <- lets it shrink inside the grid */
  overflow-y: auto;      /* you already had this; keep it */
  /* optional nicety */
  overscroll-behavior: contain;
}

.faayo-wrap{ align-items: start; }  /* was: stretch */

.faayo-qr {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  width: 100%;             /* make sure it can expand */
  margin-top: 20px;        /* optional spacing */
}

.faayo-qr #qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== CIPESA SECTION ===== */
.cipesa-section{background:#fff;padding:48px 0}
.cipesa-wrap{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}

.cipesa-left-card{
  background:#fff;border-radius:18px;box-shadow:0 18px 36px rgba(0,0,0,.28);
  padding:32px 28px
}
.cipesa-title{font-size:clamp(38px,6vw,68px);font-weight:900;line-height:1.05;color:#ee5d0d;margin:0}
.cipesa-title span{color:#111}
.cipesa-lead{margin:18px 0;color:#4a4a4a;font-size:18px;line-height:1.5}
.cipesa-cta-row{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.cipesa-btn{
  display:flex;align-items:center;justify-content:center;
  gap:10px;font-weight:800;text-decoration:none;padding:14px 16px;border-radius:10px
}
.cipesa-btn-wa{background:#25D366;color:#fff}
.cipesa-btn-fb{background:#1877f2;color:#fff}

/* Right chat */
.cipesa-chat-panel{
  background:#fff5f1;border-radius:20px;box-shadow:0 16px 32px rgba(0,0,0,.28);
  display:grid;grid-template-rows:auto 1fr auto;min-height:520px
}
.cipesa-chat-head{
  display:flex;align-items:center;gap:8px;
  padding:12px 16px;color:#999;font-weight:600;font-size:14px
}
.cipesa-chat-window{
  padding:14px;overflow-y:auto;min-height:0
}
.cipesa-msg{
  max-width:80%;padding:12px 14px;border-radius:12px;margin:8px 0;line-height:1.4
}
.cipesa-msg.bot{background:#fff;color:#444;border:1px solid #eee}
.cipesa-msg.user{background:#ee5d0d;color:#fff;margin-left:auto}

.cipesa-chat-input{display:flex;gap:8px;padding:12px}
.cipesa-chat-input input{
  flex:1;height:44px;border:1px solid #ddd;border-radius:22px;
  padding:0 14px;font:inherit
}
.cipesa-send{
  width:44px;height:44px;border:none;border-radius:50%;
  background:#ee5d0d;color:#fff;cursor:pointer;display:grid;place-items:center;font-size:18px
}

.cipesa-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;  /* header, chat window, input */
  min-height: 520px;
  max-height: 61vh;                   /* optional: cap total panel height */
}

.cipesa-chat-window {
  min-height: 0;        /* critical in CSS grid */
  max-height: 100%;     /* respect panel’s row */
  overflow-y: auto;     /* enable scrolling */
  padding: 14px;
  background: #fff5f1;
  border-top: 1px solid #f0e0d9;
  border-bottom: 1px solid #f0e0d9;
}

.cipesa-chat-window {
  scrollbar-width: thin;
  scrollbar-color: #ee5d0d #fff5f1;
}
.cipesa-chat-window::-webkit-scrollbar {
  width: 6px;
}
.cipesa-chat-window::-webkit-scrollbar-thumb {
  background: #ee5d0d;
  border-radius: 4px;
}

/* Typing indicator styles */
.cipesa-msg.typing {
  font-size: 14px;
  color: #aaa;
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}



@media(max-width:900px){.cipesa-wrap{grid-template-columns:1fr;}}

/* ====== DESKTOP: fly-out submenu for nested items ====== */
@media (min-width: 901px){
  /* make sure nested submenu parents are positioned anchors */
  .submenu .has-submenu{ position: relative; }

  /* the fly-out panel */
  .submenu .submenu{
    position: absolute; left: 100%; top: -10px;      /* opens to the right */
    min-width: 260px;
    background:#fff; color:#123; border-radius:8px;
    box-shadow:0 14px 28px rgba(0,0,0,.14);
    padding:14px 0;
    opacity:0; visibility:hidden; transform:translateX(8px);
    transition:.18s; pointer-events:none; z-index:1001;
  }

  /* show on hover/focus */
  .submenu .has-submenu:hover > .submenu,
  .submenu .has-submenu:focus-within > .submenu{
    opacity:1; visibility:visible; transform:translateX(0);
    pointer-events:auto;
  }

  /* right-pointing chevron inside dropdown rows */
  .submenu .has-submenu > a .chev{
    transform: rotate(-90deg);           /* triangle points right */
    margin-left:8px;
  }

  /* optional: keep link rows tidy for fly-out */
  .submenu .has-submenu > a{
    padding-right: 22px;
    display:flex; align-items:center; justify-content:space-between;
  }
}

/* ====== MOBILE: keep accordion behavior for nested submenus ====== */
@media (max-width: 900px){
  /* you already make .submenu static + max-height. Do the same one level deeper. */
  .submenu .submenu{
    position: static !important;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transition: max-height .28s ease;
  }
  /* when the nested LI is opened via JS (adds .sub-open), expand it */
  .submenu .sub-open > .submenu{
    max-height: 460px;
    padding: 6px 0;
  }

  /* rotate the chevron when open (you already do this for first level) */
  .submenu .sub-open > a .chev{ transform: rotate(180deg); }
}

@media (min-width:901px){
  .submenu .has-submenu{ position:relative; }
  .submenu .has-submenu:hover > .submenu,
  .submenu .has-submenu:focus-within > .submenu{
    opacity:1; visibility:visible; transform:translateX(0); pointer-events:auto;
  }
}
