/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
 * Metric-matched stand-in for Zain, used until the webfont arrives.
 * Zain measures 109/57 (ascent/descent per em) and its glyphs run ~95.1% of
 * Arial's advance width, so these overrides make the fallback lay out at
 * virtually the same size. Without it the navbar reflowed by up to 23px when
 * the webfont swapped in.
 */
@font-face {
  font-family: 'Zain Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 95.1%;
  ascent-override: 114.6%;
  descent-override: 59.9%;
  line-gap-override: 0%;
}

html {
  scroll-behavior: smooth;
  /* Always reserve the scrollbar gutter: the fixed navbar is centred on the
     client width but sized in vw, so a scrollbar appearing shifted it 7.5px. */
  scrollbar-gutter: stable;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #222;
  min-width: 320px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Ensure images scale properly */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header/Nav Bar */
/* Hero wrappers must not transform — otherwise fixed nav inside hero pins to hero, not viewport */
section.hero,
section.hero.animate-on-scroll,
section.hero.animate-on-scroll.in-view {
  transform: none !important;
  opacity: 1 !important;
}

/*
 * Hero entrance (live-style fade-up).
 *
 * The reference site lifts the whole hero by transforming section.hero itself.
 * We can't: the fixed navbar lives inside section.hero, and transforming an
 * ancestor makes a fixed child pin to that ancestor instead of the viewport.
 * So we move the three inner visual layers instead — background, overlay and
 * content — which reproduces the same effect while section.hero stays static.
 *
 * .hero-bg and .hero-overlay are identical absolutely-positioned layers
 * (inset 0, 100%x100%), so giving them the exact same animation keeps the
 * overlay glued to the background for every frame of the travel. The 40px of
 * travel briefly exposes the top of section.hero, whose own teal gradient sits
 * behind them — and it is only exposed while opacity is still low.
 *
 * Driven by CSS keyframes rather than the IntersectionObserver, so above-the-fold
 * hero art never waits on script.js. Fill mode is `both` rather than a hard
 * opacity:0 in the base rule: if animations never run, the layers stay visible
 * instead of leaving a permanently blank hero.
 */
.hero > .hero-bg,
.hero > .hero-overlay,
.hero > .hero-content {
  animation: hero-fade-up 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Content trails the artwork very slightly for depth; bg and overlay must stay
   on identical timing or the overlay would drift out of register. */
.hero > .hero-content {
  animation-delay: 0.12s;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > .hero-bg,
  .hero > .hero-overlay,
  .hero > .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.nav-bar {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 1300px;
  background: #0D948A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  padding: 0 48px;
  height: 84px;
  min-height: 84px;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  z-index: 1100;
  margin: 0 auto;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar.nav-bar--hidden {
  transform: translateX(-50%) translateY(-160px) !important;
  pointer-events: none;
}

.nav-logo .logo {
  height: clamp(64px, 4.8vw, 70px);
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-right: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
  font-size: 1.3rem;
  /* Pin the line box so link height never depends on which font is active
     (Zain's natural line box is 1.66em). */
  line-height: 1.66;
  color: #fff;
  background: none;
  border: none;
  outline: none;
  padding: 9px 22px;
  border-radius: 32px;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: #FFB74D;
}

.nav-link.active {
  background: #FF9801;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-link.active:hover {
  background: #ffb300;
}

.consult-btn {
  background: #FF9801;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}

.consult-btn:hover {
  background: #ffb300;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Search button styling */
.search-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #fff;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.search-btn:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: visible;
  padding-block: 2px;
}

/* Responsive Design - FIXED for smaller laptops */
@media (max-width: 1600px) {
  .nav-bar {
    width: 94vw;
    padding: 0 32px;
  }
}

@media (max-width: 1440px) {
  .nav-bar {
    width: 93vw;
    padding: 0 30px;
    height: 83px;
  }
  
  .nav-logo .logo {
    height: clamp(64px, 4.7vw, 70px);
    margin-right: 30px;
  }
  
  .nav-link {
    font-size: 1.3rem;
    padding: 9px 22px;
  }
  
  .consult-btn {
    padding: 13px 30px;
    font-size: 1.1rem;
  }
  
  .nav-center {
    gap: 20px;
  }
}

@media (max-width: 1366px) {
  .nav-bar {
    width: 94vw;
    padding: 0 28px;
    height: 82px;
  }
  
  .nav-logo .logo {
    height: clamp(64px, 4.6vw, 68px);
    margin-right: 28px;
  }
  
  .nav-link {
    font-size: 1.28rem;
    padding: 9px 22px;
  }
  
  .consult-btn {
    padding: 13px 30px;
    font-size: 1.08rem;
  }
  
  .nav-center {
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .nav-bar {
    width: 92vw;
    padding: 0 24px;
    height: 80px;
  }
  
  .nav-logo .logo {
    height: clamp(58px, 5vw, 64px);
    margin-right: 24px;
  }
  
  .nav-link {
    font-size: 1.25rem;
    padding: 8px 20px;
  }
  
  .consult-btn {
    padding: 12px 28px;
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .nav-bar {
    width: 90vw;
    padding: 0 20px;
    height: 76px;
  }
  
  .nav-center {
    gap: 14px;
  }
  
  .nav-link {
    font-size: 1.15rem;
    padding: 7px 18px;
  }
  
  .consult-btn {
    padding: 11px 26px;
    font-size: 1.02rem;
  }
}

@media (max-width: 900px) {
  .nav-bar {
    width: 88vw;
    padding: 0 16px;
    height: 72px;
  }
  
  .nav-logo .logo {
    height: clamp(54px, 6vw, 60px);
    margin-right: 16px;
  }
  
  .nav-link {
    font-size: 1.05rem;
    padding: 6px 16px;
  }
  
  .consult-btn {
    padding: 9px 22px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    width: 88vw;
    padding: 0 16px;
    height: 68px;
    top: 24px;
  }
  
  .nav-logo .logo {
    height: clamp(44px, 12vw, 50px);
    margin-right: 0;
  }
  
  .consult-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    width: 92vw;
    padding: 0 12px;
    height: 64px;
    top: 16px;
  }
  
  .nav-logo .logo {
    height: clamp(44px, 12vw, 48px);
  }
  
  .consult-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(120deg, #12A89C 0%, rgba(18,168,156,1) 40%, rgba(18,168,156,0.15) 80%, rgba(18,168,156,0) 100%);
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
  padding-top: 180px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: left;
  max-width: 600px;
  margin-left: 7vw;
  margin-right: 7vw;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.hero-content h1 {
  font-family: 'Zeyada', cursive;
  font-size: 3.2rem;
  margin: 0 0 18px 0;
  line-height: 1.1;
  color: #fff;
}

.hero-content p {
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.4;
}

.hero-content p:last-of-type {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.get-support {
  background: #FF9801;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.get-support:hover {
  background: #ffb300;
}

.become-volunteer {
  background: #fff;
  color: #19b3a6;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 0;
  text-decoration: none;
  display: inline-block;
}

.become-volunteer:hover {
  background: #0D948A;
  color: #fff;
}

/* Ensure smooth transitions on all interactive elements */
.nav-link,
.consult-btn,
.get-support,
.become-volunteer {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(13, 148, 138, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1200;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 100px 16px calc(40px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.mobile-nav-menu:has(.mobile-nav-links) {
  gap: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  flex-shrink: 0;
}

.mobile-nav-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 88px;
  flex-shrink: 0;
}

.mobile-nav-menu.active {
  display: flex;
}

.mobile-nav-menu .nav-link {
  font-size: 1.5rem;
  padding: 16px 32px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-menu .nav-link:hover:not(.nav-sublink),
.mobile-nav-menu .nav-link.active:not(.nav-sublink) {
  background: #FF9801;
  transform: scale(1.05);
}

.mobile-nav-services {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: center;
  gap: 0.5rem;
  width: min(85%, 280px);
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-nav-services-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  min-width: 0;
}

.mobile-nav-services-row:has(.mobile-nav-services-link.active) {
  background: #FF9801;
}

.mobile-nav-menu .mobile-nav-services-link,
.mobile-nav-menu .mobile-nav-services-link:hover,
.mobile-nav-menu .mobile-nav-services-link.active {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  border-radius: 50px 0 0 50px;
  background: transparent;
  transform: none;
}

.mobile-nav-services-toggle {
  flex: 0 0 48px;
  width: 48px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 50px 50px 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mobile-nav-services-toggle svg {
  display: block;
  transition: transform 0.2s ease;
}

.mobile-nav-services-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav-services-submenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  padding: 2px 0 2px 10px;
  margin: 0;
  transition: max-height 0.22s ease, opacity 0.18s ease, visibility 0.18s ease;
}

.mobile-nav-services-submenu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-menu .nav-sublink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 90%;
  min-height: calc((1.3em * 2) + 20px);
  box-sizing: border-box;
  font-family: inherit;
  font-weight: inherit;
  font-size: clamp(0.82rem, 0.76rem + 0.45vw, 0.95rem);
  line-height: 1.3;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: normal;
  flex: 0 0 auto;
  transform: none;
  transition: background 0.2s ease;
}

.mobile-nav-menu .nav-sublink:hover,
.mobile-nav-menu .nav-sublink.active,
.mobile-nav-menu .nav-sublink:active {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.mobile-nav-menu .nav-sublink:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .mobile-nav-menu .nav-sublink:hover {
    background: rgba(255, 255, 255, 0.18) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-services-toggle svg,
  .mobile-nav-services-submenu {
    transition: none;
  }
}

.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Menu CTA: cloned from the desktop consult button, not a nav pill. */
.mobile-nav-menu .consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(85%, 280px);
  max-width: 100%;
  margin: 0;
  padding: 14px 24px;
  background: #FF9801;
  color: #fff;
  border: none;
  border-radius: 32px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-nav-menu .consult-btn:hover {
  background: #ffb300;
  color: #fff;
  transform: none;
}

.mobile-nav-menu .consult-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1001;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.dropdown-toggle svg {
  transition: transform 0.3s ease;
  margin-left: 4px;
}

.nav-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(18, 168, 156, 0.95);
  min-width: 340px;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1101;
  padding: 16px;
  margin-top: 8px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  border-radius: 24px;
  margin: 4px 0;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.dropdown-item:hover {
  background: #fff;
  color: #FF9801;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  border-radius: 0 0 40px 40px;
}

img.hero-bg {
  max-width: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(to right, #12A89C 0%, rgba(18,168,156,0.7) 40%, rgba(18,168,156,0.15) 70%, rgba(18,168,156,0) 100%);
  opacity: 1;
  border-radius: 0 0 40px 40px;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: left;
  max-width: 600px;
  margin-left: 7vw;
  margin-right: 7vw;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.hero-content h1 {
  font-family: 'Zeyada', cursive;
  font-size: 3.2rem;
  margin: 0 0 18px 0;
  line-height: 1.1;
  color: #fff;
}

.hero-content p {
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.4;
}

.hero-content p:last-of-type {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.get-support {
  background: #FF9801;;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.get-support:hover {
  background: #ffb300;
}

.become-volunteer {
  background: #fff;
  color: #19b3a6;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 0;
  text-decoration: none;
  display: inline-block;
}

.become-volunteer:hover {
  background: #0D948A;
  color: #fff;
}

.get-to-know {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 96px 0 64px 0;
  min-height: 75vh;
}

.get-to-know-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  justify-content: center;
  padding: 0 20px;
}

.get-to-know-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 400px;
  background: #f6f6f6;
  border-radius: 32px;
  font-size: 7rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.get-to-know-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
}

.get-to-know-content h2 {
  font-family: 'Zeyada', cursive;
  font-size: 3.2rem;
  margin-bottom: 18px;
  color: rgba(18, 168, 156, 1);
}

.zain-font {
  font-family: 'Zain', cursive;
  font-size: 1.15rem;
  margin-bottom: 28px;
  color: #222;
  text-align: left;
}

.get-to-know-content .zain-font {
  text-align: left;
}

.see-story {
  background: rgba(255, 152, 1, 1);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-self: flex-start;
  text-decoration: none;
  display: inline-block;
}

.see-story:hover {
  background: #ffb300;
}

.get-to-know-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

/* Mobile-only heading - hidden on desktop */
.get-to-know-title-mobile {
  display: none;
}

/* Footer */
.main-footer {
  width: 100%;
  background: linear-gradient(180deg, #ffb300 0%, #ff9800 100%);
  color: #fff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 40px;
  box-sizing: border-box;
  min-height: 40vh;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 24px auto;
  gap: 32px;
  padding: 0 20px;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  margin-bottom: 0;
  line-height: 0;
}

.footer-logo img {
  display: block;
  height: clamp(120px, 8.5vw, 140px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.social-media {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.social-media a {
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
  transform: scale(1.1);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-col li a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-col li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 1rem;
  color: #fff;
  opacity: 0.9;
  margin-top: 24px;
  padding: 0 20px;
}

/* Comprehensive Responsive Design - FIXED */
@media (max-width: 1600px) {
  .nav-bar {
    width: 94vw;
    padding: 0 32px;
  }
  
  .hero-content {
    margin-left: 5vw;
    margin-right: 5vw;
  }
  
  .get-to-know-container,
  .how-we-help-container {
    gap: 60px;
  }
}

@media (max-width: 1200px) {
  .nav-bar {
    width: 92vw;
    padding: 0 24px;
    height: 80px;
  }
  
  .nav-logo .logo {
    height: clamp(58px, 5vw, 64px);
    margin-right: 24px;
  }
  
  .nav-link {
    font-size: 1.25rem;
    padding: 8px 20px;
  }
  
  .consult-btn {
    padding: 12px 28px;
    font-size: 1.05rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .get-to-know-container,
  .how-we-help-container {
    gap: 40px;
    padding: 0 16px;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    width: 500px;
    height: 350px;
  }
  
  .get-to-know-content h2,
  .how-we-help-content h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 1024px) {
  .nav-bar {
    width: 90vw;
    padding: 0 20px;
    height: 76px;
  }
  
  .nav-center {
    gap: 14px;
  }
  
  .nav-link {
    font-size: 1.15rem;
    padding: 7px 18px;
  }
  
  .consult-btn {
    padding: 11px 26px;
    font-size: 1.02rem;
  }
  
  .hero {
    padding-top: 140px;
    min-height: 80vh;
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: min(720px, 90vw);
  }

  .hero-content h1 {
    font-size: 2.4rem;
    text-align: center;
  }

  .hero-content p {
    text-align: center;
  }
  
  .hero-actions {
    gap: 16px;
    justify-content: center;
    align-items: center;
  }
  
  .get-support,
  .become-volunteer {
    padding: 12px 28px;
    font-size: 1rem;
  }
  
  .get-to-know,
  .how-we-help {
    padding: 64px 0 48px 0;
    min-height: 60vh;
  }
  
  .get-to-know-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: 98vw;
  }
  
  .how-we-help-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: 98vw;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    width: 90vw;
    max-width: 480px;
    height: 250px;
  }
  
  .get-to-know-content,
  .how-we-help-content {
    align-items: center;
    text-align: center;
    max-width: 98vw;
  }
  
  .get-to-know-content .zain-font,
  .how-we-help-content .zain-font {
    text-align: center;
  }
  
  .see-story,
  .see-services {
    align-self: center;
  }
  
  .get-to-know-content h2,
  .how-we-help-content h2 {
    font-size: 2.4rem;
  }
  
  .zain-font {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .nav-bar {
    width: 88vw;
    padding: 0 16px;
    height: 72px;
  }
  
  .nav-logo .logo {
    height: clamp(54px, 6vw, 60px);
    margin-right: 16px;
  }
  
  .nav-link {
    font-size: 1.05rem;
    padding: 6px 16px;
  }
  
  .consult-btn {
    padding: 9px 22px;
    font-size: 0.95rem;
  }
  
  .hero {
    padding-top: 120px;
    min-height: 70vh;
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .hero-content p {
    font-size: 1rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    align-items: center;
  }
  
  .get-to-know,
  .how-we-help {
    padding: 48px 0 32px 0;
    min-height: 50vh;
  }
  
  .get-to-know-container,
  .how-we-help-container {
    padding: 0 12px;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    width: 100%;
    height: 220px;
    border-radius: 24px;
  }
  
  .get-to-know-content h2,
  .how-we-help-content h2 {
    font-size: 2.2rem;
  }
  
  .zain-font {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .see-story,
  .see-services {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-center {
    display: none;
  }
  
  .nav-search-container {
    display: none;
  }

  .nav-right {
    display: none;
  }
  
  .nav-bar {
    width: 90%;
    max-width: 90%;
    padding: 0 16px;
    height: 64px;
    top: 15px;
    left: 5%;
    transform: none;
    justify-content: space-between;
  }

  .nav-bar.nav-bar--hidden {
    transform: translateY(-120px) !important;
  }
  
  .nav-logo .logo {
    height: clamp(44px, 12vw, 50px);
    margin-right: 0;
  }
  
  .consult-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .hero {
    padding-top: 100px;
    min-height: 60vh;
    border-radius: 0 0 24px 24px;
    justify-content: center;
    text-align: center;
  }
  
  .hero-bg,
  .hero-overlay {
    border-radius: 0 0 24px 24px;
  }
  
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 92vw;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  
  .get-support,
  .become-volunteer {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }
  
  .get-to-know,
  .how-we-help {
    padding: 48px 0 32px 0;
    min-height: auto;
  }
  
  .get-to-know-container,
  .how-we-help-container {
    padding: 0 12px;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    width: 100%;
    height: 200px;
    border-radius: 20px;
  }
  
  .get-to-know-content h2,
  .how-we-help-content h2 {
    font-size: 2rem;
  }
  
  .zain-font {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .see-story {
    padding: 10px 24px;
    font-size: 1rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 16px;
  }
  
  .footer-logo-section {
    width: 100%;
    align-items: center;
  }

  .footer-logo img {
    height: clamp(100px, 14vw, 120px);
  }
  
  .footer-links {
    gap: 32px;
    width: 100%;
  }
  
  .social-media {
    gap: 12px;
  }
  
  .social-media a {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .nav-bar {
    width: 92vw;
    padding: 0 12px;
    height: 64px;
    top: 16px;
  }
  
  .nav-logo .logo {
    height: clamp(44px, 12vw, 48px);
  }
  
  .consult-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
  
  .hero {
    padding-top: 80px;
    min-height: 50vh;
  }
  
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 94vw;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .hero-content p:last-of-type {
    margin-bottom: 24px;
  }
  
  .get-to-know,
  .how-we-help {
    padding: 32px 0 24px 0;
  }
  
  .get-to-know-container,
  .how-we-help-container {
    padding: 0 8px;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    height: 160px;
    border-radius: 16px;
  }

  /* Show the full group photo on phones instead of cropping it (Get to Know Us only) */
  .get-to-know-icon {
    height: auto;
    min-height: 0;
  }

  .get-to-know-content h2,
  .how-we-help-content h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .zain-font {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }
  
  .see-story {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .footer-top {
    padding: 0 12px;
    gap: 20px;
  }
  
  .footer-logo img {
    height: clamp(88px, 24vw, 104px);
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .social-media {
    gap: 10px;
  }
  
  .social-media a {
    width: 32px;
    height: 32px;
  }
  
  .footer-bottom {
    padding: 0 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .nav-bar {
    width: 94vw;
    padding: 0 8px;
    height: 60px;
  }
  
  .nav-logo .logo {
    height: 44px;
  }
  
  .consult-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .hero-content p {
    font-size: 0.85rem;
  }
  
  .get-to-know-content h2,
  .how-we-help-content h2 {
    font-size: 1.6rem;
  }
  
  .zain-font {
    font-size: 0.9rem;
  }
  
  .footer-logo img {
    height: clamp(84px, 26vw, 96px);
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 120px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .get-to-know,
  .how-we-help {
    padding: 32px 0;
    min-height: auto;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    height: 120px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-logo .logo {
    image-rendering: auto;
  }
}

/* Additional responsive improvements */
/* Small desktop only: original left hero insets (tablet uses centered rules above) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .hero-content {
    margin-left: 4vw;
    margin-right: 4vw;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .get-to-know-container,
  .how-we-help-container {
    gap: 40px;
    padding: 0 20px;
  }
  
  .get-to-know-icon,
  .how-we-help-img {
    width: 45%;
    height: 300px;
  }
  
  .get-to-know-content,
  .how-we-help-content {
    width: 45%;
  }
}

/* Small laptop specific adjustments */
@media (max-width: 1366px) and (min-width: 1025px) {
  .nav-bar {
    width: 94vw;
    padding: 0 28px;
    height: 82px;
  }
  
  .nav-logo .logo {
    height: clamp(64px, 4.6vw, 68px);
    margin-right: 28px;
  }
  
  .nav-link {
    font-size: 1.28rem;
    padding: 9px 22px;
  }
  
  .consult-btn {
    padding: 13px 30px;
    font-size: 1.08rem;
  }
  
  .nav-center {
    gap: 20px;
  }
}

/* Medium laptop specific adjustments */
@media (max-width: 1440px) and (min-width: 1367px) {
  .nav-bar {
    width: 93vw;
    padding: 0 30px;
    height: 83px;
  }
  
  .nav-logo .logo {
    height: clamp(64px, 4.7vw, 70px);
    margin-right: 30px;
  }
  
  .nav-link {
    font-size: 1.3rem;
    padding: 9px 22px;
  }
  
  .consult-btn {
    padding: 13px 30px;
    font-size: 1.1rem;
  }
  
  .nav-center {
    gap: 20px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  /* Tablet portrait: keep hero content centered */
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .get-to-know-container,
  .how-we-help-container {
    gap: 30px;
    padding: 0 15px;
  }
  
  .how-we-help-img {
    width: 48%;
    height: 250px;
  }
  
  .get-to-know-content,
  .how-we-help-content {
    width: 48%;
  }
}

/* Ensure smooth transitions on all interactive elements */
.nav-link,
.consult-btn,
.get-support,
.become-volunteer,
.see-story,
.see-services,
.book-appointment,
.submit-btn,
.card,
.flip-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print styles */
@media print {
  .nav-bar,
  .hero-actions,
  .social-media,
  .whatsapp-float,
  .go-to-top,
  .chatbot-container {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  
  .hero-content {
    color: #000;
  }
  
  .hero-content h1 {
    color: #000;
  }
} 

.how-we-help {
  width: 100%;
  background: #FFF2DF;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 0 32px 0;
  min-height: 60vh;
}

/* Responsive styles for how-we-help section */
@media (max-width: 1024px) {
  .how-we-help {
    padding: 48px 0 24px 0;
    min-height: 50vh;
  }
}

@media (max-width: 900px) {
  .how-we-help {
    padding: 48px 0 32px 0;
    min-height: 50vh;
  }
}

@media (max-width: 768px) {
  .how-we-help {
    padding: 32px 0 16px 0;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .how-we-help {
    padding: 24px 0 12px 0;
  }
}
.how-we-help-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  justify-content: center;
}
.how-we-help-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 400px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.how-we-help-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}
.how-we-help-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
}
.how-we-help-content h2 {
  font-family: 'Zeyada', cursive;
  font-size: 3.2rem;
  margin-bottom: 18px;
  color: rgba(18, 168, 156, 1);
}
.how-we-help-content .zain-font {
  font-family: 'Zain', cursive;
  font-size: 1.15rem;
  margin-bottom: 28px;
  color: #222;
  text-align: left;
}
.see-services {
  background: #FF9801;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-self: flex-start;
  text-decoration: none;
  display: inline-block;
}
.see-services:hover {
  background: #ffb300;
}
/* Duplicate styles removed - using the comprehensive responsive design above */ 

.stats-section {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0 60px 0;
  min-height: 40vh;
}
.stats-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(16px, 2vw, 32px);
  max-width: 1400px;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 24px;
  box-sizing: border-box;
}
.stat-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  min-height: 0;
}
.stat-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0;
  flex-shrink: 0;
}
.stat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  height: auto;
  flex: 1;
  min-width: 0;
}
.stat-number {
  font-family: 'Zeyada', cursive;
  font-size: 2.5rem;
  color: #FF9801;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0;
  background: none;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
}
.stat-number--placeholder {
  font-family: 'Zeyada', cursive;
  font-size: 2.5rem;
  color: #FF9801;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
}
.stat-label {
  color: #12A89C;
  font-family: 'Zain', cursive;
  font-size: 1.1rem;
  margin-top: 4px;
  text-align: left;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Responsive Statistics Section */
@media (max-width: 1200px) {
  .stats-container {
    flex-wrap: wrap;
    gap: clamp(24px, 3vw, 40px);
    max-width: 95vw;
    padding: 0 20px;
    justify-content: center;
  }
  
  .stat-item {
    flex: 1 1 calc(33.333% - 28px);
    max-width: 280px;
    min-width: 160px;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .stats-section {
    padding: 64px 0 48px 0;
  }
  
  .stats-container {
    gap: 28px;
    max-width: 98vw;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-item {
    flex: 1 1 calc(50% - 20px);
    max-width: 260px;
    min-width: 140px;
    gap: 12px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  
  .stat-info {
    min-height: 40px;
  }
  
  .stat-number,
  .stat-number--placeholder {
    font-size: 1.5rem;
    min-height: 40px;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 48px 0 32px 0;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .stat-item {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    min-width: 0;
    justify-content: center;
  }
  
  .stat-number,
  .stat-number--placeholder {
    font-size: 2rem;
    min-height: auto;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 32px 0 24px 0;
  }
  
  .stats-container {
    gap: 20px;
    padding: 0 16px;
  }
  
  .stat-item {
    max-width: 280px;
    gap: 16px;
  }
  
  .stat-icon {
    width: 36px;
    height: 36px;
  }
  
  .stat-number,
  .stat-number--placeholder {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px 20px 40px;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
  font-family: 'Amatic SC', cursive;
  font-size: 2.5rem;
  color: #12A89C;
  margin: 0;
  font-weight: 700;
}

.close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 30px 40px 40px 40px;
  max-height: 60vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.story-content h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 1.8rem;
  color: #333;
  margin: 30px 0 15px 0;
  font-weight: 700;
}

.story-content h3:first-child {
  margin-top: 0;
}

.story-content p {
  font-family: 'Zain', cursive;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-go-to-top {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #12A89C;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(18, 168, 156, 0.3);
}

.modal-go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.modal-go-to-top:hover {
  background: #0D948A;
  transform: translateY(-2px);
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #12A89C;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #0D948A;
}

/* Responsive modal design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 25px 15px 25px;
  }
  
  .modal-header h2 {
    font-size: 2rem;
  }
  
  .modal-body {
    padding: 20px 25px 30px 25px;
    max-height: 70vh;
  }
  
  .story-content h3 {
    font-size: 1.5rem;
  }
  
  .story-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    border-radius: 15px;
  }
  
  .modal-header {
    padding: 15px 20px 10px 20px;
  }
  
  .modal-header h2 {
    font-size: 1.8rem;
  }
  
  .modal-body {
    padding: 15px 20px 25px 20px;
  }
  
  .modal-go-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 15px;
    right: 15px;
  }
} 

.card-section {
  width: 100%;
  background: #FFF2DF;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 0 64px 0;
  box-shadow: none;
}
.card-container {
  display: flex;
  flex-direction: row;
  gap: 48px;
  width: 100%;
  max-width: 1400px;
  height: 350px;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
  box-sizing: border-box;
}
.card {
  width: 350px !important;
  height: 350px !important;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 20px 20px;
  box-shadow: none;
  color: #fff;
  background: #12A89C;
  transition: none;
  overflow: hidden;
  text-align: center;
}
.card-orange {
  background: #FF9801;
}
.card-teal {
  background: #12A89C;
}
.card-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
}
.card h3 {
  font-family: 'Zeyada', cursive;
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: #fff;
  text-align: center;
  width: 100%;
}
.card p {
  font-family: 'Zain', cursive;
  font-size: 0.98rem;
  color: #fff;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 0;
  padding-bottom: 8px;
}
.card:hover {
  transform: none;
  box-shadow: none;
}

/* Flip Card Styles */
.flip-card {
  perspective: 1000px;
  background: transparent !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card:focus-visible {
  outline: 2px solid #12A89C;
  outline-offset: 4px;
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.flip-card-front {
  background: #12A89C;
  color: #fff;
}

/* Orange flip card front */
.flip-card.card-orange .flip-card-front {
  background: #FF9801;
  color: #fff;
}

.flip-card-back {
  background: #12A89C;
  color: #fff;
  transform: rotateY(180deg);
  border: 2px solid #12A89C;
}

/* Orange flip card back */
.flip-card.card-orange .flip-card-back {
  background: #FF9801;
  color: #fff;
  border: 2px solid #FF9801;
}

.flip-card-front h3 {
  font-family: 'Zeyada', cursive;
  font-size: 2.6rem;
  margin: 0;
  color: #fff;
  text-align: center;
  width: 100%;
}

.flip-card-back p {
  font-family: 'Zain', cursive;
  font-size: 0.98rem;
  color: #fff;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
/* Responsive Card Section */
@media (max-width: 1600px) {
  .card-container {
    gap: 32px;
    max-width: 98vw;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1400px) {
  .card-container {
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .card {
    width: 320px !important;
    height: 400px !important;
    padding: 24px 16px 20px 16px;
    border-radius: 40px;
  }
  
  .flip-card-front h3 {
    font-size: 2.2rem;
  }
  
  .flip-card-back p {
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
  .card-container {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .card {
    width: 90vw !important;
    max-width: 380px;
    min-width: 280px;
    height: 360px !important;
    border-radius: 32px;
  }
  
  .flip-card-front h3 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .card-section {
    padding: 48px 0 48px 0;
  }
  
  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .card {
    width: 90vw !important;
    max-width: 400px;
    min-width: 280px;
    height: auto !important;
    min-height: 320px;
    padding: 20px 12px 16px 12px;
    border-radius: 24px;
  }
  
  .flip-card-front h3 {
    font-size: 1.8rem;
  }
  
  .flip-card-back p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .card-section {
    padding: 32px 0 32px 0;
  }
  
  .card-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .card {
    width: 100% !important;
    max-width: 320px;
    min-height: 280px;
    padding: 16px 10px 12px 10px;
    border-radius: 20px;
  }
  
  .flip-card-front h3 {
    font-size: 1.6rem;
  }
  
  .flip-card-back p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .card-section {
    padding: 24px 0 24px 0;
  }
  
  .card-container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .card {
    min-height: 260px;
    padding: 14px 8px 10px 8px;
    border-radius: 16px;
  }
  
  .flip-card-front h3 {
    font-size: 1.4rem;
  }
  
  .flip-card-back p {
    font-size: 0.75rem;
  }
}

/* Home page five-card layout — scoped so other pages keep the four-card styles */
.home-card-section .card-container {
  height: auto;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  max-width: 1520px;
}

.home-card-section .flip-card.card {
  width: 240px !important;
  height: 460px !important;
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 200px;
}

.home-card-section .flip-card-front h3 {
  font-size: 2.05rem;
  line-height: 1.15;
  padding: 0 8px;
}

.home-card-section .flip-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 16px;
}

.home-card-section .flip-card-back p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

@media (max-width: 1400px) {
  .home-card-section .flip-card.card {
    width: 220px !important;
    height: 460px !important;
    flex: 1 1 200px;
    max-width: 240px;
  }

  .home-card-section .flip-card-front h3 {
    font-size: 1.85rem;
  }
}

@media (max-width: 1200px) {
  .home-card-section .flip-card.card {
    width: min(320px, 42vw) !important;
    height: 420px !important;
    flex: 1 1 280px;
    max-width: 340px;
    min-width: 240px;
  }
}

@media (max-width: 768px) {
  .home-card-section .card-container {
    gap: 20px;
  }

  .home-card-section .flip-card.card {
    width: min(100%, 340px) !important;
    max-width: 340px;
    min-width: 260px;
    flex: 1 1 260px;
    height: 420px !important;
  }

  .home-card-section .flip-card-front h3 {
    font-size: 1.7rem;
  }

  .home-card-section .flip-card-back p {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .home-card-section .card-container {
    flex-direction: column;
    align-items: center;
  }

  .home-card-section .flip-card.card {
    width: min(100%, 360px) !important;
    max-width: 360px;
    min-width: 0;
    flex: 0 0 auto;
    height: 440px !important;
  }
}

@media (max-width: 480px) {
  .home-card-section .flip-card.card {
    width: 100% !important;
    max-width: 100%;
    height: 480px !important;
  }

  .home-card-section .flip-card-front h3 {
    font-size: 1.55rem;
  }
}
/* Duplicate styles removed - using the comprehensive responsive design above */ 

.cta-section {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 20vh;
  padding: 32px 0;
  margin-top: 64px;
}
.cta-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  gap: 4px;
}
.cta-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding-left: 48px;
}
.cta-heading {
  font-size: 3.2rem;
  line-height: 1.1;
  margin: 0;
  text-align: left;
  width: 100%;
}
.cta-green {
  color: #12A89C;
}
.cta-yellow {
  color: #FF9801;
}
.cta-right p {
  font-family: 'Zain', cursive;
  font-size: 1.1rem;
  color: #222;
  margin: 0;
}
.book-appointment {
  background: #FF9801;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  display: inline-block;
}
.book-appointment:hover {
  background: #ffb300;
}

/* CTA Form Styles */
.cta-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 48px;
}

.appointment-form {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
}

.appointment-form h3 {
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  color: #12A89C;
  margin: 0 0 24px 0;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: max(16px, 1rem);
  font-family: 'Zain', cursive;
  background: #fff;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #12A89C;
  box-shadow: 0 0 0 3px rgba(18,168,156,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.appointment-form select {
  color: #757575;
}

.appointment-form select:valid {
  color: #333;
}


.submit-btn {
  background: #12A89C;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #0D948A;
}
/* Responsive CTA Section */
@media (max-width: 1200px) {
  .cta-container {
    gap: 32px;
    padding: 0 20px;
  }
  
  .cta-heading {
    font-size: 2.8rem;
  }
  
  .cta-right {
    padding-left: 32px;
  }
  
  .cta-form {
    padding-right: 32px;
  }
}

@media (max-width: 900px) {
  .cta-section {
    padding: 48px 0;
    margin-top: 48px;
  }
  
  .cta-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 32px;
    padding: 0 16px;
  }
  
  .cta-right {
    width: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-left: 0;
  }
  
  .cta-heading {
    font-size: 2rem;
    text-align: center;
  }
  
  .cta-form {
    width: 100%;
    padding-right: 0;
  }
  
  .appointment-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 32px 0;
    margin-top: 32px;
  }
  
  .cta-container {
    gap: 24px;
    padding: 0 12px;
  }
  
  .cta-heading {
    font-size: 1.8rem;
  }
  
  .cta-right p {
    font-size: 1rem;
  }
  
  .appointment-form {
    padding: 24px;
  }
  
  .appointment-form h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 24px 0;
    margin-top: 24px;
  }
  
  .cta-container {
    gap: 20px;
    padding: 0 8px;
  }
  
  .cta-heading {
    font-size: 1.6rem;
  }
  
  .cta-right p {
    font-size: 0.9rem;
  }
  
  .appointment-form {
    padding: 20px;
  }
  
  .appointment-form h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 16px; /* >=16px avoids iOS Safari zoom-on-focus */
  }
  
  .submit-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
} 

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
}
.get-to-know-img.animate-on-scroll,
.how-we-help-img-el.animate-on-scroll {
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1);
  opacity: 0;
}
/* Hero backgrounds are driven by the hero-fade-up keyframes near the top of this
   file, not by this IntersectionObserver path. Two jobs here:
   1. transition: none — stops the observer running a second, competing fade on
      top of the keyframes when .in-view lands.
   2. opacity/transform resolved — .animate-on-scroll would otherwise leave the
      base state at opacity 0, so a browser that never ran the animation would
      sit on a blank hero waiting for script.js. The running animation still
      overrides both of these, since animations outrank normal declarations. */
.hero-bg.animate-on-scroll,
.hero-bg.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
  transition: none;
}
.get-to-know-img.animate-on-scroll {
  transform: translateX(-40px);
}
.get-to-know-img.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
}
.how-we-help-img-el.animate-on-scroll {
  transform: translateX(40px);
}
.how-we-help-img-el.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
} 

/* Nav search styles */
.nav-search-container {
  position: absolute;
  top: calc(100% + 12px);
  right: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 1000;
  min-width: 340px;
}
.nav-search-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-search-input {
  width: 100%;
  padding: 12px 24px;
  border-radius: 32px;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: 'Zain', cursive;
  background: #fff;
  color: #12A89C;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s;
}
.nav-search-input:focus {
  box-shadow: 0 12px 40px rgba(18,168,156,0.2);
}

/* Search Results Styles */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid #e0e0e0;
}

.search-results-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.search-results-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: #333;
  font-family: 'Zain', cursive;
}

.search-results-header span {
  font-size: 0.9rem;
  color: #666;
}

.search-results-list {
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-title {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
  flex: 1;
}

.result-type {
  font-size: 0.8rem;
  color: #12A89C;
  background: rgba(18, 168, 156, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.search-no-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  z-index: 1000;
  border: 1px solid #e0e0e0;
}

.no-results-message {
  padding: 20px;
  text-align: center;
}

.no-results-message p {
  margin: 0 0 8px 0;
  color: #666;
  font-size: 0.95rem;
}

.no-results-message p:last-child {
  font-size: 0.85rem;
  color: #999;
}

/* Search highlight effect */
.search-highlight {
  animation: searchHighlight 3s ease-in-out;
}

@keyframes searchHighlight {
  0%, 100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(18, 168, 156, 0.1);
    box-shadow: 0 0 20px rgba(18, 168, 156, 0.2);
  }
}
/* Responsive Search */
@media (max-width: 1200px) {
  .nav-search-container.active {
    width: 300px;
  }
}

@media (max-width: 900px) {
  .nav-search-container.active {
    width: 90vw;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .nav-search-container {
    display: none;
  }
  
  .search-results,
  .search-no-results {
    width: 90vw;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .search-results,
  .search-no-results {
    width: 95vw;
    max-width: 280px;
  }
  
  .search-result-item {
    padding: 10px 16px;
  }
  
  .result-title {
    font-size: 0.9rem;
  }
  
  .result-type {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
}

/* Mobile / tablet navbar search (search icon toggles an input below the navbar) */
.mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
}

.mobile-search-bar {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.mobile-search-bar.active {
  display: block;
}

.mobile-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 32px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mobile-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: max(16px, 1.1rem);
  font-family: 'Zain', cursive;
  color: #12A89C;
  padding: 8px 0;
}

.mobile-search-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #0D948A;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Results render below the input (i.e. below the navbar) */
.mobile-search-bar .search-results,
.mobile-search-bar .search-no-results {
  position: static;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  text-align: left;
}

/* Show the mobile search icon whenever the hamburger is shown */
@media (max-width: 768px) {
  .mobile-search-toggle {
    display: flex;
  }
}

h1, h2, h3, h4, h5, h6,
.cta-heading,
.get-to-know-content h2,
.how-we-help-content h2,
.card h3 {
  font-family: 'Amatic SC', cursive !important;
} 

.whatsapp-float {
  position: fixed;
  right: 32px;
  bottom: 60px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 32px rgba(18,168,156,0.18);
  transform: scale(1.08);
}
/* Responsive Floating Elements */
@media (max-width: 768px) {
  .whatsapp-float {
    right: 20px;
    bottom: 80px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float svg {
    width: 52px;
    height: 52px;
  }
  
  .go-to-top {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
  }
  
  .go-to-top svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 12px;
    bottom: 50px;
    width: 48px;
    height: 48px;
  }
  
  .whatsapp-float svg {
    width: 48px;
    height: 48px;
  }
  
  .go-to-top {
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
  
  .go-to-top svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    right: 8px;
    bottom: 40px;
    width: 44px;
    height: 44px;
  }
  
  .whatsapp-float svg {
    width: 44px;
    height: 44px;
  }
  
  .go-to-top {
    bottom: 8px;
    width: 36px;
    height: 36px;
  }
  
  .go-to-top svg {
    width: 28px;
    height: 28px;
  }
} 

.go-to-top {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.go-to-top svg circle {
  fill: rgba(255, 179, 0, 0.25);
  transition: fill 0.2s;
}
.go-to-top:hover svg circle {
  fill: #FFB300;
}
.go-to-top svg path {
  stroke: #fff;
}
.go-to-top svg {
  display: block;
}
@media (max-width: 600px) {
  .go-to-top {
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
  }
  .go-to-top svg {
    width: 32px;
    height: 32px;
  }
} 

/* CAFSPER Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 160px;
  right: 32px;
  z-index: 1000;
  font-family: 'Zain', cursive;
}

.chatbot-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #12A89C 0%, #0D948A 100%);
  color: #fff;
  padding: 16px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(18, 168, 156, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
  font-weight: 600;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(18, 168, 156, 0.4);
}

.chatbot-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ghost Character Design */
.ghost-body {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.ghost-body.small {
  width: 32px;
  height: 32px;
}

.ghost-eyes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ghost-body.small .ghost-eyes {
  gap: 6px;
  margin-top: 6px;
}

.eye {
  width: 6px;
  height: 6px;
  background: #12A89C;
  border-radius: 50%;
  animation: blink 4s infinite;
}

.ghost-body.small .eye {
  width: 4px;
  height: 4px;
}

.ghost-mouth {
  width: 12px;
  height: 6px;
  border: 2px solid #12A89C;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: 4px;
}

.ghost-body.small .ghost-mouth {
  width: 10px;
  height: 4px;
  border-width: 1.5px;
  margin-top: 2px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

.chatbot-name {
  font-family: 'Amatic SC', cursive;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Chatbot Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #12A89C;
}

.chatbot-window.active {
  display: flex !important;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, #12A89C 0%, #0D948A 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.chatbot-header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-header-info {
  flex: 1;
}

.chatbot-header-name {
  font-family: 'Amatic SC', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.chatbot-header-status {
  font-size: 0.85rem;
  opacity: 0.9;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Chatbot Messages */
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8f9fa;
}

.message {
  display: flex;
  max-width: 80%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.bot-message .message-content {
  background: #fff;
  color: #222;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 6px;
}

.user-message .message-content {
  background: linear-gradient(135deg, #FF9801 0%, #ffb300 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
}

/* Chatbot Input */
.chatbot-input-container {
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-size: 0.95rem;
  font-family: 'Zain', cursive;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: #12A89C;
}

.chatbot-send {
  background: linear-gradient(135deg, #12A89C 0%, #0D948A 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(18, 168, 156, 0.3);
}

.chatbot-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Chatbot Design */
@media (max-width: 1024px) {
  .chatbot-container {
    bottom: 140px;
    right: 24px;
  }
  
  .chatbot-window {
    width: 320px;
    height: 450px;
  }
}

@media (max-width: 768px) {
  .chatbot-container {
    bottom: 80px;
    right: 20px;
  }
  
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 60vh;
    bottom: 70px;
    right: 0;
  }
  
  .chatbot-toggle {
    padding: 12px 16px;
  }
  
  .chatbot-avatar {
    width: 40px;
    height: 40px;
  }
  
  .ghost-body {
    width: 32px;
    height: 32px;
  }
  
  .chatbot-name {
    font-size: 1rem;
  }
  
  .chatbot-header {
    padding: 12px 16px;
  }
  
  .chatbot-messages {
    padding: 16px;
  }
  
  .chatbot-input-container {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .chatbot-container {
    bottom: 70px;
    right: 16px;
  }
  
  .chatbot-window {
    width: calc(100vw - 32px);
    height: 70vh;
    bottom: 60px;
  }
  
  .chatbot-toggle {
    padding: 10px 14px;
    gap: 8px;
  }
  
  .chatbot-avatar {
    width: 36px;
    height: 36px;
  }
  
  .ghost-body {
    width: 28px;
    height: 28px;
  }
  
  .chatbot-name {
    font-size: 0.9rem;
  }
  
  .chatbot-header {
    padding: 10px 14px;
  }
  
  .chatbot-header-name {
    font-size: 1.1rem;
  }
  
  .chatbot-messages {
    padding: 12px;
  }
  
  .message-content {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .chatbot-input-container {
    padding: 10px 14px;
  }
  
  .chatbot-input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .chatbot-send {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .chatbot-container {
    bottom: 60px;
    right: 12px;
  }
  
  .chatbot-window {
    width: calc(100vw - 24px);
    height: 75vh;
    bottom: 50px;
  }
  
  .chatbot-toggle {
    padding: 8px 12px;
    gap: 6px;
  }
  
  .chatbot-avatar {
    width: 32px;
    height: 32px;
  }
  
  .ghost-body {
    width: 24px;
    height: 24px;
  }
  
  .chatbot-name {
    font-size: 0.8rem;
  }
} 


/* ==================== FINAL RESPONSIVE FIXES - MOBILE IMPROVEMENTS ==================== */

/*
 * Compact desktop navbar for laptop CSS viewports (including 125%/150%
 * display scaling). The full-size bar needs ~1238px of content, so a 1280px
 * hamburger switch treated high-DPI laptops as tablets. Keep the same
 * desktop links and chrome; only spacing, padding and type scale fluidly.
 * Hamburger remains at max-width: 768px, when the bar can no longer fit.
 */
@media (min-width: 769px) and (max-width: 1366px) {
    .nav-bar {
        width: min(96vw, calc(100vw - 24px));
        max-width: 1300px;
        padding-left: clamp(12px, 2vw, 32px);
        padding-right: clamp(12px, 2vw, 32px);
        height: clamp(70px, 6.2vw, 82px);
        min-height: clamp(70px, 6.2vw, 82px);
    }

    .nav-logo .logo {
        height: clamp(48px, 4.8vw, 64px);
        margin-right: clamp(4px, 1vw, 16px);
    }

    .nav-center {
        display: flex;
        gap: clamp(4px, 1vw, 16px);
    }

    .nav-bar .nav-link {
        font-size: clamp(1rem, calc(0.35rem + 1.12vw), 1.25rem);
        padding: 6px clamp(6px, 1vw, 18px);
        letter-spacing: clamp(0.4px, 0.06vw, 1px);
    }

    .nav-right,
    .nav-bar .search-btn {
        display: flex;
    }

    .nav-right {
        gap: clamp(4px, 0.8vw, 12px);
    }

    .nav-bar .consult-btn {
        padding: 8px clamp(10px, 1.4vw, 26px);
        font-size: clamp(0.9rem, calc(0.4rem + 0.7vw), 1.08rem);
        margin-left: clamp(4px, 0.6vw, 12px);
        white-space: nowrap;
    }

    .mobile-nav-toggle,
    .mobile-search-toggle {
        display: none;
    }
}

/* Hero section - center content on mobile (alignment only) */
@media (max-width: 768px) {
    .nav-logo .logo {
        height: clamp(44px, 12vw, 50px) !important;
        margin-right: 0;
    }

    .hero {
        padding-top: 100px !important;
        text-align: center;
        justify-content: center;
        background: linear-gradient(120deg, #12A89C 0%, rgba(18,168,156,0.8) 50%, rgba(18,168,156,0.3) 100%);
    }
    
    .hero-content {
        margin: 0 auto !important;
        text-align: center !important;
        max-width: 90% !important;
        padding: 20px !important;
    }
    
    .hero-content h1 {
        font-size: 2.6rem !important;
        line-height: 1.2;
        text-align: center !important;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
        text-align: center !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .hero-actions a {
        width: 80% !important;
        max-width: 300px;
        padding: 14px !important;
        font-size: 1.1rem;
    }
}

/* Stats section - FULL stack + center */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 40px 20px !important;
        gap: 40px !important;
    }
    
    .stat-item {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Fix the colored boxes (teal/orange) if they have fixed position */
    .stats-bg-shape, .teal-box, .orange-box, [class*="shape"], [class*="bubble"] {
        position: static !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 20px auto !important;
        border-radius: 20px;
    }
}

/* General section stacking */
@media (max-width: 768px) {
    .get-to-know-container {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 40px;
    }
    
    .how-we-help-container,
    .card-container {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 40px;
    }
    
    .cta-container {
        flex-direction: column-reverse !important;
        padding: 20px !important;
        gap: 40px;
    }
    
    .flip-card,
    .how-we-help-img,
    .cta-right,
    .cta-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    
    .get-to-know-content,
    .how-we-help-content,
    .cta-right {
        text-align: center !important;
        align-items: center !important;
    }
    
    .get-to-know-content .zain-font,
    .how-we-help-content .zain-font {
        text-align: center !important;
    }
    
    .see-story,
    .see-services {
        align-self: center !important;
    }
    
    /* Mobile-only heading: show on mobile, hide original */
    .get-to-know-title-mobile {
        display: block !important;
        font-family: 'Amatic SC', cursive !important;
        font-size: 2rem;
        color: rgba(18, 168, 156, 1);
        text-align: center;
        margin-bottom: 0;
    }
    
    .get-to-know-content h2 {
        display: none !important;
    }
}

/* ==================== CARD SECTION - 100% MOBILE STACK + FLIP FIX ==================== */

@media (max-width: 1200px) {
    .card-section {
        padding: 60px 0;
    }

    .card-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }

    .flip-card {
        width: 90% !important;
        max-width: 420px !important;
        height: 360px !important;
        margin: 0 auto !important;
    }

    .flip-card-front h3 {
        font-size: 2rem !important;
    }

    .flip-card-back p {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .card-container {
        gap: 50px !important;
        padding: 0 15px !important;
    }

    .flip-card {
        width: 95% !important;
        height: 320px !important;
    }

    .flip-card-front h3 {
        font-size: 1.8rem !important;
    }

    .flip-card-back p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .card-container {
        gap: 40px !important;
        padding: 0 10px !important;
    }

    .flip-card {
        height: 300px !important;
    }

    .flip-card-front h3 {
        font-size: 1.6rem !important;
    }

    .flip-card-back p {
        font-size: 0.9rem !important;
    }
}

/* Flip cards: hover on pointer devices; .is-flipped for touch/keyboard (see script.js) */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* ==================== STATS SECTION - PERFECT ALIGNMENT FIX ==================== */

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 50px !important;
        padding: 40px 20px !important;
    }

    .stat-item {
        flex-direction: column !important;   /* Icon top, text bottom */
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto;
    }

    .stat-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 8px !important;
    }

    .stat-info {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center;
        gap: 4px;
        min-height: auto;
        height: auto;
    }

    .stat-number,
    .stat-number--placeholder {
        font-size: 2.4rem !important;
        margin: 0 !important;
        min-height: auto;
    }

    .stat-label {
        font-size: 1.1rem !important;
        margin: 0 !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-container {
        gap: 40px !important;
        padding: 30px 15px !important;
    }

    .stat-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .stat-number,
    .stat-number--placeholder {
        font-size: 2.2rem !important;
    }

    .stat-label {
        font-size: 1rem !important;
    }
}

/* ==================== MOBILE MENU - SIDE DRAWER STYLE ==================== */

@media (max-width: 768px) {
    /* Mobile menu - slide from left */
    .mobile-nav-menu {
        position: fixed !important;
        top: 0;
        left: -100% !important; /* start hidden left */
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #0D948A !important;
        backdrop-filter: blur(10px);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px !important;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 20px !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1200;
        box-shadow: 8px 0 32px rgba(0,0,0,0.2);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-nav-menu.active {
        left: 0 !important; /* slide in */
    }

    /* Background overlay when menu open */
    .mobile-nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .mobile-nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }

    /* Menu items - full width pills */
    .mobile-nav-menu .nav-link {
        width: 85% !important;
        max-width: 280px !important;
        padding: 16px 24px !important;
        font-size: 1.3rem !important;
        border-radius: 50px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        text-align: center;
        transition: all 0.3s ease;
    }

    .mobile-nav-menu .nav-link:hover:not(.nav-sublink):not(.mobile-nav-services-link),
    .mobile-nav-menu .nav-link.active:not(.nav-sublink):not(.mobile-nav-services-link) {
        background: #FF9801 !important;
        transform: scale(1.05);
    }

    .mobile-nav-services {
        width: 85% !important;
        max-width: 280px !important;
        gap: 8px;
        box-sizing: border-box;
    }

    .mobile-nav-services-row {
        background: rgba(255, 255, 255, 0.15);
    }

    .mobile-nav-menu .mobile-nav-services-link,
    .mobile-nav-menu .mobile-nav-services-link:hover,
    .mobile-nav-menu .mobile-nav-services-link.active {
        width: auto !important;
        max-width: none !important;
        background: transparent !important;
        border-radius: 50px 0 0 50px !important;
        padding: 16px 12px 16px 20px !important;
        transform: none !important;
    }

    .mobile-nav-menu .nav-sublink {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 90% !important;
        max-width: 90% !important;
        min-height: calc((1.3em * 2) + 20px) !important;
        font-family: inherit;
        font-weight: inherit;
        font-size: clamp(0.82rem, 0.76rem + 0.45vw, 0.95rem) !important;
        line-height: 1.3 !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-align: center !important;
        transform: none !important;
        box-sizing: border-box;
        transition: background 0.2s ease;
    }

    .mobile-nav-menu .nav-sublink:hover,
    .mobile-nav-menu .nav-sublink.active,
    .mobile-nav-menu .nav-sublink:active {
        background: rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
    }

    /* Home button - orange pill at top */
    /*.mobile-nav-menu .nav-home-link {
        background: #FF9801 !important;
        color: #fff !important;
        margin-bottom: 20px !important;
    }*/
	
	.nav-link.active {
	  background: #FF9801;
	  color: #fff;
	}


    /* Close button - top right */
    .mobile-nav-close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        font-size: 2rem !important;
        color: #fff;
        background: rgba(255, 255, 255, 0.2);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Dropdown in mobile menu */
    .mobile-nav-menu .nav-dropdown {
        width: 85% !important;
        max-width: 280px !important;
    }

    .mobile-nav-menu .dropdown-toggle {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 50px !important;
        padding: 16px 24px !important;
    }

    .mobile-nav-menu:has(.mobile-nav-links) {
        gap: 0 !important;
    }

    .mobile-nav-links {
        gap: 20px;
    }

    .mobile-nav-cta {
        margin-top: 72px;
    }

    .mobile-nav-menu .consult-btn {
        width: 85% !important;
        max-width: 280px !important;
        margin-top: 0;
        padding: 14px 24px !important;
        font-size: 1.15rem !important;
        background: #FF9801 !important;
        color: #fff !important;
        border-radius: 32px !important;
        transform: none !important;
    }

    .mobile-nav-menu .consult-btn:hover {
        background: #ffb300 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-nav-menu {
        width: 85% !important;
        padding-top: 80px !important;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 16px !important;
    }

    .mobile-nav-menu:has(.mobile-nav-links) {
        gap: 0 !important;
    }

    .mobile-nav-links {
        gap: 16px;
    }

    .mobile-nav-cta {
        margin-top: 64px;
    }

    .mobile-nav-menu .nav-link:not(.nav-sublink) {
        font-size: 1.2rem !important;
        padding: 14px 20px !important;
    }

    .mobile-nav-menu .mobile-nav-services-link,
    .mobile-nav-menu .mobile-nav-services-link:hover,
    .mobile-nav-menu .mobile-nav-services-link.active {
        padding: 14px 10px 14px 18px !important;
    }
}

/* Fix How We Help image white gaps on mobile */
@media (max-width: 768px) {
  .how-we-help-img {
    display: block;
    overflow: hidden;
    line-height: 0;
  }

  .how-we-help-img-el {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
  }
}

/* Mobile/tablet stacked range (up to <768px): clear the leftover 400px min-height so each
   image card's declared mobile height becomes definite and the image fills it (no white gap).
   Stops below 768 so the iPad 768px view stays unchanged.
   Section-specific: How We Help fills its band; Get to Know Us shows the full photo. */
@media (max-width: 767.98px) {
  .how-we-help-img {
    min-height: 0;
  }
}

/* Get to Know Us stacked layouts: smooth width scaling without breakpoint jumps.
   Overrides width:90vw/480px (≤1024px), width:100% (≤900px), width:48% (769–900px), and
   fixed mobile heights so the wrapper tracks the section instead of doubling at 768px.
   Does not affect How We Help. */
@media (max-width: 1024px) {
  .get-to-know-icon {
    width: min(100%, 600px) !important;
    max-width: min(100%, 600px) !important;
    margin-inline: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Get to Know Us image only: always show the FULL photo (no cover-crop) at every width
   (desktop, tablet, mobile). The wrapper adapts to the image height instead of forcing a
   fixed 400px cover card, and the image keeps the card's rounded corners. Placed last so it
   overrides the base min-height:400px + object-fit:cover and all fixed-height media blocks.
   Does not affect the How We Help image. */
.get-to-know-icon {
  width: min(100%, 600px);
  max-width: min(100%, 600px);
  margin-inline: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
}

.get-to-know-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

/* Home five-card overrides — placed last so they win over later global card media queries */
.home-card-section .card-container {
  height: auto !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 24px !important;
  max-width: 1520px !important;
}

.home-card-section .flip-card.card {
  width: 240px !important;
  height: 460px !important;
  flex: 1 1 220px !important;
  max-width: 260px !important;
  min-width: 200px !important;
  margin: 0 !important;
}

@media (max-width: 1400px) {
  .home-card-section .flip-card.card {
    width: 220px !important;
    height: 460px !important;
    max-width: 240px !important;
  }
}

@media (max-width: 1200px) {
  .home-card-section .flip-card.card {
    width: min(320px, 44%) !important;
    height: 420px !important;
    flex: 1 1 280px !important;
    max-width: 340px !important;
    min-width: 240px !important;
  }
}

@media (max-width: 768px) {
  .home-card-section .card-container {
    gap: 20px !important;
  }

  .home-card-section .flip-card.card {
    width: min(100%, 340px) !important;
    height: 420px !important;
    flex: 1 1 260px !important;
    max-width: 340px !important;
    min-width: 260px !important;
  }
}

@media (max-width: 600px) {
  .home-card-section .card-container {
    flex-direction: column !important;
    align-items: center !important;
  }

  .home-card-section .flip-card.card {
    width: min(100%, 360px) !important;
    height: 440px !important;
    flex: 0 0 auto !important;
    max-width: 360px !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .home-card-section .flip-card.card {
    width: 100% !important;
    height: 480px !important;
    max-width: 100% !important;
  }
}

