@media (max-width: 767px) {
  .dropdown-content {
    min-width: 100vw !important;
    width: 100vw !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    max-width: 100vw !important;
  }
  .sub-dropdown-content {
    min-width: 90vw !important;
    width: 90vw !important;
    left: -1% !important;
    top: 100% !important;
    transform: none !important;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    max-width: 90vw !important;
  }
}
#hamburger-menu span {
  transition: all 0.3s ease;
}
#hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}
#hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* Outer container to hide overflow */
.marquee-container {
  overflow: hidden;
}
/* Inner wrapper that moves */
.marquee-content {
  display: inline-block;
}
@keyframes marquee-left-to-right {
  0% {
    transform: translateX(-100%); /* Start off left */
  }
  100% {
    transform: translateX(100%); /* Exit right */
  }
}
/* Styling for title and value */
.impact-stat-title,
.impact-stat-value {
  display: inline-block;
}
/* Divider between Children Impacted and No of projects */
.impact-divider {
  width: 2px;
  height: 80px;
}
@media (max-width: 991px) {
  .dropdown-content,
  .sub-dropdown-content {
    display: none !important;
  }
  .dropdown.touch-active .dropdown-content {
    display: block !important;
    background: #f8f8f8 !important;
    box-shadow: 0 4px 12px rgba(232, 93, 142, 0.15);
    border: 2px solid #e85d8e22;
  }
  .sub-dropdown.touch-active .sub-dropdown-content {
    display: block !important;
    background: #f8f8f8 !important;
    box-shadow: 0 4px 12px rgba(232, 93, 142, 0.15);
    border: 2px solid #e85d8e22;
  }
  .dropdown.touch-active > a,
  .sub-dropdown.touch-active > a {
    background: #e85d8e !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    width: 100%;
    display: block;
    box-sizing: border-box;
  }
}
.dropdown.touch-active .dropdown-content {
  display: block !important;
}
.sub-dropdown.touch-active .sub-dropdown-content {
  display: block !important;
}
.donate-btn {
  background: #f48b9b;
  color: #fff;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2em;
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 1.5rem;
  white-space: nowrap;
}
.hero-section .hero-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #ee6a2c;
  border: 2px solid #ee6a2c;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s;
}
/* Outer container to hide overflow */
.marquee-container {
  overflow: hidden;
  width: 100%; /* or a fixed width if needed */
  position: relative;
}

/* Inner wrapper that moves */
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-left-to-right 15s linear infinite;
}

@keyframes marquee-left-to-right {
  0% {
    transform: translateX(-100%); /* Start off left */
  }
  100% {
    transform: translateX(100%); /* Exit right */
  }
}

/* Styling for title and value */
.impact-stat-title,
.impact-stat-value {
  display: inline-block;
  margin-right: 2rem; /* spacing between title and stat */
}

/* Divider between Children Impacted and No of projects */
.impact-divider {
  width: 2px;
  height: 80px;
  background: rgba(255, 255, 255, 0.4);
  align-self: center;
  margin: 0 40px;
  z-index: 10;
}
@media (max-width: 991px) {
  .dropdown-content,
  .sub-dropdown-content {
    display: none !important;
  }
  .dropdown.touch-active .dropdown-content {
    display: block !important;
    background: #f8f8f8 !important;
    box-shadow: 0 4px 12px rgba(232, 93, 142, 0.15);
    border: 2px solid #e85d8e22;
  }
  .sub-dropdown.touch-active .sub-dropdown-content {
    display: block !important;
    background: #f8f8f8 !important;
    box-shadow: 0 4px 12px rgba(232, 93, 142, 0.15);
    border: 2px solid #e85d8e22;
  }
  .dropdown.touch-active > a,
  .sub-dropdown.touch-active > a {
    background: #e85d8e !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    width: 100%;
    display: block;
    box-sizing: border-box;
  }
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: white !important;
}

