@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  /* color variables */
  --primary-text-color: #565656;
  --secondary-text-color: rgb(43,33,93);
  --fill-color: rgb(112, 87, 159);
  --light-blue-bg: #e6eef5;
  --light-grey-bg: #f1f1f1;
  --light-background: #ffffff;
  --btn-border: #0457a04a;

  /* spacing variables */
  --spacing-lg: 70px;
  --spacing-md: 50px;
  --spacing-sm: 30px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--primary-text-color);
  font-weight: 400;
  line-height: 2;
  background-color: white;
  background-image: url('assets/images/bg.png');
  background-repeat: repeat;
  background-size: 300px;
}

/* Generally used styles ------------------------- */
a {
  text-decoration: none;
  color: currentColor;
}

.dim-background {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(25, 13, 49, 0.8);
  backdrop-filter: blur(1.5px);
  max-height: 100vh;
}

.popup-sermon-container {
  display: none;
}

.popup-img-container {
  display: none;
}

.banner-wrapper {
  position: absolute;
  z-index: +999;
  background-color: rgba(25, 13, 49, 0.95);
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* animation: 1.75s scroll-down forwards linear; */
  transform: translateY(-100vh);
}

.banner-wrapper img {
  border: 1px solid white;
  position: relative;
}

img.banner-img {
  width: min(95%, 1280px);
}

img.banner-img {
  width: min(95%, 1280px);
}

img.banner-img.desktop {
  display: block;
}

img.banner-img.mobile {
  display: none;
}

.banner-wrapper .close-banner-wrapper {
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}

@keyframes scroll-down {
  0% {
    transform: translateY(-100vh);
  }

  100% {
    transform: translateY(0vh);
  }
}

@keyframes scroll-up {
  0% {
    transform: translateY(0vh);
  }

  100% {
    transform: translateY(-100vh);
  }
}

.close-popup-sermon {
  position: absolute;
  top: calc(50% - 280px);
  /* left: 90%; */
  right: calc(50% - 375px);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #ff0200; */
  border-radius: 50%;
  background: rgb(25, 13, 49);
  z-index: 15;
  cursor: pointer;
}

.popup-sermon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 10px;
  width: 90%;
  max-width: 750px;
  height: 80%;
  max-height: 500px;
  z-index: 15;
}

.close-popup-img {
  z-index: 20;
  border-radius: 50%;
  position: absolute;
  right: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 5px;
  display: flex;
  top: -20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(25, 13, 49);
  z-index: 15;
  cursor: pointer;
}

#popup-img-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  width: min(85%, 750px);
  z-index: 17;
}

.popup-img {
  width: 100%;
}

.dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: white;
  padding: 15px;
  width: 200px;
  list-style-type: none;
  border-radius: 8px;
  box-shadow: 0 0 5px rgb(0 0 0 / 20%);
  visibility: hidden;
  transition: 0.5s ease;
}

.dropdown:hover {
  color: var(--primary-text-color);
}

.dropdown__items {
  padding: 15px;
  border-radius: 8px;
}

.dropdown__items:hover {
  color: var(--secondary-text-color);
  background-color: var(--light-blue-bg);
}

.dropdown__items--active {
  background-color: var(--light-blue-bg);
}

.btn {
  background: #fff;
  color: var(--fill-color);
  border: 2px solid var(--btn-border);
  border-radius: 40px;
  padding: 20px;
  width: 250px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: var(--fill-color);
  color: white;
}

.btn:active {
  transform: scale(0.9);
}

.header-title {
  color: var(--fill-color);
  width: fit-content;
  position: relative;
}

.header-title::before {
  content: "";
  position: absolute;
  width: 70%;
  bottom: 0;
  left: 0;
  top: 0;
  height: 100%;
  border-bottom: 6px solid var(--secondary-text-color);
  display: block;
}

/* ------------------------------------------------ */

.main-container {
  max-width: 1500px;
  position: relative;
  margin: 0 auto;
}

.nav-container {
  padding: 0 var(--spacing-lg);
  height: 70px;
  background-color: var(--light-background);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(26, 26, 26, 0.1);
}

.nav {
  margin: 0 auto;
  max-width: 1500px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__logo-img {
  width: 50px;
}

.nav__logo-text {
  font-weight: 700;
  color: var(--primary-text-color);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style-type: none;
}

.nav-items__item {
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
}

.nav-items__item:hover,
.nav-items__item--active {
  color: var(--fill-color);
}

.nav-items__item a {
  display: inline-block;
  width: 100%;
}

.nav__menu,
.nav-items__close {
  display: none;
}

.about {
  position: relative;
}

.about:hover .dropdown {
  visibility: visible;
}

.carousel {
  background-color: var(--fill-color);
  height: 600px;
  position: relative;
  display: flex;
  overflow: hidden;
}

#carousel-slide {
  height: 100%;
  width: 100%;
  background-image: url("./assets/images/new-carousel/frequent/frequent_1.jpeg");
  background-repeat: no-repeat;
  background-position: center 28%;
  background-size: cover;
  display: flex;
  align-items: flex-end;
}

