/* ===== About Section (Compact Modern Style) ===== */
.about-home {
  position: relative;
  padding: 60px 20px;   /* reduced padding */
  background: linear-gradient(135deg, #fdfdfd, #f7faf9);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;   /* centered content for balance */
}

/* Heading */
.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #17877c;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: #17877c;
  border-radius: 2px;
}

/* Paragraph */
.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin: 20px auto 25px;
  max-width: 700px;
  padding: 15px 20px;
  border-left: 4px solid #17877c;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Button */
.about-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #17877c;
  color: #fff;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-btn:hover {
  background: #0f5e56;
  transform: scale(1.03);
}

/* Image */
.about-img {
  margin-top: 35px;
}

.about-img img {
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .about-text h2 {
    font-size: 1.8rem;
  }
  .about-text p {
    font-size: 1rem;
    margin: 15px auto 20px;
  }
  .about-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
  .about-img {
    margin-top: 25px;
  }
}

/* ===== Dark Theme (About Section) ===== */
body.dark-theme .about-home {
  background: linear-gradient(135deg, #121212, #1a1a1a);
}

body.dark-theme .about-text h2 {
  color: #4de1cf;
}

body.dark-theme .about-text h2::after {
  background: #4de1cf;
}

body.dark-theme .about-text p {
  background: #1e1e1e;
  color: #ccc;
  border-left-color: #4de1cf;
}

body.dark-theme .about-btn {
  background: #4de1cf;
  color: #111;
}

body.dark-theme .about-btn:hover {
  background: #36b8a8;
}

body.dark-theme .about-img img {
  box-shadow: 0 8px 22px rgba(77, 225, 207, 0.2);
}


/* ================= PROJECTS SECTION ================= */
.projects {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f0f9ff, #cbebff);
  text-align: center;
}

.projects-container {
  max-width: 1200px;
  margin: auto;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  flex: 1 1 250px; /* flexible */
  max-width: 280px;
  aspect-ratio: 1/1; /* keep it square */
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.4s ease;
}

.project-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 119, 255, 0.85);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.project-card:hover img {
  opacity: 0.3;
}

.project-card:hover .project-info {
  opacity: 1;
  transform: scale(1);
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.project-info a {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  color: #0077ff;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.project-info a:hover {
  background: #e6f0ff;
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1024px) {
  .projects-grid {
    gap: 20px;
  }
  .project-card {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 60px 15px;
  }
  .project-card {
    max-width: 180px;
  }
  .project-info h3 {
    font-size: 1rem;
  }
  .project-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }
  .project-card {
    max-width: 200px;
  }
}

