/*
Theme Name: Oberaargauer Brass Band
Description: A bright, elegant, modern theme for the Oberaargauer Brass Band.
Version: 1.1
*/

:root {
  --color-dark-navy: #0B132B;
  --color-navy: #1C2541;
  --color-gold: #eccf47;
  --color-gold-light: #eccf47;
  --color-red: #ce1719;
  --color-white: #FFFFFF;
  --color-text-dark: #2c3e50;
  --color-bg-light: #faf8f5;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 3px solid var(--color-gold);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 5%;
}

.nav-brand img {
  max-height: 35px;
  width: auto;
  display: block;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-brand img {
  max-height: 55px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-dark-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links>li>a .nav-text {
  position: relative;
  display: inline-block;
}

.nav-links>li>a .nav-text:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links>li>a:hover,
.nav-links>li.current-menu-item>a,
.nav-links>li.current_page_item>a,
.nav-links>li.current-menu-ancestor>a,
.nav-links>li.current_page_ancestor>a {
  color: var(--color-red);
}

.nav-links>li>a:hover .nav-text:after,
.nav-links>li.current-menu-item>a .nav-text:after,
.nav-links>li.current_page_item>a .nav-text:after,
.nav-links>li.current-menu-ancestor>a .nav-text:after,
.nav-links>li.current_page_ancestor>a .nav-text:after {
  width: 100%;
}

/* Submenu Support - Desktop */
.nav-links li {
  position: relative;
}

.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 240px;
  list-style: none;
  padding: 0.8rem;
  box-shadow: 0 20px 40px rgba(11, 19, 43, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1000;
}

.nav-links .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  z-index: -1;
}

.nav-links li:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-links .sub-menu li {
  margin: 0;
  width: 100%;
}

.nav-links .sub-menu li a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  text-transform: none;
  font-weight: 500;
  color: var(--color-text-dark);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links .sub-menu li a:after {
  display: none;
}

.nav-links .sub-menu li a:before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  border-radius: 50%;
  margin-right: 10px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.nav-links .sub-menu li a:hover {
  background: rgba(28, 37, 65, 0.04);
  color: var(--color-navy);
  padding-left: 1.5rem;
}

.nav-links .sub-menu li a:hover:before {
  opacity: 1;
  transform: scale(1);
}

/* Submenu Arrow Toggle SVG */
.nav-links li.menu-item-has-children>a::before {
  display: none;
}

.submenu-toggle {
  background: none;
  border: none;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  padding: 2px;
  border-radius: 4px;
  transition: all 0.2s;
}

.submenu-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.nav-links li.menu-item-has-children:hover .submenu-toggle svg {
  transform: rotate(180deg);
}

/* Burger Menu for Mobile */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--color-dark-navy);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 5% 80px 5%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/bg.png');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Bright, happy overlay that transitions into the background color */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(250, 248, 245, 0.95) 80%, var(--color-bg-light) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  animation: fadeIn 1.5s ease-out forwards;
}

.hero-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(11, 19, 43, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--color-dark-navy);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-title .title-sub {
  font-size: 0.5em;
  font-weight: 700;
  display: block;
  margin-top: 10px;
  color: var(--color-red);
  text-transform: none;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  font-weight: 500;
  text-wrap: balance;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-red);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  border-radius: 50px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(206, 23, 25, 0.3);
}

.btn-primary:hover {
  background: #a61214;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(206, 23, 25, 0.4);
}

/* Subpage Template Styles */
.page-content {
  padding: 100px 0 80px 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 100px);
}

@media screen and (max-width: 1210px) {
  .page-content {
  	padding: 100px 5% 80px 5%;
  }
}

.page-content h1 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: 2rem;
  font-size: 3rem;
}

.page-content h2,
.page-content h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Rich Text Content Formatting */
.content-body::after {
  content: "";
  display: table;
  clear: both;
}

.content-body figure.wp-block-image {
  margin: 0 0 2rem 0;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(11, 19, 43, 0.08);
  overflow: hidden;
  border: 4px solid var(--color-white);
}

