/* ===================================
   WOVCC Website - Page-Specific Styles
   =================================== */

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 500px;
  /* Changed from fixed height to min-height */
  height: auto;
  /* Allow to expand */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 60px 20px;
  /* Increased vertical padding */
}

/* Reusable Page Hero (matches, join, members, admin) */
.hero.matches-hero,
.hero.page-hero {
  height: 200px;
  min-height: 200px !important;
  /* Override main.css min-height:400px */
  position: relative;
  background: none !important;
  display: flex;
  /* Ensure flex context retained after override */
  align-items: center;
  /* Vertical centering */
  justify-content: center;
  /* Horizontal centering */
}

.hero.matches-hero::before,
.hero.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/banner.webp');
  background-size: cover;
  background-position: center 90%;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: 0;
}

.hero.matches-hero::after,
.hero.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero.matches-hero .hero-content,
.hero.page-hero .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Space between title and subtitle */
}

/* Remove asymmetric margins so visual center is true center */
.hero.matches-hero h1,
.hero.matches-hero p,
.hero.page-hero h1,
.hero.page-hero p {
  margin: 0;
}

/* Removed hero::before overlay for cleaner banner appearance */

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  /* Responsive but maintains readability */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  /* Responsive but maintains readability */
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- Match Day Hub --- */
.matchday-hub {
  background-color: var(--secondary-bg);
}

/* --- Homepage Sections Mobile Reordering --- */
.homepage-sections {
  display: flex;
  flex-direction: column;
}

/* Desktop: Matches first, Events second, Beer carousel third */
#homepage-matches {
  order: 1;
}

#homepage-events {
  order: 2;
}

#homepage-beer-carousel {
  order: 3;
}

/* Mobile: Events first, Beer carousel second, Matches last */
@media screen and (max-width: 768px) {
  .homepage-sections {
    display: flex;
    flex-direction: column;
  }

  /* Reorder: Events (1), Beer Carousel (2), Matches (3) */
  #homepage-events {
    order: 1;
  }

  #homepage-beer-carousel {
    order: 2;
  }

  #homepage-matches {
    order: 3;
  }

  /* Simplify Matches Section on Mobile */
  .matchday-hub .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  /* Compact fixture/result cards on mobile */
  .matchday-hub .fixture-card,
  .matchday-hub .result-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 16px 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  .matchday-hub .fixture-card:last-child,
  .matchday-hub .result-card:last-child {
    border-bottom: none;
  }

  .matchday-hub .fixture-card:hover,
  .matchday-hub .result-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Simplify fixture card content layout */
  .matchday-hub .fixture-card-content {
    gap: 12px;
  }

  /* Hide desktop date, show mobile date more prominently */
  .matchday-hub .fixture-date-desktop {
    display: none !important;
  }

  .matchday-hub .fixture-date-mobile {
    display: block !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }

  /* Reduce section padding on mobile */
  .matchday-hub.section {
    padding: 30px 0;
  }

  /* Homepage Event Cards - Compact List View on Mobile */
  #homepage-events .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
}

/* Extra small screens - even more compact */
@media screen and (max-width: 480px) {

  /* Hide event images on very small screens */
  #homepage-events [style*="height: 160px"] {
    display: none !important;
  }

  /* Compact event cards */
  #homepage-events a[style*="border-radius: 12px"] {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    margin-bottom: 0 !important;
  }

  /* Reduce padding in event cards */
  #homepage-events [style*="padding: 1.25rem"] {
    padding: 12px 0 !important;
  }

  /* Make grid a single column with no gap */
  #homepage-events [style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
}

