/* Reset + Basic Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

:root {
  --color-primary: #ffffff;     /* Royal Blue */
  --color-accent: #FFD700;      /* Gold */
  --color-bg: #f9f9f9;          /* Page background */
  --color-text: #1a1a1a;        /* Body text */
  --color-link: #0057B7;
  --color-footer-bg: #222;
  --color-footer-text: #aaa;
  --color-button: #0057B7;
  --color-button-text: white;
}

a {
  text-decoration: none;
  color: var(--color-link);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
}

/* Header */
header {
  background: #272724;
  border-bottom: none;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 300;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  color: #F5F5F5;
}

/* Nav links */
header nav a {
  margin-left: 20px;
  font-weight: 500;
  color: #F5F5F5;
}

header nav a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 6px #ffffff;
  font-weight: 600;
}


/* Hero Section */
.hero {
  background: #272724;
  padding: 5px 20px;
  text-align: center;
}

.last-updated {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

/* POPUP OVERLAY BACKGROUND */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* POPUP CONTENT BOX */
.popup-box {
  background: #fff;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* CLOSE BUTTON (X) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

/* FORM INPUT STYLING */
#email-capture-form input[type="email"] {
  padding: 10px;
  width: 80%;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* FORM BUTTON */
#email-capture-form button {
  padding: 10px 20px;
  background-color: #0078D7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#email-capture-form button:hover {
  background-color: #005bb5;
}

/* MESSAGE TEXT */
#form-message {
  margin-top: 10px;
  font-size: 0.95rem;
  color: green;
}

/* ANIMATION (optional) */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.search-filters {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-filters input,
.search-filters select {
  padding: 10px;
  min-width: 160px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Featured Cards */
.featured .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.card {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Browse Section */
.browse .tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.browse button {
  padding: 10px 16px;
  border: none;
  background: var(--color-button);
  color: var(--color-button-text);
  border-radius: 4px;
  cursor: pointer;
}

.button-accent {
  background: var(--color-accent);
  color: #000;
  padding: 10px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--color-footer-bg);
  color: white;
  padding: 10px 15px;
  text-align: center;
}

footer nav a {
  margin: 0 10px;
  color: var(--color-footer-text);
  font-size: 0.9em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1em;
  color: #F5F5F5;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.dropbtn:hover {
  color: #FFFFFF;
  text-shadow: 0 0 6px #ffffff;
  font-weight: 600;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #272724;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-radius: 4px;
  padding: 5px 0;
}

.dropdown-content a {
  color: #F5F5F5;
  padding: 10px 14px;
  display: block;
  text-align: left;
  font-weight: 500;
  transition: color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #3a3a38;
  color: #FFFFFF;
  text-shadow: 0 0 6px #ffffff;
}

/* (truncated here for readability; next message will include rest) */
.club-card .image-overlay-container {
  position: relative;
  height: 200px; /* Adjust height as needed */
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.club-card .image-overlay-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.club-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.club-card:hover {
  transform: translateY(-4px);
}

.overlay-text {
  position: absolute;
  bottom: 12px; /* adjust vertical position as needed */
  left: 50%;
  transform: translateX(-50%);
  color: 	#F5F5F5;
  font-weight: 600;
  font-size: 1.2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

.hero-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  border-bottom: 4px solid #272724;
  margin-bottom: 0;
}

.hero-banner img.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0; /* make sure image stays below overlay */
}

/* ✅ Add a darker gradient overlay for contrast */
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}


/* ✅ Make text box stay above everything */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* above the gradient and image */
  text-align: center;
  background: rgba(255, 255, 255, 0.9); /* semi-transparent white */
  color: #272724;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  display: inline-block;
  max-width: 90%;
}

/* Keep text legible and readable */
.hero-overlay h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-overlay p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #333;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


@media (max-width: 768px) {
  .hero-banner {
    height: 180px;
  }

    .hero-overlay {
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

   .hero-overlay h1 {
    font-size: 1.3rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .guide-text,
  .guide-images {
    width: 100%;
  }

  .guide-images img {
    max-height: 300px;
  }

  .two-column-layout {
    flex-direction: column;
  }

  .column-left, .column-right {
    max-width: 100%;
  }
}


/* Wrapper layout for guide text + images */
.guide-with-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap; /* ensures it can wrap nicely on small screens */
}

/* Text content styling */
.guide-text {
  flex: 2;
  min-width: 0;
}

/* Image column styling */
.guide-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Image styling */
.guide-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive stacking on smaller screens */
@media screen and (max-width: 768px) {
  .guide-with-images {
    flex-direction: column;
  }

  .guide-text,
  .guide-images {
    width: 100%;
  }

  .guide-images img {
    max-height: 300px;
  }
}

.guide-with-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

.guide-text {
  flex: 2;
  min-width: 0;
}

.guide-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guide-images figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.guide-images figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.two-column-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap; /* prevent wrapping */
}

