:root {
  --primary: #006636;
  --primary-hover1: #bfd5ca;
  --secondary: #faf04d;
  --primary-dark: #004d28;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
}

* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background-color: #f9fafb;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

/* Ensure Font Awesome icons use the correct icon font, not the page font */
.fa,
.fas,
.far,
.fal,
.fab,
.fad,
.fa-solid,
.fa-eye,
.fa-bullseye {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  speak: none;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* CRITICAL FIX: Global container alignment - ensures all sections match navbar width */
.container-safe {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Responsive padding that exactly matches navbar's inner container */
.match-nav-container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.logo-text h1 {
  letter-spacing: 0.4em;
}
.slide--relative {
  position: relative;
}
.slider--prev--nextBtn {
  bottom: 5px;
}
.footer-bg-gray-color {
  background-color: #00391e;
}

.page--banner--inner {
  position: absolute;
  bottom: 90px;
}
.h--pg--banner {
  height: 88vh;
}

.faq-category-btn:hover,
.partner-tab-btn:hover,
.social-icon:hover {
  background-color: var(--primary-hover1);
  color: var(--text-dark) !important;
}

.no--item--found {
  color: #fb7777 !important;
}
.no--photo--icon {
  font-size: 100px !important;
  color: rgb(185, 184, 184);
}
.carousel--controls .prev--next--btn {
  background-color: #d4ddd4;
}
.carousel--controls .prev--next--btn:hover {
  background-color: #c0d1c0;
}
.carousel--controls .bg-gray-300:active {
  background-color: #c0d1c0 !important;
}

@media (min-width: 640px) {
  .match-nav-container,
  .container-safe {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .match-nav-container,
  .container-safe {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Override any full-width sections to stay within safe bounds */
section,
footer,
.hero-section-fix {
  width: 100%;
  overflow-x: hidden;
}

/* Force all inner content containers to share consistent max-width + padding */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}
.slide--section--inner {
  position: absolute;
  bottom: 85px;
}
.slide--section--inner p {
  /* margin-bottom: 3rem; */
}

@media (min-width: 640px) {
  .section-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
}

.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.border-primary {
  border-color: var(--primary);
}
.hover\:bg-primary-dark:hover {
  background-color: var(--primary-dark);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 102, 54, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navbar - Fully visible dropdown & overflow */
nav#navbar {
  position: fixed !important;
  top: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  left: 0;
  right: 0;
  z-index: 50;
}

.nav-container {
  overflow: visible !important;
}

.max-w-7xl {
  overflow: visible;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  position: absolute;
  /* keep dropdown usable when it contains many items */
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Optional: styled thin scrollbar for dropdowns */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}
/* override submenu link hover */
.dropdown-menu a {
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.dropdown-menu a:hover {
  background: var(--primary);
  color: #fff;
}

.relative.group {
  overflow: visible;
}

/* Hamburger Animation */
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  margin: 5px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: relative;
  max-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height 0.4s ease-in-out;

  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

img,
iframe,
video,
object {
  max-width: 100%;
  height: auto;
}

/* Slider */
.slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Prevent hover from scaling or zooming the fade-in-left block and its content */
.fade-in-left:hover {
  transform: translateX(0) !important;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero overlay */
/* Hero overlay: left (solid #006636) -> right (transparent) so captions remain readable */
.hero-overlay {
  pointer-events: none;
  background: linear-gradient(
    60deg,
    rgb(0 54 28 / 95%) 12%,
    rgb(0 67 36) 31%,
    rgb(1 93 50 / 91%) 54%,
    rgb(0 102 54 / 83%) 60%,
    rgba(0, 102, 54, 0) 100%
  );
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 54, 0.15);
}

.btn-primary {
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 102, 54, 0.3);
}

.logo-text {
  max-width: 180px;
  white-space: normal;
  word-break: break-word;
}

.footer--contacts--hdg1 {
  font-size: 21px;
  font-style: oblique;
  margin: 0 0 10px;
  color: #8b9f96;
}
.footer--contacts--hdg1.custom--margin1 {
  margin: 22px 0px 10px;
}
.w-12.custome--width1 {
  width: 4.5rem;
}
.text-xl.footer--abt--name {
  font-size: 2.11rem;
  margin: 0 0 5px;
}

/* Additional styles for About Us page */
.counter {
  transition: all 0.3s ease;
}

/* Value cards hover enhancements */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 102, 54, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 54, 0.15);
}

/* Vision & Mission cards specific */
.bg-primary\/10 {
  background-color: rgba(0, 102, 54, 0.1);
}

/* Page banner overlay enhancement */
.page-banner-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 31, 16, 0.95) 0%,
    rgba(0, 102, 54, 0.85) 100%
  );
}