/* Remove chunky styling for edge-to-edge full width images */
.content-body figure.wp-block-image.alignfull {
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.content-body img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.content-body .wp-block-image:hover img,
.content-body figure:hover img {
  transform: scale(1.03);
}

/* Lead paragraph styling */
.content-body>p:first-of-type {
  font-size: 1.2rem;
  color: var(--color-navy);
  font-weight: 500;
  line-height: 1.7;
}

@media screen and (min-width: 768px) {

  /* Restrict this 2-column grid layout strictly to the Dirigent page */
  .page-dirigent .content-body:has(figure:first-child),
  .page-dirigent .content-body:has(.wp-block-image:first-child) {
    display: grid;
    grid-template-columns: 260px 1fr;
	gap: 0 2.5rem;
    align-items: center;
  }

  .page-dirigent .content-body:has(figure:first-child) figure,
  .page-dirigent .content-body:has(.wp-block-image:first-child) .wp-block-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0;
    max-width: 100%;
	margin: 0 0 2rem 0;
  }

  /* Place the paragraph next to the image */
  .page-dirigent .content-body:has(figure:first-child)>*:nth-child(2),
  .page-dirigent .content-body:has(.wp-block-image:first-child)>*:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0;
  }

  /* Force the remaining paragraphs below */
  .page-dirigent .content-body:has(figure:first-child)>*:nth-child(n+3),
  .page-dirigent .content-body:has(.wp-block-image:first-child)>*:nth-child(n+3) {
    grid-column: 1 / -1;
  }
}

/* Besetzung Page Layout */
.besetzung-container {
  margin-top: 3.5rem;
}

.besetzung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Tablet */
@media (max-width: 1200px) {
  .besetzung-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .besetzung-grid {
    grid-template-columns: 1fr;
  }
}

.register-group {
  background: var(--color-white);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(11, 19, 43, 0.04);
  border-top: 4px solid var(--color-gold);
  transition: transform 0.3s ease;
}

.register-group:hover {
  transform: translateY(-5px);
}

.register-title {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-text-dark);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.member-name {
  font-weight: 500;
}

.member-role {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-style: italic;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
  margin-left: 10px;
}

.member-list li:last-child {
  border-bottom: none;
}

.no-members {
  text-align: center;
  font-style: italic;
  color: #666;
  margin: 3rem 0;
}

/* Vacancies & CTA Box */
.vacancies-cta-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 19, 43, 0.08);
  margin-top: 4rem;
}

@media screen and (min-width: 800px) {
  .vacancies-cta-box {
    grid-template-columns: 1fr 1.2fr;
  }
}

.vacancies-section {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vacancies-section h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.vakanzen-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vakanzen-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 1.1rem;
}

.vakanzen-list li::before {
  content: '•';
  color: var(--color-red);
  font-size: 1.8rem;
  position: absolute;
  left: 0;
  top: -6px;
}

.mitspielen-cta {
  padding: 3.5rem 3rem;
  background: var(--color-dark-navy);
  color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mitspielen-cta .cta-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mitspielen-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 90%;
}

.btn-cta {
  background: var(--color-gold);
  color: var(--color-dark-navy);
  box-shadow: 0 10px 20px rgba(236, 207, 71, 0.15);
}

.btn-cta:hover {
  background: #f5da57;
  color: var(--color-dark-navy);
  box-shadow: 0 15px 30px rgba(236, 207, 71, 0.3);
  transform: translateY(-4px);
}

/* Sponsoren Page Layout */
.sponsor-cta-box {
  background: var(--color-dark-navy);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(11, 19, 43, 0.08);
  margin-top: 5rem;
}

.sponsoren-container {
  margin-top: 2rem;
}

.sponsor-tier-group {
  margin-bottom: 5rem;
}

.sponsor-tier-title {
  font-family: var(--font-heading);
  color: var(--color-red);
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0.8rem;
}

.sponsor-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(11, 19, 43, 0.04);
  transition: transform 0.3s ease;
}

.sponsor-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(11, 19, 43, 0.08);
}

a.sponsor-item {
  text-decoration: none;
  cursor: pointer;
}

a.sponsor-item.is-clickable:hover {
  opacity: 1;
  /* override generic a tag hover */
}

a.sponsor-item.is-clickable:hover .sponsor-name {
  color: var(--color-red);
  transition: color 0.3s ease;
}

.sponsor-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  flex: 1;
}

