/* Base Styles */
:root {
  --primary: #003300;
  --primary-light: #1a4d1a;
  --secondary: #f8f8f8;
  --accent: #ff6b35;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--text);
}

.logo-img {
  height: 1.8rem; /* Matches the logo font size */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links.active {
  max-height: 500px; /* Adjust based on content */
  opacity: 1;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-nav {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 16px; /* Reduced vertical padding */
  border-radius: 4px;
  font-size: 0.95rem; /* Slightly smaller font size */
  font-weight: 500;
  transition: var(--transition);
  line-height: 1; /* Ensures consistent height */
  height: fit-content; /* Allows button to shrink to content */
  align-self: center; /* Centers vertically with other nav items */
}

.cta-nav:hover {
  background-color: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  margin-top: -2px; /* Minor visual adjustment for the icon */
}

/* Landing Section */
.landing {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Video Carousel */
.film-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.film-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
}

.film-slide:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.film-slide.active {
  opacity: 1;
}

.film-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay and Content */
.landing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.landing-title-container {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.landing-title {
  font-family: 'Roboto', sans-serif;
  font-size: 3rem;
  color: white;
  margin: 20px 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Landing Button */
.landing-button {
  background: rgba(0, 50, 0, 1);
  border: 2px solid white;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.landing-button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #003300;
}

/* New Hero Content Overlay */
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  background: rgba(0, 51, 0, 0.7);
}

/* Unmute Button Styling */
.mute-button {
  position: absolute;
  bottom: 20px; /* Distance from the top */
  left: 20px; /* Distance from the right */
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  border: 2px solid #003300; /* Green border */
  color: #003300; /* Green text */
  padding: 8px 16px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  border-radius: 20px; /* Rounded corners */
  cursor: pointer;
  z-index: 1000; /* Ensure it's above other elements */
  transition: all 0.3s ease;
}

.mute-button:hover {
  background: #003300; /* Green background on hover */
  color: white; /* White text on hover */
}

/* Soundwave Container */
.soundwave {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px; /* Space between the bars */
  height: 0.8em; /* Match the height of the title */
  margin-right: 10px; /* Space between the soundwave and "Your Voice" */
}

/* Soundwave Bars */
.soundwave span {
  display: block;
  width: 15px; /* Width of each bar */
  background-color: white; /* White color for the bars */
  animation: soundwave 2s ease-in-out infinite;
}

.soundwave span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}

.soundwave span:nth-child(2) {
  height: 70%;
  animation-delay: 0.3s;
}

.soundwave span:nth-child(3) {
  height: 50%;
  animation-delay: 0.6s;
}

.soundwave span:nth-child(4) {
  height: 80%;
  animation-delay: 0.9s;
}

/* Soundwave Animation */
@keyframes soundwave {
  0%, 100% {
    height: 30%; /* Minimum height */
  }
  50% {
    height: 100%; /* Maximum height */
  }
}
.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  animation: bounce 2s infinite;
}

.arrow-down {
  width: 20px;
  height: 20px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
  margin-top: 10px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Watch Button Styles */
.watch-button {
  background: white !important;
  color: var(--primary) !important;
  border-color: white !important;
}

.watch-button:hover {
  background: rgba(255,255,255,0.9) !important;
}

.watch-button .new-tab-icon {
  color: var(--primary) !important;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background-color: var(--secondary);
}

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

.about-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.8rem;
}

.about-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.about-video {
  max-width: 1000px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.video-caption {
  text-align: center;
  margin-top: 20px;
}

.video-caption h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* Calendar Section */
.calendar-section {
  padding: 100px 0;
}

.calendar-highlight {
  max-width: 1000px;
  margin: 0 auto;
}

.calendar-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  margin-bottom: 20px;
}

.calendar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.calendar-card.featured {
  border: 3px solid var(--primary);
  margin-bottom: 40px;
}

.calendar-date {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-date .month {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-details {
  padding: 20px;
  flex-grow: 1;
}

.calendar-details h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card-tag {
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 10px;
}

.card-description {
  margin-bottom: 15px;
  color: var(--text-light);
}

.card-location, .card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-footer {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 15px;
}

.card-link {
  color: var(--primary);
  font-weight: 500;
  margin-left: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.full-calendar-link {
  text-align: center;
  margin-top: 40px;
}

.btn-calendar {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Rules Section */
/* Add this CSS to your stylesheet */
.rules-section {
  padding: 100px 20px; /* Added horizontal padding */
  background-color: var(--secondary);
}

.rules-accordion {
  max-width: 900px; /* Limiting width */
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  background-color: var(--white);
}

.accordion-header {
  width: 100%;
  padding: 20px;
  background-color: var(--white);
  color: var(--primary);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: #f5f5f5;
}

.accordion-header i {
  transition: var(--transition);
  color: var(--primary);
}

.accordion-content {
  background-color: var(--white);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content ul {
  padding-left: 20px;
  margin: 15px 0;
}

.accordion-content li {
  margin-bottom: 10px;
}

.accordion-item.active .accordion-header {
  background-color: var(--primary);
  color: var(--white);
}

.accordion-item.active .accordion-header i {
  color: var(--white);
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 0 20px 20px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.role-card {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.role-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.role-card ul {
  padding-left: 20px;
}

.rules-resources {
  text-align: center;
  margin-top: 40px;
}

/* Tournaments Section */
.tournaments-section {
  padding: 100px 0;
}

.tournament-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.tournament-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.tournament-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px;
  position: relative;
}

.card-header h3 {
  font-size: 1.5rem;
}

.card-description {
  padding: 20px;
  color: var(--text-light);
}

.card-footer {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.view-all-tournaments {
  text-align: center;
  margin-top: 40px;
}

/* Resources Section */
.resources-section {
  padding: 100px 0;
  background-color: var(--secondary);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.resource-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-10px);
}

.resource-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.resource-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.resource-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.resource-link:hover {
  color: var(--primary-light);
}

.resource-link.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background-color: var(--primary);
  color: var(--white);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  font-size: 1.2rem;
  width: 30px;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

#successMessage {
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
  text-align: center;
  display: none; /* Hidden by default */
}

/* Success state */
#successMessage[style*="green"] {
  background-color: #e6f7ee;
  border: 1px solid #a3e9c0;
}

/* Error state */
#successMessage[style*="red"] {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
}

.error-label {
  color: #d32f2f;
  font-size: 0.8em;
  margin-top: 4px;
  display: block;
  height: 16px; /* Prevent layout shift when errors appear */
}

/* Footer */
.main-footer {
  background-color: #111;
  color: #aaa;
  padding: 60px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.footer-brand .logo {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-brand p {
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.link-group h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.link-group a {
  display: block;
  margin-bottom: 10px;
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background-color: var(--white);
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

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

.modal h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.modal-scroll {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.resource-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.resource-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resource-item h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .cta-nav {
    padding: 8px 14px; /* Slightly smaller on mobile */
    font-size: 0.9rem;
    margin-top: 15px; /* Adds space when in mobile menu */
  }
  
  .nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex; /* Show when active */
    max-height: 500px;
    opacity: 1;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .cta-nav {
    margin-top: 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .calendar-card {
    flex-direction: column;
  }
  
  .calendar-date {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 15px;
  }
  
  .calendar-date .month {
    font-size: 1rem;
  }
  
  .calendar-date .day {
    font-size: 1.5rem;
  }
  
  .rules-section {
    padding: 80px 15px;
  }
  
  .role-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
