html{
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
}

/* Navbar CSS Starts here */

.navbar {
  background-color: black;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.nav-links {
  display: none;
}

.nav-links a {
  margin-left: 1rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f86f2d;
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  background-color: black;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease-in-out;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 10px 0;
  text-decoration: none;
  color: white;
  border-bottom: 1px solid white;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #f86f2d;
}

.mobile-menu.show {
  max-height: 500px; /* adjust based on item count */
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: white;
  transition: opacity 1s ease;
}

/* Icon base style */
/* Hide both icons initially */
#hamburger-icon,
#close-icon {
  display: none;
  width: 24px;
  height: 24px;
  color: white;
}

/* Only show hamburger initially */
.menu-toggle.show-hamburger #hamburger-icon {
  display: block;
}

.menu-toggle.show-hamburger #close-icon {
  display: none;
}

/* When toggled: show close, hide hamburger */
.menu-toggle.show-close #hamburger-icon {
  display: none;
}

.menu-toggle.show-close #close-icon {
  display: block;
}

/* Navbar CSS ends here */







/* Home/Hero Section Starts here */

.section-home {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 1rem;
}

@media (max-width: 767px) {
    .section-home {
        height: 100vh;
    }
}

.section-home .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.section-home .content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.section-home .content h1 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.25rem; /* 36px */
}

.section-home .content p {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 1.5rem;
}

/* Responsive text sizes for home */
@media (min-width: 768px) {
  .section-home .content h1 {
    font-size: 3.75rem; /* 60px */
  }
  .section-home .content p {
    font-size: 1.25rem; /* 20px */
  }
}

/* Stats / Action Section */
.section-stats {
  background-color: #fff;
  padding: 2.5rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: -8rem; /* mimic negative margin */
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-box {
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: black;
  /* border-radius: 6px; */
}

.stats-box h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.125rem; /* 18px */
}

.stats-box p {
  margin-bottom: 0.5rem;
}

.stats-box .big-number {
  font-weight: 700;
  font-size: 3rem; /* 48px */
}

/* Background colors for stats boxes */
.orange-dark {
  background-color: #F86F2D;
}

.orange-medium {
  background-color: #FA8F3D;
}

.orange-light {
  background-color: #FAAA3A;
}

/* Buttons and links */
.button {
  display: inline-block;
  background-color: white;
  color: black;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
}

.stats-box .donate-button {
    margin-top: 18px;
}

.stats-box .volunteer-button-hero-section {
    margin-top: 18px;
}

.button:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Cards Section */
.section-cards {
  padding: 3rem 1rem;
  background-color: white;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.card-icon {
  color: #F86F2D;
  margin-bottom: 1rem;
  font-size: 2.5rem; /* 40px */
}

.card h3 {
  font-weight: 600;
  font-size: 1.25rem; /* 20px */
  margin-bottom: 0.5rem;
}

.card p {
  color: #4B5563; /* gray-600 */
  max-width: 320px;
}

/* Utility */
.text-center {
  text-align: center;
}

/* Home/Hero Section ends here */







/* About Section starts here */

/* About Section */
#about-section {
  padding: 80px 0;
  background-color: white;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-image,
.about-text {
  width: 100%;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: none;
}

/* Headings */
.about-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1f2937; /* Gray-900 */
}

.about-text h2 span {
  font-weight: 300;
}

/* Paragraphs */
.about-text p {
  color: #4b5563; /* Gray-600 */
  line-height: 1.7;
  text-align: justify;
  margin-top: 1rem;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: center;
  }

  .about-image,
  .about-text {
    width: 50%;
  }
}

/* About Section ends here */








/* Service Area Section starts here */

#service-areas-section {
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.service-areas-heading {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5rem;
}

.service-areas-subheading {
  text-align: center;
  color: #6b7280; /* Tailwind gray-500 */
  margin-bottom: 2rem;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.carousel-item {
  flex-shrink: 0;
  width: 100%;
}

#service-carousel {
    scroll-snap-type: x mandatory;
}

.carousel-item {
    scroll-snap-align: start;
}



@media (min-width: 640px) {
  .carousel-item {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .carousel-item {
    width: 33.33%;
  }
}

/* Card */
.service-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(107, 114, 128, 0.2);
  height: 500px;
}

