/* paypal */
.paypal-box {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* center vertically */
  margin-top: 1rem;
}

#donate-offering-button-container,
#paypal-donation-button-container {
  padding: 1rem;
}

/*give*/

#offering-amount,
#donation-amount {
  background-color: #eee;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  width: 13rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem #dfd9d9;
  cursor: pointer;
}

.give-options {
  width: 100vw;
  overflow: hidden;
  margin: 1rem auto;
}
.give-buttons {
  text-align: center;
  display: flex;
  justify-content: center;
  width: 90vw;
  flex-direction: column;
  margin: 0 auto;
}

.give-btn,
.give-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 100%;
  margin: 1rem 0;
}

.give-btn.give-btn:hover,
.give-btn.give-btn:active {
  background-color: #3d90ef;
  color: white;
}

.give-panel {
  display: none;
}

.give-panel.active {
  padding: 1rem;
  display: block;
}

.arrow {
  position: absolute;
  left: 90%;
  transition: transform 0.3s ease;
}

.give-btn.active .arrow {
  transform: rotate(90deg); /* rotates when opened */
}

/* Video*/

.video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90vw;
  margin: 0 auto 1rem auto;
  justify-items: center;
}

.video__container {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.7);
  border-radius: 0.5rem;
}

.video__container video {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  height: auto;
  object-fit: contain;
  /* background-color: #dddddd7c; */
}

.overlay {
  border-radius: 0.5rem;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  inset: 0;
  z-index: 1;
}
.video__content {
  position: absolute;
  inset: 0;
  font-size: clamp(0.5rem, 0.3333rem + 0.8889vw, 1rem);
  color: white;
  width: 100%;
  padding: 1rem;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}

.video__title {
  position: absolute;
  top: 0;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: clamp(0.063rem, -1.056rem + 8.952vw, 7rem);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 0;
  padding: 1rem 0;
}

.video__title span:not(.line-break) {
  border-radius: 1rem;
  border-right: solid white;
  border-bottom: solid white;
  padding: 0.5rem;
}
/* Slide */
.slider {
  width: 90vw;
  display: flex;
  flex-direction: column;
  margin: 1rem auto;
  justify-items: center;
  justify-content: center;
}

.slider__heading {
  text-align: center;
}

.slider__container {
  position: relative;
  max-height: 100vh;
  min-height: 60vh; /* reserve space */
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.7);
  border-radius: 0.5rem;
  margin: 1rem auto;
  justify-content: center;
  align-items: center;
}

