/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*  */
/* Variables */
:root {
  --primary-color: rgba(30, 55, 90, 0.7);
  /* --secondary-color: #f3f3f3; */
  --secondary-color: #e9f1fa;
  --tertiary-color: #00abe4;
  --quarternary-color: #2373ff;
}

html,
body {
  font-family: 'Raleway', sans-serif;
  background: var(--secondary-color);
  /* color: var(--primary-color); */
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: #fff;
  text-decoration: none;
}

.email-link {
  color: #2373ff;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

strong {
  color: #fff;
}

/* Utility Classes */
/* Container class */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-sm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Button class */
.btn {
  padding: 0.5 2rem;
  background-color: var(--tertiary-color);
  border: 2px solid transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #2373ff;
  border: 2px solid var(--secondary-color);
}
/*  */
/* Navbar */
.navbar {
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  background-color: transparent;
  transition: background-color 0.3s ease-in-out;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo img {
  width: 32px;
  height: 32px;
}

/* navbar ul */
.navbar__menu-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
}

.navbar__menu-link:hover,
.navbar__mobile-menu-link:hover {
  color: var(--quarternary-color);
}
/* Social */
.navbar__menu-link--primary,
.navbar__mobile-menu-link--primary {
  color: #fff;
}

.navbar__menu-link--primary:hover,
.navbar__mobile-menu-link--primary:hover {
  color: var(--tertiary-color);
}

.navbar.navbar--scroll {
  /* background-color: rgba(38, 36, 49, 0.8); */
  background-color: var(--quarternary-color);
  backdrop-filter: blur(10px);
}

.navbar__mobile-menu-items {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--tertiary-color);
  opacity: 0.95;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.2rem;
}

.navbar__mobile-menu-items {
  transform: translateX(100%);
}

.navbar__mobile-menu-items.active {
  transform: translateX(0);
}

.navbar__mobile-menu {
  display: none;
  cursor: pointer;
}

/* Deprecated this as it ruined the links. */
/* navbar for centroparoquial.html page */
/* Always give navbar a gackground on innerpages */

/* .inner-page .navbar {
  background: var(--quarternary-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
} */

/* Hero */
.hero {
  padding: 8rem 2rem 8rem;
  /* background-color: var(--secondary-color); */
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/); */
  /* background-repeat: no-repeat; */
  /* background-position: center; */
  /* background-size: cover; */

  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* min-height 100vh seems to solve the problem of the background image not taking up the whole screen size */
  /* position: relative;
  overflow: hidden; */
  background-color: #ccc;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/Santiago-Church-Exterior-Photo-1200px.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero__content {
  max-width: 600px;
  z-index: 10;
}

.hero__title {
  font-size: 3.3rem;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2rem;
  z-index: 10;
}

.hero__description {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Hero Buttons */
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero__button {
  padding: 0.5rem 2rem;
}

/* hero Grid */
.hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/*  */
/* About */
.about {
  background: var(--secondary-color);
  padding: 6rem 2rem;
  min-height: 100vh;
  color: #000;
}

.about__container {
  text-align: center;
}

.about__title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.about__description {
  max-width: 600px;
  margin: 1rem auto 4rem;
}

.about strong {
  color: #000;
}

/* About Grid */
.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about__grid-item-text-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about__grid-item-text-description {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.about img {
  width: 100%;
  border-radius: 10px;
}

.about__map {
  margin-bottom: 2rem;
}
.about__map-title {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.about__map-description {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.about .iframe {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
}

.about .iframe .iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/*  */

/* Parish Centre */
.centroparoquial {
  background: var(--secondary-color);
  padding: 6rem 2rem;
  min-height: 100vh;
  color: #000;
}

.centroparoquial__container {
  text-align: center;
}

.centroparoquial__title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.centroparoquial__description {
  max-width: 600px;
  margin: 1rem auto 4rem;
}

.centroparoquial strong {
  color: var(--quarternary-color);
}

/*  */
/* Schedule */
.schedule {
  background: var(--secondary-color);
  padding: 6rem 2rem;
  min-height: 100vh;
  color: #000;
}

.schedule__container {
  text-align: center;
}

.schedule__title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.schedule__description {
  max-width: 600px;
  margin: 1rem auto 4rem;
}

.schedule strong {
  color: var(--quarternary-color);
}

.schedule__volunteer-list li {
  text-align: left;
  list-style: inside;
}

/* .responsive-form-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
} */

/* .responsive-form-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
} */

/*  */
/* Homilies */
.homilies {
  padding: 6rem 2rem;
  background: var(--secondary-color);
  min-height: 100vh;
  color: #000;
}
.homilies__container {
  text-align: center;
}

.homilies__title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.homilies__description {
  max-width: 600px;
  margin: 1rem auto 4rem;
}

.homilies strong {
  color: #000;
}

.homilies-item a {
  color: #000;
}

a.readings {
  color: #2373ff;
}

a.readings:hover {
  color: #6523ff;
  text-decoration: underline;
}

/* Homily Section */

.homily-section {
  width: 80%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.homily-item {
  margin: 2rem auto;
}

.homily-thumbnail {
  margin: 2rem auto;
}

#latest-homily a {
  color: #2373ff;
}

#latest-homily a:hover {
  text-decoration: underline;
}

#archive-homilies a {
  color: #2373ff;
}

#archive-homilies a:hover {
  text-decoration: underline;
}

.previous-archives {
  margin: 1rem auto 1rem;
}

/* Hidden class for archives */
.hidden {
  display: none;
}

/* Cursor pointer for clickable items */
#archive-title {
  cursor: pointer;
  color: #007bff; /* Optional: Change color to indicate it is clickable */
}

