@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Testing Border */
:root {
  --card-odd-color: rgba(229, 244, 233, 1);
  --card-even-color: rgba(229, 244, 233, 0.4);
  --card-yellow-color: #FCF8E3;
  --btn-bg-color: rgb(76, 166, 76);
  --border-green-color: rgb(76, 166, 76);
}

.text-green {
  color: #008000 !important;
}

.swiper {
  width: 100%;
  padding: 10px 10px;
}
/*sponsorship modal css*/
.sponsorship-modal {
  background: #E5F4E9;
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  z-index: 1050;
  width: 100%;
}
.instruction-modal {
  background: #E5F4E9;
  border-radius: 10px;
  position: relative;
  z-index: 1050;
  margin-top: 1rem;
}
.sponsorship-modal-close {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  transition: color 0.3s;
  z-index: 1051;
  background-color: #E5F4E9;
  padding: 0.5rem;
  border-radius: 50px;
  color: black;
}

.sponsorship-modal-close:hover {
  color: #333;
}
.btn-bg-color {
  background-color: var(--btn-bg-color) !important;
}

.border-green-color {
  border: 1px solid var(--border-green-color) !important;
  color: var(--border-green-color) !important;
}

.swiper-slide {
  width: 100% !important;
}

.daily-schedule-swiper {
  position: relative;
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute !important;
  background-color: rgba(0, 128, 0, 0.7);
  backdrop-filter: blue(5px);
  border-radius: 50px;
  z-index: 99999 !important;
  color: #000 !important;
  /* visible color */
  top: -30% !important;
  transform: translateY(100%) !important;
  cursor: pointer;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  padding: 0px !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  height: 20px !important;
}

.swiper-button-prev {
  left: 90% !important;
  font-size: 0px !important;
  /* adjust as per UI */
}

.swiper-button-next {
  right: 0px;
}

.test-border {
  border: 1px solid black;

}

/* * {
  margin: 0;
  padding: 0;
} */

#donation-sec {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: hidden;
  font-family: Inter;
}

.donation-left-side {
  height: 100%;
  width: 30%;
  background: url('https://plus.unsplash.com/premium_photo-1677523780572-cb32dafc63a8?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-repeat: no-repeat;
  background-size: cover ;
  background-position: center;
  position: relative;
  transition: .5s cubic-bezier(0.19, 1, 0.22, 1);

}

.donation-left-side>img {
  transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
}

.donation-right-side {
  position: relative;
  background: #fff;
  width: 70%;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  /* overflow: hidden; */
}

.donation-left-side,
.donation-right-side {
  transition: width 0.5s ease;
}

.donation-left-side.shrink {
  width: 35%;
}

.donation-right-side.expand {
  width: 65%;
}

.inner-donation-right-side {
  position: relative;
  height: 90vh !important;
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: start;
  overflow-y: auto;
  padding: 5rem 0rem !important;
}

.donation-right-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: end;
  align-items: center;
  z-index: 9999 !important;
}

.inner-donation-right-side::-webkit-scrollbar {
  width: 6px;
}

.inner-donation-right-side::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.inner-donation-right-side:hover::-webkit-scrollbar-thumb {
  background: #888;
}


/* Donation Tab */
#donation-spilt-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#donation-spilt-tab>button.active {
  background: var(--secondary-color);
  color: #fff;

}

#donation-amount-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#donation-amount-tab>button.active {
  background: var(--secondary-color);
  color: #fff;
}

#odd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#even {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#odd>div>input {
  outline: none;
  border: none;
  width: 100px;
}

#even>div>input {
  outline: none;
  border: none;
  width: 100px;
}

#odd>div>span {
  padding-top: 0.1rem;
  background-color: var(--pimary-color);
}

#even>div>span {
  padding-top: 0.1rem;
  background-color: var(--pimary-color);
}

/* Schedule Card */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.5rem;
}



.schedule-card-desktop {
  position: relative;
  width: 100%;
  /* fills its grid cell evenly */
  border-radius: 8px;
  background: #f8fbff;
  transition: 0.3s;

}

.schedule-card>.text-toggle {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

/* when skipped, card fades */
.schedule-card.skipped {
  opacity: 0.5;
  transition: all 0.3s ease;
}



.schedule-card.skipped .schedule-card-body {
  pointer-events: none;
}


.schedule-card-body>h6>span {
  font-size: 16px;
}

.schedule-card-odd-bg {
  background-color: var(--card-odd-color);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.schedule-card-yellow-bg {
  background-color: var(--card-yellow-color);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.schedule-card-even-bg {
  background-color: var(--card-even-color);
}

.active-caution {
  width: 10px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 50px;
}

#active-caution1,
#active-caution2,
#active-caution3 {
  width: 10px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 50px;
}

#active-caution1 {
  background-color: #008000;
}

#active-caution2 {
  background-color: #FFA500;
}

#active-caution3 {
  background-color: #ff0000;
}

