:root {
  --black: #000;
  --dark-gray: #181818;
  --maroon: #8B1E3F;
  --gold: #FFD700;
  --text-light: #fff;
  --text-gray: #e0e0e0;
  --divider: #222;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 112.5%; /* 18px if browser default is 16px */
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23FFD700" fill-opacity="0.06"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 2em 0;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 0.9em 2.2em;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  font-size: 1.15em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--maroon);
  color: var(--gold);
  box-shadow: 0 6px 24px rgba(139,30,63,0.18);
  transform: translateY(-2px) scale(1.04);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.btn-primary:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,215,0,0.25);
}

/* Navigation Bar */
.navbar {
  background: rgba(24,24,24,0.92);
  border-bottom: 2px solid var(--maroon);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 1em;
}
.logo-img,
.custom-logo,
.custom-logo-link img {
  height: 60px;
  width: 60px;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 3em;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.nav-menu li a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--maroon);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.nav-menu li a:hover::after, .nav-menu li a:focus::after {
  transform: scaleX(1);
}
.nav-cta {
  background: #0056b3;
  color: #fff;
  padding: 0.5em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 2em;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: #003d80;
}

/* Hero Section */
/* For best performance, use a WebP version of ncaaPrayerHL.JPG as the hero background image, e.g. ncaaPrayerHL.webp */
.hero {
  position: relative;
  overflow: hidden;
  background: url('ncaaPrayerHL.JPG') center center/cover no-repeat;
  min-height: 420px;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 40, 0.55); /* dark overlay for contrast */
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(24,24,24,0) 0%, #181818 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-bg-animated {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  min-height: 400px;
}
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.hero-content {
  flex: 1 1 350px;
  max-width: 600px;
  position: relative;
  text-align: center;
}
.hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 0.5em;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.typewriter {
  font-size: 1.3em;
  color: var(--text-light);
  font-weight: 500;
  border-right: 2px solid var(--gold);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(40, end) 1s 1 normal both, blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--gold); }
}
.hero-cta {
  margin-top: 2em;
  font-size: 1.2em;
  padding: 1em 2.5em;
  box-shadow: 0 4px 16px rgba(255,215,0,0.10);
}
.events-carousel {
  display: flex;
  overflow-x: auto;
  gap: 2em;
  padding-bottom: 2em;
  scroll-snap-type: x mandatory;
  position: relative;
}
.events-carousel::before,
.events-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 3;
}
.events-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--black) 80%, transparent 100%);
}
.events-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--black) 80%, transparent 100%);
}
.events-carousel .event-card {
  min-width: 270px;
  max-width: 340px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: rgba(30, 30, 30, 0.65);
  border: 2px solid var(--gold);
  border-radius: 2.2rem;
  box-shadow: 0 8px 32px 0 rgba(255,215,0,0.10), 0 2px 16px rgba(0,0,0,0.18);
  padding: 2.2em 1.4em 2em 1.4em;
  color: var(--text-light);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s, border 0.22s, background 0.22s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px) scale(0.98);
}
.events-carousel .event-card.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.events-carousel .event-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 1.2rem;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 12px rgba(255,215,0,0.08);
}
.events-carousel .event-card h3 {
  font-size: 1.25em;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
  text-align: center;
}
.events-carousel .event-card p {
  font-size: 1.05em;
  color: var(--text-light);
  margin: 0.2em 0;
  text-align: center;
}
.events-carousel .event-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--maroon) 100%);
  border-radius: 2.2rem 2.2rem 0 0;
  opacity: 0.18;
}
.events-carousel .event-card:hover,
.events-carousel .event-card:focus {
  transform: translateY(-10px) scale(1.045);
  box-shadow: 0 16px 48px 0 rgba(255,215,0,0.18), 0 4px 24px rgba(0,0,0,0.22);
  border: 2.5px solid var(--gold);
  background: rgba(30, 30, 30, 0.82);
  z-index: 2;
}
@media (max-width: 900px) {
  .events-carousel {
    gap: 1.2em;
    padding-bottom: 1.2em;
  }
  .events-carousel .event-card {
    min-width: 220px;
    max-width: 88vw;
    padding: 1.3em 0.7em 1.2em 0.7em;
  }
  .events-carousel .event-card img {
    height: 180px;
  }
  .hero {
    min-height: 320px;
  }
  .hero-container {
    min-height: 320px;
  }
}
@media (max-width: 600px) {
  .events-carousel .event-card {
    min-width: 180px;
    max-width: 92vw;
    padding: 1em 0.4em 1em 0.4em;
  }
  .events-carousel::before,
  .events-carousel::after {
    width: 18px;
  }
  .events-carousel .event-card img {
    height: 140px;
  }
  .hero {
    min-height: 220px;
  }
  .hero-container {
    min-height: 220px;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.events-carousel .event-card.fade-in.stagger-1 { transition-delay: 0.08s; }
.events-carousel .event-card.fade-in.stagger-2 { transition-delay: 0.18s; }
.events-carousel .event-card.fade-in.stagger-3 { transition-delay: 0.28s; }
.events-carousel .event-card.fade-in.stagger-4 { transition-delay: 0.38s; }
.events-carousel .event-card.fade-in.stagger-5 { transition-delay: 0.48s; }
.trusted-by {
  margin-top: 3em;
  text-align: center;
}
.trusted-by h3 {
  color: var(--gold);
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 1em;
  letter-spacing: 0.05em;
}
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.trusted-logos img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  background: #fff2;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0.5em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.trusted-logos img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 4px 16px rgba(255,215,0,0.12);
}
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    gap: 1.5em;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .hero-image {
    text-align: center;
  }
}
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.5em;
  }
  .trusted-logos img {
    width: 60px;
    height: 40px;
  }
}