.column-left {
  flex: 1;
  max-width: 250px;
  min-width: 200px;
}

.column-right {
  flex: 3;
  min-width: 300px;
}

@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
  }

  .column-left, .column-right {
    max-width: 100%;
  }
}

.club-list {
  list-style: none;
  padding: 0;
}

.club-list li {
  margin-bottom: 10px;
}

.club-list a {
  text-decoration: none;
  color: var(--color-link);
  font-weight: 500;
}

.back-button-container {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.back-button {
  background-color: #272724;
  color: #F5F5F5;
  border: 1px solid #444;
  padding: 0.5rem 1rem;
  border-radius: 999px; /* pill shape */
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.back-button:hover {
  background-color: #3a3a38;
  color: #ffffff;
  border-color: #666;
}

.back-to-top-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: #000;
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.ticket-prices {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.ticket-prices th,
.ticket-prices td {
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
  text-align: center;
}

.ticket-prices th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.ticket-prices td:first-child {
  text-align: left;
  font-weight: 500;
}


/* === Two-Column Layout === */
.two-column-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;
}

.column-left {
  flex: 1;
  max-width: 250px;
  min-width: 200px;
}

.column-right {
  flex: 3;
  min-width: 300px;
}

@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
  }

  .column-left,
  .column-right {
    max-width: 100%;
  }
}

/* === Club List Sidebar === */
.club-list {
  list-style: none;
  padding: 0;
}

.club-list li {
  margin-bottom: 10px;
}

.club-list a {
  text-decoration: none;
  color: var(--color-link);
  font-weight: 500;
}

/* === Back Button === */
.back-button-container {
margin: 0.25rem 0;
}

.back-button {
  background-color: #f2f2f2;
  color: #333;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.back-button:hover {
  background-color: #e0e0e0;
  color: #000;
}

/* === Guide Layout (Text + Image Columns) === */
.guide-with-images {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.guide-text {
  flex: 2;
  min-width: 0;
}

.guide-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guide-images figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.guide-images figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .guide-with-images {
    flex-direction: column;
  }

  .guide-text,
  .guide-images {
    width: 100%;
  }

  .guide-images img {
    max-height: 300px;
  }
}

/* === Collapsible Sections === */
.collapsible-heading {
  cursor: pointer;
  position: relative;
  padding: 0.75em 1em;
  background-color: #272724;
  color: #F5F5F5;
  border: 1px solid #444;
  border-radius: 6px;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.collapsible-heading:hover {
  background-color: #3a3a38;
}

.collapsible-heading::after {
  content: '−';
  position: absolute;
  right: 1em;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.collapsible-heading.collapsed::after {
  content: '+';
}

.section-content {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  margin: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.section-content:not(.collapsed) {
  max-height: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.section-content.collapsed * {
  margin: 0 !important;
  padding: 0 !important;
}


/* === Back to Top Button === */
.back-to-top-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;   /* Reduce from 1rem+ */
  margin-bottom: 0;     /* Eliminate bottom spacing if not needed */
  padding: 0;           /* Ensure no internal padding */
  height: auto;         /* Make sure it's not inheriting fixed height */
}

.back-to-top {
  display: inline-block;
   margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: #000;
  text-decoration: underline;
}

/* === Optional: Ticket Pricing Tables === */
.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.ticket-prices {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.ticket-prices th,
.ticket-prices td {
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
  text-align: center;
}

.ticket-prices th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.ticket-prices td:first-child {
  text-align: left;
  font-weight: 500;
}


#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

#lightbox-overlay .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

#lightbox-overlay .arrow {
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

#lightbox-overlay .arrow.left {
  left: 0;
}

#lightbox-overlay .arrow.right {
  right: 0;
}

#lightbox-counter {
  color: #ccc;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.5rem;
}

#lightbox-caption {
  margin-top: 1rem;
  color: #ddd;
  font-size: 0.95rem;
  text-align: center;
  max-width: 90%;
}

.hero-club-banner {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 200px;
}

.hero-club-banner img.hero-club-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.hero-club-text-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  max-width: 90%;
  border-radius: 6px;
}

.hero-club-text-overlay h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
}

.hero-club-text-overlay p {
  margin: 0;
  font-size: 1rem;
}