#archive-title:hover {
  text-decoration: underline;
}
/*  */
/* Announcements */
.announcements {
  padding: 6rem 2rem;
  background: var(--secondary-color);
  min-height: 100vh;
  color: #000;
}
.announcements__container {
  text-align: center;
}

.announcements__title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.announcements__description {
  max-width: 600px;
  margin: 1rem auto 4rem;
}

.announcements strong {
  color: var(--quarternary-color);
}

.announcements-item a {
  color: #000;
}

a.readings {
  color: #2373ff;
}

a.readings:hover {
  color: #6523ff;
  text-decoration: underline;
}

/* Announcement Section */

.announcement-section {
  width: 80%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.announcement-item {
  margin: 2rem auto;
}

.announcement-thumbnail {
  margin: 2rem auto;
}

#latest-announcement a {
  color: #2373ff;
}

#latest-announcement a:hover {
  text-decoration: underline;
}

#archive-announcements a {
  color: #2373ff;
}

#archive-announcements a:hover {
  text-decoration: underline;
}

.previous-archives {
  margin: 1rem auto 1rem;
}

/* Hidden class for archives */
.hidden {
  display: none;
}

/* Door Grid */
.announcement__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.announcement__grid-item-text-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.announcement__grid-item-text-description {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.announcement__grid-item img {
  width: 100%;
  border-radius: 10px;
  /* transform: scale(0.75); */
}

/* Cursor pointer for clickable items */
#announcement-archive-title {
  cursor: pointer;
  color: #007bff; /* Optional: Change color to indicate it is clickable */
}

#announcement-archive-title:hover {
  text-decoration: underline;
}

/* Carousel New Solution */
/* General Carousel Styling */
.carousel {
  position: relative;
  overflow: hidden;
  width: 500px;
  height: 500px;
  margin: auto;
}

.carousel__track-container {
  overflow: hidden;
  position: relative;
}

.carousel__track {
  display: flex;
  /* transform: translateX(-500px); */
  transition: transform 0.5s ease-in-out;
}

.carousel__image {
  width: 500px;
  height: 500px;
  border-radius: 10px;
  object-fit: cover;
}

/* Buttons (Arrows) */
.carousel__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
}

.carousel__button--left {
  left: 10px;
}

.carousel__button--right {
  right: 10px;
}