/* Features Section */
.features {
  background: #f7fafd;
  padding: 60px 0;
}
.features h2 {
  text-align: center;
  color: #0056b3;
  margin-bottom: 2em;
}
.features-list {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
}
.feature-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2em 1.5em;
  text-align: center;
  flex: 1 1 220px;
  max-width: 300px;
  margin-bottom: 2.5rem;
}
.feature-item img {
  margin-bottom: 1em;
}
.feature-item h3 {
  color: #0056b3;
  margin-bottom: 0.5em;
}

/* About Section */
.about {
  background: var(--dark-gray);
  padding: 60px 0 60px 0;
  border-radius: 32px;
  margin-top: 2em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.about-container {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.about-content {
  flex: 1 1 350px;
}
.about-image {
  flex: 1 1 350px;
  text-align: right;
}
.about-image img {
  max-width: 100%;
  border-radius: 12px;
}
.about-content h2 {
  color: var(--gold);
  font-size: 2em;
  font-weight: 800;
}
.social-links a {
  margin-right: 1.2em;
  display: inline-block;
}
.social-links img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  padding: 2px;
  filter: invert(74%) sepia(98%) saturate(749%) hue-rotate(2deg) brightness(1.1) drop-shadow(0 0 4px rgba(255,215,0,0.10));
}

/* Contact Section */
.contact {
  background: #eaf1fb;
  padding: 60px 0;
}
.contact-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: var(--dark-gray);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 2.5em 2em;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  margin-top: 2em;
}
.contact-form input,
.contact-form textarea {
  padding: 1em;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  background: var(--dark-gray);
  color: var(--text-light);
}
.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-form button {
  align-self: center;
}
#confirmation {
  color: var(--gold);
  margin-top: 2em;
  font-size: 1.2em;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--gold);
  padding: 3em 0 2em 0;
  text-align: center;
  border-radius: 32px 32px 0 0;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}
.footer-social {
  margin-bottom: 1em;
  display: flex;
  justify-content: center;
  gap: 1.5em;
}
.footer-social a {
  margin: 0 0.5em;
}
.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: none;
  box-shadow: none;
  padding: 2px;
  filter: brightness(1) drop-shadow(0 0 4px rgba(255,215,0,0.10));
  transition: filter 0.2s, transform 0.2s;
}
.footer-social img {
  filter: invert(74%) sepia(98%) saturate(749%) hue-rotate(2deg) brightness(1.1) drop-shadow(0 0 4px rgba(255,215,0,0.10));
}
.footer-social img:hover, .footer-social img:focus {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(2) drop-shadow(0 0 8px var(--gold));
  transform: scale(1.12);
}
.footer-links {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text-light);
}
.footer-about {
  max-width: 400px;
  color: var(--text-light);
  font-size: 1em;
  margin: 0 auto 1em auto;
  opacity: 0.85;
}