/* About page specific animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.counter {
  animation: fadeInScale 0.5s ease forwards;
}

/* Group hover effects */
.group:hover .group-hover\:translate-x-2 {
  transform: translateX(0.5rem);
}

/* CTA Section gradient */
.bg-gradient-to-br {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hover scale animation */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* board of directors */

/* Board of Directors Page Styles */
.board-member-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.board-member-card:hover {
  transform: translateY(-10px);
}

.member-photo {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.board-member-card:hover .member-photo {
  transform: scale(1.05);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(0, 102, 54, 0.3);
}

.member-photo-container {
  position: relative;
  display: inline-block;
}

.member-photo-container::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.board-member-card:hover .member-photo-container::before {
  opacity: 1;
}

/* Member card text line clamping */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Animation */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-modal-in {
  animation: modalIn 0.3s ease forwards;
}

/* Member detail modal styles */
#member-modal {
  transition: all 0.3s ease;
}

#member-modal .bg-white {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#member-modal .bg-white::-webkit-scrollbar {
  display: none;
}

#member-modal .bg-white::-webkit-scrollbar-track {
  background: transparent;
}

#member-modal .bg-white::-webkit-scrollbar-thumb {
  background: transparent;
}

#member-modal .bg-white::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

/* Board statistics counters */
.counter {
  font-family: "Outfit", sans-serif;
  animation: fadeInScale 0.5s ease forwards;
}

/* Responsive adjustments for board cards */
@media (max-width: 768px) {
  .board-member-card .p-8 {
    padding: 1.5rem;
  }

  .member-photo {
    width: 120px;
    height: 120px;
  }

  .board-member-card h3 {
    font-size: 1.1rem;
  }
}

/* Card grid hover effects */
#board-members-grid {
  perspective: 1000px;
}

/* Loading skeleton animation for images */
.member-photo {
  background-color: #f0f0f0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.member-photo[src] {
  animation: none;
}

/* Board member expertise tags hover effect */
.board-member-card .bg-gray-100 {
  transition: all 0.3s ease;
}

.board-member-card:hover .bg-gray-100 {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Modal content hover effects */
#modal-content ul li {
  transition: all 0.3s ease;
}

#modal-content ul li:hover {
  transform: translateX(5px);
}

/* CTA button enhancements */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Board section transitions */
.board-member-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays */
.board-member-card:nth-child(1) {
  animation-delay: 0.1s;
}
.board-member-card:nth-child(2) {
  animation-delay: 0.2s;
}
.board-member-card:nth-child(3) {
  animation-delay: 0.3s;
}
.board-member-card:nth-child(4) {
  animation-delay: 0.4s;
}
.board-member-card:nth-child(5) {
  animation-delay: 0.5s;
}
.board-member-card:nth-child(6) {
  animation-delay: 0.6s;
}
.board-member-card:nth-child(7) {
  animation-delay: 0.7s;
}
.board-member-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* end board of directors */

/* frequently asked questions */

/* FAQ Page Styles */
.faq-item {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.faq-item:hover {
  border-color: rgba(0, 102, 54, 0.1);
  transform: translateX(5px);
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-question i {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 1.25rem;
}

.faq-question i.rotate-180 {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease;
}

.faq-answer.hidden {
  max-height: 0;
  opacity: 0;
}

.faq-answer:not(.hidden) {
  max-height: 1000px;
  opacity: 1;
}

/* Category Buttons */
.faq-category-btn {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.faq-category-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.faq-category-btn:hover::before {
  width: 300px;
  height: 300px;
}

.faq-category-btn.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 54, 0.3);
}

/* Search Input */
#faq-search {
  transition: all 0.3s ease;
}

#faq-search:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 54, 0.1);
}

/* FAQ List Styles */
.faq-item .list-disc {
  padding-left: 1.5rem;
}

.faq-item .list-disc li {
  margin-bottom: 0.5rem;
}

