/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/* Section Styles */
section {
  padding: 2rem;
  text-align: center;
}

/* Slide-in animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left,
.slide-in-right,
.slide-in-up {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.animate-left {
  animation: slideInLeft 1s forwards;
}

.animate-right {
  animation: slideInRight 1s forwards;
}

.animate-up {
  animation: slideInUp 1s forwards;
}

/* Scroll to Top Button Styles */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #568265;
  color: #feb95f;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}

#scrollToTopBtn:hover {
  background-color: #f85253;
}

/* Header */
.logo-link {
  text-decoration: none;
  color: inherit; /* Matches the parent color */
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active {
  text-decoration: none;
  color: inherit; /* Ensure it doesn't change color on interaction */
}

/* Navbar */
header {
  background: #568265;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 20px;
}

header .logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

header .logo img {
  height: 4.5rem;
}

header h1 {
  margin: 0 0 0 1.75rem;
  font-size: 1.5rem;
}

header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

header nav ul li a {
  color: #ffce55;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 10px 15px;
  display: block;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fb6e52;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
  width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #fb6e52;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 20px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #feb95f;
  margin: 4px 0;
  transition: 0.4s;
}

/* Media Queries */
@media (max-width: 768px) {
  header h1 {
    margin: 0 0 0 1rem;
    position: static;
    transform: none;
    font-size: 1.2rem;
  }

  header nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #92c3a4;
    position: absolute;
    top: 80px;
    left: 0;
    padding: 0;
    z-index: 999;
  }

  header nav ul.active {
    display: flex;
  }

  header nav ul li {
    margin: 0;
  }

  header nav ul li a {
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .hamburger {
    display: flex;
  }
}

/* Floating Banner Styles */
.floating-banner {
  left: 0;
  background: #92c3a4;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.banner-content {
  opacity: 0;
  transform: translateX(-100%);
  animation: slide-in 1s forwards;
}

.banner-content h2,
.banner-content p {
  margin: 0.5rem 0;
  text-align: center;
}

.banner-content h2 {
  font-size: 2rem;
}

@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* About Section Styles */
#about {
  margin: 3rem 0 6rem 0;
}

.about-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  margin: 4rem;
  align-items: left;
}

.about-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  padding: 1rem 0rem 3.5rem;
  text-align: left;
}

.about-text h2 {
  color: #568265;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.app-links {
  margin-top: 2rem;
  display: flex;
  justify-content: space-around;
}

.qr-code {
  width: 160px;
  height: 160px;
}

.fa-google-play {
  font-size: 135px;
}

.fa-app-store-ios {
  font-size: 140px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    margin: 2rem 0;
  }

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

@media (max-width: 768px) {
  .about-text h2 {
    font-size: 1.8rem;
  }

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

  .fa-google-play {
    font-size: 80px;
  }

  .fa-app-store-ios {
    font-size: 90px;
  }

  .qr-code {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .about-text h2 {
    font-size: 2.2rem;
  }

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

  .fa-google-play {
    font-size: 100px;
  }

  .fa-app-store-ios {
    font-size: 100px;
  }

  .qr-code {
    width: 110px;
    height: 110px;
  }
}

/* Benefits Section Styles */

#benefits {
  background-color: #ffffff;
  text-align: center;
}

#benefits h2 {
  font-size: 2.1rem;
  margin: 0;
}

.card-benefit {
  width: 475px;
  background-color: #e8f5e9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-benefit:hover {
  background-color: #568265;
  transform: scale(1.05);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card-benefit:hover .card-content h3,
.card-benefit:hover .card-content p {
  color: #e8f5e9;
}

.fa-hand-holding-heart,
.fa-smile,
.fa-globe {
  margin-top: 25px;
  font-size: 60px;
  color: #568265;
  transition: color 0.3s ease;
}

.fa-medapps {
  -webkit-text-stroke: 1.5px;
}

.card-benefit:hover .fa-hand-holding-heart,
.card-benefit:hover .fa-smile,
.card-benefit:hover .fa-globe {
  color: #e8f5e9;
}

/* Features Styles */

#features h2 {
  font-size: 2.1rem;
}