/* Top Bar styles */
.top-bar {
  .navbar.nav-open .hamburger {
    display: flex !important;
  }
  background: linear-gradient(90deg, #e76a3c 0%, #e85d8e 100%);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 1rem;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}
.top-bar .contact i {
  margin-right: 0.3em;
}
.top-bar .social a {
  color: #fff;
  margin-left: 0.7em;
  font-size: 1.2em;
  transition: color 0.2s;
}
.top-bar .social a:hover {
  color: #222;
}

/* Updated Navbar styles for single line layout */
.navbar {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  width: 100%;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; /* Reduced from 1.5rem */
  padding: 0.7rem 2rem;
  flex-wrap: nowrap; /* Prevent wrapping */
  min-height: 60px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px; /* Reduced from 180px */
  margin-right: 1rem; /* Reduced from 1.5rem */
  flex-shrink: 0;
}
.logo img {
  height: 55px; /* Reduced from 65px */
  width: auto;
  max-width: 140px; /* Reduced from 180px */
  object-fit: contain;
  display: block;
  margin: 0;
}
.logo small {
  display: none;
}
.navbar nav {
  display: flex;
  gap: 1.7rem;
  flex: 1;
  justify-content: center;
}
.navbar nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.2s;
}
.navbar nav a:hover {
  color: #e85d8e;
}
.donate-btn {
  background: #f48b9b;
  color: #fff;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2em;
  font-size: 1.1em;
  font-weight: bold;
  .navbar nav a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: color 0.2s;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0; /* Prevent items from shrinking */
  }
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 1.5rem;
  white-space: nowrap;
}
.donate-btn:hover {
  background: #e85d8e;
}

/* Hamburger styles */
.navbar .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}
.navbar .hamburger span {
  height: 3px;
  width: 24px;
  background: #e66465;
  margin: 4px 0;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

/* Hero section styles */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: #f8f8f8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-section .hero-bg {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-left: 40px;
  color: #ee6a2c;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-section .hero-label {
  background: #fff;
  color: #ee6a2c;
  font-weight: bold;
  font-size: 16px;
  padding: 4px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  display: inline-block;
  letter-spacing: 1px;
}
.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 32px 0;
  line-height: 1.1;
  color: #ee6a2c;
  text-align: left;
}
.hero-section h1 .highlight {
  background: #ee6a2c;
  color: #fff;
  padding: 0 8px;
  border-radius: 2px;
  display: inline-block;
}
.hero-section .hero-btn {
  .dropdown-content {
    white-space: normal; /* Allow normal wrapping in dropdowns */
  }
  display: inline-flex;
  .dropdown-content a {
    white-space: normal !important;
    overflow: visible;
    text-overflow: initial;
  }
  align-items: center;
  background: #fff;
  color: #ee6a2c;
  border: 2px solid #ee6a2c;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s;
}
.hero-section .hero-btn:hover {
  background: #ee6a2c;
  color: #fff;
}
.hero-section .hero-btn i {
  margin-left: 10px;
}
.hero-section .hero-indicators {
  position: absolute;
  left: 40px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 12px;
}
.hero-section .hero-indicators span {
  display: inline-block;
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: #eeb7b7;
  transition: background 0.2s;
}
.hero-section .hero-indicators .active {
  background: #ee6a2c;
}
.hero-section .hero-arrows {
  position: absolute;
  right: 40px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 16px;
}
.hero-section .hero-arrows button {
  background: #fff;
  border: 2px solid #ee6a2c;
  color: #ee6a2c;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hero-section .hero-arrows button:hover {
  background: #ee6a2c;
  color: #fff;
}

/* About Section */
.about-section {
  background: #fff;
  padding: 60px 0;
}
.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.about-text {
  flex: 1 1 480px;
  min-width: 340px;
}
.about-text h5 {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ee6a2c;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #ee6a2c;
  display: inline-block;
  padding-bottom: 4px;
}
.about-text h2 {
  font-size: 2.8rem;
  color: #ee6a2c;
  margin-bottom: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.about-text p {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 32px;
  line-height: 1.6;
}
.about-btn {
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #ee6a2c;
  border: 2px solid #ee6a2c;
  transition: background 0.2s, color 0.2s;
}
.about-btn:hover {
  background: #ee6a2c;
  color: #fff;
}
.about-btn i {
  margin-left: 10px;
}
.about-image {
  flex: 1 1 420px;
  min-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-border {
  display: block;
  width: 100%;
  max-width: 520px;
  padding: 20px;
  border: 3px solid transparent;
  border-radius: 32px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to right, #e85d8e 0%, #e85d8e 100%) border-box;
  box-sizing: border-box;
  overflow: hidden;
}

.about-image-border img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* Focus Areas Section */
.focus-section {
  padding: 40px 0 60px 0;
  background: #fff;
  text-align: center;
}
.focus-section h5 {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ee6a2c;
  margin-bottom: 10px;
  font-weight: 700;
}
.focus-section h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 38px;
  font-weight: 700;
  line-height: 1.3;
}
.focus-section .underline {
  display: block;
  width: 60px;
  height: 2px;
  background: #ee6a2c;
  opacity: 0.3;
  margin: 10px auto 30px auto;
}
.focus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.focus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s, box-shadow 0.3s;
}
.focus-card:hover {
  transform: translateY(-5px);
}
.focus-card img {
  width: 100%;
  max-width: 280px;
  height: 300px;
  border-radius: 20px;
}
.focus-card .focus-arrow {
  color: #ee6a2c;
  font-size: 1.3rem;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #ee6a2c22;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  margin-left: 0;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.focus-card .focus-arrow:hover {
  background: #ee6a2c;
  color: #fff;
}