.carousel-slide__text {
  color: white;
  font-weight: 700;
  font-size: 50px;
  margin-left: calc(var(--spacing-lg) / 1.5);
  margin-bottom: 0;
}

.slide-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
}

.slide-indicators__indicator {
  display: inline-block;
  height: 15px;
  width: 15px;
  border: 1px solid white;
  border-radius: 50%;
}

.indicator-active {
  background-color: white;
}

.body-container {
  margin: 0 var(--spacing-lg);
}

.upcoming-event {
  padding: 20px;
  margin: 0 auto;
  margin-top: var(--spacing-md);
  /* margin-bottom: var(--spacing-lg); */
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: fit-content;
}

.upcoming-event__title {
  margin-bottom: var(--spacing-sm);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 50px;
}

:is(.countdown-days, .countdown-hours, .countdown-minutes, .countdown-seconds) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-value {
  background-color: var(--light-blue-bg);
  color: var(--fill-color);
  width: 120px;
  height: 120px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 600;
}

.countdown-text {
  font-weight: 600;
}

.founders {
  display: flex;
  align-items: center;
  gap: 100px;
  /* padding: 0 var(--spacing-lg); */
  padding-top: 0;
  /* margin-bottom: var(--spacing-lg); */
  margin-bottom: 40px;
}

.founders-img {
  width: 100%;
  max-width: 700px;
  height: 500px;
  background-image: url("./assets/images/founders.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  border-radius: 8px;
}

.resident-pastor-img {
  background-image: url("./assets/images/pastors1.jpeg");
  background-position: center 5%;
}

.founders-details {
  margin-bottom: var(--spacing-lg);
}

.founders-details__title {
  margin-bottom: var(--spacing-md);
}

.founders-details__name {
  margin-bottom: var(--spacing-sm);
}

.mission-vision-values {
  background-color: var(--light-blue-bg);
  padding: var(--spacing-lg);
  /* margin: 0 var(--spacing-lg); */
  margin-bottom: var(--spacing-lg);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10%;
}

.vision__title,
.mission__title,
.values__title {
  color: var(--fill-color);
  margin-bottom: var(--spacing-sm);
}

.vision__message,
.mission__message,
.values__message {
  line-height: 2;
}

.pastorate {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.pastorate__title {
  margin-bottom: var(--spacing-md);
}

.pastors-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0 var(--spacing-md);
}

.pastors__img-1,
.pastors__img-2,
.pastors__img-3 {
  width: 300px;
  height: 400px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--spacing-sm);
}

.pastors__img-1 {
  background-image: url("./assets/images/pastorate8.jpeg?v=222");
}

.pastors__img-2 {
  background-image: url("./assets/images/pastorate4.jpeg");
}

.pastors__img-3 {
  background-image: url("./assets/images/pastorate3.jpeg?v=222");
}

.pastors-credentials {
  padding: 30px;
  margin-bottom: var(--spacing-sm);
  border: 2px solid var(--btn-border);
  border-radius: 8px;
  width: 300px;
  min-height: 120px;
  line-height: 1.7;
  background: #fff;
}

.pastors-credentials__details {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.testimonies {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.testiomies-container__title {
  margin-bottom: var(--spacing-md);
}

.testimony-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  margin-bottom: var(--spacing-lg);
  /* padding: 0 var(--spacing-lg); */
}

.testimony {
  padding: 30px;
  background-color: var(--light-grey-bg);
  border-radius: 8px;
  width: 300px;
  font-size: 0.9rem;
}

.testimony__name {
  text-align: right;
  font-style: italic;
}

.activities-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin: 0 var(--spacing-lg); */
  margin-bottom: var(--spacing-lg);
}

.activities-container__header {
  margin-bottom: var(--spacing-md);
}

.activities {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
}

.activity {
  line-height: 2;
  margin: var(--spacing-sm);
}

.activity__title {
  margin-bottom: 20px;
}

.activity-group {
  margin-bottom: 20px;
}

.activities-container__address {
  margin-bottom: var(--spacing-lg);
}

.word-for-the-year {
  width: fit-content;
  margin: 0 auto;
  margin-bottom: var(--spacing-lg);
  line-height: 0.9;
  color: var(--secondary-text-color);
}