#features ul {
  list-style: none;
  padding: 0;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 100px 0px 200px 0px;
}

.card-feature {
  width: 350px;
  background-color: #e8f5e9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-feature:hover {
  background-color: #568265;
  transform: scale(1.05);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card-content {
  padding: 30px 40px 30px 40px;
}

.card-content h3 {
  font-size: 28px;
  margin-top: 0;
  color: #568265;
  transition: color 0.3s ease;
}

.card-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.card-feature:hover .card-content h3,
.card-feature:hover .card-content p {
  color: #e8f5e9;
}

.fa-hand-holding-heart,
.fa-smile,
.fa-globe {
  margin-top: 25px;
  font-size: 60px;
  color: #568265;
  transition: color 0.3s ease;
}

.fa-medapps {
  -webkit-text-stroke: 1.5px;
}

.fa-clock,
.fa-calendar-check,
.fa-medapps,
.fa-award {
  margin-top: 25px;
  font-size: 60px;
  color: #568265;
  transition: color 0.3s ease;
}

.card-feature:hover .fa-hand-holding-heart,
.card-feature:hover .fa-smile,
.card-feature:hover .fa-globe,
.card-feature:hover .fa-clock,
.card-feature:hover .fa-calendar-check,
.card-feature:hover .fa-medapps,
.card-feature:hover .fa-award {
  color: #e8f5e9;
}

/* DIY Kits Filter */
.filter-container {
  text-align: center;
  margin: 20px 0;
}

.filter-container label {
  font-size: 1.2rem;
  margin-right: 10px;
}

.filter-container select {
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-container select:focus {
  box-shadow: 0 0 5px rgba(254, 185, 95, 0.5);
}

/* DIY Kits Section Styles */
#diy-kits {
  background-color: #fff;
  text-align: center;
}

#diy-kits h2 {
  font-size: 2.1rem;
}

.kits-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 100px 0px 200px 0px;
}

.kit-feature {
  width: 500px;
  background-color: #e8f5e9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kit-feature:hover {
  background-color: #568265;
  transform: scale(1.05);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.kit-content {
  padding: 30px 40px 30px 40px;
}

.kit-content h3 {
  font-size: 28px;
  margin-top: 0;
  color: #568265;
  transition: color 0.3s ease;
}

.kit-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.kit-feature:hover .kit-content h3,
.kit-feature:hover .kit-content p {
  color: #e8f5e9;
}

.kit-image {
  margin-top: 25px;
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kit-feature:hover .kit-image {
  transform: scale(1.1);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #feb95f;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  font-size: 1rem;
}

.download-btn:hover {
  background-color: #f85253;
  transform: scale(1.05);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Dropdown content styles */
.dropdown-content {
  display: none;
  background-color: #f9f9f9;
  padding: 15px;
  border-top: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: #000;
}

.dropdown-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.card-feature.active .dropdown-content {
  display: block;
}

/* Events Section Styles */
#carousel {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 100px;
}

#carousel h2 {
  font-size: 2.1rem;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-item h3 {
  margin: 1rem 0;
  font-size: 1.5rem;
  color: #568265;
}

.carousel-item p {
  font-size: 1.1rem;
  margin-top: auto;
}

/* Slick Carousel Custom Arrows */
.slick-prev,
.slick-next {
  background-color: #568265 !important;
  border-radius: 100%;
  cursor: pointer;
}

/* Testimonials Styles */
#testimonials {
  margin-bottom: 150px;
}

#testimonials h2 {
  font-size: 2.1rem;
}

.wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
}

.testimonial-card {
  width: 80px;
  height: 600px;
  border-radius: 0.75rem;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2rem;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.5s ease, transform 0.5s ease;
  box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
  position: relative;
  background-position: center;
}