/* Card Image */
.service-card img {
  width:330px;
  height: 65%;
  object-fit: cover;
  display: block;
  margin: 1rem auto 0 auto;
  border-radius: 0.5rem;
}

/* Card Content */
.service-card-content {
  padding: 1rem;
}

.service-card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card-content p {
  color: #6b7280;
  text-align: justify;
  margin-bottom: 0.5rem;

}

/* Service Area Section ends here */








/* Donation Section starts here */

.donation-section {
  position: relative;
  background-color: #ffffff;
  margin-bottom: 4rem;
}

.donation-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  position: relative;
  height: 650px;
  display: flex;
  align-items: center;
}

.donation-bg-img {
  display: none;
}

.donation-bg-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  border-radius: 1rem;
}

.donation-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Content Area */
.donation-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

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

.donation-heading {
  font-size: 3rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .donation-heading {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .donation-container {
    height: 600px;
  }
}

.donation-subtext {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.donation-button-wrap {
  gap: 1rem;
}

.donation-button {
  background-color: #F86F2D;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: medium;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.donation-button:hover {
  background-color: #d65b19;
}

.donation-image-mobile {
  display: block;
}

.donation-img-mobile {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Media Queries */
@media (min-width: 768px) {
  .donation-bg-img {
    display: block;
    position: absolute;
    inset: 0;
  }

  .donation-content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    height: 100%;
  }

  .donation-text {
    text-align: left;
  }

  .donation-heading,
  .donation-subtext {
    color: white;
  }

  .donation-image-mobile {
    display: none;
  }
}


/* Donation Section ends here */












/* Gallery Section starts here */

#gallery {
  padding: 3rem 1rem;
  max-width: 1170px;
  margin: 0 auto;
  position: relative;
  margin-top: 80px;
}

.gallery-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

#gallery-container {
  height: 400px;
  overflow-y: scroll;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  #gallery-container {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  #gallery-container {
    height: 650px;
  }
}

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

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Image card styles */
.gallery-grid .card {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-grid img {
    height: 300px;
  }
}

/* Modal styles */
#image-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 50;
}

#image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 60;
}

.modal-close:hover {
  color: #d1d5db;
}


/* Gallery Section ends here */











/* Events section starts here */

.events-section {
    max-width: 1170px;
    margin: auto;
    padding: 48px 16px;
}

.events-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
}

/* Mobile view */
.mobile-view {
    display: block;
}

.desktop-view {
    display: none;
}

.events-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 16px 0;
}