.sponsor-logo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.sponsor-logo img {
  max-height: 90px;
  max-width: 250px;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-logo a:hover img {
  transform: scale(1.05);
}

/* Hauptsponsor Styling (Bigger logo & featured layout) */
.is-hauptsponsor .sponsor-item {
  padding: 3.5rem;
  background: linear-gradient(to right, var(--color-white), rgba(255, 255, 255, 0.7));
  border-left: 6px solid var(--color-gold);
}

.is-hauptsponsor .sponsor-name {
  font-size: 2rem;
}

.is-hauptsponsor .sponsor-logo img {
  max-height: 160px;
  max-width: 450px;
}

/* History Timeline Floating Bottom Nav */
.history-timeline {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 250px;
  max-width: 90vw;
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 15px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: flex !important;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.history-timeline.hide-timeline {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(30px);
}

@media (max-width: 1024px) {
  .history-timeline {
    display: none !important;
    /* Hide on mobile/tablet as requested */
  }
}

.history-timeline ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

.history-timeline ul::-webkit-scrollbar {
  display: none;
}

.history-timeline li {
  margin-bottom: 0;
  padding: 0;
  white-space: nowrap;
}

.history-timeline li::before {
  display: none !important;
}

.history-timeline a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-align: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
}

.history-timeline a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.history-timeline a.active {
  color: var(--color-dark-navy);
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}



@media (max-width: 768px) {
  .sponsor-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .sponsor-logo {
    justify-content: flex-start;
    width: 100%;
  }

  .sponsor-logo img {
    max-height: 100px;
  }

  .is-hauptsponsor .sponsor-item {
    padding: 2rem;
  }
}

/* Pagination System */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.2);
}

.pagination .current {
  background: var(--color-gold);
  color: var(--color-dark-navy);
  pointer-events: none;
}

.pagination .dots {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

/* Videos Grid */
.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
}

.video-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(11, 19, 43, 0.05);
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .videos-grid {
    gap: 2rem;
  }

  .video-card {
    padding: 1rem;
    border-radius: 12px;
  }
}

.video-title {
  font-family: var(--font-heading);
  color: var(--color-red);
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Galerien Block */
.fotos-container {
  margin-top: 2rem;
}

.galerie-block {
  margin-bottom: 5rem;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(11, 19, 43, 0.05);
}

@media (max-width: 768px) {
  .fotos-container {
    margin-top: 0.5rem;
  }

  .galerie-block {
    margin-bottom: 3rem;
    padding: 1.25rem;
    border-radius: 12px;
  }
}

.galerie-title {
  font-family: var(--font-heading);
  color: var(--color-red);
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
}

.galerie-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.galerie-content a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(227, 6, 19, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.galerie-content a:hover {
  opacity: 1;
  text-decoration-color: var(--color-red);
  background-color: rgba(227, 6, 19, 0.05);
  border-radius: 4px;
}

/* Slider & Lightbox */
.gallery-slider-wrapper {
  position: relative;
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
  padding-bottom: 2rem;
  flex: 1;
}

.gallery-slider::-webkit-scrollbar {
  height: 8px;
}

.gallery-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.gallery-slider::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

.gallery-slider::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

@media(min-width: 768px) {
  .gallery-slide {
    flex: 0 0 85%;
    /* Peek next image */
  }
}

.gallery-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  background: var(--color-light-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-btn {
  background: var(--color-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--color-navy);
}

.prev-btn {
  left: -22px;
}

.next-btn {
  right: -22px;
}

/* Fullscreen Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--color-red);
}

.lightbox-nav {
  background: transparent;
  color: white;
  border: none;
  font-size: 3.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s ease;
  z-index: 10001;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-nav:hover {
  color: var(--color-red);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Footer */
footer {
  background-color: var(--color-dark-navy);
  padding: 3rem 5%;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--color-white);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-3px);
  text-decoration: none;
}

.social-links svg {
  width: 22px;
  height: 22px;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0px;
    height: 100vh;
    top: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    /* Override desktop gap to prevent double spacing with margins */
    width: 85%;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 2rem 10% 4rem 10%;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0%);
  }

  .nav-links>li.menu-item-has-children>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links>li.menu-item-has-children>a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    transform: rotate(45deg);
    margin-left: 10px;
    opacity: 0.8;
    order: 2;
    /* Forces it to the right of the text since it's a ::before element */
  }

  .nav-links>li {
    margin-bottom: 2rem;
    width: 100%;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  /* Drilldown sliding effects */
  .nav-links.has-opened-submenu>li {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }

  .nav-links.has-opened-submenu>li.opened-submenu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    position: static;
  }

  /* Hide the active parent link to replace with the back button */
  .nav-links>li.opened-submenu>a {
    display: none;
  }

  .nav-links .sub-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: none;
  }

  .nav-links .sub-menu::before {
    display: none;
  }

  .nav-links>li.opened-submenu>.sub-menu {
    display: block;
    animation: slideInRight 0.3s forwards ease-in-out;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .nav-links .sub-menu li {
    margin-bottom: 2rem;
    width: 100%;
    text-align: left;
  }

  .nav-links .sub-menu li a {
    display: inline-block;
    padding: 0;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 0;
    margin: 0;

    /* Identical to top level styles */
    color: var(--color-dark-navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
  }

  .nav-links .sub-menu li a:after {
    display: block;
  }

  .nav-links .sub-menu li a:before {
    display: none !important;
  }

  .nav-links .sub-menu li a:hover,
  .nav-links .sub-menu li a:active {
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: var(--color-red);
  }

  .nav-links .sub-menu li a:hover:after {
    width: 100%;
  }

  /* Mobile Back Button */
  .drilldown-back-li {
    margin-bottom: 2rem !important;
  }

  .drilldown-back {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 0 0 1rem 0;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-red);
    cursor: pointer;
    border-bottom: 2px solid rgba(11, 19, 43, 0.08);
  }

  .submenu-toggle {
    display: none !important;
  }

  .burger {
    display: block;
  }

  /* Burger Animation */
  .burger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.active .line2 {
    opacity: 0;
  }

  .burger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   CONTACT FORM 7 STYLING
   ========================================================================== */
.wpcf7 {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(11, 19, 43, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid rgba(11, 19, 43, 0.1);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--color-navy);
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.wpcf7-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--color-navy);
  color: var(--color-gold);
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.wpcf7-submit:hover {
  background: var(--color-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(214, 40, 40, 0.2);
}

/* Response Messages */
.wpcf7-response-output {
  margin: 2rem 0 0 !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  text-align: center !important;
  border: none !important;
  font-size: 0.9rem !important;
}

.wpcf7-mail-sent-ok {
  background: #d4edda !important;
  color: #155724 !important;
}

.wpcf7-validation-errors {
  background: #f8d7da !important;
  color: #721c24 !important;
}

.wpcf7-not-valid-tip {
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .wpcf7 {
    padding: 1.5rem;
    margin: 2rem auto;
  }
}

/* ==========================================================================
   NEWS FEED STYLING
   ========================================================================== */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 3rem 0;
}

.news-item {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(11, 19, 43, 0.08);
}

.news-item.has-thumbnail {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Alternating Layout */
.news-item.has-thumbnail:nth-child(even) {
  flex-direction: row-reverse;
}

.news-featured-image {
  flex: 0 0 45%;
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: 0 15px 35px rgba(11, 19, 43, 0.08);
  transition: transform 0.3s ease;
}

.news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.news-item:hover .news-featured-image {
  transform: translateY(-3px);
}

.news-featured-image:hover img {
  transform: scale(1.03);
}

.news-body {
  flex: 1;
}

.news-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  padding-left: 10px;
  border-left: 3px solid var(--color-gold);
}

.news-title {
  margin: 0 0 1.5rem 0;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--color-navy);
}