.testimonial-card .row {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.testimonial-card .overlay {
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 2;
}

.testimonial-card .description {
  padding: 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 3;
}

.description h4 {
  text-transform: uppercase;
  color: #f2f6eb;
  font-size: 2rem;
}

.description p {
  color: #f2f6eb;
  padding-bottom: 15px;
  font-size: 1.2rem;
}

input {
  display: none;
}

input:checked + label {
  width: 1000px;
  transform: scale(1.02);
}

input:checked + label .overlay {
  opacity: 1;
  visibility: visible;
}

input:checked + label .description {
  opacity: 1;
  visibility: visible;
}

.testimonial-card[for="c1"] {
  background-image: url("/iVolunteer/images/testimonials/aidan.jpg");
}

.testimonial-card[for="c2"] {
  background-image: url("/iVolunteer/images/testimonials/caris_tay.avif");
}
.testimonial-card[for="c3"] {
  background-image: url("/iVolunteer/images/testimonials/kelvin_lim.jpg");
}
.testimonial-card[for="c4"] {
  background-image: url("/iVolunteer/images/testimonials/rao_liyan.jpeg");
}

@media (max-width: 1024px) {
  .testimonial-card {
    width: 235px;
    height: 400px;
  }

  input:checked + label {
    width: 250%;
    transform: scale(1.02);
  }

  .description h4 {
    font-size: 1.5rem;
  }

  .description p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 175px;
    height: 400px;
  }

  input:checked + label {
    width: 250%;
    transform: scale(1.02);
  }

  .description h4 {
    font-size: 1.2rem;
  }

  .description p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 100px;
    height: 400px;
  }

  input:checked + label {
    width: 250%;
    transform: scale(1.02);
  }

  .description h4 {
    font-size: 1.2rem;
  }

  .description p {
    font-size: 0.9rem;
  }
}

/* Partners Section Styles */
#partners {
  text-align: center;
  padding-bottom: 125px;
}

#partners h2 {
  font-size: 2.1rem;
}

.partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partner {
  flex: 1 1 200px;
  margin: 1rem;
  max-width: 200px;
  text-align: center;
}

.partner img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.partner p {
  font-size: 1rem;
  color: #333;
}

@media (max-width: 1024px) {
  .partner {
    flex: 1 1 150px;
    max-width: 150px;
  }

  #partners h2 {
    font-size: 1.8rem;
  }

  .partner p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .partner {
    flex: 1 1 120px;
    max-width: 120px;
  }

  #partners h2 {
    font-size: 1.6rem;
  }

  .partner p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .partner {
    flex: 1 1 230px;
    max-width: 230px;
  }

  #partners h2 {
    font-size: 2.1rem;
  }

  .partner p {
    font-size: 0.8dem;
  }
}

/* FAQ Section Styles */
#faq {
  background: #f9f9f9;
  padding: 150px 0 150px 0;
  text-align: left;
}

#faq h2 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 2rem;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin: 0.5rem 0;
}

.faq-question {
  background-color: #568265;
  color: white;
  cursor: pointer;
  padding: 1.5rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
  font-family: "Poppins", sans-serif; /* Ensuring FAQ section uses Poppins font */
}

.faq-question:hover {
  background-color: #fb6e52;
}

.faq-question:after {
  content: "\002B";
  font-size: 1.5rem;

  float: right;
}

.faq-question.active:after {
  content: "\2212";
}

.faq-answer {
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-answer p {
  padding: 1rem 0;
}

@media (max-width: 768px) {
  #faq {
    padding: 100px 20px;
  }

  #faq h2 {
    font-size: 1.8rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  #faq {
    padding: 80px 10px;
  }

  #faq h2 {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0.5rem 0;
  }
}

/* Footer Styles */
footer {
  background: #568265;
  color: #fff;
  text-align: center;
  padding: 0.1rem 0;
}

footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

footer p {
  margin: 0.5rem 0;
}

.social-media {
  margin: 1rem 0;
}

.social-media a {
  margin: 0 10px;
  color: #feb95f;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #fb6e52;
}

.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  color: #feb95f;
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fb6e52;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #f2f6eb;
}