.event-card {
    flex: 0 0 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.event-card img {
    height: 65%;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.event-content {
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content:space-around;
    margin-top: 8px;
}

.event-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.event-content p {
    font-size: 0.875rem;
    color: #555;
    text-align: justify;
}

/* Desktop view */
@media (min-width: 768px) {
    .mobile-view {
        display: none;
    }

    .desktop-view {
        display: block;
        max-height: 500px;
        overflow-y: scroll;
        padding-right: 8px;
    }

    .events-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    .event-card {
        height: 450px;
    }
}

/* Events section ends here */












/* Volunteer Section starts here */

.volunteer-section {
  background-color: white;
  padding: 0;
}

.volunteer-container {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.volunteer-content {
  width: 100%;
  text-align: center;
}

.volunteer-heading {
  font-size: 1.875rem;
  font-weight: 600;
  color: black;
  margin-bottom: 1.5rem;
}

.volunteer-text {
  color: #1f2937;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.volunteer-button {
  display: inline-block;
  background-color: #f86f2d;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  margin-top: 0.5rem;
}

.volunteer-button:hover {
  background-color: #e05a1c;
}

.volunteer-image-container {
  width: 100%;
}

.volunteer-image {
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 100%;
  object-fit: cover;
}

/* Media Queries */
@media screen and (min-width: 768px) {
  .volunteer-section {
    padding: 4rem 0;
  }
  
  .volunteer-container {
    flex-direction: row;
    padding: 2.5rem 1.5rem;
  }
  
  .volunteer-content {
    width: 50%;
    text-align: left;
    padding-right: 1rem;
  }
  
  .volunteer-image-container {
    width: 50%;
  }
}

@media screen and (max-width: 767px) {
  .volunteer-section {
    padding: 0;
  }
  
  .volunteer-container {
    padding: 2.5rem 1.5rem;
  }
  
  .volunteer-content {
    order: 1;
  }
  
  .volunteer-image-container {
    order: 2; 
  }
}

/* Volunteer Section ends here */










/* Volunteer Form Section starts here */

.volunteer-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.volunteer-modal-content {
  background-color: white;
  padding: 1.5rem;
  padding-top: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  position: relative;

  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.volunteer-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.volunteer-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
}

.volunteer-modal-close {
  cursor: pointer;
}

.volunteer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.volunteer-form-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 0.25rem;
}

.volunteer-form-submit {
  background-color: #f86f2d;
  color: white;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0.25rem;
  width: 100%;
  cursor: pointer;
  border: none;
}

.volunteer-form-submit:hover {
  background-color: #ea580c;
}

/* Responsive styles */
@media (min-width: 768px) {
  .volunteer-modal-content {
    width: 50%;
  }
}

/* For showing the modal */
.volunteer-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.volunteer-modal.show .volunteer-modal-content {
  transform: translateY(0);
}

body.overflow-hidden {
  overflow: hidden;
}

/* Volunteer Form Section ends here */









/* Contact Section starts here */

.footer-section {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-decoration: underline;
}

/* Contact list styling */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  color: #d1d5db;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

/* Each contact item */
.footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.footer-contact-item a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-icon {
  color: #fff;
  font-size: 1rem;
  min-width: 1rem;
}

/* Email hover effect */
.footer-email-link:hover {
  text-decoration: underline;
}

/* Social icons container */
.footer-social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Social icon buttons */
.social-icon {
  background-color: #1f2937;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.social-icon i {
  color: #fff;
  font-size: 1rem;
}

.social-icon:hover {
  background-color: #374151;
}


/* Small screen styles (matching second image) */
@media (max-width: 767px) {
  .footer-section {
    padding: 1.5rem 1rem;
  }
  
  .footer-heading {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .footer-contact-list {
    gap: 0.5rem;
  }
  
  .footer-contact-item {
    font-size: 0.75rem;
  }
  
  .footer-social-icons {
    margin-top: 1rem;
    gap: 0.75rem;
  }
  
  .social-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Medium and larger screens (matching first image) */
@media (min-width: 768px) {
  .footer-section {
    padding: 3rem 1.5rem;
  }
  
  .footer-heading {
    font-size: 1.125rem;
  }
  
  .footer-contact-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: center;
    font-size: 0.75rem;
  }
  
  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .social-icon i {
    font-size: 1.125rem;
  }
}

/* Contact Section ends here */










/* Media queries for screen width from 1400px and above */

@media (min-width:1400px) and (max-width:1500px) {
  .nav-container{
    max-width: 1400px;
  }

  .container {
    max-width: 1400px;
  }

  .about-container{
    max-width: 1400px;
  }

  #service-areas-section{
    max-width: 1400px;
  }

  .donation-container{
    max-width: 1400px;
    height: 80vh;
  }

  .volunteer-container{
    max-width: 1400px;
  }

  .footer-container{
    max-width: 1400px;
  }
}



@media (min-width:1501px) and (max-width:1699px) {
  .nav-container{
    max-width: 1450px;
  }

  .container {
    max-width: 1450px;
  }

  .about-container{
    max-width: 1450px;
  }

  #service-areas-section{
    max-width: 1450px;
  }

  .donation-container{
    max-width: 1400px;
    height: 80vh;
  }

  .volunteer-container{
    max-width: 1450px;
  }

  .footer-container{
    max-width: 1450px;
  }
}

@media (min-width:1700px) and (max-width:1999px) {
  .nav-container{
    max-width: 1650px;
  }

  .container {
    max-width: 1650px;
  }

  .about-container{
    max-width: 14650px;
  }

  #service-areas-section{
    max-width: 1650px;
  }

  .donation-container{
    max-width: 1650px;
    height: 80vh;
  }

  .volunteer-container{
    max-width: 1650px;
  }

  .footer-container{
    max-width: 1650px;
  }
}


@media (min-width:2000px) {
  .nav-container{
    max-width: 1900px;
  }

  .container {
    max-width: 1900px;
  }

  .about-container{
    max-width: 1900px;
  }

  #service-areas-section{
    max-width: 1900px;
  }

  .donation-container{
    max-width: 1900px;
    height: 80vh;
  }

  .volunteer-container{
    max-width: 1900px;
  }

  .footer-container{
    max-width: 1900px;
  }
}

/* Media queries for screen width from 1400px and above */