.news-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(11, 19, 43, 0.8);
}

@media (max-width: 992px) {
  .news-item.has-thumbnail {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .news-feed {
    gap: 3rem;
    margin: 2rem 0;
  }

  .news-item {
    padding-bottom: 2rem;
  }

  .news-item.has-thumbnail,
  .news-item.has-thumbnail:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .news-featured-image {
    flex: 0 0 100%;
    width: 100%;
  }

  .news-title {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   NEXT SHOWS BANNER
   ========================================================================== */
.next-shows-banner {
  background-color: var(--color-white);
  padding: 4rem 5%;
  border-top: 1px solid rgba(11, 19, 43, 0.05);
  border-bottom: 3px solid var(--color-gold);
}

.next-shows-container {
  max-width: 1200px;
  margin: 0 auto;
}

.shows-banner-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.shows-banner-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-red);
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.show-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-bg-light);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.show-item:hover {
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(11, 19, 43, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
}

.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 70px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 10px;
  font-family: var(--font-heading);
}

.show-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.show-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.show-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--color-dark-navy);
  line-height: 1.3;
}

.show-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0 !important;
}

.show-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: rgba(206, 23, 25, 0.05);
  border: 1px solid rgba(206, 23, 25, 0.2);
  border-radius: 8px;
  color: var(--color-red);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.show-pdf-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-red);
}

.show-pdf-link:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(206, 23, 25, 0.2);
}

.show-pdf-link:hover svg {
  stroke: var(--color-white);
}

.no-shows {
  text-align: center;
  font-style: italic;
  color: #666;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .shows-grid {
    grid-template-columns: 1fr;
  }
}

.donation-qr-container {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

@media (max-width: 768px) {
	.donation-qr-container{
		flex-direction: column;
		gap: 60px;
	}
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.qr-item img {
  max-width: 140px;
  height: auto;
  border-radius: 8px;
}

.qr-item p {
	margin-bottom: -20px;
}

.wp-block-column p {
	border-radius: 12px;
}