/* ── Global text color ── */
body {
  color: #252422;
}

/* ── Donate Hero Section ── */
.donate_hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 150px 0 100px 0;
  box-sizing: border-box;
}

/* Rectangle 118 */
.donate_rectangle {
  position: relative;
  width: 720px;
  height: auto;
  min-height: unset;
  max-width: 90vw;
  background: #FED672;
  border-radius: 20px 200px 50px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(30px, 4vw, 50px) clamp(60px, 10vw, 120px) clamp(30px, 4vw, 50px) clamp(40px, 6vw, 70px);
  box-sizing: border-box;
}

/* Decorative top-left line */
.donate_rectangle::before {
  content: '';
  position: absolute;
  top: clamp(15px, 3vw, 30px);
  left: clamp(20px, 5vw, 70px);
  width: clamp(60px, 10vw, 200px);
  height: clamp(2px, 0.3vw, 4px);
  background: #000000;
}

/* Title inside rectangle */
.donate_rectangle_title {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2rem, 5.5vw, 6.5rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: #252422;
  text-align: left;
  margin: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Subtitle paragraph */
.donate_subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.7;
  color: #252422;
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 24px;
}

/* ── Donate Options Section ── */
.donate_options {
  width: 80%;
  margin: 0 auto;
  padding: 60px 0;
  box-sizing: border-box;
}

.donate_options_header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-bottom:200px;
}

.donate_options_label {
  font-family: 'Abhaya Libre', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #4a7c59;
  white-space: nowrap;
}

.donate_options_line {
  flex: 1;
  height: 1px;
  background-color: #4a7c59;
  display: block;
}

