/* ============================================================
   KKA — World Children Organization | Shared Stylesheet
   Version: 2.0 | Multi-page website
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
  --blue: #0099d8;
  --blue-dark: #0077aa;
  --blue-deeper: #005580;
  --blue-light: #e8f6fd;
  --blue-mid: #cce9f7;
  --orange: #f26a21;
  --orange-dark: #d4581a;
  --orange-light: #fef0e8;
  --green: #4caf50;
  --green-dark: #388e3c;
  --green-light: #e8f5e9;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --red: #e53e3e;
  --yellow: #f6c90e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
input,
textarea,
select {
  font-family: inherit;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad {
  padding: 96px 0;
}
.section-pad-sm {
  padding: 64px 0;
}
.text-center {
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-blue {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.badge-orange {
  background: var(--orange-light);
  color: var(--orange);
}
.badge-green {
  background: var(--green-light);
  color: var(--green-dark);
}
.badge-red {
  background: #fee2e2;
  color: var(--red);
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 56px;
}
.section-header .badge {
  margin-bottom: 16px;
}
.section-header .section-title {
  margin-bottom: 16px;
}
.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 600px;
}
.section-header .section-sub {
  margin: 0 auto;
}
.fade-up {
  opacity: 1;
  transform: none;
}
html.js-reveal .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
html.js-reveal .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 153, 216, 0.35);
}
.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 106, 33, 0.35);
}
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}
.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}
.btn-xl {
  padding: 20px 44px;
  font-size: 18px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* ===== GRIDS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* v14-marker-20260804 */
/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}
html.js-reveal .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
html.js-reveal .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-reveal .animate-delay-1 {
  transition-delay: 0.1s;
}
html.js-reveal .animate-delay-2 {
  transition-delay: 0.2s;
}
html.js-reveal .animate-delay-3 {
  transition-delay: 0.3s;
}
html.js-reveal .animate-delay-4 {
  transition-delay: 0.4s;
}

/* ===== PROGRESS BARS ===== */
.progress-bar-wrap {
  background: var(--gray-200);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 153, 216, 0.12);
}
.form-control::placeholder {
  color: var(--gray-400);
}
textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
select.form-control {
  cursor: pointer;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--blue-deeper) 0%,
    var(--blue) 50%,
    var(--blue-dark) 100%
  );
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
/* The in-hero breadcrumb variant keeps its original centered style */
.page-hero .breadcrumb {
  margin-top: 24px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/2.jpg") center/cover no-repeat;
  opacity: 0.12;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.page-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
  color: var(--white);
}
.page-hero .container {
  text-align: center;
}
.page-hero-content {
  text-align: center;
  color: var(--white);
}
.page-hero-content .badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.page-hero-content p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 24px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}
.page-hero .hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--blue-deeper);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}
.topbar-left a:hover {
  color: var(--white);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.topbar-socials {
  display: flex;
  gap: 10px;
}
.topbar-socials a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  transition: color 0.2s;
}
.topbar-socials a:hover {
  color: var(--white);
}

/* ============================================================
   NAVBAR / MEGA MENU
   ============================================================ */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 64px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-text .org-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}
.nav-logo-text .org-tagline {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.5px;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-link i.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.3s;
}
.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border: 1px solid var(--gray-100);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--blue-light);
  color: var(--blue);
}
.dropdown-item i {
  width: 18px;
  color: var(--blue);
  font-size: 13px;
}
.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 0;
}

/* Mega Dropdown */
.mega-dropdown {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mega-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
  padding: 8px 14px 4px;
}