/* Be a Part Section */
.beapart-section {
  background: #fff;
  padding: 60px 0 60px 0;
}
.beapart-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
  box-sizing: border-box;
}
.beapart-text {
  flex: 1;
  min-width: 280px;
}
.beapart-text h5 {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ee6a2c;
  margin-bottom: 10px;
  font-weight: 700;
}
.beapart-text h2 {
  font-size: 2rem;
  color: #ee6a2c;
  margin-bottom: 18px;
  font-weight: 700;
}
.beapart-card {
  background: none;
  border: none;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
}
.beapart-card.volunteer {
  background: none;
  border: none;
}
.beapart-card h3 {
  color: #8b4513;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.beapart-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}
.beapart-card a {
  color: #e85d8e;
  font-size: 1.3rem;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #e85d8e22;
  width: 100px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.beapart-card a:hover {
  background: #e85d8e;
  color: #fff;
  border-color: #e85d8e;
}
.beapart-card:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 12px rgba(238, 106, 44, 0.1);
  background: #e85d8e;
  border-color: #ee6a2c;
}
.beapart-card:hover h3,
.beapart-card:hover p {
  color: #fff;
}
.beapart-image {
  flex: 1 1 340px;
  min-width: 320px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
}
.beapart-image img {
  display: block;
  width: 100%;
  height: 500px;
  max-width: 730px;
  padding: 20px;
  border: 3px solid transparent;
  border-radius: 32px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to right, #e85d8e 0%, #e85d8e 100%) border-box;
  box-sizing: border-box;
  overflow: hidden;
}

/* Our Impact Section Styles */
.impact-section {
  background: #e5637c;
  color: #fff;
  padding: 40px 0 150px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.impact-section h2 {
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  z-index: 3;
}
.impact-section .underline {
  display: block;
  width: 60px;
  height: 2px;
  background: #fff;
  margin: 10px auto 20px auto;
  opacity: 0.3;
  position: relative;
  z-index: 3;
}
.impact-section h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 30px 0;
  line-height: 1.2;
  position: relative;
  z-index: 3;
  background: transparent;
}
.impact-stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  z-index: 2;
  min-height: 500px; /* Ensures enough height for vertical centering */
  height: 500px; /* Match the circle's height for perfect centering */
}
.impact-stats-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 50% 40%, #ffd86b 0%, #e5637c 80%);
  opacity: 0.7;
  border-radius: 50%;
  z-index: 1;
}
.impact-stats-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 53.26%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.impact-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  overflow-x: visible;
}
.impact-stat {
  flex: 0 0 220px;
  max-width: 220px;
  padding: 40px 0 30px 0;
  margin: 0 80px;
  position: relative;
  font-family: "Playfair Display", serif;
}
.impact-stat:first-child {
  margin-left: 0;
}
.impact-stat:last-child {
  margin-right: 0;
}
.impact-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 30%;
  height: 40%;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 10;
}
.impact-stat-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
  opacity: 0.97;
}
.impact-stat-value {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0;
  letter-spacing: 1px;
  display: block;
}
.impact-highlight {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 180px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 90px;
  z-index: 2;
  box-shadow: 0 0 80px 20px #ffd86b55;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.impact-highlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 90px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  position: absolute;
  left: 0;
  top: 0;
}
.impact-corners {
  position: relative;
  overflow: visible;
}
.impact-corners .corner {
  position: absolute;
  width: 36px;
  height: 36px;
}
.impact-corners .corner.tl {
  top: 0;
  left: 0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.impact-corners .corner.tr {
  top: 0;
  right: 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.impact-corners .corner.bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
}
.impact-corners .corner.br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}

