/*
 *   FAN EXPO LAYOUT - ACCESSIBLE YELLOW THEME
 *   - High contrast for accessibility (WCAG AA compliant)
 *   - Centered Large Logo
 *   - Video Background Support
 */

:root {
  --accent-yellow: #ffd300; /* High-visibility yellow for color-blind accessibility */
  --dark-bg: #151515;
  --text-on-yellow: #000000;
  --text-light: #ffffff;
  --section-gap: 60px;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 107.6px;
}

body {
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.4;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP ANNOUNCEMENT BAR */
.promo-bar {
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* CENTERED HEADER & LOGO */
.main-header {
  background-color: var(--dark-bg);
  border-bottom: 8px solid var(--accent-yellow);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 140px;
  padding: 0 20px;
  transition: height 0.3s ease;
}

.main-header.scrolled .container {
  height: 70px;
}

.centered-logo {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.main-header.scrolled .centered-logo {
  display: none;
}

.centered-logo img {
  height: 140px; /* Large Logo - fills container height */
  width: auto;
  transition: all 0.3s ease;
}

.main-header.scrolled .centered-logo img {
  height: 60px;
}

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

.centered-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.centered-nav .nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 0;
  transition: gap 0.3s ease;
}

.main-header.scrolled .centered-nav .nav-links {
  gap: 25px;
}

.centered-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.centered-nav a:hover {
  color: var(--accent-yellow);
}

/* HAMBURGER MENU BUTTON */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
  margin-right: auto;
  z-index: 1001;
  position: relative;
  width: 28px;
  height: 24px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--accent-yellow);
  transition: all 0.4s ease;
  border-radius: 2px;
  position: absolute;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

.menu-toggle.active span:nth-child(1) {
  opacity: 0;
  transform: rotate(45deg) translateY(10px);
  top: 10px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 1;
  transform: rotate(45deg);
  top: 10px;
}

.menu-toggle.active span:nth-child(3) {
  opacity: 1;
  transform: rotate(-45deg);
  top: 10px;
}

/* CTA BUTTON IN NAV */
.nav-btn {
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow) !important;
  padding: 10px 25px;
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-btn:hover {
  background-color: #e6bc00;
  transform: translateY(-3px);
}

/* SPONSORS SECTION */
.sponsor-section {
  margin: var(--section-gap) 0;
}

.sponsor-tier-title {
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--dark-bg);
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.presenting-sponsor {
  display: flex;
  justify-content: center;
  margin-bottom: var(--section-gap);
}

.presenting-sponsor-logo {
  display: inline-block;
  max-width: 400px;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.presenting-sponsor-logo img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.presenting-sponsor-logo:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.premium-sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: var(--section-gap);
}

.premium-sponsor-logo {
  display: block;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  text-decoration: none;
}

.premium-sponsor-logo:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.premium-sponsor-logo img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.area-sponsors-container {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: var(--section-gap);
}

.area-sponsors {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  flex-grow: 1;
  min-width: 0;
}

.area-sponsor-logo {
  display: block;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 0 1 180px;
}

.area-sponsor-logo:hover {
  border-color: var(--accent-yellow);
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.area-sponsor-logo img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.sponsor-nav-btn {
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  border: none;
  padding: 10px 15px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  flex-shrink: 0;
}

.sponsor-nav-btn:hover {
  background-color: #e6bc00;
  transform: scale(1.1);
}

/* HERO SECTION WITH VIDEO */
.hero {
  position: relative;
  height: 75vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay for text readability */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.9;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--accent-yellow);
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  padding: 18px 45px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 4px;
  margin-top: 25px;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

/* COUNTDOWN AND TICKET SECTION */
.ticket-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.countdown-container {
  margin-top: 25px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  align-items: center;
  justify-items: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-yellow);
  line-height: 1;
  min-width: 80px;
  text-align: center;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* CONTENT SECTIONS */
.section-header {
  font-size: 2.2rem;
  margin: var(--section-gap) 0 30px;
  padding-left: 20px;
  border-left: 15px solid var(--accent-yellow); /* Bold visual cue */
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -1px;
}

/* SPECIAL GUESTS SECTION */
#guests {
  background-color: #f5f5f5;
  padding: 5px 0;
  margin: var(--section-gap) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#guests > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

#guests .guests-header-container {
  padding-top: 0;
  padding-bottom: 0;
}

#guests #guestsContainer {
  padding-top: 0;
  padding-bottom: 40px;
}

