@media (max-width: 700px) {
  .top-bar-right .social-icon {
    display: none !important;
  }
}
/* Fade-in effect for top navigation bar */
.top-bar.nav-fade {
  transition: box-shadow 0.4s, background 0.4s, opacity 0.4s;
  box-shadow: 0 2px 16px rgba(15,23,42,0.18);
  background: #fff;
  opacity: 0.92;
}
/* Dark Theme Styles */
body.dark-theme {
  background: #1a232a;
  color: #e0e0e0;
}
.dark-theme .container,
.dark-theme .main-footer,
.dark-theme .colored-footer {
  background: #222c36;
  color: #e0e0e0;
}
.dark-theme .card,
.dark-theme .info-card {
  background: #232b33;
  color: #e0e0e0;
  border-color: #2c3a4a;
}
.dark-theme .cta,
.dark-theme .button {
  background: #0f766e;
  color: #fff;
}
.dark-theme .carousel-indicator {
  background: #2c3a4a;
}
.dark-theme .carousel-indicator.active {
  background: #0f766e;
}
.dark-theme .map-filter-btn {
  background: #232b33;
  color: #e0e0e0;
  border-color: #2c3a4a;
}
.dark-theme .map-filter-btn.active {
  background: #0f766e;
  color: #fff;
}
/* Theme Switcher Animation */
body, .container, .main-footer, .colored-footer {
  transition: background 0.5s, color 0.5s;
}
/* Map Filter Buttons */
.map-filters {
  margin-bottom: 12px;
}
.map-filter-btn {
  background: #f0fff7;
  color: #0f766e;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 6px 18px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(15,23,42,0.08);
}
.map-filter-btn.active {
  background: var(--accent, #0f766e);
  color: #fff;
  border-color: var(--accent, #0f766e);
}
.map-filter-btn:hover {
  background: #e6e9ee;
  color: #0d9b8a;
}
/* Chat Quick Replies */
.chat-quick-replies {
  margin: 8px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.quick-reply {
  background: #f0fff7;
  color: #0f766e;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(15,23,42,0.08);
}
.quick-reply:hover {
  background: #e6e9ee;
  color: #0d9b8a;
}
.chat-messages strong {
  font-size: 1.05em;
}
/* Spinner Loader for Forms */
.form-spinner .lds-ring {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
}
.form-spinner .lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 24px;
  height: 24px;
  margin: 4px;
  border: 3px solid var(--accent, #0f766e);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--accent, #0f766e) transparent transparent transparent;
}
.form-spinner .lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.form-spinner .lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.form-spinner .lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Error/Success Feedback */
.error-message {
  color: #b82323;
  font-size: 0.95em;
  margin-top: 2px;
  min-height: 18px;
  display: block;
}
.input-error {
  border-color: #b82323 !important;
  background: #fff0f0;
}
.input-success {
  border-color: #0f766e !important;
  background: #f0fff7;
}
/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0 0;
}
.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e6e9ee;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 1px 4px rgba(15,23,42,0.08);
}
.carousel-indicator.active {
  background: var(--accent, #0f766e);
  box-shadow: 0 2px 8px rgba(15,118,110,0.12);
}
/* Improved centering for History page */
.history-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
.history-hero-content-centered {
  max-width: 600px;
  margin: 0 auto 24px auto;
}
.history-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}
.history-img-centered {
  display: block;
  margin: 0 auto;
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.10);
}
.history-reference-note {
  margin-top: 18px;
  color: #888;
  font-size: 0.98rem;
}
@media (max-width: 700px) {
  .history-hero-content-centered {
    max-width: 98vw;
    padding: 0 6px;
  }
  .history-img-centered {
    max-width: 98vw;
    width: 100%;
    height: auto;
  }
  .history-image-section {
    margin-bottom: 12px;
  }
}
/* Centering for History page */
.history-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.history-hero-grid-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.history-hero-content-centered {
  max-width: 600px;
  margin: 0 auto 18px auto;
}
.history-carousel-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.history-img-centered {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.10);
}
@media (max-width: 700px) {
  .history-hero-content-centered {
    max-width: 98vw;
    padding: 0 6px;
  }
  .history-img-centered {
    width: 100%;
    max-width: 98vw;
    height: auto;
  }
}
/* Colored bottom footer styles */
.colored-footer {
  background: linear-gradient(90deg, #0f766e 60%, #76737300 100%);
  color: #ffffff;
  padding: 32px 0 0 0;
  margin-top: 0;
  border-top: none;
  width: 100%;
}
.footer-social-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-social-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.colored-footer .footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
.colored-footer .social-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.colored-footer .social-icon:hover {
  background: #fff;
  color: #0f766e;
  transform: scale(1.12);
}
.footer-bottom-colored {
  text-align: center;
  color: #fff;
  font-size: 1rem;
  margin: 18px 0 0 0;
  padding-bottom: 18px;
  opacity: 0.95;
}
@media (max-width: 700px) {
  .colored-footer {
    padding: 18px 0 0 0;
  }
  .footer-social-row {
    gap: 8px;
  }
  .colored-footer .footer-social {
    gap: 10px;
  }
  .footer-bottom-colored {
    font-size: 0.95rem;
    padding-bottom: 12px;
  }
}
/* --- Mobile Navigation Fix --- */
@media (max-width: 900px) {
  /* Hide the menu by default */
  .top-nav {
    display: none !important;
    flex-direction: column;
    background: #fff;
    position: fixed; /* Changed to fixed for proper positioning below top-bar */
    top: 64px; /* Matches body padding-top on mobile */
    left: 0;
    width: 100vw;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    padding: 16px 0 8px 0;
    z-index: 999; /* Below top-bar's 1000 */
    transition: transform 0.3s;
    gap: 0;
    transform: translateY(-100%);
  }

  /* Show menu when hamburger is active */
  .top-nav.active {
    display: flex !important;
    transform: translateY(0);
  }

  /* Stack menu items vertically */
  .top-nav > * {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
    box-sizing: border-box;
  }

  .top-nav > *:last-child {
    border-bottom: none;
  }

  /* Adjust dropdowns for mobile */
  .top-nav .nav-dropdown {
    width: 100%;
  }

  .top-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: 0;
    background: #f8fafc;
    border-radius: 0;
    padding-left: 18px;
    display: none; /* Hide submenus by default */
  }
/* Show submenu on toggle hover */

  
  .top-nav .dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  /* Show hamburger on mobile */
  .hamburger {
    display: block !important;
    position: absolute;
    left: 8px;
    top: 16px;
    z-index: 1100;
    background: none;
    border: none;
    cursor: pointer;
  }
  .top-bar-left {
    margin-left: 38px; /* Add space so logo doesn't overlap hamburger */
  }
}