/* Nav CTAs */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-ctas .btn {
  padding: 9px 16px;
  font-size: 13px;
}
.nav-cta-wrap {
  position: relative;
}
.nav-cta-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 230px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border: 1px solid var(--gray-100);
}
.nav-cta-wrap:hover .nav-cta-drop,
.nav-cta-wrap:focus-within .nav-cta-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-cta-drop .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition);
}
.nav-cta-drop .dropdown-item:hover {
  background: var(--blue-light);
  color: var(--blue);
}
.nav-cta-drop .dropdown-item i {
  width: 18px;
  color: var(--blue);
  font-size: 13px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 9999;
  overflow-y: auto;
  padding: 80px 24px 40px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--gray-700);
  cursor: pointer;
  padding: 8px;
}
.mobile-nav-item {
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}
.mobile-nav-link i {
  font-size: 12px;
  transition: transform 0.3s;
}
.mobile-nav-link.open i {
  transform: rotate(180deg);
}
.mobile-sub-menu {
  display: none;
  padding: 0 0 12px 16px;
}
.mobile-sub-menu.open {
  display: block;
}
.mobile-sub-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-50);
}
.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.mobile-ctas .btn {
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.8);
}
.footer-top {
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 28px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand .footer-logo img {
  height: 52px;
  filter: brightness(0) invert(1);
}
.footer-brand .footer-logo-text .org-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
}
.footer-brand .footer-logo-text .org-tagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover {
  color: var(--blue);
}
.footer-col ul li a i {
  font-size: 11px;
}
.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}
.footer-contact-item i {
  color: var(--blue);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
.footer-contact-item strong {
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-bottom: 2px;
}
.footer-hq-block {
  margin-bottom: 24px;
}
.footer-hq-block:last-child {
  margin-bottom: 0;
}
.footer-hq-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-hq-title i {
  color: var(--blue);
  font-size: 14px;
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover {
  color: var(--blue);
}
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.footer-newsletter h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-newsletter p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.footer-newsletter-form {
  display: flex;
  gap: 8px;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 13px;
  outline: none;
}
.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.footer-newsletter-form button {
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.footer-newsletter-form button:hover {
  background: var(--blue-dark);
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom {
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: var(--blue);
}

/* ============================================================
   AI CHAT WIDGET
   ============================================================ */
.ai-chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
}
.ai-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 153, 216, 0.45);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
}
.ai-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 153, 216, 0.55);
}
.ai-chat-btn .pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.ai-chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
}
.ai-chat-panel.open {
  display: block;
}
.ai-chat-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-chat-header .ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
}
.ai-chat-header .ai-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.ai-chat-header .ai-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.ai-chat-body {
  padding: 20px;
  min-height: 200px;
}
.ai-chat-body .ai-msg {
  background: var(--blue-light);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 12px;
}
.ai-chat-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
}
.ai-chat-footer input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.ai-chat-footer button {
  padding: 10px 14px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
  .nav-link {
    padding: 10px 10px;
  }
  .nav-ctas .btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 1100px) {
  .nav-ctas .btn:nth-child(3),
  .nav-ctas .btn:nth-child(4) {
    display: none;
  }
  /* v14: compact nav so it fits 901-1100px laptops without overflow */
  .nav-ctas .btn {
    padding: 8px 9px;
    font-size: 11.5px;
  }
  .nav-ctas .btn i {
    margin-right: 3px;
  }
  .nav-link {
    padding: 10px 7px;
    font-size: 12.5px;
    gap: 3px;
  }
  .nav-link i.fa-chevron-down {
    display: none;
  }
  .nav-logo {
    gap: 8px;
  }
  .nav-logo img {
    height: 48px;
    width: auto;
  }
  .nav-logo-text .org-name {
    font-size: 12.5px;
  }
  .nav-logo-text .org-tagline {
    font-size: 9.5px;
  }
  .navbar .container {
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .nav-ctas {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topbar-left {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .section-pad {
    padding: 64px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }
  .publications-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  .ai-chat-panel {
    width: 300px;
    right: -8px;
  }
  .topbar-right {
    gap: 8px;
  }
  .page-hero {
    padding: 90px 0 60px;
  }
  .page-hero h1,
  .page-hero-content h1 {
    font-size: 30px;
  }
  .page-hero p,
  .page-hero-content p {
    font-size: 15px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .btn-xl {
    padding: 16px 26px;
    font-size: 16px;
    white-space: normal;
    max-width: 100%;
  }
  .btn {
    white-space: normal;
  }
  .btn-lg {
    white-space: normal;
  }

  /* ===== v13 mobile fixes: inline-grid overrides & spacing ===== */
  /* Home hero: give breathing room above the CTA stack so nothing is clipped
     NOTE: keep horizontal gutters (16px) so hero text never touches screen edges */
  .hero-content {
    padding: 110px 16px 120px;
  }
  /* Home hero: on short phones shrink CTA buttons to 2-per-row so nothing clips */
  .hero-ctas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero-ctas .btn,
  .hero-ctas a {
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 13px;
    padding: 12px 8px;
    line-height: 1.3;
  }
  /* Chat launcher: on phones hug the corner so it never covers the CTA stack */
  .ai-chat-widget {
    bottom: 16px;
    right: 16px;
  }
  /* Bangladesh Network (about.html): 8 division cards -> 2 columns on phones */
  #district div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Program pages: main content/sidebar 2fr-1fr -> 1 column, sidebar below */
  section[style*="padding:80px"] > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Program pages only: 3-col stats & photo gallery -> 1 column on phones */
  section[style*="padding:80px"]
    div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Program pages only: Quick-Donate amount buttons stay 2-across (compact pair) */
  section[style*="padding:80px"] div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ===== v14/v15 home hero & Our Impact mobile fixes ===== */
  /* Home hero: scale headline so it never wraps to 5 lines on tiny phones.
     The home page's own <style> block comes AFTER shared.css in the cascade,
     so these need !important to win over it on mobile. */
  .hero h1 {
    font-size: clamp(30px, 8.5vw, 44px) !important;
    line-height: 1.15 !important;
  }
  /* Home hero: scale paragraph + badge for narrow phones */
  .hero p {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
  }
  .hero-badge {
    font-size: 12px !important;
    padding: 7px 14px !important;
  }
  /* Home hero: wrap CTAs to a single column on very small phones (2x2 -> 1x4) */
  @media (max-width: 360px) {
    .hero-ctas {
      grid-template-columns: 1fr !important;
      gap: 8px;
    }
    .hero-ctas .btn,
    .hero-ctas a {
      font-size: 12.5px !important;
      padding: 11px 8px !important;
    }
  }
  /* Home hero: reduce stat padding/divider spacing on phones */
  .hero-stats {
    gap: 18px;
  }
  .hero-stat .num {
    font-size: 26px;
  }
  .hero-stat .lbl {
    font-size: 10.5px;
    letter-spacing: 0.4px;
  }

  /* ===== v16 fix: Our Impact grid — NEVER let stat cards overflow/clip =====
     The 44px "2,000,000+" number forces grid min-content wider than the
     container; the section's overflow:hidden then silently clips the right
     edge of the stat cards. minmax(0,1fr) lets tracks shrink below content. */
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .impact-item {
    min-width: 0;
    padding: 24px 12px !important;
  }
  .impact-num {
    font-size: clamp(24px, 7vw, 40px) !important;
  }
  .impact-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }
  /* Chat launcher must never cover the impact numbers on phones */
  .ai-chat-widget {
    bottom: 16px;
    right: 16px;
  }

  /* Navbar: let the logo name/tagline shrink on tiny phones so the hamburger stays inside the viewport */
  .navbar .container {
    gap: 8px;
  }
  .nav-logo {
    gap: 8px;
  }
  .nav-logo img {
    height: 52px;
  }
  .nav-logo-text .org-name {
    font-size: 13px;
    white-space: normal;
    line-height: 1.15;
  }
  .nav-logo-text .org-tagline {
    white-space: normal;
    font-size: 9.5px;
    line-height: 1.15;
  }
  .hamburger {
    flex-shrink: 0;
  }
  /* Newsletter: shrink form-wrap padding on phones so the block fits the viewport */
  .newsletter-form-wrap {
    padding: 20px;
  }
  .newsletter-inner {
    gap: 24px;
  }
  .newsletter-text h2 {
    font-size: 28px;
  }
}

/* v13 mobile fixes: tablet 601-900px — program pages stack to 1 column with sidebar below */
@media (min-width: 601px) and (max-width: 900px) {
  section[style*="padding:80px"] > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  section[style*="padding:80px"]
    div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* v16 fix: Our Impact — tablets (601-768px): 2 columns, never 3 squeezed tracks.
   index.html's 900px rule sets repeat(3,1fr) which can't shrink below the
   44px number's min-content; at 768px that produced 283/196/160px tracks with
   the 4th+5th cards wrapping awkwardly. minmax(0,1fr) + 2 cols keeps it clean. */
@media (min-width: 601px) and (max-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .impact-item {
    min-width: 0;
    padding: 28px 16px !important;
  }
  .impact-num {
    font-size: clamp(24px, 5vw, 40px) !important;
  }
}
