* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  background: #f9f9f9;
  color: #222;
}

header {
  background: #154e29;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-left a{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #fff;
}

.logo-text {
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

header nav a:hover {
  color: #e6c972;
}

.donate-btn a{
  color: #154e29;
  font-weight: 1000;
}

.donate-btn a:hover{
  color: white;
  font-weight: 1000;
}

header .donate-btn {
  background: #fff;
  color: #154e29;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

header .donate-btn:hover {
  background: #e6c972;
  color: #154e29;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem;
  background: white;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  align-items: center;
  text-align: center;
}

.hero-text a {
  text-decoration: none;
}

.hero-text h1 {
  color: #154e29;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-text .subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 4rem;
}

.primary-btn {
  background: #154e29;
  color: white;
  padding: 0.7rem 1.7rem;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 3rem;
  box-shadow: 0 2px 8px rgba(21, 78, 41, 0.08);
  transition: background 0.2s;
}

.primary-btn:hover {
  background: #1e6b3a;
}

.hero-image {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  border-radius: 18px;
  width: 700px;
  height: 500px;
  object-fit: cover;
}

.badge {
  margin-left: 80px;
  position: absolute;
  bottom: -18px;
  left: 18px;
  background: white;
  padding: 0.7rem 1.2rem 0.7rem 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  font-size: 1rem;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
  background-color: rgba(161, 255, 161, 0.605);
}

a {
  text-decoration: none;
  color: white;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.section-underline {
  width: 32px;
  height: 3px;
  background: #e6c972;
  border-radius: 2px;
  display: inline-block;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #154e29;
  letter-spacing: 1px;
}

.section-title.orange {
  color: #e6c972;
}

.about {
  padding: 2.5rem 2rem;
  background: #eef6f0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: space-between;
  margin-top: 1.2rem;
}

.about-text {
  flex: 1.75;
  text-align: left;
  margin-left: 4rem;
}

.about h2 {
  color: #154e29;
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(21, 78, 41, 0.07);
}
/* === CAMPAIGNS SECTION === */
.campaigns {
  padding: 2rem;
  background-color: #f5f5f5;
}

.campaigns h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.campaigns .scroll-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.campaigns .cards {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

.campaigns .card {
  flex: 0 0 auto;
  width: 300px;
  background: #eef6f0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.campaigns .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.campaigns .card h4,
.campaigns .card p {
  text-align: center;
  margin: 0.5rem 0;
}

/* === ARROW BUTTONS === */
.campaigns .arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
}

#campaign-left {
  left: 10px;
}

#campaign-right {
  right: 10px;
}

/* === MOBILE LAYOUT === */
@media (max-width: 600px) {
  .campaigns .scroll-container {
    overflow: visible;
  }

  .campaigns .cards {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .campaigns .card {
    width: 100%;
    display: flex !important;
  }

  .campaigns .arrow-btn {
    display: none;
  }
}

.campaigns,
.blog {
  padding: 2.5rem 2rem;
  background: white;
}

.cards-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.arrow-btn {
  background: #eef6f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  color: #154e29;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(21, 78, 41, 0.07);
  transition: background 0.2s;
}

.arrow-btn:hover {
  background: #e6c972;
}

.scroll-container {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
}

.scroll-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cards-nav {
  position: relative;
  justify-content: center;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

#campaign-left,
#blog-left {
  left: 10px;
}

#campaign-right,
#blog-right {
  right: 10px;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

.card h4 {
  color: #154e29;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  color: #444;
  font-size: 0.97rem;
  margin-bottom: 0.7rem;
  text-align: center;
}

.card a {
  color: #154e29;
  text-decoration: underline;
  font-weight: bold;
  font-size: 0.97rem;
}

.help {
  background: #f3fdf5;
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem;
  gap: 2.5rem;
}

.help-img img {
  border-radius: 12px;
  width: 500px;
  box-shadow: 0 2px 10px rgba(21, 78, 41, 0.07);
}

.help-content {
  flex: 2;
}

.help-content h3 {
  color: #154e29;
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.help-content p {
  color: #444;
  margin-right: 2.5rem;
  font-size: 1rem;
}

.actions {
  margin-top: 1.2rem;
}

.actions .primary-btn {
  margin-right: 1rem;
  margin-top: 50px;
  margin-bottom: 0.5rem;
}

.gift-tree-nav-btn {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.gift-tree-nav-btn:hover {
  color: #e6c972;
}

.join-now {
  background: url('./image/IMG-20250710-WA0031.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-overlay {
  background: rgba(21, 78, 41, 0.85);
  padding: 4rem 2rem 4rem 2rem;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.join-overlay h3 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 700;
}

.join-overlay p {
  font-size: 1.05rem;
  color: #e6e6e6;
  margin-bottom: 0;
}

.join-overlay .spacer {
  height: 8rem;
  flex-grow: 1;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem 0 1.5rem 0;
  position: relative;
  z-index: 2;
}

.footer-col {
  flex: 1 1 180px;
  min-width: 160px;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #fff;
}

.footer-col p,
.footer-col a {
  color: #e6e6e6;
  font-size: 1rem;
  line-height: 1.7;
  text-decoration: none;
}

.footer-col a {
  color: #e6c972;
  text-decoration: underline;
}

.footer-bg-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: 4px;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

footer {
  background: #154e29;
  color: white;
  padding: 0 0 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer .credit {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
  position: relative;
  z-index: 3;
}

@media (max-width: 900px) {

  .hero,
  .about-content,
  .help {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .about-img,
  .help-img {
    width: auto;
    margin: 0 auto;
  }

  .about-content,
  .help {
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-bg-text {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg)
  }
}

@media (max-width: 600px) {

  header,
  .hero,
  .about,
  .campaigns,
  .blog,
  .help
  {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-content,
  .help {
    flex-direction: column;
    gap: 1rem;
  }

  .join-overlay {
    padding: 1rem;
  }


  /* === Single-Card Carousel Styles for Campaigns and Blog === */
  .scroll-container {
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
  }

  .card.active {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .card img {
    width: 90%;
    max-width: 400px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .cards .card:not(.active) {
    opacity: 0;
    pointer-events: none;
  }

  .arrow-btn {
    z-index: 10;
  }

  .blog .cards {
    flex-wrap: nowrap;
    min-width: 600px;
  }

  .blog .card {
    min-width: 240px;
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .scroll-container {
    max-width: 100vw;
    margin: 0;
  }

  .blog .cards {
    min-width: unset;
    /* or simply remove this line if not needed */
  }
}

/*
.campaigns .scroll-container::-webkit-scrollbar {
  display: none;
}
*/
.campaigns .arrow-btn {
  margin: 0 12px;
}


.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.card h4 {
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #154e29;
  text-align: center;
}

.card p {
  flex: 1;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #222;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card a {
  margin-top: auto;
  color: #154e29;
  text-decoration: underline;
  font-weight: 600;
  font-size: 1rem;
}

/* === Campaigns Carousel: Single Card View === */
.campaigns .cards-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.campaigns .card.active {
  display: flex;
  position: relative;
  z-index: 2;
}


.campaigns .arrow-btn {
  background: #154e29;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.campaigns .arrow-btn:hover {
  background: #1e6b3a;
}
/* === NGO Articles Carousel - Responsive 3-Card Layout === */
.article-carousel-section {
  margin: 3rem auto;
  padding: 0 1rem;
  max-width: 1300px;
  text-align: center;
}

.article-carousel-section h2 {
  color: #e6c972;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.article-carousel-section h3 {
  color: #154e29;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 1.5rem;
}

.article-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: #eef6f0;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #154e29;
  margin-bottom: 0.6rem;
}

.read-more-btn {
  margin-top: auto;
  background: #154e29;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.read-more-btn:hover {
  background: #1e6b3a;
}

.carousel-container .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #154e29;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-container .nav.left {
  left: 10px;
}

.carousel-container .nav.right {
  right: 10px;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.dots .dot {
  width: 10px;
  height: 10px;
  background: #c2e5d1;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.dots .dot.active {
  background: #154e29;
}

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

@media (max-width: 600px) {
  .article-card {
    flex: 0 0 100%;
  }

  .carousel-track {
    gap: 1rem;
  }
}


.campaigns .section-header,
.campaigns h3 {
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  width: 100%;
}

.campaigns h3 {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  color: #154e29;
  font-weight: 700;
  font-size: 2rem;
}

/* Team Section */
.team {
  padding: 4rem 2rem;
  background: #e6f4ea;
}

.team .section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.team .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #154e29;
  letter-spacing: 2px;
}
.flip-card-front h5{
  color: #e6c972;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Flip Card Styles */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

/* Desktop hover flip */
@media (min-width: 768px) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Mobile click flip */
@media (max-width: 767px) {
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}

@media (max-width: 900px) {
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}
@media (max-width: 600px) {
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #e6f4ea 0%, #f0f8f0 100%);
}

.team-member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid #e6c972;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.flip-card-front h4 {
  color: #154e29;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0;
}

.flip-card-back p {
  color: #154e29;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.instagram-link {
  color: #e6c972;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid #e6c972;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.instagram-link:hover {
  background: #e6c972;
  color: white;
}

/* Responsive design for team section */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .flip-card {
    height: 350px;
  }

  .team-member-image {
    width: 100px;
    height: 100px;
  }

  .flip-card-front h4 {
    font-size: 1.2rem;
  }

  .flip-card-back p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .team {
    padding: 3rem 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flip-card {
    height: 320px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1.5rem;
  }

  .team-member-image {
    width: 90px;
    height: 90px;
  }

  .instagram-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Founder Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 34, 0.15);
  z-index: 2000;
  pointer-events: none;
  /* allow clicks only on modal */
}

.modal-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  position: fixed;
  right: 2.5vw;
  bottom: 2.5vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1rem 1.2rem 1rem;
  max-width: 300px;
  width: 300px;
  text-align: center;
  animation: modalFadeIn 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: auto;
  min-height: 120px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #154e29;
}

.modal-desc {
  font-size: 0.92rem;
  color: #333;
  margin-bottom: 1rem;
}

.modal-videos {
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.modal-video-link {
  background: #e6c972;
  color: #154e29;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(21, 78, 41, 0.08);
  display: inline-block;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border-radius: 16px;
}

.modal-video-link:hover {
  background: #154e29;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: #154e29;
}

@media (max-width: 600px) {
  .modal-popup {
    width: 90vw;
    padding: 0.7rem 0.2rem 1rem 0.2rem;
  }

  .modal-title {
    font-size: 0.98rem;
  }

  .modal-desc {
    font-size: 0.85rem;
  }
}

/* Gift a Tree Notification Popup */
.notification-popup {
  position: fixed;
  top: 2.5vw;
  right: 2.5vw;
  background: #fff;
  color: #154e29;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  z-index: 3000;
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  animation: notificationFadeIn 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.notification-popup.show {
  opacity: 1;
  pointer-events: auto;
}

@keyframes notificationFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .notification-popup {
    right: 2vw;
    left: 2vw;
    min-width: unset;
    max-width: 96vw;
    padding: 0.7rem 0.5rem;
    font-size: 0.98rem;
  }
}

/* Hide hamburger and mobile menu by default */
.hamburger-menu,
.mobile-nav-menu {
  display: none;
}

@media (max-width: 600px) {

  header nav a,
  .gift-tree-nav-btn {
    display: none !important;
  }

  .hamburger-menu {
    display: inline-block !important;
    background: none;
    border: none;
    font-size: 2rem;
    color: #154e29;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .donate-btn a{
    display: inline-block !important;
    font-size: 1rem;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    align-items: center;
    margin-left: 0.5rem;
  }

  .mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
    z-index: 1001;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem 1rem 1.2rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .mobile-nav-menu.show {
    display: flex !important;
  }

  .mobile-nav-menu a {
    color: #154e29;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.7rem 0;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-nav-menu a:hover {
    background: #e6c972;
    color: #154e29;
  }
}

@media (max-width: 600px) {
  .hamburger-menu {
    display: inline-block !important;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff !important;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    z-index: 2002;
    position: relative;
    line-height: 1;
  }

  .hamburger-menu:active,
  .hamburger-menu:focus,
  .hamburger-menu:hover {
    background: #e6c972;
    color: #154e29 !important;
  }
}

@media (max-width: 600px) {

  /* Hero image */
  .hero-image img {
    max-width: 90vw;
    max-height: 220px;
    width: 100%;
    height: auto;
  }

  /* About section image */
  .about-img img {
    max-width: 90vw;
    margin-top: 20px;
    width: 100%;
    height: auto;
  }

  /* Campaign, article, and collaborator images */
  .card img,
  .article-card img {
    max-width: 70px;
    max-height: 70px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Team member images */
  .team-member-image img {
    max-width: 60px;
    max-height: 60px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
  }
  .join-overlay{
    padding-top: 50px;
    padding-bottom: 50px;

  }
}

.section-header {
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  margin-left: 0;
  margin-right: 0;
}

.about-content {
  gap: 1.5rem;
  margin-top: 0.7rem;
}

.about-text {
  margin-left: 2rem;
}

.blog, .about, .help, .team {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.article-card {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  margin: 0 0.5rem;
}
@media (max-width: 992px) {
  .article-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    margin: 0 0.375rem;
  }
}
@media (max-width: 600px) {
  .article-card {
    flex: 0 0 100vw;
    max-width: 100vw;
    margin: 0;
    min-width: 100vw;
    height: auto; /* <-- Add this line */
    min-height: 220px; /* <-- Add this for a minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .about-content, .help {
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
  }
  .about-text {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .blog, .about, .help, .team {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .about-content, .help {
    gap: 0.7rem;
  }
}

@media (max-width: 600px) {
  /* Hero section: reduce top/bottom padding */
  .hero {
    flex-direction: column;
    padding: 2rem 1rem 2rem 1rem;
    gap: 1.2rem;
  }
  /* Hero heading scaling */
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  .hero-text .subtitle {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }
  /* Badge adjustment */
  .badge {
    margin-left: 0;
    left: 8px;
    bottom: -10px;
    font-size: 0.85rem;
    min-width: 80px;
    padding: 0.5rem 0.7rem;
  }
  /* About section heading scaling */
  .about h2 {
    font-size: 1.3rem;
  }
  /* Join overlay heading scaling */
  .join-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .join-overlay p {
    font-size: 0.95rem;
  }
  /* Footer adjustments */
  .footer-content {
    gap: 0.7rem;
    padding: 1rem 0 1rem 0;
  }
  .footer-bg-text {
    font-size: 1.1rem;
    bottom: 1rem;
  }
  .footer-col h4 {
    font-size: 1rem;
  }
  .footer-col p, .footer-col a {
    font-size: 0.92rem;
  }
  /* Ensure horizontal scroll containers fit */
  .scroll-container, .carousel-container {
    max-width: 100vw;
    overflow-x: auto;
  }
  .dot{
    min-width: 10px;
    min-height: 10px;

  }
  /* Ensure all buttons/links have minimum touch area */
  button, .primary-btn, .donate-btn, .arrow-btn, .read-more-btn, .modal-video-link, .instagram-link {
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
  }
  /* Section header/title scaling */
  .section-title {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  /* General cards container: stack vertically, full width */
  .blog .cards {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: 100vw !important;
  }
  /* General card style: full width, reduced padding, margin */

  .blog .card,
  .article-card {
    width: 98vw !important;
    min-width: 0 !important;
    max-width: 98vw !important;
    margin: 0 auto 1rem auto !important;
    padding: 1rem 0.5rem !important;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(21, 78, 41, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Card images: scale for mobile */
  .card img,
  .blog .card img,
  .article-card img {
    width: 80vw !important;
    max-width: 90vw !important;
    height: auto !important;
    min-height: 80px;
    max-height: 180px;
    margin-bottom: 0.7rem;
    border-radius: 10px;
  }
  /* Card headings and text */
  .card h4,
  .blog .card h4,
  .campaigns .card h4,
  .article-card h3 {
    font-size: 1rem !important;
    margin: 0.3rem 0 0.3rem 0 !important;
    text-align: center;
  }
  .card p,
  .blog .card p,
  .campaigns .card p,
  .article-card p {
    font-size: 0.92rem !important;
    margin-bottom: 0.3rem !important;
    text-align: center;
  }
  /* Actions/buttons in cards: full width, spacing */
  .actions,
  .actions .primary-btn,
  .read-more-btn {
    width: 100% !important;
    min-width: 44px;
    margin: 0.5rem 0 0.5rem 0 !important;
    font-size: 1rem !important;
    box-sizing: border-box;
  }
  /* Help section: stack content */
  .help {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    padding: 1.5rem 0.5rem !important;
  }
  .help-img img {
    max-width: 90vw !important;
    height: auto !important;
    margin: 0 auto 1rem auto !important;
  }
  .help-content h3 {
    font-size: 1.1rem !important;
  }
  .help-content p {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 600px) {
  .help .actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.7rem;
  }
  .help .actions .primary-btn {
    width: 95vw !important;
    max-width: 98vw;
    background: #154e29 !important;
    color: #fff !important;
    margin: 0 !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(21, 78, 41, 0.08);
    font-size: 1.05rem !important;
    padding: 1rem 0 !important;
    text-align: center;
    display: block;
  }
  .help .actions .primary-btn a {
    color: #fff !important;
    width: 100%;
    display: block;
  }
}

/* === Responsive Carousel for Article and Campaign Sections === */

/* Default: 3 tiles visible */
.article-card  {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  margin: 0 0.5rem;
}
.carousel-track {
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .article-card{
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    margin: 0 0.375rem;
  }
  .carousel-track {
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .article-card{
    flex: 0 0 100vw;
    max-width: 100vw;
    margin: 0;
    min-width: 100vw;
  }
  .carousel-track{
    gap: 0;
    padding: 0;
  }
  .carousel-container {
    max-width: 100vw;
    overflow-x: auto;
    padding: 0;
  }
  .article-carousel-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Remove extra padding/gaps for all screens */
.article-carousel-section, .campaigns {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 600px) {
  .dots .dot {
    width: 1px !important;
    height: 1px !important;
  }
}