.word-for-the-year__sub-word {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fill-color);
}

.row {
  display: flex;
  justify-content: space-between;
}

.word-for-the-year__word {
  text-align: right;
  font-size: 16rem;
  font-weight: 800;
  letter-spacing: -5px;
}

h1.word-for-the-year__word.year {
  text-align: right;
  display: none;
  color: var(--fill-color);
}

.footer {
  background-color: var(--fill-color);
  padding: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  color: #fff;
  background-image: url('assets/images/bg-pattern.png');
  background-size: 175px;
}

.footer-items {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1500px;
}

.church-details {
  width: 40%;
}

.church-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: var(--spacing-md);
}

.church-logo__logo {
  width: 50px;
}

.church-logo__name {
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
}

.church-details__title,
.church-main-details__title {
  color: #fff;
  margin-bottom: var(--spacing-sm);
}

.contact-details-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  line-height: 2;
}

.contact-details {
  width: 50%;
  list-style-type: none;
}

.contact-details__desc-address {
  width: 50%;
}

.contact-details__desc,
.about__title,
.follow-us__title,
.events__title {
  font-size: 0.9rem;
  font-weight: 500;
}

.about__title a,
.follow-us__title a,
.events__title a {
  text-decoration: none;
  color: #fff;
}

.about__title a:hover,
.follow-us__title a:hover,
.events__title a:hover {
  color: #fff;
}

.church-main-details {
  width: 60%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10%;
}

:is(.about, .follow-us, .events) {
  list-style-type: none;
  line-height: 2;
}

.about__title,
.follow-us__title,
.events__title {
  margin-bottom: 10px;
}

.footer-date {
  text-align: center;
  font-weight: 500;
  margin-top: var(--spacing-lg);
}

div.notices-modal {
  position: fixed;
  background: var(--fill-color);
  border-radius: 4px;
  border: 1px solid #fff;
  color: white;
  bottom: -100%;
  opacity: 0;
  right: 20px;
  padding: 2px 0;
  animation: slide-up 3s ease-in 2s forwards, 2s shake 6s infinite;
}

div.hide-notices {
  animation: 2s slide-down ease-in forwards;
}

div.notices-modal a.notice-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid white;
  padding: 5px 15px;
  transition: all 0.3s;
}

div.notices-modal a.notice-group:hover {
  background: #021c34;
}

div.notices-modal a.notice-group:last-child {
  border-bottom: none;
}

div.notices-modal a.notice-group img.notice-icon {
  width: 20px;
  margin-right: 7px;
}

div.notices-modal a.notice-group img.proceed {
  width: 20px;
  height: 20px;
  margin-left: 40px;
  margin-right: 10px;
  transition: all 0.3s;
}

div.notices-modal a.notice-group:hover img.proceed {
  margin-left: 50px;
  margin-right: 0;
}

div.notices-modal a.notice-group p {
  width: 100%;
  font-size: 1.1rem;
}

div.notices-modal button.close-notices {
  position: absolute;
  width: 30px;
  height: 30px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: #021c34;
  left: -20px;
  opacity: 0;
  animation: fade-in 0.5s ease-in 5s forwards;
}

div.notices-modal button.close-notices img {
  position: relative;
  top: 1.5px;
}

div.hide-notices button.close-notices {
  animation: fade-in 0.5s ease-in backwards;
}

