@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quando&family=Roboto+Slab:wght@100..900&display=swap");
:root {
  --primary-color: #121a57;
  --orange-color: #ffa500;
  --gray-color: #666667;
  --yellow-color: #ffff00;
  --whitesmoke-color: #fafafa;
  --whitegray-color: #d0c6c6;
  --blue-color: #2c7de7;
  --transition-speed: 0.5s;
  --transition-timing: ease;
}

/* Utility Classes */
.font-quando {
  font-family: "Quando", serif;
}
.font-roboto {
  font-family: "Roboto Slab", serif;
}
* {
  font-family: "Poppins", sans-serif;
}
.bg-gray-color {
  background-color: var(--gray-color) !important;
}
.bg-primary-color {
  background-color: var(--primary-color) !important;
}
.bg-whitesmoke-color {
  background-color: var(--whitesmoke-color) !important;
}
.bg-whitegray-color {
  background-color: var(--whitegray-color) !important;
}
.text-outline {
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}
.text-primary-color {
  color: var(--primary-color) !important;
}
.text-yellow {
  color: var(--yellow-color) !important;
}
.text-orange {
  color: var(--orange-color) !important;
}
.text-gray {
  color: var(--gray-color) !important;
}
.text-justify {
  text-align: justify !important;
}
.text-sm {
  font-size: 14px !important;
}
.text-xs {
  font-size: 12px !important;
}
.drop-shadow {
  box-shadow:
    0px 4px 8px 0px #0000000f,
    0px 0px 4px 0px #0000000a !important;
}
.border-b {
  border-bottom: 5px solid var(--primary-color) !important;
}
.border-left {
  border-left: 7px solid var(--primary-color) !important;
}
.line-clamp-4 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 4;
}
.lh-md {
  line-height: 1.7 !important;
}

.ol ol {
  margin-bottom: 0;
  padding-left: 1rem;
}
.ol ol li:not(:last-child) {
  margin-bottom: 0.5rem;
}
/* --- Gallery Item --- */

.zoom-in {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.zoom-in > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) var(--transition-timing);
}

/* The dark overlay that appears on hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;

  transition:
    opacity var(--transition-speed) var(--transition-timing),
    visibility var(--transition-speed) var(--transition-timing);
}

/* The expand icon inside the overlay */
.expand {
  width: 45px;
  height: 45px;
  transform: scale(0);
  transition: transform var(--transition-speed) var(--transition-timing);
}

/* The title text */
.gallery-title {
  position: absolute;
  z-index: 2;
  bottom: -100%;
  left: 0;

  width: 100%;
  text-align: center;
  color: white;
  opacity: 0;
  transition:
    bottom 0.3s var(--transition-timing),
    opacity 0.3s var(--transition-timing);
}

/* --- Hover States --- */

.zoom-in:hover > img {
  transform: scale(1.4);
}

.zoom-in:hover .gallery-overlay {
  opacity: 0.6;
  visibility: visible;
}

.zoom-in:hover .expand {
  transform: scale(1);
}

.zoom-in:hover .gallery-title {
  bottom: 4px;
  opacity: 1;
}

/* --- Modal Container --- */
.modal-container {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.9;
}
.modal-box {
  background-color: white;
  border: 1px solid black;
  border-radius: 5px;
  width: 100%;
  max-width: 900px;
  height: auto;
  z-index: 4;
}

/* Header Styles */
header {
  background-size: cover;
  background-position: 30% 30%;
  background-repeat: no-repeat;
}
.nav-link-container {
  width: 100%;
}

.nav-item {
  border-bottom: 5px solid transparent;
  width: max-content;
}
.nav-item.active {
  border-bottom: 5px solid var(--primary-color);
}
.nav-item:hover {
  border-bottom: 5px solid var(--primary-color);
}
.nav-item:hover .nav-link {
  color: var(--primary-color) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  height: 45px !important;
}

/* Home Page Styles */
.carousel-item {
  position: relative;
}
.carousel-item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
.slider-image {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  height: auto;
  max-height: 700px;
}

.church-time {
  width: 100%;
  background-color: white;
  border-radius: 15px;
}
.church-time ul li {
  position: relative;
  padding-left: 32px;
  font-size: 18px;
}
.church-time ul li img {
  position: absolute;
  left: 0;
  top: 0;
}
.btn:hover {
  background-color: black !important;
}

.pastor-note {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}
.pastor-note::before {
  content: "";
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.85;
  z-index: 2;
}
.pastor-note ol li::marker {
  color: var(--primary-color) !important;
  font-weight: 700;
}
.blessing img {
  width: 90px;
}
/* About Us Page Styles */

.banner-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.banner-image::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  opacity: 0.7;
  z-index: 1;
}
/* Leadership Page Styles */
.member img {
  aspect-ratio: 1/1.3;
}

/* Activites Page Styles */
.card {
  box-shadow:
    0px 4px 8px 0px #0000000f,
    0px 0px 4px 0px #0000000a;
  height: 100% !important;
  display: flex;
  flex-direction: column;
}

.activity-card div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.activity-card div h5 {
  flex-grow: 1;
}
.activity-card div div {
  overflow: hidden;
}
.activity-card div div img {
  aspect-ratio: 1 / 0.6;
  width: 100%;
  object-fit: cover;
  transition: 0.5s ease all;
}
.activity-card div div img:hover {
  transform: scale(1.3);
  filter: brightness(40%);
}
.see-more-btn {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: black;
  background-color: var(--whitesmoke-color);
  padding: 5px 0;
  text-align: center;
  border-radius: 5px;
}

.btn-text {
  padding-bottom: 8px;
  position: relative;
}
.btn-text::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--blue-color);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: all 0.3s ease-out;
}
.see-more-btn:hover {
  color: var(--blue-color) !important;
}
.see-more-btn:hover .btn-text svg path {
  fill: var(--blue-color) !important;
}

.see-more-btn:hover .btn-text::after {
  width: 100%;
}
.can-join {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  position: relative;
}
.can-join::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  background-color: #121a57cc;
  z-index: 1;
}

.activity-detail img {
  aspect-ratio: 1 / 0.7;
}
.google-map iframe {
  width: 100%;
  height: 100%;
}
.custom-branch-dropdown .dropdown-item {
  background-color: transparent;
  color: #121a57 !important;
}
.custom-branch-dropdown .dropdown-item.sub-menu:hover {
  color: #fff !important;
  background-color: #121a57 !important;
}

.custom-branch-dropdown .dropdown-item.current-branch,
.custom-branch-dropdown .dropdown-item.current-branch:hover,
.custom-branch-dropdown .dropdown-item.current-branch:focus {
  color: #fff !important;
  background-color: #121a57 !important;
}

/* Media queries */
@media screen and (min-width: 768px) {
  .church-time-container {
    position: relative;
    height: 140px;
  }
  .church-time {
    width: 80%;
    margin: 0 auto;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .blessing img {
    width: 120px;
  }
}

@media screen and (min-width: 1024px) {
  .church-time {
    width: 820px;
  }
  .blessing h4 {
    width: 80% !important;
    margin: 0 auto;
  }
  .blessing img {
    width: auto;
  }
}

@media screen and (min-width: 1440px) {
  .nav-link-container {
    width: 75%;
  }
}