.matchday-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.livestream-container,
.scores-container {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.livestream-container h3,
.scores-container h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.livestream-player,
.scores-widget {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 5px;
  background-color: #000;
}

.scores-widget {
  background-color: var(--secondary-bg);
  padding: 20px;
  min-height: 300px;
}

/* --- News Grid --- */
.news-grid {
  padding: 60px 0;
}

/* --- Fixtures & Results Tables --- */
.fixtures-table,
.results-table {
  width: 100%;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fixtures-table table,
.results-table table {
  width: 100%;
  min-width: 500px;
  /* Prevents table from getting too cramped */
  border-collapse: collapse;
}

.fixtures-table th,
.results-table th {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.fixtures-table td,
.results-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.fixtures-table tr:hover,
.results-table tr:hover {
  background-color: var(--secondary-bg);
}

/* --- Social Feed --- */
.social-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.social-embed {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.social-embed h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Membership Tiers --- */
.membership-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.tier-card {
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.tier-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tier-card.featured {
  border-color: var(--accent-color);
  background: linear-gradient(to bottom, var(--white), var(--secondary-bg));
  position: relative;
}

.tier-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: var(--white);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tier-name {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-light);
}

.tier-features {
  text-align: left;
  margin-bottom: 25px;
}

.tier-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 10px;
}

/* --- Join Page Grid Layout --- */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

@media screen and (max-width: 968px) {
  .join-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* --- Membership Card Enhancements --- */
#membership-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

#membership-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* --- Signup Form --- */
.signup-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* Make signup form match membership card in join grid */
.join-grid .signup-form {
  padding: 40px 30px;
  margin: 0;
}

/* Enhanced checkbox styling for join page */
.signup-form .form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--secondary-bg);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.signup-form .form-checkbox:hover {
  background: rgba(26, 95, 95, 0.05);
}

.signup-form .form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.signup-form .form-checkbox label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.payment-section {
  background-color: var(--secondary-bg);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.payment-summary .total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* --- Members Area --- */
.login-container {
  max-width: 450px;
  margin: 60px auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.members-content {
  max-width: 1000px;
  margin: 0 auto;
}

.welcome-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-banner h2 {
  margin: 0;
  color: var(--white);
}

.exclusive-section {
  background-color: var(--secondary-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.documents-list {
  display: grid;
  gap: 15px;
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: var(--white);
  border-radius: 5px;
  transition: var(--transition);
}

.document-item:hover {
  background-color: var(--secondary-bg);
  transform: translateX(5px);
}

.document-item .icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* --- Alert/Success Messages --- */
.alert {
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* --- Mock Post Cards --- */
.mock-post {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.post-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.post-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.post-content {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.post-image {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}

.post-actions {
  display: flex;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-actions span {
  cursor: pointer;
  transition: var(--transition);
}

.post-actions span:hover {
  color: var(--primary-color);
}

/* --- Events Listing Page --- */
.events-hero {
  height: 200px;
  min-height: 200px !important;
  /* Match page hero height and override global min-height */
  position: relative;
  overflow: hidden;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.events-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/banner.webp');
  background-size: cover;
  background-position: center 90%;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: 0;
}

.events-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

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

/* Ensure events hero text is perfectly centered */
.events-hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.events-hero h1,
.events-hero p {
  margin: 0;
}

.events-filters-container {
  margin-bottom: 40px;
}

.events-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.events-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.events-category-filter {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-label {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.category-select {
  padding: 8px 15px;
  min-width: 150px;
}

.events-search-container {
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.events-search-input {
  padding-left: 45px !important;
  background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22%236c757d%22 viewBox=%220 0 20 20%22><path fill-rule=%22evenodd%22 d=%22M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z%22 clip-rule=%22evenodd%22/></svg>');
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 20px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.events-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 95, 95, 0.1);
  outline: none;
}

.events-search-input::placeholder {
  color: var(--text-light);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 30px;
}

@media screen and (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.events-skeleton {
  display: none;
  margin-bottom: 2rem;
}

/* Skeleton shimmer effect */
.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-section-header {
  margin-bottom: 1.5rem;
}

.skeleton-header-line {
  background-color: #f0f0f0;
  border-radius: 6px;
}

/* Separator styling */
.events-separator {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.no-events-message {
  display: none;
  text-align: center;
  padding: 0;
}

.no-events-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--text-light);
  display: block;
}

.no-events-title {
  color: var(--text-dark);
  margin-bottom: 10px;
}

.no-events-text {
  color: var(--text-light);
}

/* Events Section Headers */
.events-section-header {
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Show More Button */
.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #145454) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(26, 95, 95, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-show-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-show-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 95, 95, 0.4);
}

.btn-show-more:hover::before {
  opacity: 1;
}

.btn-show-more:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(26, 95, 95, 0.3);
}

.btn-show-more .show-more-icon {
  transition: transform 0.3s ease;
}

.btn-show-more:hover .show-more-icon {
  transform: translateY(3px);
}

.btn-show-more .show-more-count {
  position: relative;
  z-index: 1;
}

/* Event Cards */
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.event-card:active {
  transform: translateY(-4px);
}

.event-card-image-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--border-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  --card-image: none;
}

.event-card-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.8);
  transform: scale(1.1);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card-image-container.has-image::before {
  opacity: 1;
}

.event-card-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.event-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--secondary-bg), rgba(26, 95, 95, 0.08));
  padding: 6px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: 0.5px;
  border: 1px solid rgba(26, 95, 95, 0.1);
}

.event-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.event-card:hover .event-card-title {
  color: var(--primary-color);
}

.event-card-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-card-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary-color);
}

.event-card-interested {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

/* Skeleton Cards */
.skeleton-event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skeleton-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

@media screen and (max-width: 768px) {
  .skeleton-image {
    height: 160px;
  }
}

.skeleton-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skeleton-badge {
  width: 80px;
  height: 22px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 20px;
  width: 85%;
  margin-bottom: 14px;
}

.skeleton-desc-1 {
  width: 100%;
}

.skeleton-desc-2 {
  width: 95%;
}

.skeleton-desc-3 {
  width: 70%;
  margin-bottom: 16px;
}

.skeleton-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-meta-item {
  height: 12px;
  width: 45%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* --- Event Detail Page --- */
.event-detail-page {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.event-detail-page.loaded {
  opacity: 1;
}

.event-detail-section {
  background-color: var(--secondary-bg);
}

/* Main content card wrapper */
.event-main-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.event-main-card-body {
  padding: 40px;
}

.event-banner-container {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--border-color) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  --banner-image: none;
}

.event-banner-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.7);
  transform: scale(1.1);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-banner-container.has-image::before {
  opacity: 1;
}

.event-banner-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.event-main-content {
  min-width: 0;
}

.event-category-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--secondary-bg), rgba(26, 95, 95, 0.08));
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(26, 95, 95, 0.1);
}

.event-detail-title {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 700;
}

.event-short-desc {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
}

.event-long-desc {
  color: var(--text-dark);
  line-height: 1.9;
  font-size: 1.05rem;
}

/* Markdown Content Styling */
.markdown-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: 600;
}

.markdown-content h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
}

.markdown-content h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.markdown-content h3 {
  font-size: 1.5rem;
}

.markdown-content h4 {
  font-size: 1.25rem;
}

.markdown-content p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

.markdown-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.markdown-content ul li {
  list-style-type: disc;
}

.markdown-content ol li {
  list-style-type: decimal;
}

.markdown-content a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.markdown-content a:hover {
  color: var(--primary-dark);
}

.markdown-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  color: var(--text-light);
  background: var(--secondary-bg);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}