/* Footer feedback link styles */
.footer-feedback-link {
  display: inline-block;
  margin-top: 1em;
  background: var(--gold);
  color: var(--black);
  padding: 0.5em 1.2em;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.footer-feedback-link:hover, .footer-feedback-link:focus {
  background: var(--maroon);
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(139,30,63,0.18);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero {
    padding: 80px 0 40px 0;
  }
  .hero-content h1 {
    font-size: 2.1em;
  }
  .container {
    padding: 0 0 1em 0;
  }
}
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    gap: 0.5em;
    padding: 0.5em 0;
  }
  .nav-menu {
    flex-direction: column;
    gap: 1em;
    align-items: flex-start;
  }
  .hero-content h1 {
    font-size: 1.3em;
  }
  .events-grid, .tournaments-grid {
    grid-template-columns: 1fr;
  }
  .about {
    padding: 30px 0 30px 0;
  }
  .footer {
    padding: 1.5em 0 1em 0;
  }
}

.tournament-card {
  background: var(--dark-gray);
  border: 1.5px solid var(--divider);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border 0.18s;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) both;
}
.tournament-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 12px 36px rgba(255,215,0,0.10), 0 2px 16px rgba(0,0,0,0.18);
  border: 1.5px solid var(--gold);
  z-index: 2;
}
.tournament-accent {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--maroon) 100%);
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
}
.tournament-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0 0 0 0;
  margin-bottom: 0;
  display: block;
}
.tournament-content {
  padding: 1.5em 1.2em 1.7em 1.2em;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tournament-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7em;
  gap: 1em;
}
.tournament-date {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 1em;
  border-radius: 16px;
  padding: 0.3em 1em;
  margin-right: 0.7em;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tournament-header h2 {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--gold);
  margin: 0;
  flex: 1;
  text-align: right;
}
.tournament-location {
  display: flex;
  align-items: center;
  color: var(--text-gray);
  font-size: 1.05em;
  margin-bottom: 0.6em;
  font-weight: 600;
}
.tournament-desc {
  color: var(--text-gray);
  font-size: 1em;
  margin-bottom: 1.2em;
  opacity: 0.92;
}
.tournament-content .btn-primary {
  width: 100%;
  margin-top: auto;
  font-size: 1.1em;
  padding: 0.8em 0;
}
@media (max-width: 900px) {
  .tournaments-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2em;
  }
  .tournament-img {
    height: 140px;
  }
}
@media (max-width: 600px) {
  .tournaments-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .tournament-img {
    height: 120px;
  }
  .tournament-header h2 {
    font-size: 1.1em;
  }
}