/* Active FAQ Item */
.faq-item.active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.faq-item.active .faq-question {
  background-color: #f9fafb;
}

/* No Results Animation */
#no-results {
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Search highlight effect */
.search-highlight {
  background-color: rgba(250, 240, 77, 0.3);
  padding: 0 2px;
  border-radius: 3px;
}

/* Loading animation for FAQ items */
.faq-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animations */
.faq-item:nth-child(1) {
  animation-delay: 0.05s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.1s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.15s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.2s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.25s;
}
.faq-item:nth-child(6) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(7) {
  animation-delay: 0.35s;
}
.faq-item:nth-child(8) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(9) {
  animation-delay: 0.45s;
}
.faq-item:nth-child(10) {
  animation-delay: 0.5s;
}
.faq-item:nth-child(11) {
  animation-delay: 0.55s;
}
.faq-item:nth-child(12) {
  animation-delay: 0.6s;
}
.faq-item:nth-child(13) {
  animation-delay: 0.65s;
}
.faq-item:nth-child(14) {
  animation-delay: 0.7s;
}
.faq-item:nth-child(15) {
  animation-delay: 0.75s;
}

/* Category button hover effects */
.faq-category-btn {
  position: relative;
  z-index: 1;
}

.faq-category-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.faq-category-btn:hover::after {
  width: 80%;
}

.faq-category-btn.active::after {
  width: 80%;
}

/* Still have questions section */
.bg-primary\/5 {
  background-color: rgba(0, 102, 54, 0.05);
}

/* Contact buttons */
.inline-flex.items-center.gap-2 {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inline-flex.items-center.gap-2:hover {
  transform: translateY(-2px);
}

/* Search clear button animation */
#clear-search {
  transition: all 0.3s ease;
}

#clear-search:hover {
  transform: scale(1.1);
}

/* Custom scrollbar for FAQ container */
#faq-container {
  scroll-behavior: smooth;
}

/* Print styles for FAQ */
@media print {
  .faq-answer {
    display: block !important;
  }

  .faq-question i {
    display: none;
  }

  .faq-category-btn,
  #faq-search,
  .still-have-questions {
    display: none;
  }
}

/* end frequently asked questions */

/* Clients, Partners, Funders Page Styles */
.partner-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 102, 54, 0.05),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.partner-card:hover::before {
  left: 100%;
}

.partner-card:hover {
  transform: translateY(-8px);
}

.partner-card a {
  position: relative;
  z-index: 2;
}

/* Tab buttons styling */
.partner-tab-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.partner-tab-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.partner-tab-btn:hover::before {
  width: 80%;
}

.partner-tab-btn.active::before {
  width: 80%;
}

.partner-tab-btn i {
  transition: transform 0.3s ease;
}
.partner-tab-btn:hover i {
  transform: scale(1.1);
}

/* Tab content transitions */
.partner-tab-content {
  transition: all 0.3s ease;
}

.partner-tab-content.hidden {
  display: none;
}

.partner-tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Partner card image container */
.partner-card .w-32.h-32 {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.partner-card:hover .w-32.h-32 {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 54, 0.1) 0%,
    rgba(0, 102, 54, 0.05) 100%
  );
  transform: scale(1.05);
}

.partner-card i {
  transition: transform 0.3s ease;
}

.partner-card:hover i {
  transform: scale(1.1);
}

/* Visit website link animation */
.partner-card .opacity-0 {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.partner-card:hover .opacity-0 {
  opacity: 1 !important;
  transform: translateY(0);
}

.partner-card .opacity-0 {
  transform: translateY(5px);
}

/* Stats section */
.bg-gray-50 .grid .text-3xl {
  font-family: "Outfit", sans-serif;
}

/* Impact stories cards */
.bg-gradient-to-br {
  transition: all 0.3s ease;
}

.bg-gradient-to-br:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* end of Partners, Clients, Funders Page Styles */

/* Contact Us Page Styles */
.contact-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 102, 54, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card .w-16.h-16 {
  transition: all 0.3s ease;
}

.contact-card:hover .w-16.h-16 {
  transform: scale(1.1);
  background-color: var(--primary);
}

.contact-card:hover .w-16.h-16 i {
  color: white !important;
}

/* Social icons styling */
.social-icon {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 54, 0.3);
}