/* Our Projects Section */
.projects-section {
  background: #d59c27;
  padding: 60px 0 80px 0;
  text-align: center;
}
.projects-section h5 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.projects-section .underline {
  background: #fff;
  opacity: 0.5;
  margin: 10px auto 30px auto;
  width: 60px;
  height: 2px;
  display: block;
}
.projects-section h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.2;
  font-family: "Playfair Display", serif;
}
.projects-section .view-all-btn {
  display: inline-block;
  margin: 18px 0 38px 0;
  padding: 10px 28px;
  border: 2px solid #fff;
  border-radius: 24px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.projects-section .view-all-btn:hover {
  background: #fff;
  color: #d59c27;
}
.projects-cards {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.project-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.38) 70%,
    rgba(255, 255, 255, 0.18) 100%
  );
  border-radius: 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 40px 36px 32px 36px;
  width: 700px;
  max-width: 98vw;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 420px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.13);
}
.project-card img {
  width: 300px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #fff;
  align-self: center;
}
.project-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: #fff;
  font-weight: 900;
  margin: 0 0 10px 0;
}
.project-card .project-type {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.3;
}
.project-card p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 500;
}
.project-card .project-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 211, 78, 0.25);
  color: #d59c27;
  font-size: 1.2rem;
  text-decoration: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  opacity: 0.7;
}
.project-card .project-arrow:hover {
  background: rgba(213, 156, 39, 0.7);
  color: #fff;
  opacity: 1;
}

.project-card .project-prev {
  left: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.project-card .project-next {
  right: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.project-indicators {
  position: absolute;
  left: 32px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.project-indicators span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.4;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.project-indicators span.active {
  opacity: 1;
  background: #d59c27;
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  top: 100%;
  border-radius: 0 0 8px 8px;
  padding: 0.5em 0;
  pointer-events: auto;
}

.dropdown-content a {
  color: #222;
  padding: 0.7em 1.2em;
  text-decoration: none;
  display: block;
  font-size: 0.75em !important;
  font-weight: 400 !important;
  transition: background 0.2s;
  pointer-events: auto;
}

.dropdown-content a:hover {
  background: #f8f8f8;
  color: #e85d8e;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown.touch-active .dropdown-content {
  display: block !important;
}

.dropdown > a i {
  display: none !important;
}

.sub-dropdown {
  position: relative;
}

.sub-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-dropdown-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 100%;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  pointer-events: auto;
  margin-top: 0px; /* Adjust as needed for navbar height */
  transform: translateX(-50%);
}

.sub-dropdown:hover > .sub-dropdown-content {
  display: block;
}
.sub-dropdown.touch-active .sub-dropdown-content {
  display: block !important;
}

.sub-dropdown-content a {
  padding: 0.7em 1.2em;
  color: #222;
  text-decoration: none;
  display: block;
  font-size: 0.75em !important;
  font-weight: 400 !important;
  transition: background 0.2s;
}

.sub-dropdown-content a:hover {
  background: #f8f8f8;
  color: #e85d8e;
}

.underline {
  display: block;
  width: 60px;
  height: 2px;
  background: #ee6a2c;
  opacity: 0.3;
  margin: 10px 0 20px 0;
}

.responsive-table {
  overflow-x: auto;
  display: block;
}
.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge .badge-img {
  height: 100px;
  width: auto;
  margin-left: -10px;
  vertical-align: middle;
}

/* Footer Styles */
.footer {
  background: linear-gradient(90deg, #881d45 0%, #8b2c3a 50%, #8b3c1d 100%);
  color: #fff;
  padding: 0 0 0 0;
  font-family: "Inter", Arial, sans-serif;
  position: relative;
  margin-top: 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  flex-wrap: wrap;
  gap: 40px;
  height: 215px;
}
.footer-col {
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 30px;
}
.footer-col h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 2px;
}
.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #ffd86b;
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.7;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover {
  color: #ffd86b;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo i {
  font-size: 2rem;
  color: #ffd86b;
}
.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer-desc {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.6;
  opacity: 0.9;
}
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 40px 0 0 0;
}
.footer-bottom {
  text-align: center;
  padding: 24px 0 32px 0;
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
}

/* Global optimizations */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ===== ENHANCED RESPONSIVE MEDIA QUERIES ===== */

/* Extra Large Devices (1400px+) */
@media (min-width: 1400px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }

  .navbar .container {
    padding: 0.7rem 3rem;
  }

  .hero-section .hero-content {
    padding-left: 60px;
  }

  .about-container {
    padding: 0 60px;
    gap: 80px;
  }

  .beapart-container {
    padding: 0 60px;
    gap: 60px;
  }
}