.table-card {
  background: var(--dark-gray);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  padding: 2em 1.5em 2em 1.5em;
  margin-bottom: 2em;
  max-width: 100%;
  overflow-x: auto;
}
.table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2em;
  gap: 1em;
}
.table-search {
  flex: 1 1 200px;
  padding: 0.7em 1em;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  font-size: 1em;
  background: var(--black);
  color: var(--text-light);
  outline: none;
  transition: border 0.2s;
}
.table-search:focus {
  border: 1.5px solid var(--gold);
}
.table-pagination {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.page-btn {
  background: var(--dark-gray);
  color: var(--gold);
  border: 1.5px solid var(--divider);
  border-radius: 6px;
  padding: 0.4em 1em;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-info {
  color: var(--text-gray);
  font-size: 1em;
}
.membership-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--dark-gray);
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 2em;
  min-width: 600px;
}
.membership-table th, .membership-table td {
  padding: 1.1em 1.3em;
  text-align: left;
}
.membership-table th {
  background: var(--maroon);
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  border-bottom: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 1.08em;
}
.membership-table th .sort-icon {
  font-size: 0.9em;
  margin-left: 0.3em;
  opacity: 0.7;
}
.membership-table th.asc, .membership-table th.desc {
  background: var(--gold);
  color: var(--black);
}
.membership-table tr:nth-child(even) {
  background: rgba(255,215,0,0.04);
}
.membership-table tr:hover {
  background: rgba(255,215,0,0.10);
  transition: background 0.18s;
}
.membership-table td {
  color: var(--text-gray);
  font-size: 1em;
}
.view-btn {
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.view-btn:hover, .view-btn:focus {
  background: var(--maroon);
  color: var(--gold);
  box-shadow: 0 2px 8px rgba(139,30,63,0.18);
}
@media (max-width: 900px) {
  .table-card {
    padding: 1em 0.5em 1em 0.5em;
  }
  .membership-table {
    min-width: 400px;
  }
}
@media (max-width: 600px) {
  .table-card {
    padding: 0.5em 0.2em 0.5em 0.2em;
  }
  .membership-table {
    min-width: 320px;
    font-size: 0.95em;
  }
  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7em;
  }
}

.tournament-filters {
  display: flex;
  gap: 1em;
  align-items: center;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
.tournament-search {
  flex: 1 1 200px;
  padding: 0.7em 1em;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  font-size: 1em;
  background: var(--black);
  color: var(--text-light);
  outline: none;
  transition: border 0.2s;
}
.tournament-search:focus {
  border: 1.5px solid var(--gold);
}
.tournament-filter {
  padding: 0.7em 1em;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  font-size: 1em;
  background: var(--dark-gray);
  color: var(--text-light);
  outline: none;
  transition: border 0.2s;
}
.tournament-filter:focus {
  border: 1.5px solid var(--gold);
}
.tournaments-bg-pattern {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="60" cy="60" r="2" fill="%23FFD700" fill-opacity="0.06"/></svg>');
  opacity: 0.3;
}
.tournaments-main {
  position: relative;
}
.tournament-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--gold) 60%, var(--maroon) 100%);
  color: var(--black);
  font-weight: 800;
  font-size: 0.95em;
  padding: 0.3em 1em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255,215,0,0.10);
  letter-spacing: 0.04em;
  z-index: 2;
}
.tournament-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s cubic-bezier(.4,0,.2,1) both;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tournament-modal.active {
  display: flex;
}
.modal-content {
  background: var(--dark-gray);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(255,215,0,0.10);
  padding: 2.5em 2em;
  max-width: 400px;
  width: 90vw;
  color: var(--text-light);
  position: relative;
  text-align: left;
  animation: fadeInUp 0.4s cubic-bezier(.4,0,.2,1) both;
}
.modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2em;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--maroon);
}
@media (max-width: 900px) {
  .tournament-featured {
    font-size: 0.85em;
    padding: 0.2em 0.7em;
  }
  .modal-content {
    padding: 1.5em 0.7em;
  }
}
@media (max-width: 600px) {
  .tournament-featured {
    font-size: 0.8em;
    padding: 0.15em 0.5em;
  }
  .modal-content {
    padding: 1em 0.2em;
    max-width: 98vw;
  }
}