.carousel__button:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Indicators */
.carousel__nav {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.carousel__indicator {
  background-color: #ccc;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  cursor: pointer;
}

.carousel__indicator--active {
  background-color: #333;
}

/* Slideshow CSS */
.slideshow {
  position: relative;
  width: 500px;
  height: 500px;
  overflow: hidden;
  margin: auto;
  border-radius: 10px;
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow .slide.active {
  opacity: 1;
}

/* Carousel 2 Centro Paroquial */
/* .carousel2 {
  position: relative;
  overflow: hidden;
  width: 500px;
  height: 500px;
  margin: auto;
}

.carousel2__track-container {
  overflow: hidden;
  position: relative;
}

.carousel2__track {
  display: flex;
  /* transform: translateX(-500px); */
/* transition: transform 0.5s ease-in-out;
} */

/* .carousel2__image {
  width: 500px;
  height: 500px;
  border-radius: 10px;
  object-fit: cover;
} */

/* Buttons (Arrows) */
/* .carousel2__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
}

.carousel2__button--left {
  left: 10px;
}

.carousel2__button--right {
  right: 10px;
}

.carousel2__button:hover {
  background: rgba(0, 0, 0, 0.7);
}  */

/* Indicators */
/* .carousel2__nav {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.carousel2__indicator {
  background-color: #ccc;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  cursor: pointer;
}

.carousel2__indicator--active {
  background-color: #333;
} */

/* Solve the problem by putting all of the door images inside the image-container class */
/* .carousel__image-container img {
  width: 500px;
  height: 500px;
  object-fit: cover;
} */
/* Image Carousel */
/* .carousel {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  height: 530px;
  width: 500px;
  overflow: hidden;
  margin: auto; */
/* margin: auto will center the carousel */
/* } */

/* .carousel__image-container {
  display: flex;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

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

.carousel__btn {
  background-color: var(--quarternary-color);
  color: #fff;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 49.5%;
}

.carousel__btn:hover {
  opacity: 0.9;
}

.carousel__btn:focus {
  outline: none;
} */

/* Solution 2  */
/* .carousel {
  position: relative;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  height: 530px;
  width: 500px;
  overflow: hidden;
  margin: auto; */
/* margin: auto will center the carousel */
/* } */

/* .image-container {
  display: flex;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
} */

/* .image-container img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
} */

/* .buttons-container {
  display: flex;
  justify-content: space-between;
} */

/* .buttons-container .btn {
  background-color: var(--quarternary-color);
  color: #fff;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: 49.5%;
} */

/* .buttons-container .btn:hover {
  opacity: 0.9;
} */

/* .buttons-container .btn:focus {
  outline: none;
} */

/* Section 3 Grid */
.archives__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.archives__grid-item-text-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.archives__grid-item-text-description {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.archives img {
  width: 50%;
  border-radius: 10px;
}

/*  */
/* FAQ */
.faq {
  padding: 6rem 2rem 6rem;
  background: var(--secondary-color);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #000;
}

.faq__question {
  background-color: var(--quarternary-color);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  margin: 1rem 0;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  color: #fff;
}

.faq__title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-align: center;
}

.faq__question--question {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.faq__text {
  display: none;
  max-width: 100%;
  margin: 1rem auto 1rem;
}

.faq__question.active .faq__text {
  display: block;
}

.faq-toggle {
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
  margin: 0 0 1rem 1rem;
  position: absolute;
  border-top-style: 20px;
  right: 20px;
  height: 30px;
  width: 30px;
}

.faq-toggle:focus {
  outline: 0;
}

.faq-toggle .fa-times {
  display: none;
}

.faq__question.active .faq-toggle .fa-times {
  color: #000;
  display: block;
}

.faq__question.active .faq-toggle .fa-chevron-down {
  display: none;
}
/*  */
/* Footer */
.footer {
  padding: 4rem 2rem;
  background: var(--tertiary-color);
  color: #fff;
  font-size: 0.9rem;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: var(--quarternary-color);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  align-items: center;
  gap: 6rem;
}

.footer__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer__description {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Contact Page */
/* Inner Header */
.inner-header {
  /* background: var(--quarternary-color); */
  background: #00abe4;
  color: #fff;
  height: 300px;
  padding-top: 8rem;
}

.inner-header h1 {
  font-size: 2.3rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.inner-header p {
  margin-bottom: 2rem;
}

.inner-header__p--primary {
  /* color: var(--tertiary-color); */
  color: #000;
}

/* Contact Form */
.contact-form p {
  margin-bottom: 1rem;
}

.contact-form h2 {
  color: #000;
  font-weight: 400;
  margin: 2rem auto;
}

.contact-form a {
  color: var(--quarternary-color);
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  font-family: inherit;
  display: block;
  padding: 1.2rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: medium;
  margin: 1.5rem 0;
  width: 100%;
}

.contact-form textarea {
  height: 200px;
}

.contact-check {
  margin: 1rem 0 2rem;
}

.contact-form .btn {
  display: block;
  margin: 0 auto;
  width: 100%;
  font-size: inherit;
  font-family: inherit;
  padding: 1rem;
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem;
  /* background-color: var(--tertiary-color); */
}

.contact__social a {
  color: var(--tertiary-color);
}
.contact__social a:hover {
  color: var(--quarternary-color);
}

/* Media Queries */
/* Screens less than 992px */
@media screen and (max-width: 992px) {
  /* Navbar MedQu */
  .navbar {
    background: var(--quarternary-color);
  }

  .navbar__menu {
    display: none;
  }

  .navbar__mobile-menu {
    display: block;
  }

  .navbar__mobile-menu-toggle {
    display: block;
    padding: 10px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .announcement__grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    max-width: 320px;
  }

  .responsive-form-container {
    padding-top: 100%;
  }

  .schedule__grid {
    grid-template-columns: 1fr;
  }

  .archives__grid {
    grid-template-columns: 1fr;
  }

  .footer {
    font-size: 1rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    max-width: 600px;
  }

  .inner-header {
    padding-top: 6rem;
  }
}
