/* Import Advent Sans Font */
@font-face {
  font-family: 'Advent Sans';
  src: url('../AdventSans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Advent Sans', sans-serif;
}

body {
  background-color: #f0f0f0;
  overflow-y: auto;
}

#sub-header {
  height: 5.25rem;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    linear-gradient(45deg, #5170ff, #ff66c4 62%);
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  height: 85px;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.15);
  /* Slight transparency */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.sticky-header.scrolled {
  opacity: 0.95;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    linear-gradient(45deg, #5170ff, #ff66c4 62%);
  padding: 1rem 2rem;
  color: white;
  width: 100%;
}

.navbar .logo img {
  display: flex;
  height: 50px;
  width: auto;
}

/* Hamburger Icon Styles */
.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  /* Hidden by default */
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f39c12;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 10vh;
  overflow: hidden;

}

.hero-video,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-video {
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-image {
  top: 0;
  left: 0;
  z-index: 0;
}

.overlay {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.45s ease;
}

.overlay:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.active-overlay {
  background-color: rgba(0, 0, 0, 0.35);
  border: solid;
  border-color: rgb(215, 170, 97);
}

/* Menu Popup Styling */
.menu {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: none;
  z-index: 15;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -30%);
  width: 30vw;
  max-width: 90%;
  min-width: 200px;
}

/* Menu Tabs */
.menu .tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.menu .tabs button {
  flex: 1;
  padding: 5px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 5px;
}

.menu .tabs button.active {
  background: #1D4974;
  color: white;
  border-color: #1D4974;
}

/* Menu Table */
.menu table {
  width: 100%;
  border-collapse: collapse;
}

.menu th,
.menu td {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: left;
}

.menu .no-events {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* Close Button */
.close-btn {
  display: block;
  margin-left: auto;
  background-color: transparent;
  color: #f44336;
  border-radius: 50%;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  border: transparent;
}

/* Video Section Styling */
.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: #000000;
}

.video-wrapper {
  max-width: 80%;
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
.footer {
  background-color: #1D4974;
  color: white;
  padding: 1rem;
  text-align: center;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0.5rem 0;
}

.footer .social-links a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 5px;
}

.footer .social-links a:hover {
  text-decoration: underline;
}

/* Tab Container Styles */
.tabs-container {
  margin-top: 100px;
  max-width: 800px;
  margin: 2rem auto;
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tabs Styles */
.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  border: 1px solid #ddd;
  background-color: #f0f0f0;
  border-radius: 5px 5px 0 0;
}

.tab.active {
  background-color: #1D4974;
  color: white;
  border-color: #1D4974;
}

/* Tab Content Styles */
.tab-content {
  display: none;
}

.tab-content h2 {
  text-align: center;
  color: #1D4974;
}

/* Responsive Design */
@media (max-width: 820px) {
  .hamburger {
    display: block;
    /* Show hamburger icon */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 1rem 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .sticky-header {
    height: 55px;
  }

  .navbar .logo img {
    height: 1.5em;
  }

  #sub-header {
    height: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
    /* Disable video for reduced-motion preferences */
  }

  .hero-image {
    display: block;
  }
}