/* ── Donate Cards ── */
.donate_cards {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.donate_card {
  background: transparent;
  border: 1.5px solid #436E55;
  border-radius: 16px;
  flex: 1;
  min-width: 350px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 36px 0;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.donate_card_icon {
  position: relative;
  background: transparent;
  border-radius: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -130px;
  margin-bottom: 20px;
  box-shadow: none;
  flex-shrink: 0;
}

.donate_card_vector {
  position: absolute;
  width: 150px;
  height: 150px;
  object-fit: contain;
  top: -5px; /* default - already updated */
  left: 0;
}

.donate_card_icon_overlay {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 1;
}

.donate_card_text {
  font-family: 'Nunito Sans', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: #252422;
  line-height: 1.5;
  margin: 10px 0 20px 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Donate Buttons ── */
.donate_card_btn {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #C74A9B;
  background: transparent;
  border: 1px solid #C74A9B;
  border-radius: 8px;
  width: 160px;
  height: 50px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  flex: none;
  flex-grow: 0;
  z-index: 0;
}

/* Added styles for clicked state */
.donate_card.info-active {
  background: #C74A9B; /* Pink background */
  border-color: #C74A9B;
  color: #ffffff;
  height: auto;
  min-height: 320px;
  padding-top: 0;
  padding-bottom: 36px;
}

.donate_card.info-active .donate_card_icon {
  margin-top: -130px;
  margin-bottom: 16px;
  position: relative;
}

.donate_card.info-active .donate_card_text {
  color: #ffffff;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); 
  font-weight: 400;
  margin-bottom: 20px;
  padding: 0 20px;
  display: block;
  text-align: center;
  line-height: 1.8;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.donate_card.info-active .donate_card_btn {
  display: none; /* Hide button once clicked */
}

.donate_card_btn:hover {
  background: #C74A9B;
  color: #fff;
}

/* ── Responsiveness ── */
/* Large Desktops */
@media (min-width: 1440px) {
  .donate_rectangle {
    width: 750px;
  }

  .donate_options {
    width: 75%;
    max-width: 1400px;
  }
}

@media (max-width: 1280px) {
  .donate_options {
    width: 85%;
  }

  .donate_card {
    min-width: 300px;
    height: 300px;
    padding: 0 0 32px 0;
  }
  
  .donate_card.info-active {
    min-height: 300px;
    padding-top: 0;
  }
  
  .donate_card_icon {
    width: 140px;
    height: 140px;
    margin-top: -120px;
  }
  
  .donate_card.info-active .donate_card_icon {
    margin-top: -120px;
  }
  
  .donate_card_vector {
    width: 140px;
    height: 140px;
    top: -5px; /* was -10px */
  }
  
  .donate_card_icon_overlay {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 1024px) {
  .donate_options {
    width: 90%;
  }
  
  .donate_options_header {
    margin-bottom: 150px;
  }

  .donate_cards {
    gap: 28px;
  }

  .donate_card {
    min-width: 280px;
    height: 280px;
    padding: 0 0 32px 0;
  }
  
  .donate_card.info-active {
    min-height: 280px;
    padding-top: 0;
  }

  .donate_card_icon {
    width: 120px;
    height: 120px;
    margin-top: -105px;
  }
  
  .donate_card.info-active .donate_card_icon {
    margin-top: -105px;
  }

  .donate_card_vector {
    width: 120px;
    height: 120px;
    top: -5px; /* was -10px */
  }

  .donate_card_icon_overlay {
    width: 80px;
    height: 80px;
  }
  
  .donate_card_btn {
    width: 140px;
    height: 45px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .donate_hero {
    padding: 120px 0 80px 0;
  }

  .donate_rectangle {
    width: 90vw;
    max-width: 90vw;
    border-radius: 15px 100px 30px 15px;
  }

  .donate_rectangle_title {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    white-space: normal;
  }

  .donate_options {
    width: 90%;
    padding: 40px 0;
  }
  
  .donate_options_header {
    margin-bottom: 140px;
  }

  .donate_cards {
    flex-direction: column;
    align-items: center;
    gap: 160px; /* increased from 70px to account for -130px margin-top */
  }

  .donate_card {
    width: 100%;
    max-width: 400px;
    min-width: auto;
    height: 320px;
    padding: 0 0 36px 0;
  }

  .donate_card.info-active {
    min-height: 320px;
    height: auto;
    padding-top: 0;
  }

  .donate_card_icon {
    width: 150px;
    height: 150px;
    margin-top: -130px; /* unchanged */
  }

  .donate_card.info-active .donate_card_icon {
    margin-top: -130px; /* unchanged */
  }

  .donate_card_vector {
    width: 150px;
    height: 150px;
    top: -5px; /* unchanged */
  }

  .donate_card_icon_overlay {
    width: 100px;
    height: 100px;
  }

  .donate_options_label {
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    white-space: normal;
  }

  .donate_options_line {
    display: none;
  }
}

@media (max-width: 480px) {
  .donate_hero {
    padding: 100px 0 60px 0;
  }

  .donate_rectangle {
    width: 90vw;
    max-width: 90vw;
    border-radius: 15px 80px 25px 15px;
  }

  .donate_rectangle_title {
    font-size: clamp(1.5rem, 6.5vw, 2.5rem);
  }

  .donate_subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 0 16px;
  }

  .donate_options {
    width: 92%;
    padding: 30px 0;
  }
  
  .donate_options_header {
    margin-bottom: 130px;
  }

  .donate_cards {
    gap: 140px; /* increased from 65px to account for -115px margin-top */
  }

  .donate_card {
    width: 100%;
    height: 300px;
    padding: 0 0 32px 0;
  }

  .donate_card.info-active {
    min-height: 300px;
    height: auto;
    padding-top: 0;
  }

  .donate_card_icon {
    width: 130px;
    height: 130px;
    margin-top: -115px; /* unchanged */
  }

  .donate_card.info-active .donate_card_icon {
    margin-top: -115px; /* unchanged */
  }

  .donate_card_vector {
    width: 130px;
    height: 130px;
    top: -5px; /* unchanged */
  }

  .donate_card_icon_overlay {
    width: 80px;
    height: 80px;
  }

  .donate_card_btn {
    width: 140px;
    height: 45px;
    font-size: 0.85rem;
  }
}

/* Very Small Screens */
@media (max-width: 320px) {
  .donate_hero {
    padding: 80px 0 50px 0;
  }
  
  .donate_rectangle {
    width: 92vw;
    max-width: 92vw;
  }

  .donate_rectangle_title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .donate_subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 0 16px;
  }

  .donate_options {
    width: 92%;
    padding: 30px 0;
  }
  
  .donate_options_header {
    margin-bottom: 120px;
  }
  
  .donate_card {
    height: 280px;
    padding: 0 0 28px 0;
  }
  
  .donate_card.info-active {
    min-height: 280px;
  }
  
  .donate_card_icon {
    width: 110px;
    height: 110px;
    margin-top: -100px; /* unchanged */
  }
  
  .donate_card.info-active .donate_card_icon {
    margin-top: -100px; /* unchanged */
  }
  
  .donate_card_vector {
    width: 110px;
    height: 110px;
    top: -5px; /* unchanged */
  }
  
  .donate_card_icon_overlay {
    width: 70px;
    height: 70px;
  }
  
  .donate_card_btn {
    width: 130px;
    height: 42px;
    font-size: 0.8rem;
  }
}