/* Large Devices (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .focus-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .impact-stat {
    margin: 0 60px;
  }

  .projects-cards {
    gap: 40px;
  }
}

/* Large Tablets & Small Desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .container {
    padding: 0.7rem 2rem;
    gap: 1.2rem;
  }

  .navbar nav {
    gap: 1.4rem;
  }

  .navbar nav > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: thin;
    min-width: 1200px;
  }
  .navbar nav > ul > li {
    flex: 0 0 auto;
    white-space: nowrap !important;
  }

  .hero-section h1 {
    font-size: 42px;
  }

  .about-container {
    gap: 40px;
    padding: 0 30px;
  }

  .about-text h2 {
    font-size: 2.4rem;
  }

  .focus-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .beapart-container {
    gap: 30px;
    padding: 0 30px;
  }

  .impact-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .impact-stat {
    flex: 0 0 180px;
    min-width: 180px;
    margin: 0 40px;
  }

  .impact-stat:not(:last-child)::after {
    right: -40px;
  }

  .projects-cards {
    gap: 30px;
  }

  .project-card {
    width: 600px;
    padding: 35px 30px 28px 30px;
  }
}

/* Standard Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .top-bar .container {
    gap: 1.5rem;
    padding: 0 20px;
  }

  .navbar .container {
    padding: 0.7rem 1.5rem;
    gap: 1rem;
  }

  .navbar nav {
    gap: 1.2rem;
  }

  .logo {
    min-width: 150px;
    margin-right: 1rem;
  }

  .logo img {
    height: 55px;
    max-width: 150px;
  }

  .donate-btn {
    padding: 0.6em 1.5em;
    font-size: 1em;
    margin-left: 1rem;
  }

  .hero-section {
    min-height: 420px;
  }

  .hero-section .hero-bg {
    height: 420px;
  }

  .hero-section .hero-content {
    padding-left: 30px;
    padding-right: 20px;
  }

  .hero-section h1 {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .hero-section .hero-btn {
    font-size: 16px;
    padding: 8px 24px;
  }

  .hero-section .hero-indicators {
    left: 30px;
    bottom: 25px;
  }

  .hero-section .hero-arrows {
    right: 30px;
    bottom: 20px;
  }

  .about-container {
    flex-direction: column;
    gap: 40px;
    padding: 0 25px;
  }

  .about-text {
    min-width: 0;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

  .focus-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 15px;
  }

  .beapart-container {
    gap: 30px;
    padding: 0 25px;
  }

  .impact-stats {
    flex-wrap: wrap;
    gap: 30px;
  }

  .impact-stat {
    flex: 0 0 150px;
    min-width: 150px;
    margin: 0 20px;
    padding: 30px 0 20px 0;
  }

  .impact-stat:not(:last-child)::after {
    display: none;
  }

  .projects-cards {
    gap: 25px;
  }

  .project-card {
    width: 500px;
    padding: 30px 25px 25px 25px;
    min-height: 380px;
  }
}

/* Large Mobile/Small Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .navbar nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .navbar nav > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 0.5rem;
  }
  /* Fix: margin-right should be inside a selector, e.g. for nav items */
  .navbar nav > ul > li {
    margin-right: 0.8rem;
  }

  .logo img {
    height: 45px;
    max-width: 120px;
  }

  .donate-btn {
    padding: 0.5em 1.2em;
    font-size: 0.9em;
    margin-left: 0.8rem;
  }

  .hero-section {
    min-height: 380px;
  }

  .hero-section .hero-bg {
    height: 380px;
  }

  .hero-section .hero-content {
    padding-left: 25px;
    padding-right: 15px;
    max-width: 90%;
  }

  .hero-section h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .hero-section .hero-btn {
    font-size: 15px;
    padding: 8px 20px;
  }

  .hero-section .hero-indicators {
    left: 25px;
    bottom: 20px;
    gap: 8px;
  }

  .hero-section .hero-arrows {
    right: 25px;
    bottom: 15px;
    gap: 12px;
  }

  .about-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-image {
    min-width: 0;
  }

  .about-image-border {
    max-width: 320px;
    padding: 12px;
  }

  .focus-section h2 {
    font-size: 1.3rem;
    padding: 0 15px;
  }

  .focus-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
  }

  .focus-card {
    padding: 10px;
  }

  .focus-card img {
    height: 180px;
  }

  .beapart-container {
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
  }

  .beapart-text {
    text-align: center;
  }

  .beapart-image {
    min-width: 0;
  }

  .beapart-image img {
    height: 300px;
    padding: 12px;
  }

  .impact-section {
    padding: 35px 0 100px 0;
  }

  .impact-section h1 {
    font-size: 2rem;
    padding: 0 20px;
  }

  .impact-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .impact-stat {
    flex: 0 0 150px;
    min-width: 150px;
    margin: 0 20px;
    padding: 30px 0 20px 0;
  }

  .impact-stat:not(:last-child)::after {
    display: none;
  }

  .impact-stat-title {
    font-size: 1.3rem;
  }

  .impact-stat-value {
    font-size: 2.2rem;
  }

  .impact-stats-bg {
    width: 250px;
    height: 250px;
  }

  .impact-highlight {
    width: 280px;
    height: 140px;
  }

  .projects-section {
    padding: 50px 0 60px 0;
  }

  .projects-section h1 {
    font-size: 2.2rem;
    padding: 0 20px;
  }

  .projects-cards {
    gap: 25px;
  }

  .project-card {
    width: 500px;
    padding: 30px 25px 25px 25px;
    min-height: 380px;
  }
}