.social-icon:hover i {
  color: white !important;
}

/* Map cards */
.map-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.map-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.map-card iframe {
  transition: transform 0.5s ease;
}

.map-card:hover iframe {
  transform: scale(1.02);
}

/* Form styling */
#contact-form input,
#contact-form select,
#contact-form textarea {
  transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 54, 0.1);
}

#contact-form button {
  position: relative;
  overflow: hidden;
}

#contact-form button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

#contact-form button:hover::before {
  width: 300px;
  height: 300px;
}

/* Form success message animation */
#form-success {
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Business hours cards */
.bg-gray-50.rounded-2xl {
  transition: all 0.3s ease;
}

.bg-gray-50.rounded-2xl:hover {
  transform: translateY(-5px);
}

/* FAQ teaser section */
.bg-gradient-to-br {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.contact-card.card--center--align {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.contact-card .text-sm {
  font-size: 1rem;
}

/* End of Contact Us Page Styles */

/* Contact Form Page Styles */
#contact-form {
  transition: all 0.3s ease;
}

/* Form input focus effects */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 54, 0.15);
}

/* Radio button styling */
input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* File input styling */
input[type="file"] {
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: var(--primary-dark) !important;
}

/* Progress bar animation */
#progress-bar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Error message animations */
.error-message {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Success modal animation */
.animate-modal-in {
  animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Sidebar cards */
.bg-white.rounded-2xl {
  transition: all 0.3s ease;
}

.bg-white.rounded-2xl:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Gradient background animation */
.bg-gradient-to-br {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Loading spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* end of contact form styles */

@media (min-width: 360px) {
  .logo-text h1 {
    font-size: 1.2rem;
  }
  .logo-text p {
    letter-spacing: 0.1em;
  }
}

@media (min-width: 600px) {
  .logo-text p {
    letter-spacing: 0.05em;
  }
  .hero-overlay {
    background: linear-gradient(
      41deg,
      rgb(0 31 16) 11% 0%,
      rgb(0 84 44) 41%,
      rgb(0 102 54 / 91%) 55%,
      rgb(0 102 54 / 64%) 66%,
      rgba(0, 102, 54, 0) 100%
    );
  }
  .slide--section--inner {
    bottom: 125px;
    padding: 0 50px;
  }
  .slider--prev--nextBtn {
    bottom: 455px;
  }
  .h--pg--banner {
    height: 55vh;
  }

  .no--photo--icon {
    font-size: 150px !important;
  }
}

@media (min-width: 768px) {
  .slide--section--inner {
    width: 650px;
    padding: 0 0 0 50px;
  }
}

@media (min-width: 1024px) {
  .navbar--styles {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .navbar--inner--styles {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .logo-text h1 {
    letter-spacing: 0.2em;
  }
  .logo-text p {
    font-size: 0.6rem;
  }
  .px-3 {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }
  .desktop--menu {
    padding: 0 0 0 0;
  }
  .dropdown--menu--width1.w-64 {
    width: 9rem;
  }
  .dropdown--menu--width1.w-64 .px-5 {
    padding-left: 1.25rem;
    padding-right: 0.5rem;
  }
  .hero-overlay {
    background: linear-gradient(
      41deg,
      rgb(0 31 16) 11% 0%,
      rgb(0 84 44) 41%,
      rgb(0 102 54 / 59%) 55%,
      rgb(0 102 54 / 64%) 66%,
      rgba(0, 102, 54, 0) 100%
    );
  }
}

@media (min-width: 1024px) and (height: 600px) {
  .slider--prev--nextBtn {
    bottom: 50%;
  }
  .slide--section--inner {
    bottom: 60px;
    width: 710px;
    padding: 0 0 0 105px;
  }
  .slide--section--inner h1 {
    font-size: 3rem;
  }
  .h--pg--banner {
    height: 75vh;
  }
}

@media (min-width: 1280px) {
  .navbar--inner--styles {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
  .dropdown--menu--width1.w-64 {
    width: 11rem;
  }
  .hero-overlay {
    background: linear-gradient(
      30deg,
      rgb(0 67 36) 10% 0%,
      rgb(0 79 42) 31%,
      rgb(0 102 54 / 82%) 51% 40%,
      rgb(0 102 54 / 47%) 60%,
      rgba(0, 102, 54, 0) 100%
    );
  }
  .slider--prev--nextBtn {
    bottom: 50%;
  }
  .slide--section--inner {
    bottom: 80px;
    width: 815px;
    padding: 0 0 0 105px;
  }
  .slide--section--inner h1 {
    font-size: 3rem;
  }
  .px-3 {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .logo-text p {
    font-size: 0.7rem;
  }
  .hamburger span {
    width: 22px;
  }
}

.partner-btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .partner-btn {
    white-space: normal;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
  }

  /* contact us page */
  .contact-card .w-16.h-16 {
    width: 50px;
    height: 50px;
  }

  .contact-card .w-16.h-16 i {
    font-size: 1.25rem;
  }

  .contact-card h3 {
    font-size: 1.1rem;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  /* end of contact us page styles  */
}

/* Responsive adjustments for About Us page */
@media (max-width: 768px) {
  .bg-gradient-to-br .p-12 {
    padding: 2rem;
  }

  .text-3xl.sm\:text-4xl {
    font-size: 1.75rem;
  }

  /* frequently asked questions */
  .faq-question span {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem 1.25rem;
  }

  .faq-category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .faq-item .list-disc li {
    font-size: 0.9rem;
  }

  /* clients, partners, funders page */
  .partner-tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .partner-tab-btn i {
    margin-right: 0.5rem;
  }

  .partner-card .w-32.h-32 {
    width: 100px;
    height: 100px;
  }

  .partner-card i {
    font-size: 2.5rem;
  }

  .partner-card h3 {
    font-size: 1.1rem;
  }

  .stats-section .grid {
    gap: 1rem;
  }
  /* end of Partners, Clients, Funders Page Styles */

  /* Contact Us Page Styles */
  .contact-card {
    margin-bottom: 1rem;
  }

  .map-card {
    margin-bottom: 1.5rem;
  }

  #contact-form {
    padding: 1rem;
  }

  /* end of contact us page styles  */

  /* contact form styles */
  #contact-form {
    padding: 1.5rem;
  }

  .grid.md\:grid-cols-2 {
    gap: 1rem;
  }

  .bg-primary.px-8 {
    padding: 1rem 1.5rem;
  }

  .bg-primary h3 {
    font-size: 1.25rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* end of contact form styles */
}

.mobile-dropdown-btn {
  text-align: left;
}

/* Keep text visible on tap/focus for mobile buttons */
.mobile-dropdown-btn:focus,
.mobile-dropdown-btn:active {
  background: var(--primary);
  color: #fff;
  outline: none;
}

.mobile-dropdown-btn:focus i,
.mobile-dropdown-btn:active i {
  color: #fff;
}

/* Remove default tap highlight on iOS / Android to avoid visual glitches */
.mobile-dropdown-btn,
.mobile-dropdown-btn i {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  #prev-slide,
  #next-slide {
    width: 36px;
    height: 36px;
  }

  /* clients, partners, funders page */
  .partner-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .partner-tab-btn i {
    font-size: 0.875rem;
  }

  .partner-card {
    padding: 0;
  }

  .partner-card a {
    padding: 1.5rem;
  }
  /* end of Partners, Clients, Funders Page Styles */

  /* contact form styles */
  #contact-form {
    padding: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .error-message {
    font-size: 0.7rem;
  }
  /* end of contact form styles */
}

/* Ensure stats, about, services etc use same width alignment */
.stats-grid,
.services-grid,
.about-content {
  width: 100%;
}

/* Smooth scroll behavior for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Value icons hover effect */
.card-hover .w-16.h-16 {
  transition: all 0.3s ease;
}

.card-hover:hover .w-16.h-16 {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 102, 54, 0.2);
}

/* Approach section list items */
.space-y-4 .flex {
  transition: all 0.3s ease;
}

.space-y-4 .flex:hover {
  background: linear-gradient(90deg, rgba(0, 102, 54, 0.05), transparent);
  padding-left: 0.5rem;
  border-radius: 0.5rem;
}

/* clients, partners, funders styles */
/* Print styles */
@media print {
  .partner-tab-btn,
  .call-to-action,
  .stats-section {
    display: none;
  }

  .partner-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .partner-card a {
    text-decoration: none;
    color: #000;
  }

  .opacity-0 {
    opacity: 1 !important;
  }

  /* contact us page */
  .contact-card,
  .map-card,
  .business-hours {
    break-inside: avoid;
  }

  .btn-primary,
  .social-icon,
  .cta-section {
    display: none;
  }
  /* end of contact us page print styles */

  /* contact form styles */
  #contact-form,
  .sidebar {
    display: none;
  }
  /* end of contact form styles */
}

/* Loading animation for partner cards */
.partner-card {
  opacity: 0;
  animation: cardFadeInUp 0.6s ease forwards;
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animations for cards */
#clients-grid .partner-card:nth-child(1) {
  animation-delay: 0.1s;
}
#clients-grid .partner-card:nth-child(2) {
  animation-delay: 0.2s;
}
#clients-grid .partner-card:nth-child(3) {
  animation-delay: 0.3s;
}
#clients-grid .partner-card:nth-child(4) {
  animation-delay: 0.4s;
}
#clients-grid .partner-card:nth-child(5) {
  animation-delay: 0.5s;
}
#clients-grid .partner-card:nth-child(6) {
  animation-delay: 0.6s;
}

