/* Responsive Adjustments */

/* Restore 2-column layout for desktop */
.club-links,
.forms-two {
  grid-template-columns: repeat(2, 1fr);
}

/* Carousel Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 15px 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  border-radius: 4px;
}

.nav-arrow:hover {
  background: rgba(233, 30, 99, 0.8); /* Brand color */
}

.nav-arrow.prev {
  left: 10px;
}

.nav-arrow.next {
  right: 10px;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 20;
  padding: 5px;
}

/* Responsive Visibility Utilities */
.mobile-only {
  display: none;
}

/* .desktop-only defaults to visible (inherit display) */

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
}

/* Tablet & Mobile Styles */
@media (max-width: 900px) {
  .top-nav .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: block;
  }

  .top-nav .container {
    justify-content: space-between;
    position: relative;
  }

  .top-nav ul {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed; /* Changed from absolute to fixed for full screen width */
    top: 64px; /* Height of nav bar */
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .top-nav ul.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .top-nav ul li {
    margin: 10px 0;
  }
  
  .top-nav a {
    font-size: 18px;
    display: block;
    padding: 10px;
  }

  /* Typography */
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }

  /* Layouts */
  .forms-two {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Force 1 column for club links regardless of inline styles */
  .club-links {
    grid-template-columns: 1fr !important; 
  }
  
  .club-card-bg {
    height: 200px;
  }
  
  /* Gallery adjustments */
  .gallery-3x3 {
    grid-template-columns: 1fr;
  }

  /* Show only first 3 images on mobile */
  .gallery-3x3 .card:nth-child(n+4) {
    display: none;
  }

  /* Make images taller for better visibility */
  .gallery-3x3 .cover {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .gallery-3x3 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
  
  .form input, .form textarea {
    margin: 6px 0;
  }
  
  .partners-grid {
    justify-content: center;
  }
}