/* ===== Dark Theme (Projects Section) ===== */
body.dark-theme .projects {
  background: linear-gradient(135deg, #0d0d0d, #1c1c1c);
}

body.dark-theme .project-card {
  background: #1e1e1e;
  box-shadow: 0 8px 20px rgba(77, 225, 207, 0.15);
}

body.dark-theme .project-info {
  background: rgba(77, 225, 207, 0.85);
  color: #111;
}

body.dark-theme .project-info a {
  background: #111;
  color: #4de1cf;
}

body.dark-theme .project-info a:hover {
  background: #222;
}


/* ================= CAUSES SECTION ================= */
.causes {
  padding: 80px 20px;
  background: linear-gradient(120deg, #fefefe, #f4fff4);
}

.causes-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

/* GRID FOR TWO ROWS */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Each cause block */
.cause-block {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.cause-block:hover {
  transform: translateY(-8px);
}

.cause-block img {
  width: 50%;
  height: 220px;
  object-fit: cover;
}

.cause-text {
  flex: 1;
  padding: 20px;
  text-align: left;
}

.cause-text h3 {
  font-size: 1.3rem;
  color: #2d572c;
  margin-bottom: 10px;
}

.cause-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .causes-grid {
    grid-template-columns: 1fr;
  }
  .cause-block {
    flex-direction: column;
    text-align: center;
  }
  .cause-block img {
    width: 100%;
    height: 200px;
  }
  .cause-text {
    text-align: center;
  }
}

/* ===== Dark Theme (Causes Section) ===== */
body.dark-theme .causes {
  background: linear-gradient(120deg, #111, #1a1a1a);
}

body.dark-theme .section-title {
  color: #4de1cf;
}

body.dark-theme .section-subtitle {
  color: #bbb;
}

body.dark-theme .cause-block {
  background: #1e1e1e;
  box-shadow: 0 8px 20px rgba(77, 225, 207, 0.15);
}

body.dark-theme .cause-text h3 {
  color: #4de1cf;
}

body.dark-theme .cause-text p {
  color: #ccc;
}


/* ================= TESTIMONIALS SECTION ================= */
.testimonials {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f7faff, #f2fff7);
}

.testimonials-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.testimonials .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.testimonials .section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

/* Grid Layout */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Speech bubble style */
.testimonial-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  position: relative;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Speech bubble tail */
.testimonial-card::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 40px;
  border-width: 20px 20px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0px 3px 2px rgba(0,0,0,0.1));
}
.testimonials .testimonials-container h2{
  color:black;
}

.testimonial-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-card h4 {
  font-size: 0.95rem;
  color: #2d572c;
  font-weight: 600;
  text-align: right;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .testimonial-card {
    text-align: center;
  }
  .testimonial-card::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .testimonial-card h4 {
    text-align: center;
  }
}

/* ===== Dark Theme (Testimonials Section) ===== */
body.dark-theme .testimonials {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}

body.dark-theme .testimonials .section-title {
  color: #4de1cf;
}

body.dark-theme .testimonials .section-subtitle {
  color: #bbb;
}

body.dark-theme .testimonial-card {
  background: #1e1e1e;
  box-shadow: 0 8px 22px rgba(77, 225, 207, 0.15);
}

body.dark-theme .testimonial-card::after {
  border-color: #1e1e1e transparent transparent transparent;
}

body.dark-theme .testimonial-card p {
  color: #ccc;
}

body.dark-theme .testimonial-card h4 {
  color: #4de1cf;
}


/* ================= CONTACT SECTION ================= */
.contact {
  padding: 100px 20px;
  background: linear-gradient(135deg, #fef9f5, #fff);
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: auto;
}

.contact h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 15px;
}

.contact p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Contact button */
.contact-btn {
  display: inline-block;
  background: #17877c;
  color: #fff;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(45, 87, 44, 0.25);
}

.contact-btn:hover {
  background: #0f5e56;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(45, 87, 44, 0.35);
  color:white;
}

/* Responsive */
@media (max-width: 768px) {
  .contact h2 {
    font-size: 1.8rem;
  }
  .contact p {
    font-size: 1rem;
  }
  .contact-btn {
    padding: 12px 26px;
    font-size: 1rem;
  }
}

/* ===== Dark Theme (Contact Section) ===== */
body.dark-theme .contact {
  background: linear-gradient(135deg, #121212, #1a1a1a);
}

body.dark-theme .contact h2 {
  color: #4de1cf;
}

body.dark-theme .contact p {
  color: #ccc;
}

body.dark-theme .contact-btn {
  background: #4de1cf;
  color: #111;
  box-shadow: 0 6px 20px rgba(77, 225, 207, 0.25);
}

body.dark-theme .contact-btn:hover {
  background: #36b8a8;
  color: #fff;
  box-shadow: 0 10px 25px rgba(77, 225, 207, 0.35);
}
body.dark-theme .hero .hero-btn {
  background: #4de1cf;
  color:white;
  box-shadow: 0 6px 20px rgba(77, 225, 207, 0.25);
}
body.dark-theme .hero .hero-btn:hover {
  background: #36b8a8;
  color: #fff;
  box-shadow: 0 10px 25px rgba(77, 225, 207, 0.35);
}