.markdown-content code {
  background: var(--secondary-bg);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: #d63384;
}

.markdown-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.markdown-content th,
.markdown-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.markdown-content th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.markdown-content tr:hover {
  background: var(--secondary-bg);
}

.markdown-content hr {
  border: none;
  height: 2px;
  background: var(--border-color);
  margin: 40px 0;
}

/* Event Sidebar */
.event-sidebar {
  min-width: 0;
  position: sticky;
  top: 100px;
}

.event-sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.event-sidebar-title {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--accent-color);
}

.event-detail-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.event-detail-item:last-of-type {
  border-bottom: none;
}

.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-detail-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.event-detail-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.event-detail-value {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.event-time-wrapper {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
}

.event-location-wrapper {
  display: none;
}

.event-map-container {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-interested-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, var(--secondary-bg), #e3f2fd);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(26, 95, 95, 0.1);
}

.event-interested-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.event-interested-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.event-interest-btn,
.event-back-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1rem;
  padding: 14px 20px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.event-interest-btn:hover {
  transform: translateY(-2px);
}

.event-recurring-badge {
  display: none;
  padding: 15px;
  background: linear-gradient(135deg, #e7f3ff, #cfe8ff);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.recurring-pattern-text {
  margin-top: 8px;
  color: var(--text-light);
  font-weight: 400;
}

/* Event Error */
.event-error-container {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.event-error-container.active {
  opacity: 1;
}

.event-error-content {
  text-align: center;
  padding: 80px 20px;
}

.event-error-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  color: var(--accent-color);
}

.event-error-title {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 2rem;
}

.event-error-message {
  color: var(--text-light);
  margin-bottom: 35px;
  font-size: 1.1rem;
}

/* Interest Modal */
.interest-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.interest-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  box-sizing: border-box;
}

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

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

.interest-modal-header {
  padding: 25px 30px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary-bg);
}

.interest-modal-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.interest-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  line-height: 1;
}

.interest-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.interest-modal-body {
  padding: 30px;
}