/* --- Past Events Carousel (Single Card) --- */
.events-carousel.new-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  padding: 3em 0 2.5em 0;
  position: relative;
  overflow: visible;
}
.carousel-card-container {
  flex: 0 1 360px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.carousel-card {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  transition: box-shadow 0.22s, transform 0.22s, background 0.22s;
}
.carousel-card:hover, .carousel-card:focus {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 16px 48px 0 rgba(255,215,0,0.18), 0 4px 24px rgba(0,0,0,0.22);
  background: rgba(30, 30, 30, 0.90);
  z-index: 2;
}
.carousel-arrow {
  background: var(--black);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,215,0,0.08);
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  z-index: 2;
  outline: none;
}
.carousel-arrow:hover, .carousel-arrow:focus {
  background: var(--gold);
  color: var(--maroon);
  border: 2.5px solid var(--maroon);
  box-shadow: 0 4px 16px rgba(255,215,0,0.18);
}
.carousel-arrow:active {
  background: var(--maroon);
  color: var(--gold);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  margin-top: -1.2em;
  margin-bottom: 2em;
}
.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(255,215,0,0.10);
  outline: none;
}
.carousel-dot.active {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(255,215,0,0.18);
}
.carousel-dot:focus {
  outline: 2px solid var(--maroon);
}
@media (max-width: 900px) {
  .events-carousel.new-carousel {
    padding: 2em 0 1.5em 0;
    gap: 0.7em;
  }
  .carousel-card-container {
    max-width: 92vw;
  }
}
@media (max-width: 600px) {
  .events-carousel.new-carousel {
    flex-direction: column;
    gap: 0.5em;
    padding: 1.2em 0 1em 0;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.5em;
  }
  .carousel-card-container {
    min-width: 180px;
    max-width: 98vw;
  }
  .carousel-dots {
    margin-top: 0.2em;
    margin-bottom: 1.2em;
  }
}

.events-tabbed {
  background: var(--dark-gray);
  padding: 60px 0 40px 0;
  border-radius: 32px;
  margin-top: -40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  z-index: 4;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}
.events-tabs {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  margin-bottom: 2em;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.2em;
  font-weight: 700;
  padding: 0.7em 2em;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  position: relative;
}
.tab-btn:focus, .btn-primary:focus, .register-btn:focus, a:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  background: var(--maroon);
  color: var(--gold) !important;
}
.tab-btn.active, .tab-btn:focus {
  background: var(--maroon);
  color: var(--gold);
}
.tab-btn::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--maroon);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.tab-btn.active::after,
.tab-btn:focus::after {
  transform: scaleX(1);
}
.tab-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,215,0,0.18);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
}
.event-card {
  background: #181818;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 1.5em 1.2em 2em 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
  margin-bottom: 2.5rem;
}
.event-card img {
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 1.2rem;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 12px rgba(255,215,0,0.08);
}
.event-card h3 {
  font-size: 1.2em;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
  text-align: center;
}
.event-card p {
  font-size: 1em;
  color: var(--text-light);
  margin: 0.2em 0;
  text-align: center;
}
.register-btn {
  margin-top: 1em;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.7em 2em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
}
.register-btn:hover, .register-btn:focus {
  background: var(--maroon);
  color: var(--gold);
  box-shadow: 0 6px 24px rgba(139,30,63,0.18);
  transform: translateY(-2px) scale(1.04);
}
.register-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
  }
  .event-card img {
    height: 140px;
  }
}
@media (max-width: 600px) {
  .events-tabs {
    flex-direction: column;
    gap: 0.5em;
  }
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .event-card img {
    height: 100px;
  }
}

/* Hamburger button styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  margin-left: auto;
  z-index: 1100;
}
.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  position: relative;
  border-radius: 2px;
  transition: background 0.2s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.2s, top 0.2s, bottom 0.2s;
}
.hamburger::before {
  top: -9px;
}
.hamburger::after {
  bottom: -9px;
}
.nav-toggle.active .hamburger {
  background: transparent;
}
.nav-toggle.active .hamburger::before {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active .hamburger::after {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1.5em;
    position: absolute;
    top: 90px;
    right: 0;
    left: 0;
    background: rgba(24,24,24,0.98);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 2em 0 1.5em 0;
    z-index: 1000;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }
  .nav-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero,
  .events-tabbed,
  .about,
  .footer {
    margin-top: 6rem;
    margin-bottom: 6rem;
  }
}

@media (min-width: 900px) {
  .event-card,
  .feature-item,
  .tournament-card {
    margin-bottom: 3.5rem;
  }
}

@media (min-width: 900px) {
  .events-grid,
  .tournaments-grid {
    gap: 3.5rem;
  }
}

/* General focus style for all interactive elements */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,215,0,0.18);
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gold);
  color: var(--black);
  padding: 0.75em 1.5em;
  z-index: 2000;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transform: translateY(-100%);
  transition: transform 0.2s;
  text-decoration: none;
  outline: none;
}
.skip-link:focus {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
} 