#partners-grid .partner-card:nth-child(1) {
  animation-delay: 0.1s;
}
#partners-grid .partner-card:nth-child(2) {
  animation-delay: 0.2s;
}
#partners-grid .partner-card:nth-child(3) {
  animation-delay: 0.3s;
}
#partners-grid .partner-card:nth-child(4) {
  animation-delay: 0.4s;
}
#partners-grid .partner-card:nth-child(5) {
  animation-delay: 0.5s;
}
#partners-grid .partner-card:nth-child(6) {
  animation-delay: 0.6s;
}
#partners-grid .partner-card:nth-child(7) {
  animation-delay: 0.7s;
}
#partners-grid .partner-card:nth-child(8) {
  animation-delay: 0.8s;
}

#funders-grid .partner-card:nth-child(1) {
  animation-delay: 0.1s;
}
#funders-grid .partner-card:nth-child(2) {
  animation-delay: 0.2s;
}
#funders-grid .partner-card:nth-child(3) {
  animation-delay: 0.3s;
}
#funders-grid .partner-card:nth-child(4) {
  animation-delay: 0.4s;
}
#funders-grid .partner-card:nth-child(5) {
  animation-delay: 0.5s;
}
#funders-grid .partner-card:nth-child(6) {
  animation-delay: 0.6s;
}
#funders-grid .partner-card:nth-child(7) {
  animation-delay: 0.7s;
}
#funders-grid .partner-card:nth-child(8) {
  animation-delay: 0.8s;
}
#funders-grid .partner-card:nth-child(9) {
  animation-delay: 0.9s;
}

