:root {
  /* desktop spacing */
  --hero-top-pad: 8rem;   /* space for the header.webp at top of hero */
  --hero-gap: 5rem;       /* space between header image and video */
}

/* RESET-ish */
body {
  background: #000;
  color: #fff;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* GLOBAL LINKS */
a {
  color: #e2af00;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
  color: #ffd84d; /* lighter gold on hover */
  text-decoration: none;
}


/* ========== HERO (with header inside) ========== */
.hero.hero--with-header {
  position: relative;
  min-height: 100vh;
  background: url("../images/theater.jpg") center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--hero-top-pad);
  padding-bottom: 3rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.7) 75%,
    rgba(0,0,0,0.9) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* header image at the very top of the hero */
.hero-header-wrap {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(1140px, 94vw);
  text-align: center;
}

.header-graphic {
  width: 100%;
  height: auto;
  display: inline-block;
}

/* content under header image (video) */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
  margin-top: var(--hero-gap);
}

/* VIDEO WRAPPER */
.hero-video-wrapper {
  position: relative;
  display: inline-block;
  width: min(62vw, 780px);
  aspect-ratio: 16 / 9;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  background: #000;
  margin: 0 auto; /* keep centered even with .my-4 */
}

/* make the video fill the wrapper */
.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== BOOK SECTION ========== */
.book-section {
  background: #04070d;
  padding: 4rem 0;
}

.book-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 3rem 2.5rem;
  margin-bottom: 3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.book-cover {
  max-width: 240px;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.book-cover:hover {
  transform: scale(1.03);
}

.book-title {
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.book-text {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* BOOK BUTTON */
.btn-jmg {
  background-color: #0a1633;
  color: #ffffff;
  border: none;
  padding: 0.9rem 2.3rem;
  border-radius: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-jmg:hover,
.btn-jmg:focus {
  background-color: #1e4ad7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 74, 215, 0.5);
}

.btn-jmg:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* ========== ABOUT / MEET JOSEPH ========== */
.about-section {
  background: #000;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 2rem;
}

.about-photo {
  max-width: 230px;
  border-radius: 0.35rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.about-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.about-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: #e2af00;
  border-bottom: 1px solid rgba(226,175,0,0.4);
  padding-bottom: 0.15rem;
  transition: color .2s ease, border .2s ease;
}

.about-link:hover {
  color: #ffd84d;
  border-color: #ffd84d;
}


/* ========== MAIN CONTENT / COMPONENT ========== */
.main-section {
  background: #000;
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.main-section h1,
.main-section h2,
.main-section h3,
.main-section h4,
.main-section h5,
.main-section h6 {
  color: #fff;
  font-weight: 600;
}

.main-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.main-section a {
  color: #e2af00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-section a:hover {
  color: #ffd84d;
}

.main-section img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  margin: 1rem 0;
}

/* --- Joomla blog/article spacing --- */
.main-section .blog .items-leading > div,
.main-section .blog .items-row > div,
.main-section article.item,
.main-section .item-page {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 0.35rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

/* if your template outputs .com-content-blog */
.main-section .com-content-blog__item,
.main-section .com-content-article {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 0.35rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

/* PAGINATION fix */
.main-section .pagination {
  margin-top: 2.5rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.main-section .pagination .page-link,
.main-section .pagination li a,
.main-section .pagination li span {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.main-section .pagination .active > a,
.main-section .pagination .active > span,
.main-section .pagination .page-item.active .page-link {
  background: #1e4ad7;
  border-color: #1e4ad7;
  color: #fff;
}

.main-section .pagination .page-link:hover {
  background: rgba(30,74,215,0.3);
  border-color: rgba(30,74,215,0.6);
}

/* ========== FOOTER ========== */
.footer-section {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.9rem;
}

.footer-text {
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
}

.footer-center {
  color: rgba(255,255,255,0.9);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* make it match your narrow screenshot look */
.footer-section .container {
  max-width: 1180px;
}

/* mobile footer */
@media (max-width: 768px) {
  #site-footer {
    text-align: center;
  }
  #site-footer .text-md-end,
  #site-footer .text-md-center {
    text-align: center !important;
  }
  .footer-section {
    padding-bottom: 3rem;
  }
  .footer-text,
  .footer-center {
    font-size: 0.85rem;
  }
}

/* ========== VIDEO MUTE BUTTON BELOW VIDEO ========== */
.mute-btn-wrap {
  text-align: center;
  margin-top: 1rem;
}

.mute-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(2px);
}

.mute-btn:hover {
  background: rgba(30, 74, 215, 0.8);
  transform: scale(1.05);
}

.mute-btn i {
  font-size: 1rem;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .mute-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
  .mute-btn-wrap {
    margin-top: 0.75rem;
  }
}


/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  :root {
    --hero-top-pad: 6.5rem;
    --hero-gap: 3.8rem;
  }

  .hero.hero--with-header {
    background-attachment: scroll;
  }

  .hero-video-wrapper {
    width: min(88vw, 720px);
  }

  .book-card {
    padding: 2.5rem 1.75rem;
  }

  .about-photo {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --hero-top-pad: 5.2rem;
    --hero-gap: 2.8rem;
  }

  .hero.hero--with-header {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .hero-header-wrap {
    top: 1rem;
    width: 94vw;
  }

  .hero-video-wrapper {
    width: 94vw;
    border-width: 2px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
  }

  .mute-btn {
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }

  .book-card {
    text-align: center;
    padding: 2rem 1.25rem;
  }

  .book-cover {
    max-width: 180px;
    margin: 0 auto 1.25rem;
  }

  .about-section {
    text-align: center;
  }

  .about-photo {
    margin: 0 auto 1.5rem;
    max-width: 200px;
  }

  .main-section .blog .items-leading > div,
  .main-section .blog .items-row > div,
  .main-section article.item,
  .main-section .item-page,
  .main-section .com-content-blog__item {
    padding: 1.35rem 1.05rem;
  }
}

@media (max-width: 480px) {
  :root {
    --hero-top-pad: 4.4rem;
    --hero-gap: 2.2rem;
  }

  .hero-header-wrap {
    top: 0.6rem;
  }

  .hero-video-wrapper {
    width: 96vw;
  }

  .main-section .pagination {
    gap: .3rem;
  }
}