/* Hide hamburger on desktop */
@media (min-width: 901px) {
  .hamburger {
    display: none !important;
  }
}

/* Responsive adjustments for interactive overlay icons */
@media (max-width: 900px) {
  .float-leaf { left: 4vw; top: 10vh; width: 28px !important; height: 28px !important; }
  .float-heart { right: 6vw; top: 22vh; width: 22px !important; height: 22px !important; }
  .float-hands { left: 10vw; bottom: 8vh; width: 22px !important; height: 22px !important; }
  .float-people { right: 8vw; bottom: 6vh; width: 22px !important; height: 22px !important; }
}
@media (max-width: 600px) {
  .float-icon { display: none; }
}

/* General responsive improvements */
html {
  font-size: 16px;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  padding-top: 70px; /* Added: Space for fixed top-bar */
}
@media (max-width: 900px) {
  html { font-size: 15px; }
  body { padding-top: 64px; } /* Adjusted for mobile */
  .container { padding: 12px; }
  .hero-grid, .footer-grid, .info-sections, .about-vm-grid, .about-values-grid, .about-impact-grid, .about-team-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .card, .info-card, .proj, .counter-box, .newsletter-section {
    padding: 12px 8px !important;
    font-size: 0.98rem !important;
  }
  .carousel-slide img, .carousel {
    height: 160px !important;
    min-height: 120px !important;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  .container { padding: 4px; }
  .top-bar, .main-footer, .newsletter-section {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .carousel-slide img, .carousel {
    height: 90px !important;
    min-height: 60px !important;
  }
  .card, .info-card, .proj, .counter-box, .newsletter-section {
    padding: 6px 2px !important;
    font-size: 0.92rem !important;
  }
}
/* --- Interactive Animated Overlay Icons (UI enhancement only) --- */
.interactive-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 2;
  pointer-events: none;
}
.float-icon {
  position: absolute;
  will-change: transform;
  opacity: 0.8;
}
.float-leaf {
  left: 8vw; top: 18vh;
  animation: floatLeaf 12s ease-in-out infinite alternate;
}
.float-heart {
  right: 12vw; top: 32vh;
  animation: floatHeart 14s ease-in-out infinite alternate;
}
.float-hands {
  left: 22vw; bottom: 14vh;
  animation: floatHands 16s ease-in-out infinite alternate;
}
.float-people {
  right: 18vw; bottom: 10vh;
  animation: floatPeople 18s ease-in-out infinite alternate;
}
@keyframes floatLeaf {
  0% { transform: translateY(0) scale(1) rotate(-8deg); }
  100% { transform: translateY(-32px) scale(1.08) rotate(8deg); }
}
@keyframes floatHeart {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-24px) scale(1.1) rotate(-10deg); }
}
@keyframes floatHands {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-18px) scale(1.07) rotate(10deg); }
}
@keyframes floatPeople {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-28px) scale(1.05) rotate(-6deg); }
}
:root{--accent:#0f766e;--muted:#6b7280;--bg:#f8fafc}
*,::before,::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Inter,ui-sans-serif,system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;line-height:1.5;margin:0;background:var(--bg);color:#0f172a;font-size:17px;word-break:break-word;}
/* Skip to main content link */
.skip-link {
  position: absolute;
  left: 0;
  top: -40px;
  background: #0f766e;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.3s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}
.container{max-width:1100px;margin:0 auto;padding:28px}
header{background:#fff;box-shadow:0 6px 18px rgba(15,23,42,0.06);position:sticky;top:0;z-index:40}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 20px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:44px;width:auto}
nav ul{display:flex;gap:18px;list-style:none;padding:0;margin:0}
nav a{color:var(--muted);text-decoration:none;font-weight:600}
.hero{background:linear-gradient(180deg,rgba(15,118,110,0.06),transparent);padding:56px 20px;border-radius:12px;margin-top:18px}
.hero-grid{display:grid;grid-template-columns:1fr 380px;gap:28px;align-items:center}
h1{font-size:34px;margin:0 0 8px}
p.lead{color:var(--muted);margin:0 0 18px}
.cta{display:inline-block;background:var(--accent);color:white;padding:10px 16px;border-radius:8px;text-decoration:none;font-weight:600;box-shadow:0 2px 8px rgba(15,118,110,0.12);transition:transform .2s,box-shadow .2s}
.cta:hover{transform:scale(1.09);box-shadow:0 4px 16px rgba(15,118,110,0.25), 0 0 20px rgba(15,118,110,0.1);filter:brightness(1.08);background:linear-gradient(90deg, #0f766e 60%, #0d9b8a 100%);animation:pulse 0.5s;}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #0f766e44; }
  70% { box-shadow: 0 0 0 10px #0f766e22; }
  100% { box-shadow: 0 0 0 0 #0f766e44; }
}
.card{background:white;padding:18px;border-radius:10px;box-shadow:0 6px 18px rgba(2,6,23,0.04);transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-6px) scale(1.04);box-shadow:0 12px 32px rgba(2,6,23,0.12);border: 1.5px solid #0f766e22;}
.error-message {
  color: #b82323;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
  min-height: 18px;
}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:18px}
.small{font-size:14px;color:var(--muted);line-height:1.6}
#gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
@media (max-width: 900px) {
  #gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
@media (max-width: 600px) {
  #gallery {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
@media (max-width: 700px) {
  .top-bar { flex-direction: column; align-items: flex-start; padding: 10px 8px; position: relative; }
  .top-nav { gap: 8px; margin: 8px 0; flex-direction: column; width: 100%; }
  .top-nav .nav-dropdown { width: 100%; }
  .top-nav a, .dropdown-toggle { width: 100%; text-align: left; }
  .top-bar-right { gap: 8px; margin-top: 8px; }
  #gallery { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 13px; }
  .container { padding: 2px; }
  .top-bar, .main-footer, .newsletter-section {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .card, .info-card, .proj, .counter-box, .newsletter-section {
    padding: 4px 1px !important;
    font-size: 0.90rem !important;
  }
  #gallery img { height: 60px; }
}

#gallery img {
  width: 100%;
  height: 220px; /* set a fixed height */
  object-fit: cover; /* crops image nicely */
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15,118,110,0.10);
  transition: transform 0.3s;
  cursor: default; /* optional */
}.section{margin-top:28px}
.projects .proj{padding:14px;border-radius:8px;background:#fff}
footer{margin-top:36px;padding:18px 0;color:var(--muted);text-align:center}
.contact-form input,.contact-form textarea{width:100%;padding:10px;border:1px solid #e6e9ee;border-radius:8px;margin-top:8px}
.contact-form button{margin-top:10px;padding:10px 14px;border-radius:8px;border:0;background:var(--accent);color:white;font-weight:600}
.gallery img:active{transform:scale(1.12)}
.theme-toggle {
  position:relative;
  display:inline-block;
  margin-left:18px;
  background:var(--bg);
  border:1px solid #e6e9ee;
  border-radius:50%;
  width:38px;
  height:38px;
  cursor:pointer;
  transition:background .2s;
  box-shadow:0 2px 8px rgba(15,23,42,0.08);
  font-size:20px;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
}
.theme-toggle:hover{background:#e6e9ee}
body.dark-mode{background:#18181b;color:#f3f4f6}
body.dark-mode header{background:#23232a;box-shadow:0 6px 18px rgba(0,0,0,0.18)}
body.dark-mode .card,body.dark-mode .projects .proj,body.dark-mode .modal-content{background:#23232a;color:#f3f4f6}
body.dark-mode .cta{background:#0d9b8a;color:#fff}
body.dark-mode nav a{color:#e6e9ee}
body.dark-mode .back-to-top{background:#0d9b8a}
body.dark-mode .theme-toggle{background:#23232a;border-color:#444}
body.dark-mode .gallery img{box-shadow:0 2px 12px rgba(0,0,0,0.18)}
.nav-inner.scrolled{box-shadow:0 2px 12px rgba(15,23,42,0.18);background:#e6e9ee}
.gallery img:hover{transform:scale(1.03)}
.lightbox{display:none;position:fixed;z-index:100;padding-top:60px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(15,23,42,0.8)}
.lightbox-content{margin:auto;display:block;width:80%;max-width:700px;border-radius:8px}
.lightbox-close{position:absolute;top:15px;right:35px;color:#f1f1f1;font-size:40px;font-weight:bold;transition:0.3s}
.lightbox-close:hover,.lightbox-close:focus{color:#bbb;text-decoration:none;cursor:pointer}
.hamburger{display:none;cursor:pointer;background:none;border:none;padding:0}
.hamburger .bar{display:block;width:25px;height:3px;margin:5px auto;background-color:var(--muted);transition:all .3s ease-in-out}
/* responsive */
@media (max-width:768px) {
  .container {
    flex-direction: column;
  }
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner styles for contact/newsletter forms */
.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}
.lds-ring {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 38px;
  height: 38px;
  margin: 5px;
  border: 4px solid #0f766e;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #0f766e transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Focus states for accessibility */
button:focus, .cta:focus, .social-icon:focus, .carousel-btn:focus {
  outline: 2px solid #0d9b8a;
  outline-offset: 2px;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0d9b8a;
}

/* Success modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
html {
  font-size: 16px;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  padding-top: 70px; /* Added: Space for fixed top-bar */
}

/* Improved mobile text justification and readability */
.container, .section, p, .lead, .card, .info-card, .newsletter-section, .main-footer, .colored-footer {
  text-align: justify;
  text-justify: auto;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 700px) {
  .container, .section, p, .lead, .card, .info-card, .newsletter-section, .main-footer, .colored-footer {
    text-align: justify;
    text-justify: auto;
    word-break: normal;
    hyphens: auto;
    font-size: 1rem;
    padding-left: 6px;
    padding-right: 6px;
    letter-spacing: normal;
  }
  h1, h2, h3, h4, h5, h6 {
    text-align: left;
    word-break: break-word;
  }
}
  color: black;
  text-decoration: none;
}
/* FIXED TOP BAR - Full correction */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 32px 12px 16px; /* Slightly adjusted for better mobile fit */
  box-shadow: 0 2px 12px rgba(15,23,42,0.08);
  position: fixed !important; /* Critical: Fixed positioning */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* High z-index for overlay */
  transition: all 0.3s ease; /* Smooth shrink on scroll */
}

/* Optional scrolled state for shrink effect */
.top-bar.scrolled {
  padding: 8px 32px 8px 16px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.15);
}

.top-bar-left {
  display: flex;
  align-items: center;
}
.top-logo {
  height: 44px;
  width: auto;
  margin-right: 18px;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .top-logo {
    height: 32px !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
  }
  .top-bar {
    align-items: center !important;
    min-height: 48px !important;
  }
}
.top-nav {
  display: flex;
  gap: 14px;
  font-size: 0.92rem;
  flex-wrap: nowrap;
  overflow-x: visible;
}
.top-nav a, .dropdown-toggle {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.top-nav a:hover, .dropdown-toggle:hover {
  background: #e6e9ee;
  color: #0d9b8a;
}
.top-bar-right {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: auto;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  color: #0f766e;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 20px;
  text-decoration: none;
}
.social-icon:hover {
  background: #0f766e;
  color: #fff;
  transform: scale(1.12);
}
.social-icon.linkedin:hover { background: #0077b5; }
.social-icon.mail:hover { background: #ea4335; }
.social-icon.youtube:hover { background: #ff0000; }
.social-icon.instagram:hover { background: #e1306c; }
.social-icon.twitter:hover { background: #1da1f2; }
@media (max-width: 700px) {
  .top-bar-right { gap: 8px; flex-wrap: wrap; }
  .footer-social-row, .colored-footer .footer-social {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto 32px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.10);
}
.carousel {
  position: relative;
  width: 100%;
  height: 340px; /* match your image height */
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
}
.carousel-caption {
  position: absolute;
  bottom: 24px;
  left: 32px;
  background: rgba(15,23,42,0.7);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.carousel-btn:hover {
  background: #0f766e;
  transform: translateY(-50%) scale(1.12);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
@media (max-width: 700px) {
  .carousel-slide img { height: 180px; }
  .carousel-caption { left: 12px; right: 12px; font-size: 1rem; padding: 8px 12px; }
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 18px;
  text-align: left;
}
.info-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr
  ));
  gap: 24px;
  margin: 32px 0;
}
.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.08);
  padding: 24px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.info-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(15,23,42,0.14);
}
.info-card h3 {
  font-size: 1.2rem;
  color: #0f766e;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
}
.info-card a {
  color: #0d9b8a;
  text-decoration: underline;
  font-weight: 600;
  margin-top: auto;
  transition: color 0.2s;
}
.info-card a:hover {
  color: #ea4335;
}
@media (max-width: 700px) {
  .info-sections { grid-template-columns: 1fr; gap: 16px; }
  .info-card { padding: 16px 8px; }
}
.main-footer {
  background: #f8fafc;
  padding: 32px 0 0 0;
  margin-top: 48px;
  border-top: 1px solid #e6e9ee;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.footer-grid h3 {
  color: #0f766e;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-grid p {
  color: #444;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.footer-bottom {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin: 24px 0 0 0;
  padding-bottom: 18px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}
.newsletter-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.08);
  max-width: 500px;
  margin: 32px auto;
  padding: 32px 24px 24px 24px;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 8px 0;
}
.newsletter-form input[type="email"] {
  padding: 10px 14px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  font-size: 1rem;
  width: 60%;
}
.newsletter-form button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: #0f766e;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover {
  background: #0d9b8a;
}
.newsletter-note {
  color: #6b7280;
  font-size: 0.98rem;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .newsletter-section { padding: 18px 8px; }
  .newsletter-form input[type="email"] { width: 100%; }
}
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  cursor: pointer;
  font-size: 0.92rem;
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
  z-index: 10;
  border-radius: 8px;
  top: 100%;
  left: 0;
  font-size: 0.90rem;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #0f766e;
  text-decoration: none;
  border-bottom: 1px solid #e6e9ee;
  font-size: 0.90rem;
}
.dropdown-menu a:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover {
  background: #e6e9ee;
  color: #0d9b8a;
}
.dropdown-menu .nav-dropdown {
  position: relative;
}
.dropdown-menu .nav-dropdown > .dropdown-toggle {
  position: relative;
  cursor: pointer;
}
.dropdown-menu .nav-dropdown > .dropdown-menu {
  display: none;
}
.dropdown-menu .nav-dropdown:hover > .dropdown-menu,
.dropdown-menu .nav-dropdown:focus-within > .dropdown-menu {
  display: block;
  left: 100%;
  top: 0;
}
@media (max-width: 700px) {
  .top-nav { gap: 6px; font-size: 0.90rem; }
  .top-nav a, .dropdown-toggle { font-size: 0.90rem; padding: 5px 5px; }
  .dropdown-menu { min-width: 100px; font-size: 0.88rem; }
  .dropdown-menu a { font-size: 0.88rem; padding: 6px 8px; }
}
.counter-section {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 40px 0 32px 0;
}
.counter-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.08);
  padding: 24px 32px;
  text-align: center;
  min-width: 120px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.counter-box:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px rgba(15,23,42,0.14);
}
.counter-box h3 {
  font-size: 1.1rem;
  color: #0f766e;
  margin-bottom: 8px;
}
.counter {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0d9b8a;
  display: inline-block;
  margin-bottom: 4px;
  transition: color 0.2s;
}
@media (max-width: 700px) {
  .counter-section { flex-direction: column; gap: 18px; }
  .counter-box { padding: 18px 12px; min-width: 80px; }
  .counter { font-size: 1.5rem; }
}

/* About Page Styles */
.about-hero {
  background: #f5f7fa;
  padding: 48px 0 32px 0;
  text-align: center;
}
.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-lead {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.about-hero-img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.08);
}
.about-vm-section {
  background: #fff;
  padding: 40px 0;
}
.about-vm-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.about-vm-card {
  background: #eaf2fb;
  padding: 32px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 340px;
  flex: 1 1 300px;
}
.about-values-section {
  background: #f5f7fa;
  padding: 40px 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.about-values-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.about-value-card {
  background: #fff;
  padding: 24px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 220px;
  flex: 1 1 180px;
  text-align: center;
}
.about-impact-section {
  background: #fff;
  padding: 40px 0;
}
.about-impact-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.about-impact-card {
  background: #eaf2fb;
  padding: 28px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 180px;
  flex: 1 1 140px;
  text-align: center;
}
.about-team-section {
  background: #f5f7fa;
  padding: 40px 0;
}
.about-team-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.about-team-card {
  background: #fff;
  padding: 30px 18px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 320px;
  flex: 1 1 180px;
  text-align: center;
}
.about-team-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}
.about-team-section-bottom {
  margin-bottom: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
}
@media (min-width: 900px) {
  .about-team-section-bottom {
    min-height: 350px;
  }
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .about-vm-grid, .about-values-grid, .about-impact-grid, .about-team-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .top-bar { /* Override any remaining relative positioning */
    padding: 10px 16px;
  }
  .top-bar.scrolled {
    padding: 8px 16px;
  }
}
.horizontal-board {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
}
.horizontal-board-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  width: 100%;
}
@media (max-width: 900px) {
  .horizontal-board-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}
.partners-section {
  background: #f5f7fa;
  padding: 40px 0;
  text-align: center;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
  justify-items: center;
}
.partner-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 24px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  min-width: 180px;
  max-width: 260px;
}
.partner-contact {
  margin-top: 32px;
  background: #eaf2fb;
  padding: 24px 18px;
  border-radius: 8px;
  display: inline-block;
  text-align: left;
}
.partner-contact a {
  color: #0077b6;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .partner-card {
    min-width: unset;
    max-width: unset;
  }
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
  position: relative;
  height: 120px; /* Fixed height for smooth transition */
  overflow: hidden;
}
.testimonial-carousel .carousel-slide {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0; transition: opacity 0.6s;
}
.testimonial-carousel .carousel-slide.active {
  opacity: 1;
}
.testimonial-carousel .carousel-btn {
  background: rgba(15,118,110,0.7); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem;
}

/* Map Mobile Tweak */
@media (max-width: 700px) {
  #map { height: 300px; }
}

/* Additional mobile top-bar overrides for consistency */
@media (max-width: 700px) {
  .top-bar {
    flex-direction: row; /* Keep row on small mobile for space */
    padding: 10px 16px;
  }
  .top-nav {
    display: none; /* Ensure hidden until active */
  }
}
/* Chatbox UI/UX Enhancements 
.chatbox-container {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
  max-width: 340px;
  font-family: inherit;
}
.chatbox {
  width: 320px;
  background: linear-gradient(135deg, #e0f7fa 0%, #0f766e 100%);
  border-radius: 18px 18px 10px 10px;
  box-shadow: 0 4px 18px rgba(15,118,110,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatboxIn 0.7s cubic-bezier(.4,0,.2,1);
}*/

@keyframes chatboxIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/*.chatbox-header {
  background: #0f766e;
  color: #fff;
  padding: 14px 18px;
  border-radius: 18px 18px 0 0;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
}*/
.chatbox-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.chatbox-toggle:hover {
  color: #b82323;
  transform: scale(1.2);
}
/* Chatbox Styles */
.chatbox-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}
.chatbox {
  width: 320px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  overflow: hidden;
  transition: height 0.3s;
  border: 1.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 420px;
  max-height: 70vh;
}
.chatbox-header {
  background: linear-gradient(90deg, #0f766e 60%, #ffffff 100%);
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
}
.chatbox-header span {
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 8px;
}
.chat-messages {
  flex: 1;
  padding: 16px 14px 10px 14px;
  background: #f7fafc;
  overflow-y: auto;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-form-ui {
  display: flex;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
}
.chat-form-ui input[type="text"] {
  flex: 1;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
}
.chat-form-ui input[type="text"]:focus {
  box-shadow: 0 0 0 2px #0f766e33;
}
.chat-form-ui button {
  background: linear-gradient(90deg, #0f766e 60%, #ffffff 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-form-ui button:hover {
  background: linear-gradient(90deg, #b82323 60%, #0f766e 100%);
}
.user-msg {
  align-self: flex-end;
  background: linear-gradient(90deg, #0f766e 60%, #b82323 100%);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  max-width: 80%;
  margin-bottom: 2px;
  font-size: 1rem;
  animation: fadeInRight 0.4s;
  box-shadow: 0 2px 8px 0 #0f766e22;
  position: relative;
}
.bot-msg {
  align-self: flex-start;
  background: #f3f4f6;
  color: #222;
  padding: 8px 14px;
  border-radius: 16px 16px 16px 4px;
  max-width: 80%;
  margin-bottom: 2px;
  font-size: 1rem;
  box-shadow: 0 1px 4px 0 #e0e0e0;
  animation: fadeInLeft 0.4s;
  position: relative;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
/* Typing indicator animation */
.dotdotdot {
  display: inline-block;
  width: 1.2em;
  text-align: left;
}
.dotdotdot:after {
  content: '...';
  animation: dots 1.2s steps(3, end) infinite;
}
@keyframes dots {
  0%, 20% { color: rgba(0,0,0,0); text-shadow: .3em 0 0 rgba(0,0,0,0), .6em 0 0 rgba(0,0,0,0); }
  40% { color: #b82323; text-shadow: .3em 0 0 rgba(0,0,0,0), .6em 0 0 rgba(0,0,0,0); }
  60% { color: #b82323; text-shadow: .3em 0 0 #b82323, .6em 0 0 rgba(0,0,0,0); }
  80%, 100% { color: #b82323; text-shadow: .3em 0 0 #b82323, .6em 0 0 #b82323; }
}
/* Responsive chatbox */
@media (max-width: 600px) {
  .chatbox {
    width: 96vw;
    min-width: 0;
    max-width: 96vw;
    right: 2vw;
    left: 2vw;
    bottom: 2vw;
    max-height: 55vh;
    font-size: 0.98rem;
    border-radius: 14px 14px 0 0;
  }
  .chatbox-container {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    padding: 0;
    max-width: 100vw;
  }
}
@media (max-width: 800px) {
  #gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Sticky header styles */
.top-bar.sticky {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(15,23,42,0.10);
  animation: stickyFadeIn 0.5s;
}
@keyframes stickyFadeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Parallax hero section */
.hero {
  background-attachment: fixed;
  background-position: center 0;
  transition: background-position 0.3s;
}
/* Reveal-on-scroll effect */
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Gamification styles */
.badge-card img {
  filter: drop-shadow(0 2px 6px #0f766e22);
}
.badge-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.badge-card:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(15,118,110,0.18);
}
.points-card {
  font-size: 1.1rem;
  color: #0f766e;
  border: 2px solid #0d9b8a22;
}
.quiz-section button {
  cursor: pointer;
  transition: background 0.2s;
}
.quiz-section button:hover {
  background: #0d9b8a;
}
#quiz-result {
  animation: fadeIn 0.7s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Badge Modal Styles */
#badge-modal .modal-content {
  max-width: 500px;
  padding: 30px;
  text-align: left;
}
#badge-modal h2 {
  color: #0f766e;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
#badge-modal p {
  margin-bottom: 12px;
  line-height: 1.6;
}
#badge-modal strong {
  color: #0d9b8a;
}
/* Gamification styles */
.badge-card {
  transition: transform 0.2s, box-shadow 0.2s;

  /* 🔥 ADD THESE */
  width: 200px;
  min-height: 220px;
  padding: 18px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15,118,110,0.08);

  /* optional: keeps content centered */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-card img {
  filter: drop-shadow(0 2px 6px #0f766e22);
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

.badge-card:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(15,118,110,0.18);
}
/* ===============================
   FINAL MOBILE & TABLET FIX
   (Append at end of style.css)
================================ */

/* Prevent horizontal overflow everywhere */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Improve text wrapping */
h1, h2, h3, h4, p, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ---------- TABLET & MOBILE ---------- */
@media (max-width: 900px) {

  /* Slightly increase base font size */
  html {
    font-size: 15px;
  }

  .container {
    padding: 14px;
  }

  /* HERO SECTION */
  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Fix hero grid spacing */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  /* Cards breathing space */
  .card,
  .info-card,
  .counter-box {
    padding: 14px !important;
  }

  /* Grid cards stack nicely */
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Carousel fix */
  .carousel,
  .carousel-slide img {
    height: 180px !important;
  }

  .carousel-caption {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 600px) {

  html {
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }

  /* Headings scale properly */
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p,
  li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Fix extremely tight padding */
  .card,
  .info-card,
  .counter-box {
    padding: 12px !important;
  }

  /* Carousel readable */
  .carousel,
  .carousel-slide img {
    height: 150px !important;
  }

  .carousel-caption {
    font-size: 0.85rem;
  }

  /* Counters alignment */
  .counter-section {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- EXTRA SMALL DEVICES ---------- */
@media (max-width: 380px) {

  html {
    font-size: 13.5px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .carousel,
  .carousel-slide img {
    height: 130px !important;
  }
}
/* ===============================
   MOBILE FOOTER SPACING FIX
================================ */

@media (max-width: 768px) {

  /* Footer main wrapper */
  .colored-footer {
    padding: 32px 16px !important;
  }

  /* Stack footer sections properly */
  .footer-grid,
  .footer-social-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    text-align: left;
  }

  /* Address block */
  .colored-footer p,
  .colored-footer li {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .colored-footer h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  /* Social media section */
  .colored-footer .footer-social {
    justify-content: flex-start !important;
    gap: 14px;
    margin-top: 8px;
  }

  .colored-footer .social-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  /* Footer links */
  .colored-footer a {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  /* Bottom copyright area */
  .footer-bottom-colored {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
  }

  /* Privacy & Terms spacing */
  .footer-bottom-colored a {
    margin: 0 10px;
    display: inline-block;
  }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {

  .colored-footer {
    padding: 28px 14px !important;
  }

  .colored-footer h3 {
    font-size: 1.1rem;
  }

  .colored-footer p {
    font-size: 0.92rem;
  }
}
/* =========================================
   FINAL MOBILE FOOTER RESET (DEVICE-STABLE)
   ADD AT VERY END OF style.css
========================================= */

@media (max-width: 900px) {

  /* ✅ Kill desktop gradient on mobile */
  .colored-footer {
    background: #0f766e !important;
    padding: 36px 18px !important;
  }

  /* ✅ Force clean vertical stacking */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
  }

  /* ✅ Address block */
  .colored-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .colored-footer p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }

  /* ✅ Social media section */
  .colored-footer .footer-social-row {
    align-items: flex-start !important;
  }

  .colored-footer .footer-social {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
  }

  .colored-footer .social-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* ✅ Footer links */
  .colored-footer a {
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: inline-block;
  }

  /* ✅ Bottom copyright */
  .footer-bottom-colored {
    margin-top: 28px;
    padding-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
}

/* ✅ EXTRA SMALL PHONES */
@media (max-width: 480px) {

  .colored-footer {
    padding: 32px 14px !important;
  }

  .colored-footer h3 {
    font-size: 1.1rem;
  }

  .colored-footer p {
    font-size: 0.92rem;
  }
}
/* ==================================================
   HARD MOBILE FOOTER OVERRIDE (FINAL – WORKING)
   This OVERRIDES your existing footer layout
================================================== */

@media (max-width: 900px) {

  /* Kill gradient & force solid bg */
  .colored-footer {
    background: #0f766e !important;
    padding: 36px 16px 140px !important;
  }

  /* Force everything inside footer to stack */
  .colored-footer * {
    float: none !important;
    position: static !important;
  }

  /* Address & social headings */
  .colored-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  /* Address text */
  .colored-footer p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }

  /* Social icons container FIX */
  .colored-footer .social-icon,
  .colored-footer .footer-social a {
    position: static !important;
    margin: 10px 8px !important;
  }

  /* Social icons centered in rows */
  .colored-footer .footer-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  /* Footer links spacing */
  .colored-footer a {
    display: inline-block;
    margin: 10px 8px;
    font-size: 0.95rem;
  }

  /* Copyright */
  .footer-bottom-colored {
    margin-top: 28px;
    padding-top: 18px;
    text-align: center;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.25);
  }
}
/* ===============================
   CHAT vs BACK-TO-TOP FIX (MOBILE)
================================ */

@media (max-width: 768px) {

  /* Move back-to-top above chat widget */
  .back-to-top {
    bottom: 25px !important;  /* sits ABOVE chat */
    right: 16px;
    width: 46px;
    height: 46px;
    z-index: 90;
  }

  /* Ensure chat widget stays lowest */
  .chatbox,
  .chat-widget,
  #chatbox {
    bottom: 16px !important;
    right: 12px;
    z-index: 100;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 25px !important;
  }
}
/* =====================================
   ABOUT PAGE – IMAGE & TEXT MOBILE FIX
===================================== */

@media (max-width: 768px) {

  /* Target inline flex sections (Mission & Vision) */
  section#mission > div,
  section#mission + center + div,
  section#mission + center + div + div,
  section#mission div[style*="display:flex"],
  section div[style*="display:flex"] {
    
    flex-direction: column !important;
    text-align: left;
  }

  /* Images go full width on mobile */
  section#mission img,
  section img {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 16px;
  }

  /* Improve paragraph readability */
  section#mission p,
  section p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
/* =====================================
   GAMIFICATION / BADGE CARDS – MOBILE FIX
   (Approach + Outreach pages)
===================================== */

@media (max-width: 768px) {

  /* Stack cards vertically */
  .gamification-row {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  /* Make cards full-width */
  .badge-card {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    padding: 20px 18px !important;
  }

  /* Increase icon size */
  .badge-card img {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 12px !important;
  }

  /* Improve title readability */
  .badge-card h3 {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }
}

/* Extra small phones */
@media (max-width: 480px) {

  .badge-card {
    padding: 18px 16px !important;
  }

  .badge-card h3 {
    font-size: 0.95rem !important;
  }
}
/* =====================================
   CORPORATE PARTNERS – MOBILE SIZE TUNING
===================================== */

@media (max-width: 900px) {

  section.about-hero tr {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
  }

  section.about-hero td {
    padding: 8px 4px;
  }

  /* ✅ Smaller logos */
  section.about-hero img {
    max-width: 64px;   /* was ~80px */
    height: auto;
  }

  section.about-hero td p {
    font-size: 0.8rem;
    margin-top: 4px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {

  section.about-hero tr {
    grid-template-columns: 1fr;
  }

  section.about-hero img {
    max-width: 56px;   /* even smaller */
  }

  section.about-hero td p {
    font-size: 0.78rem;
  }
}
/* ===============================
   MOBILE MAP FIX (FINAL)
================================ */

#impact-map {
  position: relative;
  width: 100%;
}

#map {
  width: 100%;
  height: 360px;
  min-height: 360px;
}

@media (max-width: 768px) {
  #map {
    height: 300px;
    min-height: 300px;
  }
}
/* ===============================
   LEAFLET MAP MOBILE VISIBILITY
================================ */


#impact-map {
  position: relative;
  width: 100%;
}

#map {
  width: 100%;
  height: 360px;       /* desktop */
  min-height: 360px;
}

@media (max-width: 768px) {
  #map {
    height: 300px;     /* mobile */
    min-height: 300px;
  }
}

/* ===============================
   HIDE MAP ON MOBILE
================================ */
@media (max-width: 768px) {
  #impact-map, .map-filters {
    display: none !important; /* Hide map and its filters on mobile */
  }
} 


/* for better alignment and spacing */


/* Base Styles (Unified: Merged body/html, added variables) */
html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-primary);
  word-break: break-word;
  overflow-x: hidden;
  padding-top: 70px; /* Space for fixed top-bar */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

p, .small, li {
  margin: 0 0 10px 0;
  line-height: 1.5;
  text-align: justify; /* Default to justify for equal left/right alignment */
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: normal;
  letter-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Headings Always Left-Aligned */
h1, h2, h3, h4, h5, h6 {
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  left: 0;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top var(--transition-medium);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Cards (Unified: Merged .card, .program-card, .info-card) */
.card, .program-card, .info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border-radius: 12px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover, .program-card:hover, .info-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 32px var(--shadow-medium);
  border-color: rgba(15,118,110,0.22);
}

.card h3, .program-card h3, .info-card h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.2rem;
}

.card p, .program-card p, .info-card p {
  margin-bottom: 10px;
  color: #444;
  font-size: 1rem;
}

.card ul, .program-card ul, .info-card ul {
  margin-top: auto;
  padding-left: 18px;
}

/* Equal Height Grid */
.grid-3, .info-sections, .about-values-grid, .about-impact-grid, .partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 18px;
}
/* About Page (Consolidated sections) */
.about-hero {
  background: #f5f7fa;
  padding: 48px 0 32px 0;
  text-align: center;
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.about-hero-img,
section#mission img,
section img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.08);
}

.about-vm-section,
.about-values-section,
.about-impact-section,
.about-team-section,
.partners-section {
  padding: 40px 0;
  background: var(--bg-white); /* Alternate with #f5f7fa */
}

.about-vm-grid,
.about-team-grid,
.horizontal-board-grid,
.about-team-section-bottom {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-end;
  min-height: 350px;
}

.about-vm-card,
.about-value-card,
.about-impact-card,
.about-team-card,
.partner-card {
  background: #eaf2fb;
  padding: 24px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 320px;
  flex: 1 1 180px;
  text-align: center;
  transition: all var(--transition-fast);
}

.about-vm-card:hover,
.about-value-card:hover,
.about-impact-card:hover,
.about-team-card:hover,
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.about-team-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

.partner-contact {
  margin-top: 32px;
  background: #eaf2fb;
  padding: 24px 18px;
  border-radius: 8px;
  display: inline-block;
  text-align: left;
}

.partner-contact a {
  color: #0077b6;
  text-decoration: underline;
}
/* ==================================================
   ROOT VARIABLES (Expanded for full maintainability)
================================================== */
:root {
  --accent: #0f766e;
  --accent-dark: #0d9b8a;
  --accent-hover: #b82323;
  --bg-light: #f8fafc;
  --bg-white: #fff;
  --bg-dark: #1a232a;
  --card-bg-light: #fff;
  --card-bg-dark: #232b33;
  --text-primary: #0f172a;
  --text-secondary: #6b7280;
  --text-dark: #e0e0e0;
  --border-light: #e6e9ee;
  --border-dark: #2c3a4a;
  --shadow-light: rgba(15,23,42,0.08);
  --shadow-medium: rgba(15,23,42,0.12);
  --shadow-dark: rgba(15,23,42,0.18);
  --error: #b82323;
  --success: #0f766e;
  --font-base: 16px;
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;
}

/* Minimised chat box  */
/* =========================
   CHATBOX MINIMIZED (SMALL)
========================= */
/* Chat launcher button */
#chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: #0f766e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 9999;
}

/* Chat box */
.mini-chat {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 280px;          /* 👈 SMALL */
  height: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.hidden {
  display: none;
}

/* Header */
.mini-chat-header {
  background: #0f766e;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* Messages */
.mini-chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.85rem;
}

/* Input */
.mini-chat-form {
  display: flex;
  border-top: 1px solid #e0e0e0;
}

.mini-chat-form input {
  flex: 1;
  padding: 8px 10px;
  border: none;
  outline: none;
  font-size: 0.85rem;
}

.mini-chat-form button {
  background: #0f766e;
  color: #fff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
}
/* ===== MINI CHAT POLISH ===== */

/* Header polish */
.mini-chat-header {
  background: linear-gradient(90deg, #0f766e, #5fb3a2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-chat-header span::after {
  content: " ● online";
  font-size: 0.7rem;
  color: #d1fae5;
  margin-left: 6px;
}

/* Message bubbles */
.mini-chat-messages div {
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  animation: fadeUp 0.3s ease;
}

/* User message */
.mini-chat-messages .user {
  align-self: flex-end;
  background: #0f766e;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Bot message */
.mini-chat-messages .bot {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111;
  border-bottom-left-radius: 4px;
}

/* Input area */
.mini-chat-form input {
  background: #f9fafb;
  border-radius: 20px;
  padding-left: 14px;
}

.mini-chat-form button {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Message animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mini-chat {
  border-radius: 16px;
  overflow: hidden; /* locks everything inside */
  background: #fff;
}
.mini-chat-header {
  border-radius: 16px 16px 0 0;
  padding: 10px 14px;
  font-size: 0.9rem;
}
.mini-chat-messages .bot,
.mini-chat-messages .user {
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* chat-style asymmetry */
.mini-chat-messages .bot {
  border-bottom-left-radius: 4px;
}

.mini-chat-messages .user {
  border-bottom-right-radius: 4px;
}
.mini-chat-messages {
  padding: 12px;
  gap: 6px;
}
.mini-chat-form {
  border-radius: 0 0 16px 16px;
  padding: 8px 10px;
  background: #f9fafb;
}
.mini-chat-form input {
  border-radius: 20px;
  font-size: 0.85rem;
}
/* Quick option chips */
.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
}

.quick-options button {
  border: 1px solid #0f766e;
  background: #fff;
  color: #0f766e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-options button:hover {
  background: #0f766e;
  color: #fff;
}