.loader {
  margin: auto;
  margin-bottom: 50px;
  padding: 20px 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: transparent 5px solid;
  border-top-color: var(--fill-color);
  animation: spin 0.5s infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  90% {
    transform: rotate(312.7deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes slide-up {
  0% {
    bottom: -100%;
    opacity: 0;
  }

  75% {
    opacity: 1;
  }

  100% {
    bottom: 20px;
    opacity: 1;
  }
}

@keyframes slide-down {
  0% {
    bottom: 20px;
    opacity: 1;
  }

  100% {
    bottom: -100%;
    opacity: 0;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    left: -20px;
  }

  100% {
    opacity: 1;
    left: -35px;
  }
}

@keyframes shake {
  79% {
    transform: rotate(0deg);
  }

  80% {
    transform: rotate(2.7deg);
  }

  83% {
    transform: rotate(-2.7deg);
  }

  86% {
    transform: rotate(2.7deg);
  }

  89% {
    transform: rotate(-2.7deg);
  }

  92% {
    transform: rotate(2.7deg);
  }

  95% {
    transform: rotate(-2.7deg);
  }

  98% {
    transform: rotate(2.7deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Tablet | Mobile View */
@media only screen and (max-width: 1000px) {
  .contact-details-container {
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 925px) {
  .church-details {
    width: 100%;
    margin-bottom: var(--spacing-lg);
  }

  .church-main-details {
    width: 100%;
    justify-content: space-between;
  }

  .contact-details-container {
    flex-wrap: nowrap;
  }

  .footer-items {
    flex-direction: column;
  }
}

@media only screen and (max-width: 950px) {
  body {
    /* spacing variables */
    --spacing-lg: 30px;
  }

  .nav-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    background-color: var(--fill-color);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    padding: 50px 30px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: none;
  }

  .slide-in {
    animation: slide-in 0.3s ease forwards;
  }

  @keyframes slide-in {
    from {
      transform: translateX(-100%);
    }

    to {
      transform: translateX(0);
    }
  }

  .slide-out {
    animation: slide-out 0.3s ease forwards;
  }

  @keyframes slide-out {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-100%);
    }
  }

  .nav-items__items:active {
    color: currentColor;
  }

  .nav__menu,
  .nav-items__close {
    padding: 10px;
    padding-right: 0;
    display: inherit;
  }

  .nav-items__close {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-items__item {
    width: 100%;
  }

  .nav-items__item:hover {
    color: currentColor;
  }

  .nav-items__item--active {
    background: white;
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    color: var(--secondary-text-color);
  }

  .nav-items__item--active:hover {
    color: var(--secondary-text-color);
  }

  .nav-items__item--active .dropdown a li {
    color: var(--fill-color);
  }

  .about .dropdown {
    left: 0;
    top: 55px;
    background: none;
    box-shadow: unset;
    font-size: 0.75rem;
    padding: 0;
    width: 100%;
    color: white;
  }

  .about:hover .dropdown {
    position: static;
  }

  .dropdown__items:hover {
    color: white;
    background: none;
  }

  .dropdown__items--active {
    background: none;
  }

  .founders {
    gap: 35px;
  }

  .word-for-the-year__word {
    font-size: 10rem;
  }
}

@media only screen and (max-width: 780px) {
  .countdown {
    gap: 20px;
  }

  .founders {
    display: flex;
    flex-direction: column;
  }

  .mission-vision-values {
    flex-direction: column;
    gap: 30px;
  }

  .testimony-container {
    gap: 20px;
  }

  .testimony {
    width: 260px;
    padding: 15px;
  }

  .activities {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media only screen and (max-width: 750px) {
  .close-popup-sermon {
    left: 90%;
  }
}

@media only screen and (max-width: 599px) {
  .testimony {
    width: 250px;
    padding: 15px;
  }
}

@media only screen and (max-width: 585px) {
  .carousel-slide__text {
    line-height: 1.2;
    font-size: 40px;
    margin-bottom: calc(var(--spacing-lg) / 2.5);
  }

  .upcoming-event {
    width: 100%;
    gap: 10px;
  }

  .countdown {
    transform: scale(0.8);
  }

  .testimony {
    width: 100%;
    padding: 30px;
  }

  .word-for-the-year__word {
    font-size: 8rem;
  }

  .church-details {
    margin-bottom: 50px;
  }

  .church-details__title,
  .church-main-details__title {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 479px) {

  img.banner-img.desktop {
    display: none;
  }

  img.banner-img.mobile {
    display: block;
  }

  .nav__logo-text {
    display: none;
  }

  .carousel,
  .founders-img {
    height: 300px;
  }

  .carousel-slide__text {
    line-height: 1.2;
    font-size: 22px;
    transform: translateY(-20px);
  }

  .header-title {
    margin-bottom: 25px;
    font-size: 1.5rem;
  }

  .mission__title,
  .vision__title,
  .values__title {
    margin-bottom: 0;
  }

  .upcoming-event__title {
    margin-bottom: 0px;
  }

  .countdown {
    transform: scale(0.7);
  }

  .word-for-the-year__sub-word,
  .word-for-the-year__word,
  h1.word-for-the-year__word.year {
    text-align: center;
    display: block;
  }

  .word-for-the-year__sub-word,
  h1.word-for-the-year__word.year {
    font-size: 2.5rem;
    letter-spacing: normal;
  }

  .word-for-the-year__word {
    text-align: 3rem
  }

  .word-for-the-year__sub-word.year {
    display: none;
  }

}

@media only screen and (max-width: 400px) {
  body {
    --spacing-lg: 20px;
  }

  .nav-items {
    width: 230px;
  }

  .countdown {
    transform: scale(0.6);
  }

  .word-for-the-year__word {
    font-size: 8rem;
    letter-spacing: normal;
  }

  div.notices-modal {
    right: 10px;
    bottom: 10px;
  }
}