/* Google Fonts: JetBrains Mono for points display */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #7A0102;
  --secondary-color: #7A0102;
  --accent-color: #DAA520;
  --accent-light: #F4D03F;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success: #27ae60;
  --error: #7A0102;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
  --shadow-xl: 0 10px 40px rgba(0,0,0,0.2);
  --gradient-primary: linear-gradient(135deg, #7A0102 0%, #7A0102 100%);
  --gradient-accent: linear-gradient(135deg, #DAA520 0%, #F4D03F 100%);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

/* Header and Navigation */
header {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
}

.logo-section {
  cursor: pointer;
}

.logo-section h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 0.85rem;
  opacity: 0.9;
  color: var(--accent-light);
  margin: 0;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--accent-light);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-nav {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-club {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-club:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-admin {
  background: var(--gradient-accent);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(218, 165, 32, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:focus {
  outline: none;
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile Sidebar */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--gradient-primary);
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  z-index: 1002;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-sidebar-header h2 {
  color: white;
  font-size: 1.3rem;
  margin: 0;
}

.mobile-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-light);
}

.mobile-nav .btn-nav {
  margin: 0.5rem 1.5rem;
  text-align: center;
  width: auto;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  font-weight: 500;
  animation: fadeInUp 1s ease;
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.9;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1.2s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease;
}

.btn-hero {
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-dark);
}

.btn-hero.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(218, 165, 32, 0.4);
}

.btn-hero.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* About Section */
.about-section {
  background-color: var(--bg-white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-highlights {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.about-highlights h3 {
  color: var(--primary-color); /* use defined primary color */
  margin-bottom: 1rem;
}

.about-highlights ul {
  list-style: none;
  padding-left: 0;
}

.about-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.about-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* Tabs */
.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab {
  padding: 1rem 2rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  align-items: stretch; /* ensure cards stretch to same height */
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.tab-icon {
  font-size: 1.3rem;
}

.tab-text {
  font-weight: 600;
}

.tab:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tab.active .tab-icon {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.tab-content {
  display: none;
  animation: fadeInContent 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeInContent {
  from { 
    opacity: 0; 
    transform: translateY(20px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* Leaderboard Header */
.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.leaderboard-header h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

.auto-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
}

.refresh-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Tables */
.leaderboard-table {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gradient-primary);
  color: white;
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

th.rank-col {
  width: 80px;
  text-align: center;
}

th.points-col {
  text-align: right;
  width: 150px;
}

th.center-align {
  text-align: center;
}

td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

td.center-align {
  text-align: center;
}

tbody tr {
  transition: all 0.3s ease;
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(139, 0, 0, 0.03) 0%, rgba(139, 0, 0, 0.01) 100%);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Rank styling - ONLY for hostel championship table on hover */
#hostelsTableBody tr:hover {
  background: rgba(122, 1, 2, 0.03);
}

#hostelsTableBody tr:nth-child(1):hover td:first-child {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

#hostelsTableBody tr:nth-child(2):hover td:first-child {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

#hostelsTableBody tr:nth-child(3):hover td:first-child {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

tbody tr td:first-child {
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.1rem;
}

/* Points column styling */
tbody tr td:last-child,
.points-mono,
.club-stat-value,
.stat-value,
.event-points {
  font-family: 'JetBrains Mono', 'SF Mono', 'Roboto Mono', 'Cascadia Code', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  text-align: right;
  letter-spacing: -0.5px;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.spinner {
  margin: 0 auto 1rem;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Clubs Grid */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.club-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.club-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.club-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.club-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.club-stat {
  text-align: center;
}

.club-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.club-stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Recent Activity */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.activity-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.activity-points {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

button,
.btn,
.btn-nav,
.tab-btn {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-group label {
  display: block;
  text-align: center;
}

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

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

.btn-secondary {
  background-color: var(--text-light);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--text-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .main-nav {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-sidebar {
    display: block;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .header-content {
    gap: 1rem;
  }
  
  .logo-section h1 {
    font-size: 1.4rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
  
  /* Mobile Container Padding */
  .container {
    padding: 0 1rem;
  }
  
  /* Leaderboard Mobile Padding */
  .leaderboard-table {
    padding: 0;
    overflow-x: auto;
  }
  
  .leaderboard-content {
    padding: 1rem;
  }
  
  .leaderboard-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Mobile Heading Sizes */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 300px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .leaderboard-tabs {
    flex-direction: column;
  }
  
  .tab {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.75rem 0.4rem;
    font-size: 0.85rem;
  }
  
  /* Hide specific columns on mobile */
  .hide-mobile {
    display: none !important;
  }
  
  /* Adjust column widths for mobile */
  .rank-col {
    width: 40px !important;
  }
  
  .points-col {
    width: auto !important;
    text-align: right !important;
  }
  
  /* Prevent horizontal scroll on tables */
  .leaderboard-table table {
    min-width: 100%;
    width: 100%;
  }
  
  /* Make rank column smaller on mobile */
  .rank-col {
    width: 50px;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .leaderboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .leaderboard-header h3 {
    font-size: 0.9rem;
  }
  
  #hostelsTableBody tr:nth-child(1):hover td:first-child,
  #hostelsTableBody tr:nth-child(2):hover td:first-child,
  #hostelsTableBody tr:nth-child(3):hover td:first-child {
    font-size: 1rem;
  }
  
  /* Events Grid Mobile */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .event-card-compact {
    flex-direction: column;
  }
  
  .event-card-compact .event-image-slider {
    height: 180px !important;
  }
  
  .event-card-compact-content {
    padding: 1rem;
  }
  
  /* Student Leaderboard Filter Mobile */
  .filter-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .filter-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-controls > div {
    min-width: 100%;
  }
  
  .hostel-checkboxes {
    max-height: 250px;
  }
  
  /* Event Details Mobile */
  .event-card {
    padding: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  
  .event-image-slider {
    height: 250px !important;
  }
  
  .event-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
  /* Event details table */
  .event-card table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .event-card table thead,
  .event-card table tbody,
  .event-card table tr,
  .event-card table td,
  .event-card table th {
    display: block;
  }
  
  .event-card table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
  }
  
  .event-card table thead {
    display: none;
  }
  
  .event-card table td {
    text-align: left !important;
    padding: 0.5rem !important;
    border: none !important;
    position: relative;
    padding-left: 50% !important;
  }
  
  .event-card table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
  }
}

@media (max-width: 480px) {
  /* Extra padding for very small screens */
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Smaller headings on very small screens */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Smaller table text on very small screens */
  table {
    font-size: 0.75rem;
  }
  
  th, td {
    padding: 0.5rem 0.25rem;
  }
  
  /* Events cards full width */
  .events-grid {
    padding: 0;
  }
  
  /* Event details very small screen */
  .event-image-slider {
    height: 200px !important;
  }
  
  table {
    font-size: 0.75rem;
  }
  
  th, td {
    padding: 0.6rem 0.3rem;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: var(--bg-white);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s;
}

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

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

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s;
}

.close:hover {
  color: var(--text-dark);
}

/* Event Images */
.event-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.event-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-gold {
  background-color: var(--accent-color);
  color: white;
}

.badge-silver {
  background-color: #C0C0C0;
  color: white;
}

.badge-bronze {
  background-color: #CD7F32;
  color: white;
}

/* About Section */
.about-section {
  background-color: white;
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.about-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-card p {
  color: var(--text-light);
  line-height: 1.8;
}

.key-features {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.key-features h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-dark);
  line-height: 1.8;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.2rem;
}

.features-list li strong {
  color: var(--primary-color);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  font-weight: 800;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--gradient-accent);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Leaderboard Section */
.leaderboard-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  padding: 5rem 0;
}

.leaderboard-content {
  display: none;
}

.leaderboard-content.active {
  display: block;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 0;
}

.stats-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

/* Clubs Section */
.clubs-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.club-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.club-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.club-card .club-points {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Events Section */
.events-section {
  background-color: white;
  padding: 4rem 0;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card-public {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.event-card-public:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-card-public h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.event-card-public .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.event-card-public .event-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Event Image Slider */
.event-image-slider {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.event-image-slider .slider-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-image-slider .slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.event-image-slider .slider-image.active {
  opacity: 1;
}

.event-image-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 10;
  border-radius: 4px;
}

.event-image-slider .slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.event-image-slider .slider-btn.prev {
  left: 0.5rem;
}

.event-image-slider .slider-btn.next {
  right: 0.5rem;
}

.event-image-slider .slider-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.event-image-slider .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-image-slider .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.event-image-slider .dot.active {
  background-color: var(--accent-color);
}

/* Footer */
.footer {
  background-color: #1A1A1A;
  color: white;
  padding: 3rem 0 0;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 0 0 2rem 0;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #7A0102;
  color: white;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.footer-bottom p {
  color: white;
  margin: 0.25rem 0;
  filter: grayscale(0);
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.footer-bottom a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Hostel Badge */
.hostel-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

/* Events Grid for Events So Far tab */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-card-compact {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}

.event-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.event-card-compact .event-image-slider {
  width: 100%;
  height: 200px;
  margin-bottom: 0 !important;
}

.event-card-compact-content {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.event-date-badge {
  background: var(--gradient-primary);
  color: white;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  min-width: 60px;
  height: fit-content;
  flex-shrink: 0;
}

.date-day {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1;
}

.date-month {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
  opacity: 0.9;
}

.event-info-compact {
  flex: 1;
}

.event-info-compact h4 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  font-weight: 600;
}

.event-club {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.event-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-icon {
  font-size: 1rem;
}

.stat-divider {
  color: var(--text-light);
  opacity: 0.5;
}

.event-description {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.loading-center {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
}

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

/* ========================================
   CLUBS SHOWCASE PAGE STYLES
   ======================================== */

/* Clubs showcase grid */
.clubs-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Club showcase card */
.club-showcase-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* Club showcase image — logo from <img> only (API: club file or caiclogo fallback). No CAIC behind real logos. */
.club-showcase-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef0f4;
}

.club-showcase-image img.club-tile-logo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  box-sizing: border-box;
  background: transparent;
  transition: transform 0.3s ease;
}

.club-showcase-image img.club-tile-logo-img.club-tile-logo-hidden {
  display: none !important;
}

.club-showcase-card:hover .club-showcase-image img.club-tile-logo-img:not(.club-tile-logo-hidden) {
  transform: scale(1.05);
}

/* Club showcase header */
.club-showcase-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.club-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.club-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.club-type-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-transform: capitalize;
}

/* Club showcase body */
.club-showcase-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Club type tag on clubs grid */
.club-tile-type-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  border: 1px solid transparent;
}

.club-tile-type-tag--technical {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.2);
}

.club-tile-type-tag--cultural {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
}

.club-tile-type-tag--sports {
  color: #047857;
  background: rgba(4, 120, 87, 0.1);
  border-color: rgba(4, 120, 87, 0.2);
}

.club-tile-type-tag--society {
  color: #c2410c;
  background: rgba(194, 65, 12, 0.1);
  border-color: rgba(194, 65, 12, 0.2);
}

.club-tile-type-tag--other {
  color: var(--text-light);
  background: var(--bg-light);
  border-color: var(--border-color);
}

.club-description {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.club-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.club-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.club-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.club-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Progress bar */
.club-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.club-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.club-progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* Club showcase footer */
.club-showcase-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.view-details-btn {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.club-showcase-card:hover .view-details-btn {
  color: var(--secondary-color);
  transform: translateX(4px);
  display: inline-block;
}

/* ========================================
   CLUB DETAILS PAGE STYLES
   ======================================== */

/* Back button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateX(-4px);
}

/* Club header section */
.club-header-section {
  padding: 2rem 0;
  background: var(--bg-light);
}

.club-hero-banner {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.club-hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 3rem;
  align-items: center;
}

.club-hero-text {
  color: white;
}

.club-type-badge-large {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.club-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.club-website-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.club-website-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.club-hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1rem;
}

.club-hero-image {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.club-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Club stats inline (in hero banner) */
.club-stats-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-inline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-inline-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-inline-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-inline-divider {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* Remove the old stats banner */
.club-stats-banner {
  display: none;
}

/* Club about section */
.club-about-section {
  padding: 3rem 0;
}

.club-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.club-about-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.club-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.club-about-card.full-width {
  grid-column: 1 / -1;
}

.club-about-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.club-about-card p {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.95rem;
}

.contact-details p {
  margin: 0.75rem 0;
  color: var(--text-dark);
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Club gallery */
.club-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.club-gallery-item {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.club-gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* Club events section */
.club-events-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 1rem 0;
}

/* Mobile responsiveness for club pages */
@media (max-width: 768px) {
  .clubs-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .club-hero-content {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .club-hero-title {
    font-size: 2rem;
  }

  .club-hero-description {
    font-size: 1rem;
  }

  .club-hero-image {
    height: 200px;
  }

  .club-stats-inline {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .stat-inline-value {
    font-size: 1.25rem;
  }

  .stat-inline-divider {
    display: none;
  }

  .club-about-grid {
    gap: 1rem;
  }

  .club-gallery-section {
    padding: 1rem;
  }

  .club-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-slider-btn {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .gallery-slider-btn.prev {
    left: 0.5rem;
  }

  .gallery-slider-btn.next {
    right: 0.5rem;
  }

  .gallery-counter {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .club-showcase-card {
    border-radius: 12px;
  }

  .club-name {
    font-size: 1.3rem;
  }

  .club-hero-title {
    font-size: 1.75rem;
  }

  .club-stats-inline {
    gap: 0.75rem;
  }

  .stat-inline-item {
    flex: 1;
    min-width: 80px;
  }
}

/* Club About Section and Gallery Styles */
.club-about-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.club-about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.club-about-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.club-about-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.club-about-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-details p {
  margin: 0;
  white-space: pre-line;
  color: var(--text-dark);
}

/* Gallery Slider Styles */
.club-gallery-section {
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.club-gallery-section h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.club-gallery-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gallery-slider-images {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 aspect ratio */
}

.gallery-slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-slider-image.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-slider-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-slider-btn.prev {
  left: 1rem;
}

.gallery-slider-btn.next {
  right: 1rem;
}

.gallery-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot:hover {
  background: rgba(255,255,255,0.8);
}

.gallery-dot.active {
  background: white;
  width: 24px;
  border-radius: 5px;
}

.gallery-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
}