/* Mobile Devices (320px - 575px) */
@media (max-width: 575px) {
  .top-bar {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }

  .top-bar .container {
    gap: 0.8rem;
    padding: 0 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar .hamburger {
    display: flex;
  }

  .navbar nav {
    display: none;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
  }

  .navbar nav a {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar.nav-open nav {
    display: flex;
  }

  .navbar .container {
    padding: 0.5rem 10px;
    gap: 0.5rem;
    position: relative;
  }

  .logo {
    min-width: 100px;
    margin-right: 0.5rem;
  }

  .logo img {
    height: 35px;
    max-width: 100px;
  }

  .donate-btn {
    padding: 0.4em 1em;
    font-size: 0.8em;
    margin-left: 0.5rem;
  }

  .hero-section {
    min-height: 320px;
  }

  .hero-section .hero-bg {
    height: 320px;
  }

  .hero-section .hero-content {
    padding: 15px;
    max-width: 95%;
  }

  .hero-section h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .hero-section .hero-label {
    font-size: 14px;
    padding: 3px 12px;
    margin-bottom: 14px;
  }

  .hero-section .hero-btn {
    font-size: 14px;
    padding: 7px 18px;
  }

  .hero-section .hero-indicators {
    left: 15px;
    bottom: 15px;
    gap: 6px;
  }

  .hero-section .hero-indicators span {
    width: 20px;
    height: 4px;
  }

  .hero-section .hero-arrows {
    right: 15px;
    bottom: 12px;
    gap: 10px;
  }

  .hero-section .hero-arrows button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .about-section {
    padding: 40px 0;
  }

  .about-container {
    flex-direction: column;
    gap: 25px;
    padding: 0 15px;
  }

  .about-text {
    text-align: center;
  }

  .about-text h5 {
    font-size: 14px;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-btn {
    font-size: 14px;
    padding: 8px 20px;
  }

  .about-image-border {
    max-width: 345px;
    padding: 10px;
  }

  .focus-section {
    padding: 30px 0 50px 0;
  }

  .focus-section h5 {
    font-size: 12px;
  }

  .focus-section h2 {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .focus-cards {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .focus-card {
    padding: 10px;
  }

  .focus-card img {
    height: 150px;
    border-radius: 15px;
  }

  .beapart-section {
    padding: 40px 0;
  }

  .beapart-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .beapart-text {
    text-align: center;
  }

  .beapart-text h2 {
    font-size: 1.6rem;
  }

  .beapart-card {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .beapart-card a {
    margin: 10px 0 0 0;
    width: 80px;
  }

  .beapart-image img {
    height: 300px;
    padding: 12px;
  }

  .impact-section {
    padding: 30px 0 80px 0;
  }

  .impact-section h1 {
    font-size: 1.6rem;
    padding: 0 15px;
  }

  .impact-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .impact-stat {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    padding: 20px 0 15px 0;
    width: 100%;
    max-width: 200px;
  }

  .impact-stat:not(:last-child)::after {
    display: none;
  }

  .impact-stat-title {
    font-size: 1.2rem;
  }

  .impact-stat-value {
    font-size: 2rem;
  }

  .impact-stats-bg {
    width: 180px;
    height: 180px;
  }

  .impact-highlight,
  .impact-highlight-inner {
    display: none;
  }

  .impact-stats-container {
    padding-top: 40px;
  }

  .projects-section {
    padding: 40px 0 50px 0;
  }

  .projects-section h1 {
    font-size: 1.8rem;
    padding: 0 15px;
  }

  .projects-cards {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 80%;
    max-width: 450px;
    padding: 25px 20px 20px 20px;
    min-height: 320px;
  }
}

/* --- Dropdowns: Make visible in mobile nav-open state --- */
@media (max-width: 767px) {
  .navbar.nav-open .dropdown-content,
  .dropdown-content a,
  .sub-dropdown-content a {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem !important;
    white-space: normal !important;
    overflow: visible;
    text-overflow: initial;
  }
}

/* High DPI/Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section .hero-bg,
  .about-image-border img,
  .beapart-image img,
  .focus-card img,
  .project-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-section .hero-indicators,
  .hero-section .hero-arrows,
  .project-card .project-arrow,
  .project-indicators,
  .dropdown-content,
  .sub-dropdown-content {
    display: none !important;
  }

  .hero-section,
  .about-section,
  .focus-section,
  .beapart-section,
  .impact-section,
  .projects-section,
  .footer {
    page-break-inside: avoid;
    padding: 20px 0;
  }

  body {
    color: #000;
    background: #fff;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .dropdown-content,
  .sub-dropdown-content {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
  }

  .dropdown-content a,
  .sub-dropdown-content a {
    color: #222 !important;
  }

  .dropdown-content a:hover,
  .sub-dropdown-content a:hover {
    background: #f8f8f8 !important;
    color: #e85d8e !important;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .focus-card:hover,
  .beapart-card:hover,
  .project-card:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero-section .hero-btn,
  .about-btn,
  .projects-section .view-all-btn {
    border-width: 3px;
  }

  .focus-card .focus-arrow,
  .beapart-card a,
  .project-card .project-arrow {
    border-width: 3px;
  }

  .dropdown-content,
  .sub-dropdown-content {
    border: 2px solid #333;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 300px;
  }

  .hero-section .hero-bg {
    height: 300px;
  }

  .hero-section h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-section .hero-content {
    padding-left: 20px;
  }

  .impact-section {
    padding: 20px 0 60px 0;
  }

  .projects-section {
    padding: 30px 0 40px 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .navbar nav a,
  .dropdown-content a,
  .sub-dropdown-content a,
  .hero-section .hero-btn,
  .about-btn,
  .focus-card .focus-arrow,
  .beapart-card a,
  .project-card .project-arrow,
  .projects-section .view-all-btn,
  .donate-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown:hover .dropdown-content,
  .sub-dropdown:hover > .sub-dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content,
  .sub-dropdown.active > .sub-dropdown-content {
    display: block;
  }
}

/* Foldable/Flexible Screen Support */
@media (spanning: single-fold-vertical) {
  .about-container,
  .beapart-container {
    flex-direction: row;
    gap: 2rem;
  }

  .impact-stats {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

@media (spanning: single-fold-horizontal) {
  .hero-section {
    min-height: 200px;
  }

  .hero-section .hero-bg {
    height: 200px;
  }

  .impact-section {
    padding: 20px 0 40px 0;
  }
}

/* Container Queries Support (Future-proofing) */
@supports (container-type: inline-size) {
  .focus-cards,
  .projects-cards {
    container-type: inline-size;
  }
}

/* Smooth scrolling enhancement */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

/* Grid support fallback */
@supports not (display: grid) {
  .focus-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .focus-card {
    flex: 0 0 280px;
    margin: 10px;
  }
}

/* Flexbox fallback for older browsers */
@supports not (display: flex) {
  .navbar .container,
  .about-container,
  .beapart-container,
  .impact-stats,
  .projects-cards,
  .footer-container {
    display: block;
  }

  .navbar nav a,
  .focus-card,
  .beapart-card,
  .project-card,
  .footer-col {
    display: inline-block;
    vertical-align: top;
    margin: 10px;
  }
}

/* Performance optimizations for animations */
.focus-card,
.beapart-card,
.project-card {
  will-change: transform;
}

.focus-card:not(:hover),
.beapart-card:not(:hover),
.project-card:not(:hover) {
  will-change: auto;
}

/* Safe area adjustments for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }

  .hero-section .hero-content {
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  @media (max-width: 575px) {
    .hero-section .hero-content {
      padding-left: max(15px, env(safe-area-inset-left));
      padding-right: max(15px, env(safe-area-inset-right));
    }
  }
}

/* Focus management for keyboard navigation */
.navbar nav a:focus,
.dropdown-content a:focus,
.sub-dropdown-content a:focus,
.hero-section .hero-btn:focus,
.about-btn:focus,
.focus-card .focus-arrow:focus,
.beapart-card a:focus,
.project-card .project-arrow:focus,
.projects-section .view-all-btn:focus,
.donate-btn:focus {
  outline: 3px solid #e85d8e;
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #e85d8e;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e85d8e;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error states */
.error {
  border: 2px solid #d32f2f;
  background-color: #ffebee;
}

.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Success states */
.success {
  border: 2px solid #388e3c;
  background-color: #e8f5e8;
}

.success-message {
  color: #388e3c;
  font-size: 0.875rem;
  margin-top: 4px;
}

@media (max-width: 991px) {
  .dropdown-content,
  .sub-dropdown-content {
    display: none !important;
  }
  .dropdown.touch-active .dropdown-content {
    display: block !important;
  }
  .sub-dropdown.touch-active .sub-dropdown-content {
    display: block !important;
  }
}
/* Touch active dropdowns for mobile/touch devices */
.dropdown.touch-active .dropdown-content {
  display: block !important;
}
.sub-dropdown.touch-active .sub-dropdown-content {
  display: block !important;
  /* Removed extra closing brace to fix lint error */
}

.event-box {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #fff;
  width: 270px;
}
.event-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.event-box a {
  text-decoration: none;
  text-align: center;
  font-size: 20px;
  color: blue !important;
}

.event-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.con-box {
  background-color: white;
  margin: 0px 20px;
  margin-bottom: 50px;
}
.con-box h1 {
  text-align: center;
}
.con-box-box {
  display: flex !important;
  justify-content: space-between;
}

.con-box1 {
  width: 95%;
  height: 240px;
  margin: 10px auto;
  padding: 10px;
  vertical-align: top;
  position: relative;
  display: flex;
  box-sizing: border-box;
  border-top: 2px solid #737878;
}

.con-box2 {
  width: 18%;
  margin: 10px;
}
.con-box3 {
  width: 60%;
  margin: 10px;
}
.con-box4 {
  width: 20%;
  margin: 10px;
}
/*
.con-box1 img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
}
  */
.con-box1 h3 {
  margin: 10px 0 5px 0;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  text-align: left;
}
.con-box p {
  font-size: 1rem;
  color: #666;

  text-align: justify;
}
.con-box2 p {
  color: #000;
  font-size: 20px;
  font-weight: 600;
}
.con-box3 p {
  font-size: 17px;
  font-weight: 488;
  width: 90%;
}
.con-box a {
  margin-top: 10px;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: absolute;
  top: 170px;
  right: 71.55%;
  font-size: 17px;
}
.con-box i {
  margin-left: 8px;
}
.main-heading {
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.con-box1 img {
  width: 100%;
  height: 90%;
}

.hint-1 {
  display: flex;
  flex-direction: column;
  margin-bottom: 55px !important;
}
.hint-hint {
  margin-left: 50px !important;
}
.hint {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #2563eb;
  background: #f0f6ff;
  cursor: pointer;
  margin-right: 6px;
}

.event-box1 {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #fff;
  width: 100%;
}
.event-box1:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.event-box1 a {
  text-decoration: none;
  text-align: center;
  font-size: 20px;
}

/* Events Details */

.con-boxes {
  padding: 20px;
}
.event-conten {
  background-color: ghostwhite;
  padding: 0px 10px 60px;
}
.event-conten h1 {
  color: blue;
  text-align: center;
  padding-top: 10px;
  font-size: 40px;
}
.event-conten span {
  padding: 0px 24px;
  font-size: 25px;
}
.event-conten span i {
  color: #2563eb;
  margin-right: 10px;
}
.gallery {
  margin-top: 30px !important;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.glimg {
  background-color: white;
  border-radius: 5px;
  max-width: 440px;
  height: 280px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 10px 20px;
}
.glimg:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  max-width: 500px;
  height: 280px;
}
.box-desc {
  margin-top: 60px !important;
  padding: 10px;
  text-align: justify;
  margin: 0px 60px;
  color: #434343;
  word-spacing: 0.1em;
  line-height: 1.6;
  font-size: 17px;
}