.card-date {
  background-color: #008000;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* For smooth fade animations */
.step {
  transition: opacity 0.5s ease;
}

#step-3 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fade-in {
  opacity: 0;
  animation: fadeInAnim 0.5s ease forwards;
}

@keyframes fadeInAnim {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.curve-border {
  width: 4rem;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-40%);
  background: #fff;
  z-index: 1 ;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  box-shadow: -4px 0px 2px 0px rgba(0, 0, 0, 0.2);

}


@media (max-width: 767px) {
  .donation-left-side {
    height: 100vh;
    width: 100%;
  }

  .donation-right-side {
    position: absolute;
    background: #fff;
    height: calc(100dvh - 60px);
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid black;
  }


  .donation-right-footer {
    justify-content: space-between;
    display: none;
  }

  .sponsorship-modal {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    top:0;
    left: 0;
    border-radius: 0px;
    background: #3536366e;
    backdrop-filter: blur(3px);
  }
  .inner-sponsorship-modal{
    background: #E5F4E9;
    border-radius: 10px;
    padding: 2rem;
  }
  .schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-items: center;
    align-items: start;
    width: 100%;
    padding: 0.5rem;
  }

  .schedule-card-desktop {
    display: none;
  }

  .schedule-card-mobile {
    width: 100%;
  }

  .schedule-card-body {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0;
  }

  .curve-border {
    display: none;
  }

  .contribute {
    font-size: 0.6rem;
  }

  .card-date {
    font-size: 0.8rem;
    font-weight: 600;
    width: 20px;
    height: 20px;

  }

  .card-amount {
    font-size: 0.8rem;
    font-weight: 800;
  }

  .card-year {
    font-size: 0.75rem;
    font-weight: 600;
  }



  .custom-amount-input {
    width: 50px;
    border: none;
    outline: none;
  }


  .swiper-button-next,
  .swiper-button-prev{
    width: 25px !important;
    height: 25px !important;
    top: -8% !important;
    transform: translateY(50%) !important;
  }
  .swiper-button-prev {
    left: 80% !important;
  }

  .swiper-button-next svg,
  .swiper-button-prev svg {
    height: 12px !important;
  }
  .sponsorship-pay-btn > button {
    display: block;
  }
  .donation-right-footer > button{
    display: none;
  }
}

@media (min-width: 1024px) {
  .schedule-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: start;
    width: 100%;
    min-height: 300px;
    height: auto;

  }

  .schedule-card-desktop {
    display: block;
  }

  .schedule-card-mobile {
    display: none;
  }

  .donation-right-side {
    position: relative;
    background: #fff;
    width: 70%;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .donation-right-footer{
    display: flex;
  }
  .donation-right-footer > button{
    display: block;
  }
  .sponsorship-pay-btn > button {
    display: none;
  }
  .donation-left-side {
    height: 100%;
    width: 30%;
  }

  .curve-border {
    display: block;

  }

  .contribute {
    font-size: 0.6rem;
  }

  .card-date {
    font-size: 0.8rem;
    font-weight: 600;
    width: 20px;
    height: 20px;

  }

  .card-amount {
    font-size: 0.7rem;
    font-weight: 600;
  }

  .card-year {
    font-size: 0.65rem;
    font-weight: 600;
  }

  .schedule-card-desktop {
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: 0.3s;
  }

  .sponsorship-modal {
    position: relative;
    top: 0;
    background: #E5F4E9;
    border-radius: 10px;
    padding: 2rem;
  }

  .custom-amount-input {
    width: 50px;
    border: none;
    outline: none;
  }

  .swiper-button-prev {
    left: 85% !important;
  }

  .swiper-button-next svg,
  .swiper-button-prev svg {
    height: 10px !important;
  }
}

@media (min-width: 1600px) {
  .card-amount span {
    font-size: 0.9rem !important;
    color: #000;
  }

  .contribute {
    font-size: 0.8rem;
  }

  .card-date {
    font-size: 1rem;
    font-weight: 600;
    width: 30px;
    height: 30px;

  }

  .card-amount {
    font-size: 1rem;
    font-weight: 600;
  }

  .card-year {
    font-size: 1rem;
    font-weight: 600;
  }

  .swiper-button-prev {
    left: 85% !important;
  }

  .swiper-button-next svg,
  .swiper-button-prev svg {
    height: 20px !important;
  }
}

@media (min-width: 1920px) {
  .schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
    min-height: 300px;
    height: auto;
  }



  .card-amount span {
    font-size: 0.9rem !important;
    color: #000;
  }

  .custom-amount-input {
    width: 50px;
    border: none;
    outline: none;
  }

  .contribute {
    font-size: 0.8rem;
  }

  .card-date {
    font-size: 1rem;
    font-weight: 600;
    width: 30px;
    height: 30px;

  }

  .card-amount {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
  }

  .card-year {
    font-size: 1rem;
    font-weight: 600;
  }

  .swiper-button-prev {
    left: 90% !important;
  }
  .schedule-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;

  }
  .swiper-button-next svg,
  .swiper-button-prev svg {
    height: 20px !important;
  }
}