:root {
  --seed-green: #086842;
  --accent-yellow: #f2c94c;
  --text-dark: #2d3748;
  --text-light: #718096;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 900px;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    letter-spacing: 0.5px;
    line-height: 1.3;
  }
}

.carousel-item {
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  height: 80vh;
}

/* Image Overlays for better text visibility */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
  z-index: 1;
}

/* Stacking context to keep content on top of the overlay */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 85%;
}

/* Specific background images for each slide */
.slide-1 {
  background-image: url("images/sbg1.png");
}
.slide-2 {
  background-image: url("images/bg.jpg");
}
.slide-3 {
  background-image: url("images/sbg2.png");
}

.btn-white {
  color: var(--seed-green);
  background-color: #fff;
  border-color: #fff;
  transition: var(--transition);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 2rem;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--seed-green);
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .btn-white {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero .btn {
    width: 100%;
    margin: 0.5rem 0;
  }

  .hero .me-3 {
    margin-right: 0;
  }

  .hero .btn-lg {
    padding: 0.75rem 1.5rem;
  }
}
.custom-line-length {
  width: 65%;
  min-width: 100px;
}

@media (max-width: 768px) {
  .custom-line-length {
    width: 40%;
    min-width: 60px;
  }
}

#hero-stats {
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 576px) {
  #hero-stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  #hero-stats .custom-line-length {
    width: 80px;
    margin: 0.5rem 0;
  }
}

.hero-overlay {
  position: relative;
  background: url("images/bg.jpg") center/cover no-repeat;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-overlay {
    min-height: 70vh;
    padding: 2rem 0;
  }
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.514);
  z-index: 1;
}

.hero-overlay .container {
  position: relative;
  z-index: 2;
}

.section-label {
  position: relative;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--seed-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  position: absolute;
  left: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 65px;
  height: 2px;
  background: var(--seed-green);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .section-label::before {
    left: -36px;
    width: 28px;
    height: 3px;
  }
  .video-wrapper {
    max-width: 100%;
    margin: 2rem 0;
  }
}

@media (max-width: 576px) {
  .section-label::before {
    display: none;
  }
  .section-label {
    text-align: center;
    width: 100%;
  }
}

.video-wrapper .ratio {
  background: #000;
}
.play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--seed-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.play-circle:hover {
  transform: scale(1.06);
  background: var(--seed-green);
  color: #fff;
}

.object-cover {
  object-fit: cover;
}

.about-section {
  overflow: visible;
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }

  .about-section .row {
    flex-direction: column-reverse;
  }

  .about-section .col-md-6:first-child {
    margin-top: 2rem;
    text-align: center;
  }
}

.about-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .about-section h1 {
    font-size: 1.75rem;
  }

  .about-section p {
    font-size: 0.95rem;
  }
}
.youtube-shorts-ratio {
  height: 50vh;
  position: relative;
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: 460px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .youtube-shorts-ratio {
    height: 40vh;
    max-width: 280px;
  }
}

@media (max-width: 576px) {
  .youtube-shorts-ratio {
    height: 35vh;
    max-width: 250px;
  }
}

.youtube-shorts-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.im60 {
  max-width: 60%;
  border-radius: 25px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.im60:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .im60 {
    max-width: 80%;
    margin: 2rem auto;
    display: block;
  }
}

@media (max-width: 576px) {
  .im60 {
    max-width: 100%;
    border-radius: 15px;
  }
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .carousel-container {
    padding: 15px 0;
  }
}

.projects-track {
  display: flex;
  overflow: hidden;
  position: relative;
  height: 420px;
  touch-action: pan-x;
}

@media (max-width: 768px) {
  .projects-track {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .projects-track {
    height: 350px;
  }
}

.projects-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}

.project-card {
  flex: 0 0 calc(33.333% - 20px);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  margin: 0 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .project-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .project-card {
    flex: 0 0 calc(85% - 20px);
    margin: 0 15px;
  }
}

@media (max-width: 576px) {
  .project-card {
    flex: 0 0 calc(90% - 20px);
    margin: 0 10px;
  }
}

.project-img-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-container img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  box-sizing: border-box;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.project-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.btn-learn-more {
  background: white;
  color: var(--seed-green);
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  width: fit-content;
  box-sizing: border-box;
}

.btn-learn-more:hover {
  background: #3ab553;
  transform: translateY(-2px);
  color: #000;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .carousel-controls {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .carousel-controls {
    display: none;
  }
}