/* GRID LAYOUTS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 25px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

/* GUESTS SECTION */
.guests-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-3px);
}

.guests-year-header {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-on-yellow);
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background-color: #e6bc00;
  transform: translateY(-2px);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 30px;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 40px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-yellow);
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  border-left: 15px solid var(--accent-yellow);
  padding-left: 20px;
}

.previous-years-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.year-section {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 40px;
}

.year-section:last-child {
  border-bottom: none;
}

.year-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: var(--dark-bg);
  letter-spacing: 1px;
}

/* MODAL GUEST CARDS */
.modal-guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.modal-guest-card {
  position: relative;
  overflow: hidden;
  background-color: #000;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.modal-guest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.6s ease;
}

.modal-guest-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.5);
}

.modal-guest-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.modal-guest-overlay h4 {
  margin: 0 0 5px 0;
  font-size: 0.8rem;
}

.modal-guest-bio {
  margin: 0;
  font-size: 0.65rem;
  text-transform: none;
  font-weight: normal;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.modal-guest-card:hover .modal-guest-bio {
  opacity: 1;
  max-height: 100px;
}

/* CARDS */
.card {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
  transition: transform 0.3s ease;
}

/* Animated zoom effect for linked cards */
a.card {
  transition: transform 0.3s ease;
}

a.card:hover {
  transform: scale(1.05);
}

a.card:hover img {
  transform: scale(1.02);
}

.card-overlay {
  position: static;
  padding: 15px;
  background: none;
  color: #000;
  text-transform: uppercase;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-overlay h3 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 900;
}

.guest-bio {
  visibility: visible;
  opacity: 1;
  margin: 0;
  font-size: 0.85rem;
  text-transform: none;
  font-weight: normal;
  line-height: 1.4;
  color: #1a1a1a;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: none;
  max-height: none;
  overflow: hidden;
}

.card:hover .guest-bio {
  opacity: 1;
}

/* GUESTS PAGE SPECIFIC CARD STYLING */
#previousGuestsContainer .card {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  aspect-ratio: auto;
  margin: 0 auto;
  align-items: stretch;
}

/* Override all grids on guests page to single column */
#previousGuestsContainer .grid-2,
#previousGuestsContainer .grid-3,
#previousGuestsContainer .grid-4,
#previousGuestsContainer .grid-5 {
  grid-template-columns: 1fr;
}

#previousGuestsContainer .card img {
  width: 150px;
  height: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  transform: none;
  filter: none;
  transition: none;
}

#previousGuestsContainer .card:hover img {
  transform: none;
  filter: none;
}

/* FOOTER */
footer {
  background-color: var(--dark-bg);
  color: #777;
  text-align: center;
  padding: 80px 20px;
  margin-top: var(--section-gap);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE ADJUSTMENTS - TABLET (iPad) */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-header .container {
    height: 70px;
    padding: 15px 20px;
    flex-wrap: nowrap;
    gap: 15px;
  }

  .main-header.scrolled .container {
    height: 70px;
  }

  .centered-logo {
    display: flex;
  }

  .main-header.scrolled .centered-logo {
    display: flex;
  }

  .centered-logo img {
    height: 60px;
  }

  .main-header.scrolled .centered-logo img {
    height: 60px;
  }

  .menu-toggle {
    display: none;
  }

  .centered-nav {
    flex-grow: 1;
    position: static;
    background-color: transparent;
    flex-direction: row;
    width: auto;
    max-height: none;
    overflow: visible;
    transition: none;
    z-index: auto;
  }

  .centered-nav.active {
    max-height: none;
  }

  .centered-nav .nav-links {
    flex-direction: row;
    gap: 15px;
    padding: 0;
    width: auto;
  }

  .centered-nav .nav-links li {
    width: auto;
    text-align: center;
    border-bottom: none;
    padding: 0;
  }

  .centered-nav .nav-links li:last-child {
    border-bottom: none;
  }

  .centered-nav a {
    display: inline;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .nav-btn {
    display: inline-block;
    margin-top: 0;
    padding: 8px 15px;
    font-size: 0.75rem;
  }

  .section-header {
    font-size: 1.6rem;
    border-left-width: 10px;
  }

  #guests {
    margin: var(--section-gap) 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  #guests .guests-header-container {
    padding: 30px 20px 0 20px;
  }

  #guests #guestsContainer {
    padding: 0 20px 30px 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Hide placeholder card on tablet */
  #previousGuestsContainer .card[style*="visibility: hidden"] {
    display: none;
  }

  /* Tablet Sponsors Styles */
  .presenting-sponsor {
    max-width: 100%;
  }

  .presenting-sponsor-logo {
    max-width: 100%;
  }

  .presenting-sponsor-logo img {
    max-width: 100%;
    height: auto;
  }

  .premium-sponsors {
    grid-template-columns: 1fr 1fr;
  }

  .area-sponsors {
    grid-template-columns: 2fr 1fr;
  }
}

