/* styles.css – complete styling for church template */

:root {
  /* deep blue header/nav, sandy page bg, lighter blue accent */
  --color-primary: #112733;
  --color-secondary: #f9f1e0;
  --color-accent: #4a79d1;
  --link-hover: #ffecc2;
  --font-body: "Noto Serif", serif;
}

/* 0) Global settings */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body) !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 1) Main grows and gets sandy background */
main {
  flex: 1;
  background-color: var(--color-secondary);
  color: #333333;
}

.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-secondary);
}

/* 2) Navbar / Header */
header,
.navbar {
  background-color: var(--color-primary) !important;
}
.navbar {
  font-size: 1.8rem;
}
.navbar-brand img {
  height: auto;
  width: auto;
  max-height: 125px;
  max-width: 100%;
  margin: 0 10px;
}
.navbar-nav .nav-link {
  font-size: 75%;
  padding: 0 25px;
  color: var(--color-secondary) !important;
}
.navbar-nav .nav-link:hover {
  color: var(--link-hover) !important;
}

/* 3) Buttons */
.btn-primary,
.sermon-btn {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff;
}

.custom-navbar-toggler {
  filter: invert(1);
  margin-right: 10px;
}

/* 4) Footer */
footer {
  margin-top: auto;
  background-color: var(--color-primary);
  color: #ffffff !important;
}
footer .footer-item,
footer p,
footer a {
  color: #ffffff !important;
  text-decoration: none;
}
footer .footer-item:hover,
footer a:hover {
  color: var(--color-accent) !important;
  text-decoration: underline;
}

@media (max-width: 767px) {
  footer {
    text-align: center;
  }

  footer .footer-item,
  footer p,
  footer a {
    display: block;
    margin: 5px 0;
  }
}

/* 5) Utility spacing */
.tiny-space {
  padding-bottom: 2%;
}
.mini-space {
  padding-bottom: 3%;
}
.small-space {
  padding-bottom: 5%;
}

/* 6) Text styles */
.index-header {
  text-align: center;
}
.index-text {
  font-weight: 500;
  color: lightslategrey;
  font-size: 1.5rem;
}

.index-title {
  font-size: 2.5rem; /* Adjust size as needed */
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.index-subtitle {
  font-size: 1.5rem; /* Adjust size as needed */
  font-weight: 500;
  color: #555;
  margin-top: 0.5rem;
}

.map-title {
  font-size: 2rem;
  font-weight: bold;
}

/* 7) Slideshow */
.slideshow-container {
  width: 100%;
  min-height: 500px;
  position: relative;
  margin: auto;
  background-color: var(--color-secondary);
  filter: brightness(95%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-container img {
  max-width: 90%; /* Wider than current layout */
  max-height: 800px; /* Taller for desktop */
  object-fit: contain;
  display: block;
  margin: auto;
  background-color: var(--color-secondary);
}

@media (max-width: 767px) {
  .slideshow-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto !important;
  }
}

.mySlides {
  display: none;
}
.numbertext,
.text {
  color: #f2f2f2;
  padding: 8px 12px;
  position: absolute;
  width: 100%;
  text-align: center;
}
.numbertext {
  top: 0;
  font-size: 12px;
}
.text {
  bottom: 8px;
  font-size: 15px;
}
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  margin-top: -22px;
  padding: 16px;
  font-weight: bold;
  font-size: 18px;
  user-select: none;
  transition: 0.6s ease;
  border-radius: 3px;
  color: #ffffff;
}
.prev {
  left: 0;
}
.next {
  right: 0;
}
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active,
.dot:hover {
  background-color: #717171;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* 8) Facebook button */
/* From Uiverse.io by Yaya12085 */
a.facebook-button {
  background: transparent;
  position: relative;
  z-index: 10;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #0163e0;
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: #0163e0;
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}

a.facebook-button svg {
  fill: #0163e0;
  height: 25px;
  width: 25px;
}

a.facebook-button span {
  margin: 10px;
}

a.facebook-button::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

a.facebook-button:hover {
  color: #fff;
  border: 1px solid #0163e0;
}

a.facebook-button:hover svg {
  fill: currentColor;
}

a.facebook-button:hover::before {
  box-shadow: inset 0 0 0 10em #0163e0;
}

a.donate-button {
  background: transparent;
  position: relative;
  z-index: 10;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: var(--color-primary);
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}

a.donate-button svg {
  fill: var(--color-primary);
  height: 25px;
  width: 25px;
  transition: fill 0.3s ease-out;
}

a.donate-button span {
  margin: 10px;
}

a.donate-button::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

a.donate-button:hover {
  color: #fff;
  border: 1px solid var(--color-primary);
}

a.donate-button:hover svg {
  fill: currentColor;
}

a.donate-button:hover::before {
  box-shadow: inset 0 0 0 10em var(--color-primary);
}

a.donate-button svg {
  stroke: currentColor;
  fill: none;
  height: 25px;
  width: 25px;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

a.donate-button:hover svg {
  stroke: #fff;
  fill: none;
}

/* 9) Hide media sections by default */
.video-section,
.audio-section {
  display: none;
}

/* 10) Responsive video sizing */
@media only screen and (min-width: 1200px) {
  .sermon-video {
    width: 1170px;
    height: 658px;
  }
}

/* 11) About section */
.about-section {
  width: 100%;
}
.about-section-content p {
  padding: 10px 0;
}

/* 12) Mobile fixes */
@media (max-width: 767px) {
  .navbar-brand img {
    max-height: 80px;
    height: auto;
    width: auto;
  }

  .slideshow-container img,
  .sermon-video,
  video {
    width: 100% !important;
    height: auto !important;
  }

  .tiny-space,
  .mini-space,
  .small-space {
    padding-bottom: 2%;
  }
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.map-container {
  width: 100%;
  max-width: 75%;
  height: 400px; /* Desktop height */
  margin: 0 auto;
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

gmp-map {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 800px) {
  .map-container {
    height: 300px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

/* 13) Gallery Modal Styling */

.gallery-modal {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 39, 51, 0.95);
  padding-top: 60px;
}

.gallery-modal.show {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.gallery-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus {
  color: var(--color-accent);
  text-decoration: none;
}

@media only screen and (max-width: 600px) {
  .gallery-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }

  .gallery-modal-content {
    max-width: 95%;
    max-height: 75vh;
  }

  .gallery-modal-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

.slideshow-container .mySlides img {
  cursor: pointer;
  transition: transform 0.3s;
}

.slideshow-container .mySlides img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