.carousel-btn {
  width: 50px;
  height: 50px;
  background: rgba(76, 217, 100, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

.carousel-btn:hover {
  background: rgba(76, 217, 100, 0.6);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 0;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .carousel-indicators {
    margin-top: 15px;
  }
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(76, 217, 100, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-sizing: border-box;
}

.indicator:hover {
  background: rgba(76, 217, 100, 0.7);
  transform: scale(1.1);
}

@media (max-width: 576px) {
  .indicator {
    width: 10px;
    height: 10px;
  }
}

.indicator.active {
  background: #4cd964;
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .project-card {
    flex: 0 0 calc(50% - 20px);
  }

  .projects-track {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .project-card {
    flex: 0 0 calc(100% - 20px);
  }

  .projects-track {
    height: 350px;
  }

  .overlay {
    padding: 20px;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .carousel-controls {
    padding: 0 10px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

.legend-color-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .legend-items {
    margin-top: 2rem;
  }

  .legend-items .col-6 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .legend-items .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.chart-container {
  max-width: 500px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .chart-container {
    max-width: 300px;
    max-height: 300px;
    margin: 2rem auto 0;
  }
}

@media (max-width: 576px) {
  .chart-container {
    max-width: 250px;
    max-height: 250px;
  }
}

.card-cta {
  margin-top: 50px;
  position: relative;
  max-width: 80vw;
  height: 400px;
  background: url("images/child.jpg") center/cover no-repeat;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-cta .card-img-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.event-card {
  border: none;
  background-color: #f2c94c;
}

.event-line {
  height: 2px;
  width: 30px;
  background-color: #333;
}

.btn-arrow {
  height: 40px;
  width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #333 !important;
  color: #333 !important;
}

.btn-arrow:hover {
  background-color: var(--seed-green) !important;
  color: #fff !important;
}

/* Problems Section Improvements */
.bg-warning-subtle {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .bg-warning-subtle {
    padding: 3rem 0;
  }

  .bg-warning-subtle .row {
    flex-direction: column;
  }

  .bg-warning-subtle .col-md-6:last-child {
    margin-top: 2rem;
    text-align: center;
  }
}

.bg-warning-subtle h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
}

.bg-warning-subtle .list-unstyled li {
  margin-bottom: 2rem;
  transition: var(--transition);
}

.bg-warning-subtle .list-unstyled li:hover {
  transform: translateX(10px);
}

.bg-warning-subtle .list-unstyled li .bg-success {
  transition: var(--transition);
}

.bg-warning-subtle .list-unstyled li:hover .bg-success {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
  .bg-warning-subtle .list-unstyled li {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .bg-warning-subtle h1 {
    text-align: center;
    margin-bottom: 2rem;
  }

  .bg-warning-subtle p {
    text-align: center;
  }
}

/* Partner Logos Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.partners-grid img {
  transition: var(--transition);
  filter: grayscale(100%) opacity(0.7);
  height: 50px;
  width: auto;
  object-fit: contain;
}

.partners-grid img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    max-width: 600px;
  }

  .partners-grid img {
    height: 40px;
  }
}

@media (max-width: 576px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 300px;
  }

  .partners-grid img {
    height: 35px;
  }
}

@media (max-width: 400px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .partners-grid img {
    height: 30px;
  }
}

/* Fallback for old flex layout */
.d-flex.justify-content-center.flex-wrap {
  gap: 2rem;
}

.d-flex.justify-content-center.flex-wrap img {
  transition: var(--transition);
  /* filter: grayscale(100%) opacity(0.7); */
}

.d-flex.justify-content-center.flex-wrap img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .d-flex.justify-content-center.flex-wrap {
    gap: 1.5rem;
  }

  .d-flex.justify-content-center.flex-wrap img {
    height: 40px;
    margin: 0;
  }
}

@media (max-width: 576px) {
  .d-flex.justify-content-center.flex-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .d-flex.justify-content-center.flex-wrap img {
    height: 35px;
    justify-self: center;
  }
}

/* Projects Section Improvements */
.py-5 h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .py-5 h1 {
    width: 100% !important;
    text-align: center;
    margin-bottom: 3rem;
  }
}

/* Donation Section Improvements */
.bg-success.text-white {
  padding: 4rem 0;
}

.bg-success h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 2rem;
}

.bg-success .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .bg-success.text-white {
    padding: 3rem 0;
  }

  .bg-success .row {
    flex-direction: column;
  }

  .bg-success .col-md-6:last-child {
    margin-top: 2rem;
  }
}

/* Modern Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.carousel-btn:focus,
.indicator:focus {
  outline: 2px solid var(--seed-green);
  outline-offset: 2px;
}

/* ABOUT.HTML  */
.bottom-image {
  position: absolute;
  left: 50%;
  width: auto;
}
.bottom-left {
  position: absolute;
  left: 100px;
  width: 60px;
  height: auto;
  bottom: -9em;
}
.bottom-right {
  position: absolute;
  right: 100px;
  width: 60px;
  height: auto;
  bottom: -9em;
}
.bottom-image img {
  width: 10em;
  height: 100%;
  object-fit: contain;
}

/* Mobile-first utility classes */
@media (max-width: 576px) {
  .mobile-center {
    text-align: center;
  }

  .mobile-full-width {
    width: 100%;
  }

  .mobile-stack {
    flex-direction: column;
  }

  .mobile-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .mobile-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Performance optimizations */
.project-img-container img,
.im60,
.d-flex.justify-content-center.flex-wrap img {
  will-change: transform;
}

/* Reduced 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;
  }
}