/* External link icon styling */
.fa-external-link-alt {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.partner-card:hover .fa-external-link-alt {
  transform: translateX(3px);
}

/* Hover effect for stat numbers */
.bg-gray-50 .grid .text-3xl {
  transition: all 0.3s ease;
  display: inline-block;
}

.bg-gray-50 .grid div:hover .text-3xl {
  transform: scale(1.1);
  color: var(--primary-dark);
}

/* Tooltip for external links */
.partner-card a {
  position: relative;
}

/* Focus styles for accessibility */
.partner-card a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 1rem;
}

.partner-tab-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* end of clients, partners, funders styles */

/* contact us page styles */
/* Phone and email clickable styles */
.contact-card .fa-phone + p,
.contact-card .fa-envelope + p {
  cursor: pointer;
  transition: color 0.3s ease;
}

.contact-card .fa-phone + p:hover,
.contact-card .fa-envelope + p:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Loading spinner animation */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Character counter styling */
#char-count {
  font-weight: bold;
  color: var(--primary);
}

/* Form validation styling (optional) */
input:invalid,
select:invalid,
textarea:invalid {
  border-color: #ef4444;
}

input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
/* end of contact us page styles */

/* contact form styles  */
/* Character counter warning */
.text-red-500 {
  transition: color 0.3s ease;
}

/* Required field indicator */
.text-red-500 {
  font-size: 1.1em;
}

/* Focus visible for accessibility */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Disabled button state */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* File input validation styles */
input[type="file"].error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* Success modal backdrop */
#success-modal {
  backdrop-filter: blur(4px);
}

/* Smooth scroll for errors */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* end of contact form styles */