/* RESPONSIVE ADJUSTMENTS - MOBILE (Phone) */
@media (max-width: 768px) {
  .main-header .container {
    height: auto;
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .main-header.scrolled .container {
    height: auto;
  }

  .centered-logo img {
    height: 80px;
  }

  .main-header.scrolled .centered-logo {
    display: flex;
  }

  .main-header.scrolled .centered-logo img {
    height: 80px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 0;
  }

  .centered-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
  }

  .centered-nav.active {
    max-height: 500px;
  }

  .centered-nav .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 20px;
    width: 100%;
  }

  .centered-nav .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
  }

  .centered-nav .nav-links li:last-child {
    border-bottom: none;
  }

  .centered-nav a {
    display: block;
    font-size: 0.95rem;
  }

  .nav-btn {
    display: inline-block;
    margin-top: 10px;
  }

  .section-header {
    font-size: 1.6rem;
    border-left-width: 10px;
  }

  #guests {
    margin: var(--section-gap) 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-bottom: 30px;
  }

  #guests #guestsContainer {
    padding: 0 20px 30px 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    max-height: 150px;
  }

  .premium-sponsors {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .area-sponsors-container {
    gap: 10px;
  }

  .area-sponsors {
    gap: 10px;
  }

  .area-sponsor-logo {
    flex: 0 1 140px;
  }

  .area-sponsor-logo img {
    height: 80px;
  }

  .sponsor-nav-btn {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .sponsor-tier-title {
    font-size: 1.1rem;
  }

  /* Mobile Guests & Modal */
  .guests-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .guests-header-container .section-header {
    margin-bottom: 0;
  }

  .btn-secondary {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .modal {
    padding: 10px;
  }

  .modal.active {
    padding-top: 20px;
  }

  .modal-content {
    padding: 25px;
    border-radius: 4px;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    padding-left: 15px;
    border-left-width: 10px;
  }

  .year-title {
    font-size: 1.3rem;
  }

  .previous-years-content {
    gap: 30px;
  }

  .year-section {
    padding-bottom: 25px;
  }
}

/* HISTORY PAGE STYLES */
.history-year-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 40px;
  justify-content: center;
}

.history-year-menu a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid var(--accent-yellow);
  background-color: #fff;
  transition: all 0.2s ease;
}

.history-year-menu a:hover {
  background-color: var(--accent-yellow);
  color: #000;
}

.history-year-section {
  margin-bottom: 0;
  padding-bottom: 40px;
  padding-top: 40px;
}

.history-year-section:first-child {
  padding-top: 0;
}

.history-year-section:not(:last-child)::before {
  content: "";
  display: block;
  height: 4px;
  background-color: var(--accent-yellow);
  margin-bottom: 0;
  margin-left: -20px;
  margin-right: -20px;
}

.history-year-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-yellow);
  background-color: #1a1a1a;
  padding: 20px 30px;
  margin: 0 -20px 0 -20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-bottom: 4px solid var(--accent-yellow);
}

.history-year-section:not(:last-child) .history-year-title::after {
  content: "";
  display: none;
}

.history-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.history-note {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  font-style: italic;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid var(--accent-yellow);
}

.history-guests h3,
.history-video h3,
.history-links h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.history-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-links li {
  margin-bottom: 12px;
}

.history-links a {
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-links a::after {
  content: "↗";
  font-size: 0.9em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.history-links a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.history-links a:hover::after {
  opacity: 1;
}

/* History Page Sponsors */
.history-sponsors {
  margin-top: 30px;
}

.history-sponsors h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.history-sponsors .area-sponsors-container {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
}

.history-sponsors .sponsor-nav-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 1.2rem;
  background-color: var(--accent-yellow);
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.history-sponsors .sponsor-nav-btn:hover {
  background-color: #e6bc00;
  transform: scale(1.1);
}

.sponsors-scroll-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  flex: 1;
  min-width: 0;
}

.sponsors-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  flex: 1;
  scroll-behavior: smooth;
  min-width: 0;
}