.interest-modal-description {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.interest-form {
  margin: 0;
}

.interest-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

/* Event Skeleton Loader */
.event-skeleton-container {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.event-skeleton-container.active {
  opacity: 1;
}

.event-skeleton-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
  margin-bottom: 20px;
}

.event-skeleton-content {
  max-width: 900px;
  margin: 0 auto;
}

.event-skeleton-container .skeleton-line {
  height: 18px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 15px;
}

.event-skeleton-container .skeleton-line.title {
  height: 45px;
  width: 70%;
  margin-bottom: 25px;
}

.event-skeleton-container .skeleton-line.short {
  width: 40%;
  height: 14px;
  margin-bottom: 20px;
}

.event-skeleton-container .skeleton-line.long {
  width: 90%;
}

.event-skeleton-container .skeleton-line.medium {
  width: 75%;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1200px) {
  .event-detail-grid {
    grid-template-columns: 1fr 350px;
    gap: 40px;
  }

  .event-detail-title {
    font-size: 2.3rem;
  }
}

@media screen and (max-width: 1024px) {
  .hero {
    min-height: 480px;
    padding: 50px 30px;
  }

  .hero-content {
    padding: 40px 30px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }
}

@media screen and (max-width: 968px) {
  .hero-content {
    padding: 45px 25px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }

  .events-hero {
    height: 240px;
  }

  .event-banner-container {
    height: 280px;
  }

  .event-banner-container::before {
    filter: blur(20px) brightness(0.7);
  }

  .event-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .event-sidebar {
    position: static;
  }

  .event-detail-title {
    font-size: 2rem;
  }

  .event-short-desc {
    font-size: 1.1rem;
  }

  .markdown-content {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 450px;
    /* Increased to accommodate content */
    padding: 40px 15px;
  }

  .hero-content {
    padding: 30px 15px;
    max-width: 100%;
  }

  .hero.matches-hero,
  .hero.page-hero {
    height: 120px;
    min-height: 120px !important;
    /* Ensure smaller hero on mobile */
    padding: 15px;
  }

  .hero h1 {
    font-size: 2rem;
    /* Keep readable size */
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1.1rem;
    /* Keep readable size */
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .hero .btn {
    font-size: 0.95rem;
    padding: 12px 24px;
    width: auto;
    max-width: 100%;
  }

  .matchday-content {
    grid-template-columns: 1fr;
  }

  .social-feed {
    grid-template-columns: 1fr;
  }

  .membership-tiers {
    grid-template-columns: 1fr;
  }

  .signup-form,
  .login-container {
    padding: 25px;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  /* Events listing responsive */
  .events-hero {
    height: 120px;
    min-height: 120px !important;
  }

  .events-hero::before {
    filter: blur(15px);
  }

  .events-filters-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .events-category-filter {
    width: 100%;
  }

  .category-select {
    flex: 1;
  }

  .events-search-container {
    max-width: 100%;
  }

  .event-card-image-container {
    height: 180px;
  }

  .event-card-image-container::before {
    filter: blur(12px) brightness(0.8);
  }

  .event-card-title {
    font-size: 1.1rem;
  }

  .event-card-body {
    padding: 18px;
  }

  /* Event detail responsive */
  .event-banner-container {
    height: 240px;
  }

  .event-banner-container::before {
    filter: blur(20px) brightness(0.7);
  }

  .event-main-card-body {
    padding: 25px;
  }

  .event-detail-title {
    font-size: 1.75rem;
  }

  .event-short-desc {
    font-size: 1.05rem;
    margin-bottom: 30px;
  }

  .event-sidebar-card {
    padding: 25px;
  }

  .markdown-content h1 {
    font-size: 1.75rem;
  }

  .markdown-content h2 {
    font-size: 1.5rem;
  }

  .markdown-content h3 {
    font-size: 1.3rem;
  }

  .interest-modal-header {
    padding: 20px;
  }

  .interest-modal-body {
    padding: 20px;
  }

  .interest-modal-title {
    font-size: 1.3rem;
  }

  /* Fix interest modal on mobile */
  .interest-modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
    overflow-y: auto;
  }

  .interest-modal-content {
    max-height: 95vh;
    width: 100%;
  }

  .interest-modal-header {
    padding: 20px;
  }

  .interest-modal-body {
    padding: 20px;
  }

  /* Fix event cards grid on mobile */
  .events-grid {
    gap: 20px;
  }

  /* Improve form elements on mobile */
  .interest-modal-body .form-input {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  /* Fix join page grid */
  .join-grid {
    gap: 30px;
  }

  .signup-form {
    padding: 25px 20px;
  }

  /* Fix newsletter form */
  .newsletter-form-main {
    gap: 12px;
  }

  .newsletter-input-main {
    min-width: 100%;
  }

  /* Improve membership tiers on mobile */
  .membership-tiers {
    gap: 20px;
  }

  .tier-card {
    padding: 25px 20px;
  }

  /* Fix event detail responsive */
  .event-detail-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .event-short-desc {
    font-size: 1.05rem;
  }

  /* Fix filter tabs wrapping */
  .events-filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* ========================================
     Contact Page - Mobile List View
     ======================================== */

  /* Contact info grid - convert to single column */
  #contact-info-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Contact info cards - simple list items */
  .contact-info-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  .contact-info-card:last-child {
    border-bottom: none !important;
  }

  .contact-info-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Card body - horizontal layout */
  .contact-info-card .card-body {
    padding: 16px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Icon - left aligned, no auto margin */
  .contact-info-card .card-body>div:first-child {
    margin: 0 !important;
    flex-shrink: 0;
  }

  /* Text content wrapper */
  .contact-info-card .card-body>div:first-child~* {
    flex: 1;
    text-align: left !important;
  }

  .contact-info-card h3,
  .contact-info-card p,
  .contact-info-card a {
    text-align: left !important;
    margin-left: 0 !important;
  }
}



/* Extra small devices (phones in portrait, less than 576px) */
@media screen and (max-width: 575px) {
  .hero {
    min-height: 400px;
    /* Increased to accommodate content */
    padding: 30px 15px;
  }

  .hero-content {
    padding: 20px 10px;
  }

  .hero h1 {
    font-size: 1.75rem;
    /* Keep readable size */
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1rem;
    /* Keep readable size */
    margin-bottom: 20px;
  }

  .hero .btn {
    font-size: 0.95rem;
    padding: 12px 24px;
  }

  .hero img {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 20px !important;
  }

  /* Extra small modals */
  .interest-modal {
    padding: 5px;
    padding-top: 10px;
  }

  .interest-modal-content {
    max-height: 98vh;
    width: 100%;
    border-radius: 12px;
  }

  .interest-modal-header {
    padding: 15px;
  }

  .interest-modal-title {
    font-size: 1.15rem;
  }

  .interest-modal-body {
    padding: 15px;
  }

  .interest-modal-close {
    width: 32px;
    height: 32px;
    font-size: 28px;
  }

  /* Extra small forms */
  .signup-form,
  .login-container {
    padding: 20px 15px;
  }

  .tier-card {
    padding: 20px 15px;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .event-card-body {
    padding: 16px;
  }

  .event-card-title {
    font-size: 1.05rem;
  }

  .event-card-description {
    font-size: 0.88rem;
  }

  .event-card-meta {
    font-size: 0.82rem;
  }

  .event-sidebar-card {
    padding: 20px;
  }

  .event-main-card-body {
    padding: 20px;
  }

  .event-banner-container {
    height: 200px;
  }

  .newsletter-content h2 {
    font-size: 1.75rem;
  }

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

  /* Tables on extra small screens */
  .fixtures-table table,
  .results-table table {
    min-width: 400px;
  }

  .fixtures-table th,
  .results-table th,
  .fixtures-table td,
  .results-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* ===================================
   Page Transition & Loading Improvements
   =================================== */

/* Members / page hero + section entrance
   - Triggered explicitly from scripts/pages.js so:
     - plays once on direct load (after auth/content resolution)
     - plays once on SPA navigation
*/
.page-hero-animate {
  animation: fadeInUpSoft 0.4s ease-out forwards;
}

.members-section-animate {
  animation: fadeInUpSoft 0.4s ease-out forwards;
}

@keyframes fadeInUpSoft {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

/* Prevent content jumping during async loads */
.matchday-hub #upcoming-fixtures-container,
.matchday-hub #recent-results-container {
  min-height: 400px;
  transition: min-height 0.3s ease;
}

.matchday-hub #upcoming-fixtures-container:has(.fixture-card),
.matchday-hub #recent-results-container:has(.result-card) {
  min-height: auto;
}

/* Smooth transitions for loading states */
#live-match-section,
#no-match-section {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#live-match-section:empty,
#no-match-section:empty {
  opacity: 0;
  min-height: 200px;
}

/* Prevent footer from jumping during page load */
.newsletter-section {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Content wrapper min-height to prevent footer jumping */
body>*:not(.navbar):not(.newsletter-section):not(.footer) {
  min-height: 50vh;
}

/* Smooth fade for content appearing */
.fixture-card,
.result-card,
.event-card {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.fixture-card:nth-child(1),
.result-card:nth-child(1),
.event-card:nth-child(1) {
  animation-delay: 0.05s;
}

.fixture-card:nth-child(2),
.result-card:nth-child(2),
.event-card:nth-child(2) {
  animation-delay: 0.1s;
}

.fixture-card:nth-child(3),
.result-card:nth-child(3),
.event-card:nth-child(3) {
  animation-delay: 0.15s;
}

.fixture-card:nth-child(4),
.result-card:nth-child(4),
.event-card:nth-child(4) {
  animation-delay: 0.2s;
}

.fixture-card:nth-child(5),
.result-card:nth-child(5),
.event-card:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Skeleton loaders maintain proper height */
.skeleton-card {
  min-height: 120px;
}

/* Tab content transitions */
.tab-content {
  min-height: 400px;
}

.tab-content.active {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================================
   NEW MODERN CONTACT PAGE STYLES (v2.0)
   ========================================= */

.contact-section {
  background-color: var(--secondary-bg);
  /* Use light grey bg to make form pop */
  min-height: 80vh;
  /* Ensure it takes up screen space */
}

.contact-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Sidebar (Left Column) --- */
.contact-sidebar {
  position: sticky;
  top: 100px;
}

.contact-sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-sidebar-header {
  margin-bottom: 25px;
}

.contact-sidebar-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-sidebar-header p {
  color: var(--text-secondary);
  margin: 0;
}

/* Clean Method List */
.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  background: var(--secondary-bg, #f8f9fa);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.contact-method-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
  background: white;
}

.method-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-bg, #f3f4f6);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon svg {
  width: 22px;
  height: 22px;
}

.method-details {
  display: flex;
  flex-direction: column;
}

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

.method-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

.method-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Social Pills */
.sidebar-socials h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.social-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-pill svg {
  width: 18px;
  height: 18px;
}

.social-pill.fb {
  background: #1877F2;
  color: white;
}

.social-pill.insta {
  background: #E4405F;
  color: white;
}

.social-pill:hover {
  opacity: 0.9;
}


/* --- Main Form Area (Right Column) --- */
.contact-form-area .form-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-header {
  margin-bottom: 30px;
  text-align: center;
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.clean-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.clean-form .form-group {
  margin-bottom: 20px;
}

.clean-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.clean-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  /* #e0e0e0 */
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--input-bg, #fff);
  color: var(--text-dark);
}

.clean-form .form-input:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
  /* Subtle accent glow */
}

/* Function Info Box (Integrated) */
.function-info-box {
  background: var(--secondary-bg, #f8f9fa);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.function-info-header {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.function-info-header .info-icon {
  font-size: 1.5rem;
}

.function-info-header p {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.function-actions {
  margin-bottom: 12px;
}

.buffet-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.buffet-link svg {
  width: 16px;
  height: 16px;
}

.terms-details summary {
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 4px 0;
}

.terms-list {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.terms-list li {
  margin-bottom: 6px;
}

.form-footer .btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}


/* --- Mobile Responsiveness (The Critical Part) --- */
@media screen and (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    /* Stack vertically */
    gap: 30px;
  }

  .contact-sidebar {
    position: static;
    text-align: center;
  }

  .contact-sidebar-header h2,
  .contact-sidebar-header p {
    text-align: center;
  }

  .sidebar-socials h3 {
    text-align: center;
  }

  .social-links-row {
    justify-content: center;
  }

  .contact-method-item {
    padding: 12px 16px;
  }

  .contact-sidebar-card {
    padding: 25px;
  }
}

@media screen and (max-width: 600px) {
  .clean-form .form-row {
    grid-template-columns: 1fr;
    /* Stack inputs */
    gap: 0;
  }

  .contact-form-area .form-card {
    padding: 25px 20px;
    /* Reduces padding on small screens */
  }

  .form-header h2 {
    font-size: 1.6rem;
  }

  .contact-sidebar-card {
    padding: 20px;
  }

  /* CENTERED Mobile Contact List */
  .contact-method-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    background: transparent;
    gap: 8px;
  }

  .contact-method-item:last-child {
    border-bottom: none;
  }

  .contact-method-item:hover {
    transform: none;
  }

  .method-icon {
    background: var(--surface-bg, #f3f4f6);
    /* Keep bg for round icon look */
    justify-content: center;
    padding: 0;
    width: 48px;
    /* Slightly larger touch target */
    height: 48px;
    margin-bottom: 4px;
    border-radius: 50%;
    /* Circle icon */
  }

  .method-details {
    padding-left: 0;
    align-items: center;
    /* Center children */
  }

  .method-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
  }

  .method-value {
    font-size: 1.1rem;
    color: var(--accent-color);
    /* Pop color for value */
  }
}

/* =========================================
   NEW MODERN JOIN PAGE STYLES
   ========================================= */

.join-section {
  background-color: var(--secondary-bg);
  min-height: 80vh;
}

.join-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Sidebar (Benefits) --- */
.join-sidebar {
  position: sticky;
  top: 100px;
}

.membership-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.price-header {
  color: var(--primary-color);
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.price-header .currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 8px;
}

.price-header .amount {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.price-header .duration {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 25px;
}

.price-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.membership-card .divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.perks-title {
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.benefits-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.benefit-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.sidebar-login-prompt {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sidebar-login-prompt p {
  margin-bottom: 8px;
}

/* --- Form Area --- */
.join-form-area .form-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 30px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.form-section-label:first-child {
  margin-top: 0;
}

/* Custom Checkboxes */
.checkbox-group-styled {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.custom-checkbox-container {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  background: white;
  user-select: none;
}

.custom-checkbox-container:hover {
  border-color: var(--primary-light);
  background: var(--surface-bg, #f8f9fa);
}

/* Hide native input but keep it accessible */
.custom-checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* The visual checkbox box */
.checkmark {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-right: 14px;
  margin-top: 2px;
  background-color: #fff;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Checked state — SVG tick as background image */
.custom-checkbox-container input[type="checkbox"]:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='2.5%2C8.5 6.5%2C12.5 13.5%2C3.5' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
}

.checkbox-content {
  display: flex;
  flex-direction: column;
}

.cb-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.cb-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* Highlight style for upsell */
.custom-checkbox-container.highlight-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='2.5%2C8.5 6.5%2C12.5 13.5%2C3.5' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
}

.price-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-bg, #f3f4f6);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.custom-checkbox-container.highlight-checkbox input:checked~.price-tag {
  background: var(--accent-color);
  color: white;
}

/* Footer / Total */
.checkout-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.total-amount {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 800;
}

.terms-text {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 1.1rem;
}

.mobile-login-prompt {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mobile-login-prompt a {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 900px) {
  .join-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .join-sidebar {
    position: static;
    order: -1;
    /* Keep benefits on top to sell the value before the form */
  }
}

@media screen and (max-width: 600px) {
  .join-form-area .form-card {
    padding: 24px 20px;
  }

  .form-section-label {
    margin: 25px 0 10px 0;
  }

  /* Simplify sidebar on mobile */
  .membership-card {
    padding: 20px;
  }

  .price-header .amount {
    font-size: 3rem;
  }

  .sidebar-login-prompt {
    display: none;
  }

  .mobile-login-prompt {
    display: block;
  }
}

/* =========================================
   NEW MODERN LOGIN PAGE STYLES (v2.0)
   Matches join page two-column layout
   ========================================= */

.login-section {
  background-color: var(--secondary-bg);
  min-height: 80vh;
}

.login-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Login Sidebar --- */
.login-sidebar {
  position: sticky;
  top: 100px;
}

.login-sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
}

.login-sidebar-header {
  margin-bottom: 5px;
}

.login-logo {
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
}

.login-sidebar-header h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.login-sidebar-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.login-sidebar-card .divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.sidebar-join-prompt {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sidebar-join-prompt p {
  margin-bottom: 8px;
}

/* --- Login Form Area --- */
.login-form-area .form-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-join-prompt {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mobile-join-prompt a {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Login Mobile Responsiveness --- */
@media screen and (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login-sidebar {
    position: static;
    order: -1;
  }
}

@media screen and (max-width: 600px) {
  .login-form-area .form-card {
    padding: 24px 20px;
  }

  .login-sidebar-card {
    padding: 20px;
  }

  .login-sidebar-header h2 {
    font-size: 1.5rem;
  }

  .sidebar-join-prompt {
    display: none;
  }

  .mobile-join-prompt {
    display: block;
  }
}


/* ===================================
   Beer Image Band (scrolling ticker like sponsors)
   =================================== */

.beer-band-container {
  background: var(--secondary-bg);
  padding: 40px 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.beer-band-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.beer-band-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0 0 30px 0;
  opacity: 0.8;
}

.beer-band-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 10px 0;
}

.beer-band {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scroll-beer 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.beer-band:hover {
  animation-play-state: paused;
}

@keyframes scroll-beer {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.beer-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 10px;
}

.beer-image {
  height: 100px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.beer-image-link:hover .beer-image {
  opacity: 0.85;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .beer-band {
    animation: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .beer-band-container {
    padding: 30px 0;
  }

  .beer-band-title {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }

  .beer-band-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .beer-band {
    gap: 40px;
    animation-duration: 20s;
  }

  .beer-image {
    height: 80px;
    max-width: 200px;
  }
}

@media (max-width: 575px) {
  .beer-band {
    gap: 30px;
  }

  .beer-image {
    height: 70px;
    max-width: 180px;
  }

  .beer-band-title {
    font-size: 1.5rem;
  }

  .beer-band-subtitle {
    font-size: 0.8rem;
  }
}

/* =========================================
   MULTI-STEP SIGNUP WIZARD
   ========================================= */

/* --- Progress Stepper --- */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--border-color);
  margin: -40px -40px 0 -40px;
  background: var(--secondary-bg);
  border-radius: 16px 16px 0 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Active step */
.wizard-step.active .step-circle {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 95, 95, 0.3);
}

.wizard-step.active .step-label {
  color: var(--primary-color);
}

/* Completed step */
.wizard-step.completed .step-circle {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.wizard-step.completed .step-circle::after {
  content: '✓';
  position: absolute;
  font-size: 1rem;
}

.wizard-step.completed .step-circle span,
.wizard-step.completed .step-circle {
  font-size: 0;
}

.wizard-step.completed .step-label {
  color: var(--primary-color);
}

/* Connector line between steps */
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.4s ease;
  min-width: 20px;
  max-width: 80px;
}

.step-connector.active {
  background: var(--primary-color);
}

/* --- Wizard Panels --- */
.wizard-panel {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding: 32px 0 0;
}

.wizard-panel.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.wizard-panel.slide-out-left {
  transform: translateX(-20px);
  opacity: 0;
}

.wizard-panel.slide-in-right {
  transform: translateX(20px);
  opacity: 0;
}

.wizard-panel.slide-out-right {
  transform: translateX(20px);
  opacity: 0;
}

.wizard-panel.slide-in-left {
  transform: translateX(-20px);
  opacity: 0;
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  font-weight: 700;
}

.panel-header p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Wizard Navigation --- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

.wizard-nav-final {
  border-top: none;
  margin-top: 16px;
  padding-top: 0;
}

.wizard-next-btn {
  margin-left: auto;
}

.wizard-next-btn .btn-arrow,
.wizard-back-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.wizard-next-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.wizard-back-btn:hover .btn-arrow {
  transform: translateX(-3px);
}

.wizard-submit-btn {
  flex: 1;
  max-width: 280px;
}

/* --- Optional Hint --- */
.optional-hint {
  font-weight: 400;
  color: var(--text-light);
}

/* --- Conditional Section (Extra Card) --- */
.wizard-conditional-section {
  padding: 20px;
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--accent-color);
  margin-bottom: 8px;
  animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.conditional-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.same-as-above-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.same-as-above-toggle:hover {
  border-color: var(--primary-color);
  background: var(--surface-bg, #f8f9fa);
}

.same-as-above-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* --- Review Section (Step 4) --- */
.review-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-block {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
}

.review-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.review-block-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.review-edit-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-edit-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-item-full {
  grid-column: 1 / -1;
}

.review-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-light);
  font-weight: 600;
}

.review-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-word;
}

/* --- Wizard Field Error State --- */
.form-input.field-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.field-error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.field-error-msg {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  animation: fadeSlideDown 0.2s ease;
}

/* --- Responsive Wizard --- */
@media screen and (max-width: 900px) {
  .wizard-stepper {
    margin: -40px -40px 0 -40px;
    padding: 20px 16px 18px;
  }
}

@media screen and (max-width: 600px) {
  .wizard-stepper {
    margin: -24px -20px 0 -20px;
    padding: 18px 10px 14px;
    gap: 0;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .step-connector {
    min-width: 12px;
    margin: 0 4px;
  }

  .wizard-panel {
    padding: 24px 0 0;
  }

  .panel-header h2 {
    font-size: 1.25rem;
  }

  .panel-header p {
    font-size: 0.88rem;
  }

  .wizard-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .wizard-nav .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .wizard-submit-btn {
    max-width: 100%;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .review-block {
    padding: 16px;
  }

  .conditional-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   HOMEPAGE EVENTS SECTION
   ========================================= */

.homepage-events-badge-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.homepage-events-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #145454));
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.homepage-events-badge--today {
  background: linear-gradient(135deg, var(--accent-color), #c82333);
}

.homepage-event-card--today {
  border-color: var(--accent-color) !important;
  border-width: 2px !important;
}