.slider__images {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  /* justify-content: center; */
  align-items: center;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slider__image {
  max-height: 100vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  margin: 0 auto;
  transition: transform 0.5s, opacity 0.5s;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; 
  background-position: center;
  filter: blur(1.5rem) brightness(0.5); 
  z-index: 0;
}

.slider__btn {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  height: 2rem;
  width: 2rem;
  font-size: 1rem;
  background: rgba(56, 56, 56, 0.7);
  border: none;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.slider__btn--right { right: 0.5rem; }
.slider__btn--left { left: 0.5rem; }

@media (hover: hover) {
  .slider__btn:hover { background: rgba(27, 27, 27, 0.7); }
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  position: absolute;
  bottom: 1rem;    
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 10;
  padding: 0.3rem 0.6rem;  
  background: rgba(0, 0, 0, 0.1); /* subtle backdrop for contrast */
  backdrop-filter: blur(6px);  /* blurred glass effect */
  border-radius: 10px;
}

.dot {
  border: none;
  background-color: white;
  opacity: 0.9;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  transition: all 0.5s;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.7);
}

.dot--active {
  background-color: #000;
  height: 1rem;
  width: 1.5rem;
  border-radius: 0.5rem;
}

@media (max-width: 770px) {
 .slider__btn{display: none;}
}

/* Hover & focus adjustments */
@media (hover: hover) {
  .dot:hover { background-color: #888; opacity: 1; }
}

.dot:focus,
.dot:active { outline: none; box-shadow: none; }


/* info */

.info {
  width: 90vw;
  margin: 1rem auto;
}

.info__heading {
  text-align: center;
}

.info__cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  color: white;
}

.info__card {
  flex: 1;
  border: 1px solid #ccc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.info__card--1 {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994760/cornerstone-church-building_v55uao.webp') center/cover;
}

.info__card--2 {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758997944/WhatsApp_Image_2025-09-26_at_22.01.16_mbqj1o.jpg') center/cover;
}

.info-card__btn {
  display: inline-block;
  width: auto;
  padding: 1.5rem;
}

.info-card__text {
  padding: 1.5rem;
}
.info-card__btn a {
  display: inline-block;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.info-card__btn a:hover {
  background-color: #60a8f2;
  color: white;
}

@media (min-width: 771px) {
  .info__cards {
    flex-direction: row;
  }
}

/* Youtube */

.youtube-videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
  overflow: hidden;
}

.youtube-videos__item {
  padding: 0 1rem;
  width: 100%;
  border-radius: 0.5rem;
  margin: 1rem auto;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.youtube-videos__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.youtube-videos__thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
}
.youtube-videos__category-title {
  text-align: center;
  font-weight: bolder;
  margin: 1rem;
  font-weight: 700;
  color: rgb(94, 93, 93);
  font-size: 2.5rem;
  line-height: 1;
}

.youtube-videos__grid a {
  text-decoration: none;
  color: black;
  text-align: center;
}
.youtube-videos__title {
  font-size: 1rem;
  margin: 0.5rem;
}

.youtube-video__description {
  font-size: 1rem;
  margin: 0.5rem;
}

/* youtube tab toggle */

.youtube-video-tabs__container {
  border-radius: 1.5rem;
  background-color: #f4f4f4;
  padding: 0.5rem;
  width: 100%;
  /* height: auto; */
  max-width: 15rem;
  margin: 1rem auto;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.youtube-video__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  border-radius: 1.5rem;
}

.youtube-video__tab {
  border-radius: 1.6rem;
  display: inline-block;
  width: 50%;
  padding: 1rem 0;
  cursor: pointer;
  transition: color 200ms;
  font-size: 1rem;
  font-weight: bold;
  line-height: normal;
  user-select: none;
  text-align: center;
  border: none;
  background-color: transparent;
  color: #3d90ef;
}

.youtube-video__tab button {
  background-color: #000;
}

.youtube-video__tab--active {
  background-color: #3d90ef;
  color: white;
}

.tab-content {
  display: none; /* Hide all tab content by default */
}

.tab-content--active {
  display: grid; /* Show only the active one */
}

.tab-header {
  display: none;
}

.tab-header--active {
  display: block;
}

.modal {
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 5;
  padding: 2rem;
  border-radius: 0.5rem;
  border: solid #ccc;
  padding: 1rem;
}

.modal__action {
  margin: 0.5rem;
}
.modal__actions {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.modal_action__seperator {
  color: #ccc;
  font-size: 1rem;
  line-height: 3;
  user-select: none;
  display: flex;
  height: 100%;
  vertical-align: middle;
}

.modal__title {
  text-align: center;
}

.modal.open{
  display: block;
}
/* about us section */

.about-us {
  display: flex;
  width: 90vw;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
}
.about-us__section {
  display: flex;
  width: 100%;
  margin: 1rem 0;
  align-items: stretch; /* makes children match height */
  gap: 2rem; /* space between text and image */
}

@media (max-width: 770px) {
  .about-us__section:not(.about-us__section--identity) {
    flex-direction: column-reverse; /* default stacking */
  }

  .about-us__section--identity {
    flex-direction: column;
  }

  .about-us__section {
    align-items: center;
  }
}

.about-us__text,
.about-us__image {
  flex: 1; /* each takes equal width */
}

.about-us__text {
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  color: white;
  background-color: #345171;
  font-family: 'Cairo', sans-serif;
  text-align: center;
}

.about-us__text:nth-child(even) {
  background-color: #e2e2e2;
  color: black;
}

.about-us__text p {
  padding: 1rem;
  width: 100%;
  line-height: 1.6;
}

.about-us__image {
  display: flex;
}

.about-us__image img {
  width: 100%;
  height: 100%;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
  object-fit: cover;
  border-radius: 1rem;
}

/* hero background */

.hero--service {
  background-image: url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994594/service-hero_tdjjau.jpg');
}

.hero--give {
  background-image: url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994580/give-hero_vtbsmv.jpg');
}

.hero--about-us {
  background-image: url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994598/about-us-hero_azlfoc.jpg');
}

.location__container {
  width: 90vw;

  margin: 0 auto;
}
.location__container iframe {
  width: 100%;
}

.service-info {
  width: 90vw;
  margin: 1rem auto;
  overflow: hidden;
}

.service-info h1 {
  text-align: center;
}
.events__grid {
  display: grid;
  grid-template-columns: repeat(1fr);
  gap: 1.5rem;
}

.event__grid {
  padding: 1rem;
  color: white;
  border-radius: 0.5rem;
  text-align: center;
}
.event__grid:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
}

@media (min-width: 771px) {
  .events__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .event__grid:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
  }
}

.youth-meeting__card {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994735/youth-meeting__card_g2n0g9.jpg') center/cover;
  background-position: 70% 70%;
}

.prayer-meeting__card {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994729/prayer-meeting__card_xnolr2.jpg') center/cover;
  background-position: 70% 70%;
}

.sunday-school__card {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994722/sunday-school__card_ofqhfy.jpg') center/cover;
  background-position: 70% 70%;
}

.sunday-service__card {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994724/sunday-service__card_xrkcvb.jpg') center/cover;
  background-position: 70% 70%;
}

.outreach__card {
  background: linear-gradient(#000000cc, #000000aa),
    url('https://res.cloudinary.com/dlzmhad7i/image/upload/v1758994737/outreach__card_ytfsht.jpg') center/cover;
  background-position: 70% 70%;
}