.sponsors-scroll::-webkit-scrollbar {
  height: 6px;
}

.sponsors-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.sponsors-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-yellow);
  border-radius: 10px;
}

.sponsors-scroll::-webkit-scrollbar-thumb:hover {
  background: #e6bc00;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-align: center;
  cursor: pointer;
}

.sponsor-item:hover {
  border-color: var(--accent-yellow);
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.sponsor-logo-small {
  width: 80px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.sponsor-name-small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  text-transform: uppercase;
}

.sponsors-nav-btn {
  background-color: var(--accent-yellow);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sponsors-nav-btn:hover {
  background-color: #e6bc00;
  transform: scale(1.1);
}

/* History Sponsors Responsive */
@media (max-width: 768px) {
  .sponsors-scroll {
    gap: 10px;
  }

  .sponsor-item {
    padding: 8px;
  }

  .sponsor-logo-small {
    width: 60px;
    height: 50px;
  }

  .sponsor-name-small {
    font-size: 0.7rem;
  }

  .sponsors-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Hide placeholder cards on mobile for single guests */
@media (max-width: 768px) {
  #historyContainer .card[style*="visibility: hidden"] {
    display: none;
  }
}

/* PHOTO GALLERY STYLES */
.history-gallery {
  margin-top: 30px;
}

.history-gallery h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.photo-gallery {
  width: 100%;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-grid a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 211, 0, 0.3);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-gallery .loading,
.photo-gallery .no-photos,
.photo-gallery .error {
  text-align: center;
  padding: 30px;
  font-size: 1rem;
  color: #666;
}

.photo-gallery .error {
  color: #d32f2f;
  font-weight: 600;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
  width: 100%;
}

.gallery-nav-btn {
  padding: 10px 20px;
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-nav-btn:hover:not(:disabled) {
  background-color: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 211, 0, 0.3);
}

.gallery-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-page-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  min-width: 80px;
  text-align: center;
}

.gallery-page-info-mobile {
  display: none;
}

/* Photo Gallery Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .gallery-pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .gallery-pagination-left {
    flex: 1 1 100%;
    justify-content: center;
  }

  .gallery-nav-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .show-all-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .gallery-pagination {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
  }

  .gallery-pagination-left {
    display: none !important;
  }

  .gallery-page-info-mobile {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
  }

  .gallery-nav-btn {
    width: 100%;
    padding: 10px;
  }

  .show-all-btn {
    width: 100%;
    margin-left: 0 !important;
  }
}

/* Extra mobile spacing to prevent overlap */
@media (max-width: 480px) {
  .card {
    position: static;
  }

  .grid-2 {
    max-height: none !important;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  #guests {
    position: relative;
    z-index: 1;
    margin-bottom: 20px !important;
  }

  #guests #guestsContainer {
    padding-bottom: 0 !important;
    min-height: auto;
  }

  #guests .grid-3 {
    margin-bottom: 40px;
  }

  #things-to-do {
    position: relative;
    z-index: 0;
    margin-top: 20px !important;
    padding-top: 20px !important;
  }

  #things-to-do .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #things-to-do .card {
    min-height: 150px;
  }
}

/* All Photos Modal Styles */
.all-photos-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.all-photos-modal-content {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-yellow);
  color: var(--text-on-yellow);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  background-color: #ffb300;
  transform: scale(1.1);
}

.all-photos-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.all-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.all-photos-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.all-photos-grid a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 211, 0, 0.3);
}

.all-photos-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
  width: 100%;
  position: relative;
}

.gallery-pagination-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.show-all-btn {
  background-color: #000000;
  color: var(--accent-yellow);
  margin-left: auto;
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.show-all-btn:hover:not(:disabled) {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .all-photos-modal-content {
    padding: 20px;
    max-width: 95vw;
    max-height: 95vh;
  }

  .all-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .close-modal-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .all-photos-modal {
    padding: 10px;
  }

  .all-photos-modal-content {
    padding: 15px;
  }

  .all-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .close-modal-btn {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}
