@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
}
/* About us */
.about-header {
	background-image: url('/uploads/images/about_us.jpg');
	width: 100%;
	height: 550px;
    	background-size: cover;
    	background-position: center 35%;
    	background-repeat: no-repeat;
	display: flex;
    	align-items: flex-end;
}
.about-header h1 {
	position: relative;
	color: white;
	text-transform: uppercase;
	padding-left: 8rem;
	font-size: 5rem;
	z-index: 2;
}
.about-header::before {
    content: '';
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    height: 550px;
}
  /* Mobile responsiveness */
    @media (max-width: 768px) {
.about-header h1 {
	font-size: 2rem;
	padding-left: 2rem;
	padding-bottom: 2rem;

}
}
  /* Mobile responsiveness */
    @media (max-width: 480px) {
.about-header h1 {
	font-size: 2rem;
	padding-left: 2rem;
	padding-bottom: 2rem;
}
}
/* Sponsors Section */
.sponsors-section-working {
  background: transparent;
  padding: 50px 200px;
  margin-top: 50px;
}

.sponsors-container-working {
  max-width: calc(100vw - 200px);
  margin: 0 auto;
  padding: 0 20px;
}

.sponsors-title-working {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #2253aa;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sponsors-scroll-container-working {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 20px 0;
  cursor: grab;
  
  /* Hide scrollbar completely */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.sponsors-scroll-container-working:active {
  cursor: grabbing;
}

.sponsors-scroll-container-working::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.sponsors-track-working {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 140px; /* Ensure consistent height */
  
  /* Center items when there are fewer items than screen width */
  justify-content: var(--justify-content, flex-start);
  padding: 0 var(--side-padding, 0);
}

.sponsor-box-working {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  height: 120px;
  width: 180px; /* Fixed width */
  min-width: 180px; /* Prevent shrinking */
  max-width: 180px; /* Prevent growing */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevent flex shrinking */
}

.sponsor-box-working:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(34, 83, 170, 0.15);
  border-color: rgba(34, 83, 170, 0.2);
}

.sponsor-placeholder-working {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 60px;
  transition: all 0.3s ease;
}
.sponsor-placeholder-working img {
  max-width: 80%;
  object-fit: contain;
}
.sponsor-placeholder-working a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.sponsor-box-working:hover .sponsor-placeholder-working {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

@media (max-width: 1400px) {
  .sponsors-track-working {
    --side-padding: 0;
  }
.sponsors-section-working {
  padding: 50px 50px;
}

}

@media (max-width: 1200px) {
  .sponsors-container-working {
    max-width: calc(100vw - 100px);
  }
  
  .sponsors-track-working {
    gap: 15px;
  }
  
}

@media (max-width: 1024px) {
  .sponsors-container-working {
    max-width: calc(100vw - 80px);
  }
  
}

@media (max-width: 768px) {
  .sponsors-section-working {
    padding: 30px 0;
  }
  
  .sponsors-container-working {
    max-width: calc(100vw - 40px);
    padding: 0 15px;
  }
  
  .sponsors-title-working {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .sponsors-track-working {
    gap: 12px;
  }
    
  .sponsor-placeholder-working {
    font-size: 12px;
    line-height: 50px;
  }
}

@media (max-width: 480px) {
  .sponsors-container-working {
    max-width: calc(100vw - 20px);
  }
  
  .sponsors-track-working {
    gap: 10px;
  }
    
  .sponsor-placeholder-working {
    font-size: 11px;
    line-height: 50px;
  }
  
  .sponsors-title-working {
    font-size: 20px;
  }
}
/* Contact Header */
.contact-header {
  background-image: url('/uploads/images/contact_us.jpg');
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.contact-header h1 {
  position: relative;
  color: white;
  text-transform: uppercase;
  font-size: 3.5rem;
  font-weight: 700;
  z-index: 2;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contact Container */
.contact-container {
  max-width: calc(100vw - 200px);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Info Section */
.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-info h2 {
  color: #2253a9;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-info > p {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: #2253a9;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: #1a202c;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.contact-item p {
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Social Links */
.social-links h4 {
  color: #1a202c;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #2253a9;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #1a3d85;
  transform: translateY(-2px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* Contact Form Section */
.contact-form-section {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
  color: #2253a9;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9fafb;
  color: #1a202c;
}

.form-input:focus {
  outline: none;
  border-color: #2253a9;
  background: white;
  box-shadow: 0 0 0 3px rgba(34, 83, 169, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
}

/* Submit Button */
.form-actions {
  margin-top: 1rem;
}

.btn-submit {
  background: linear-gradient(135deg, #2253a9 0%, #1a3d85 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(34, 83, 169, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1a3d85 0%, #152f66 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 83, 169, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Form Notice */
.form-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-notice p {
  margin: 0;
  color: #0369a1;
  font-size: 0.875rem;
  line-height: 1.4;
}

.notice-icon {
  width: 16px;
  height: 16px;
  color: #0284c7;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Form Status Messages */
.form-status {
  margin-top: 1.5rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.4;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Button Loading State */
.btn-submit.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 2.5rem;
    padding: 0 1rem;
  }

  .contact-container {
    max-width: calc(100vw - 40px);
    padding: 2rem 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info,
  .contact-form-section {
    padding: 1.5rem;
  }

  .contact-info h2,
  .contact-form-section h2 {
    font-size: 1.5rem;
  }

  .contact-item {
    margin-bottom: 1.5rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
  }

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

  .btn-submit {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-container {
    max-width: calc(100vw - 20px);
  }

  .contact-info,
  .contact-form-section {
    padding: 1rem;
  }

  .contact-info h2,
  .contact-form-section h2 {
    font-size: 1.25rem;
  }

  .form-input {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .btn-submit {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}/* League Points Page*/
.league {
	width: 100%;
	margin: 3rem auto;
}
.league h1 {
	padding: 1rem 8rem;
	font-size: 2rem;
	color: #2253a9;
}
.league h3 {
	padding: 1rem 8rem;
	font-size: 4rem;
	color: #2253a9;
}
.league h2 {
	padding: 0.3rem 8rem;
	color: #2253a9;
	font-size: 1.6rem;
}
.league a {
	color: #2253a9;
}
.league p {
	padding: 0.2rem 8rem;
	font-size: 1.2rem;
	color: #2253a9;
	margin-right: 8rem;
}
.league li {
	padding: 0.1rem 8rem;
	font-size: 1.2rem;
	color: #2253a9;
	margin-right: 8rem;
}
.league table {
	margin: 0 8rem;
	width: 60%;
	color: #2253a9;
	border-collapse: collapse;
	font-size: 1.2rem;
}
.league table th {
	border-bottom: 2px solid #2253a9;
}
.league table td {
	padding: 0.7rem 0;
}

.league table tr {
	border-bottom: 1px solid #849cc6;
	text-align: center;}
.league table tr:nth-child(6),
.league table tr:nth-child(9),
.league table tr:nth-child(12),
.league table tr:nth-child(14) {
	border-bottom: 2px solid #849cc6;
	text-align: center;
}
.league table tr:nth-child(odd) {
	background-color: #ebeef4;
}
.league table tr:nth-child(1) {
	background-color: transparent;
}
.league-header {
	background-image: url('/uploads/images/league.jpg');
	width: 100%;
	height: 550px;
    	background-size: cover;
    	background-position: center 25%;
    	background-repeat: no-repeat;
	display: flex;
    	align-items: flex-end;
}
.league-header h1 {
	position: relative;
	color: white;
	text-transform: uppercase;
	padding-left: 8rem;
	font-size: 5rem;
	z-index: 2;
}
.league-header::before {
    content: '';
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    height: 550px;
}
details {
  border-bottom: 1px solid #9fb4da;
  overflow: hidden;
}

details[open] > *:not(summary) {
  animation: expand 0.8s ease-out;
}

details:not([open]) > *:not(summary) {
  animation: collapse 0.8s ease-out;
}

@keyframes expand {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes collapse {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}
details > summary {
  list-style: none;
  display: block;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { content: ""; }

details > summary > * {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

summary br { display: none; }
summary > * { margin: 15px 0; }

/* Events Page Styles */
.events-container {
  max-width: calc(100vw - 200px);
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.events-header {
  text-align: left;
  margin-bottom: 1rem;
  padding: 2rem 0;
}

.events-header h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #2253a9;
  margin-bottom: 1rem;
  border-bottom: 3px solid #2253a9;
}

.events-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
}

.events-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.events-main {
  min-width: 0;
}

.events-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.events-filters .filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.events-filters .filter-group label {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.875rem;
  white-space: nowrap;
}

.events-filters .filter-group select {
  background: white;
  border: 1px solid #2253aa;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: #2253aa;
  transition: all 0.3s ease;
  min-width: 140px;
}

.events-filters .filter-group select:focus {
  outline: none;
  border-color: #2b5ce6;
  box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.1);
}

.clear-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #2b5ce6;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.clear-filters:hover {
  background: rgba(43, 92, 230, 0.1);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  height: auto;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.event-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-color: #2253aa;
}

.event-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.event-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #64748b;
}

.event-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 0.25rem 0;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.event-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-external {
  flex-shrink: 0;
  color: #6b7280;
  margin-left: 0.5rem;
}

.event-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.event-meta-item svg {
  flex-shrink: 0;
}

.event-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-division {
  background: #e2e8f0;
  color: #475569;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.events-loading,
.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #6b7280;
}

.events-empty svg {
  margin-bottom: 1rem;
  color: #9ca3af;
}

.events-empty h3 {
  margin-bottom: 0.5rem;
  color: #374151;
}

.load-more-indicator {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Events Sidebar */
.events-sidebar {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.events-search {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.events-search h3 {
  margin-bottom: 1rem;
  color: #1a202c;
  font-size: 1.125rem;
  font-weight: 600;
}

.search-input-container {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #2253aa;
  box-shadow: 0 0 0 3px rgba(34, 83, 170, 0.1);
}

.search-input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.search-results-info {
  font-size: 0.75rem;
  color: #6b7280;
}

.events-quick-stats {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.events-quick-stats h4 {
  margin-bottom: 1rem;
  color: #1a202c;
  font-size: 1rem;
  font-weight: 600;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2253aa;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* News Slideshow Styles */
.news-slideshow {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem;
  color: white;
  max-width: 800px;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.read-more-btn {
  background: white;
  color: #2253aa;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slide-arrow-left {
  left: 2rem;
}

.slide-arrow-right {
  right: 2rem;
}

.slide-indicators {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background: white;
}

.slideshow-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6b7280;
  background: #f8fafc;
}

    @media (max-width: 966px) {
/* Events mobile styles */
.events-container {
  max-width: calc(100vw - 40px);
  padding: 1rem;
}

.events-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.events-filters {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.events-filters .filter-group {
  justify-content: space-between;
}

.events-filters .filter-group select {
  min-width: 200px;
}

.event-item {
  grid-template-columns: 60px 1fr;
  height: auto;
  min-height: 70px;
  padding: 0.75rem;
}

.event-image {
  width: 50px;
  height: 50px;
}

.event-meta {
  gap: 0.5rem;
}

.event-meta-item {
  font-size: 0.7rem;
}
}
  /* Mobile responsiveness */
    @media (max-width: 768px) {
.league-header h1 {
	font-size: 2rem;
	padding-left: 2rem;
	padding-bottom: 2rem;

}
.league {
	margin: 1rem auto;
}
.league h1 {
	padding: 1rem 1rem;
}
.league h3 {
	padding: 1rem 1rem;
}

.league h2 {
	padding: 0.3rem 1rem;}

.league p {
	padding: 0.2rem 1rem;
	font-size: 1.3rem;
	margin-right: 1rem;
}
.league li {
	padding: 0.1rem 1rem;
	font-size: 1.3rem;
	margin-right: 1rem;
}
.league table {
	margin: 0 1rem;
	width: 95%;
	font-size: 1.3rem;
}

.slide-content {
  padding: 2rem;
}

.slide-title {
  font-size: 1.8rem;
}

.slide-arrow {
  width: 40px;
  height: 40px;
}

.slide-arrow-left {
  left: 1rem;
}

.slide-arrow-right {
  right: 1rem;
}

.slide-indicators {
  right: 2rem;
}
}
  /* Mobile responsiveness */
    @media (max-width: 480px) {
.league-header h1 {
	font-size: 2rem;
	padding-left: 2rem;
	padding-bottom: 2rem;
}
.league {
	margin: 1rem auto;
}
.league h1 {
	padding: 1rem 1rem;
}
.league h3 {
	padding: 1rem 1rem;
}

.league h2 {
	padding: 0.3rem 1rem;}

.league p {
	padding: 0.2rem 1rem;
	font-size: 1.3rem;
	margin-right: 1rem;
}
.league li {
	padding: 0.1rem 1rem;
	font-size: 1.3rem;
	margin-right: 1rem;
}
.league table {
	margin: 0 1rem;
	width: 95%;
	font-size: 1.3rem;
}

/* Events very small mobile */
.events-container {
  max-width: calc(100vw - 20px);
}

.events-header h1 {
  font-size: 4rem;
}

.slide-content {
  padding: 1.5rem;
}

.slide-title {
  font-size: 1.5rem;
}
}

/* Additional features for Writers Panel */
  .url-preview {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      font-family: monospace;
      font-size: 0.9rem;
    }

    .url-preview span {
      flex: 1;
      color: #2253aa;
      font-weight: 500;
    }

    .article-url-cell {
      font-family: monospace;
      font-size: 0.85rem;
      color: #2253aa;
    }

    .article-url-link {
      color: #2253aa;
      text-decoration: none;
      border-bottom: 1px dotted #2253aa;
    }

    .article-url-link:hover {
      color: #1a365d;
      border-bottom-style: solid;
    }

    .status-published {
      background: #10b981;
      color: white;
    }

    .status-draft {
      background: #f59e0b;
      color: white;
    }

    .status-archived {
      background: #6b7280;
      color: white;
    }

    .copy-success {
      color: #10b981;
      font-size: 0.875rem;
      margin-left: 0.5rem;
    }

    /* Team Account Bar Styles */
    .team-account-bar {
      background: linear-gradient(135deg,rgba(163, 185, 201, 1) 29%, rgba(66, 91, 117, 1) 100%);
      padding: 8px 0;
      color: white;
      font-size: 14px;
      position: relative;
      z-index: 1001;
    }

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

    .team-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .club-team-name {
      font-weight: 700;
	font-size: 1.2rem;
      color: white;
    }

    .team-status {
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
      text-transform: uppercase;
    }

    .team-status.approved {
    background: rgb(14 112 50 / 20%);
    color: #63ef96;
    border: 1px solid rgb(5 64 27 / 30%);
    }

    .team-status.pending {
      background: rgba(251, 191, 36, 0.2);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.3);
    }

    .team-status.rejected {
      background: rgba(239, 68, 68, 0.2);
      color: #b32727;
      border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .team-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .notifications-container {
      position: relative;
      cursor: pointer;
    }

    .notifications-icon {
      width: 20px;
      height: 20px;
      color: white;
      transition: all 0.2s ease;
    }

    .notifications-icon:hover {
      color: #fbbf24;
      transform: scale(1.1);
    }

    .notification-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      background: #ef4444;
      color: white;
      border-radius: 50%;
      width: 16px;
      height: 16px;
      font-size: 10px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

    .portal-link {
      color: white;
      text-decoration: none;
      padding: 6px 12px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 6px;
      transition: all 0.2s ease;
      font-size: 13px;
    }

    .portal-link:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.5);
    }

    .auth-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .auth-link {
      color: white;
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 6px;
      transition: all 0.2s ease;
      font-size: 13px;
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

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

    .auth-link.primary {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.4);
    }

    .notifications-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      width: 320px;
      max-height: 400px;
      overflow-y: auto;
      z-index: 1002;
      display: none;
    }

    .notifications-dropdown.active {
      display: block;
    }

    .notifications-header {
      padding: 16px;
      border-bottom: 1px solid #e5e7eb;
      font-weight: 600;
      color: #374151;
      font-size: 16px;
    }

    .notification-item {
      padding: 12px 16px;
      border-bottom: 1px solid #f3f4f6;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .notification-item:hover {
      background: #f9fafb;
    }

    .notification-item.unread {
      background: #eff6ff;
      border-left: 3px solid #3b82f6;
    }

    .notification-content {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .notification-icon {
      width: 16px;
      height: 16px;
      color: #6b7280;
      margin-top: 2px;
      flex-shrink: 0;
    }

    .notification-text {
      flex: 1;
    }

    .notification-title {
      font-weight: 500;
      color: #374151;
      margin-bottom: 4px;
      font-size: 14px;
    }

    .notification-description {
      color: #6b7280;
      font-size: 13px;
      line-height: 1.4;
    }

    .notification-time {
      color: #9ca3af;
      font-size: 12px;
      margin-top: 4px;
    }

    .notifications-empty {
      padding: 32px 16px;
      text-align: center;
      color: #6b7280;
    }

    .notifications-footer {
      padding: 12px 16px;
      border-top: 1px solid #e5e7eb;
      text-align: center;
    }

    .view-all-link {
      color: #3b82f6;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
    }

    .view-all-link:hover {
      color: #1d4ed8;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .team-account-container {
        padding: 0 16px;
      }

      .team-info {
        gap: 8px;
      }

      .team-name {
        font-size: 13px;
      }

      .team-actions {
        gap: 12px;
      }

      .notifications-dropdown {
        width: 280px;
        right: -20px;
      }
    }
/* Header */
.header {
  background: linear-gradient(135deg, #2253aa 0%, #102852 90%);
  color: white;
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(43, 92, 230, 0.3);
  position: relative;
  z-index: 100;
  overflow: visible;
}

.header-nav {
  max-width: calc(100vw - 200px); /* 100px from each side */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
}

.logo {

}
.logo img {
    width: 220px; /* Set explicit width */
    height: 100px; /* Set explicit height */
    display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #91a6c4;
  text-decoration: none;
  padding: 1rem 0.5rem 3rem 0.5rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.nav-links a:hover {
  color: #2253a9;
  background-color: white;
  transform: 
}

.nav-links a.active {
  color: #2253a9;
  background: white;
}

.search-box {
  position: relative;
}

.search-box input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 20px;
  width: 250px;
  transition: all 0.3s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

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

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(135deg, #2253aa 0%, #102852 90%);
  width: 100vw;
  max-width: 100vw;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(43, 92, 230, 0.3);
  overflow-x: hidden;
}

.mobile-dropdown.active {
  display: block;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.mobile-dropdown-content {
  padding: 1.5rem;
}

.mobile-search-box {
  margin-bottom: 1.5rem;
  position: relative;
}

.mobile-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.mobile-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-search-box .search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin: 0;
}

.mobile-nav-links a {
  display: block;
  color: #91a6c4;
  text-decoration: none;
  padding: 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.mobile-nav-links a:hover {
  color: white;
}

.mobile-nav-links a.active {
  background: white;
  color: #2253a9;
  font-weight: 600;
  border-bottom: 2px solid white;
}

/* Main Container */
.main-container {
  max-width: calc(100vw - 200px); /* 100px from each side */
  margin: 0 auto;
  padding: 2rem 0;
}

/* Season Header */
.season-header {
  background: linear-gradient(135deg, #2253aa 0%, #102852 90%);
  color: white;
  font-style: italic;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(43, 92, 230, 0.2);
}

.season-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.875rem;
}

.filter-group select {
  background: white;
  border: 1px solid #2253aa;
  border-radius: 8px;
  padding: 0.3rem 0.3rem;
  font-size: 0.875rem;
  color: #2253aa;
  transition: all 0.3s ease;
  min-width: 120px;
}

.filter-group select:focus {
  outline: none;
  border-color: #2b5ce6;
  box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.1);
}

.clear-filter {
  background: none;
  border: none;
  color: #2b5ce6;
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.clear-filter:hover {
  background: rgba(43, 92, 230, 0.1);
}

/* Results Summary */
.results-summary {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #718096;
  font-size: 0.875rem;
}

/* Team Logo Cells in Leaderboard */
.team-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.team-logo-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.team-logo-image:hover {
  border-color: #2253aa;
  transform: scale(1.05);
}

.team-logo-initials {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2253aa 0%, #102852 90%);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(34, 83, 170, 0.2);
}

.team-logo-initials:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(34, 83, 170, 0.3);
}

/* Leaderboard table column adjustments */
.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  width: 60px;
  text-align: center;
  padding: 0.5rem 0.5rem;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  width: 60px;
  text-align: center;
}

/* Recent points table - no changes needed as it doesn't show logos */

/* Responsive design for logos */
@media (max-width: 768px) {
  .team-logo-cell {
    width: 40px;
    height: 40px;
  }
  
  .team-logo-image,
  .team-logo-initials {
    width: 32px;
    height: 32px;
  }
  
  .team-logo-initials {
    font-size: 0.6rem;
}
}
/* Leaderboard Table */
.leaderboard-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.leaderboard-scrollable {
  max-height: 750px; /* Adjust depending on your row height */
  overflow-y: auto;
}

.leaderboard-scrollable table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead {
  background: none; /* ? Remove from thead */
}
.leaderboard-table thead tr {
  background: linear-gradient(135deg, #dde1e6 0%, #afb4bb 100%);
  display: table-row; /* ? Ensure proper table display */
}

.leaderboard-table th {
  position: sticky;
  top: 0;
  z-index: 2; /* Make sure it stays above rows */
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #dde1e6;
}

.leaderboard-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.leaderboard-table tbody tr:hover {
  background: #f8fafc;
}

.leaderboard-table tbody tr:nth-child(odd) {
  background: rgba(248, 250, 252, 0.5);
}

.leaderboard-table tbody tr:nth-child(odd):hover {
  background: #f1f5f9;
}

.leaderboard-table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

/* Position Column */
.position-cell {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #2d3748;
}

.position-change {
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.position-change.up {
  color: #059669;
}

.position-change.down {
  color: #dc2626;
}

.position-change.neutral {
  color: #9ca3af;
}

.position-change svg {
  width: 12px;
  height: 12px;
}

/* Team Names */
.team-name {
  font-weight: 600;
  color: #1a202c;
}

/* Points Columns */
.points-total {
  font-weight: 700;
  color: #2b5ce6;
  font-size: 1rem;
}

.points-bucs {
  color: #059669;
  font-weight: 600;
}

.points-divisional {
  color: #7c3aed;
  font-weight: 600;
}

.points-varsity {
  color: #ea580c;
  font-weight: 600;
}

.points-individual {
  color: #4f46e5;
  font-weight: 600;
}

.division-name {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Recently Awarded Points */
.recent-points-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recent-points-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 0.8rem 1rem 1rem;
  border-radius: 12px 12px 0 0;
}

.recent-points-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.recent-points-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
}

.recent-points-content {
  max-height: 320px;
  overflow-y: auto;
}

.recent-points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.recent-points-table thead {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 10;
}

.recent-points-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-points-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.recent-points-table tbody tr:hover {
  background: #f8fafc;
}

.recent-points-table td {
  padding: 0.75rem;
  vertical-align: middle;
}

/* Award Column */
.award-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.award-text {
  flex: 1;
  color: #1a202c;
}

.points-badge {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Place Column */
.place-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.place-badge.first {
  background: #fef3c7;
  color: #d97706;
}

.place-badge.second {
  background: #f3f4f6;
  color: #4b5563;
}

.place-badge.third {
  background: #fed7aa;
  color: #ea580c;
}

.place-badge.other {
  background: #f9fafb;
  color: #6b7280;
}

/* Date Column */
.date-text {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Loading and Empty States */
.loading-state,
.empty-state {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

.loading-state {
  color: #9ca3af;
}

.empty-state {
  color: #6b7280;
}

/* Footer */
.footer {
  background: #1a2332;
  color: white;
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: calc(100vw - 200px);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}
.footer-logo img {
	width: 150px;
	height: 50px;
}

.footer-address {
  color: #91a6c4;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #91a6c4;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #91a6c4;
}

.footer-bottom-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-right {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-right a {
  color: #91a6c4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
  color: white;
}

.footer-note {
  text-align: center;
  margin-top: 1rem;
  color: #9ca3af;
  font-size: 0.75rem;
}

@media (max-width: 1165px) {

  /* Hide desktop navigation */
  .nav-links,
  .search-box {
    display: none;
  }

  /* Show mobile menu button */
  .mobile-menu-button {
    display: block;
  }

  .header-nav {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    max-width: calc(100vw - 40px); /* Smaller margins on mobile */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav-links,
  .search-box {
    display: none;
  }

  /* Show mobile menu button */
  .mobile-menu-button {
    display: block;
  }

  .header-nav {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    max-width: calc(100vw - 40px); /* Smaller margins on mobile */
  }

  .main-container {
    padding: 1rem 0;
    max-width: calc(100vw - 40px); /* Smaller margins on mobile */
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }

  .filter-group {
    justify-content: space-between;
  }

  .leaderboard-container {
    overflow-x: auto;
    margin: 0 1rem;
  }

  .recent-points-container {
    margin: 0 1rem;
  }

  .leaderboard-table {
    min-width: 800px;
  }


  .recent-points-table {
    min-width: 600px;
  }

  .season-header {
    margin: 0 1rem 1.5rem 1rem;
  }

  .results-summary {
    padding: 0 1rem;
  }

  .footer-note {
    padding: 0 1rem;
  }

  /* Footer responsive */
  .footer-container {
    max-width: calc(100vw - 40px);
    padding: 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-right {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .season-header {
    padding: 1rem;
  }

  .season-header h1 {
    font-size: 1.5rem;
  }

  .header-nav {
    max-width: calc(100vw - 20px); /* Even smaller margins on very small screens */
  }

  .main-container {
    max-width: calc(100vw - 20px);
  }

  .mobile-dropdown {
    min-width: 100vw;
  }

  .footer-container {
    max-width: calc(100vw - 20px);
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* Writers Panel Specific Styles - All properly scoped */
body.writers-panel {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
}

/* Override main container for writers panel */
body.writers-panel .main-container {
    max-width: none;
    padding: 0;
}

/* Writers Panel Layout */
body.writers-panel .portal-header {
    background: linear-gradient(135deg, #2253aa 0%, #102852 90%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

body.writers-panel .portal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

body.writers-panel .portal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

body.writers-panel .auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 2rem;
}

/* Editor Container */
body.writers-panel .editor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

body.writers-panel .editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.writers-panel .writer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.writers-panel .writer-info h2 {
    margin: 0;
    color: #1a202c;
}

body.writers-panel .writer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Stats Grid */
body.writers-panel .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

body.writers-panel .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.writers-panel .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

body.writers-panel .stat-label {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Articles Table */
body.writers-panel .articles-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body.writers-panel .table-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.writers-panel .table-header h3 {
    margin: 0;
    color: #1a202c;
}

body.writers-panel .articles-list {
    max-height: 600px;
    overflow-y: auto;
}

body.writers-panel .article-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 120px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

body.writers-panel .article-row:hover {
    background: #f8fafc;
}

body.writers-panel .article-title-cell {
    min-width: 0; /* Allow text truncation */
}

body.writers-panel .article-title {
    font-weight: 500;
    color: #1a202c;
    margin: 0 0 0.25rem 0;
}

body.writers-panel .article-preview-text {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

body.writers-panel .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

body.writers-panel .status-published {
    background: #c6f6d5;
    color: #22543d;
}

body.writers-panel .status-draft {
    background: #fed7d7;
    color: #742a2a;
}

body.writers-panel .status-archived {
    background: #e2e8f0;
    color: #4a5568;
}

body.writers-panel .article-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

body.writers-panel .action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

body.writers-panel .action-btn-edit {
    background: #667eea;
    color: white;
}

body.writers-panel .action-btn-edit:hover {
    background: #5a67d8;
}

body.writers-panel .action-btn-delete {
    background: #e53e3e;
    color: white;
}

body.writers-panel .action-btn-delete:hover {
    background: #c53030;
}

/* Article Editor Modal */
body.writers-panel .editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

body.writers-panel .editor-modal.active {
    display: block;
}

body.writers-panel .editor-modal-content {
    background: white;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 12px;
    position: relative;
    min-height: calc(100vh - 4rem);
}

body.writers-panel .editor-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

body.writers-panel .editor-modal-header h2 {
    margin: 0;
    color: #1a202c;
}

body.writers-panel .editor-modal-body {
    padding: 2rem;
}

body.writers-panel .editor-form {
    display: grid;
    gap: 1.5rem;
}

body.writers-panel .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Toolbar */
body.writers-panel .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

body.writers-panel .toolbar-btn {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.writers-panel .toolbar-btn:hover {
    background: #e2e8f0;
}

body.writers-panel .toolbar-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

body.writers-panel .toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 0.5rem;
    display: inline-block;
}

/* Content Editor */
body.writers-panel .content-editor {
    min-height: 400px;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

body.writers-panel .content-editor[contenteditable="true"]:empty::before {
    content: attr(data-placeholder);
    color: #9aa5b1;
}

body.writers-panel .content-editor:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Image Upload */
body.writers-panel .image-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

body.writers-panel .image-upload-area:hover {
    border-color: #667eea;
}

body.writers-panel .image-upload-area p {
    margin: 0.5rem 0;
}

body.writers-panel .image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Tags Input */
body.writers-panel .tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 50px;
    background: white;
}

body.writers-panel .tags-input:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.writers-panel .tag-item {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.writers-panel .tag-remove {
    cursor: pointer;
    font-weight: bold;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

body.writers-panel .tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.writers-panel .tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
    background: transparent;
}

/* Editor Actions */
body.writers-panel .editor-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

/* Inserted Images in Editor */
body.writers-panel .editor-inserted-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

/* Empty/Error States */
body.writers-panel .wp-info,
body.writers-panel .wp-empty,
body.writers-panel .wp-error {
    padding: 2rem;
    text-align: center;
    color: #718096;
}

body.writers-panel .wp-empty h3 {
    margin: 0 0 1rem 0;
    color: #1a202c;
}

body.writers-panel .wp-empty p {
    margin: 0 0 1rem 0;
}

/* Utilities */
body.writers-panel .hidden { 
    display: none !important; 
}

body.writers-panel .sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0; 
}

body.writers-panel .ml-auto { 
    margin-left: auto; 
}

body.writers-panel .mt-1 { 
    margin-top: 1rem; 
}

body.writers-panel .w-auto { 
    width: auto; 
}

body.writers-panel .text-muted { 
    color: #718096; 
}

body.writers-panel .small { 
    font-size: 0.9rem; 
}

body.writers-panel .muted {
    color: #718096;
    font-size: 0.9rem;
}

body.writers-panel .m-0 {
    margin: 0;
}

/* Button Row */
body.writers-panel .btn-row { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
}

/* Logo Link */
body.writers-panel .wp-logo-link { 
    color: #fff; 
    text-decoration: none; 
}

/* Buttons */
body.writers-panel .btn { 
    border: 0; 
    border-radius: 8px; 
    padding: 0.6rem 0.9rem; 
    cursor: pointer; 
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

body.writers-panel .btn-sm { 
    padding: 0.35rem 0.6rem; 
    font-size: 0.9rem; 
}

body.writers-panel .btn-primary { 
    background: #2b5ce6; 
    color: #fff; 
}

body.writers-panel .btn-primary:hover { 
    background: #1d46b7; 
}

body.writers-panel .btn-secondary { 
    background: #eef2f7; 
    color: #334155; 
}

body.writers-panel .btn-secondary:hover { 
    background: #e3e9f2; 
}

/* Forms */
body.writers-panel .form-container { 
    background: #fff; 
    padding: 1.5rem; 
    border-radius: 12px; 
    box-shadow: 0 2px 20px rgba(0,0,0,.06); 
    max-width: 420px; 
    width: 100%; 
}

body.writers-panel .form-title { 
    margin-bottom: 1rem;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
}

body.writers-panel .form-group { 
    margin-bottom: 1rem; 
}

body.writers-panel .form-label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.35rem;
    color: #374151;
}

body.writers-panel .form-input { 
    width: 100%; 
    padding: 0.6rem 0.75rem; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    background: #fff; 
    font: inherit;
    transition: all 0.2s ease;
}

body.writers-panel .form-input:focus { 
    outline: none; 
    border-color: #2b5ce6; 
    box-shadow: 0 0 0 3px rgba(43,92,230,.1); 
}

body.writers-panel textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Alerts */
body.writers-panel .alert { 
    padding: 0.75rem; 
    border-radius: 8px; 
    margin-bottom: 0.75rem; 
}

body.writers-panel .alert-error { 
    background: #fee2e2; 
    color: #7f1d1d; 
    border: 1px solid #fecaca; 
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.writers-panel .editor-container {
        padding: 1rem;
    }

    body.writers-panel .article-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    body.writers-panel .article-actions {
        justify-content: flex-start;
    }

    body.writers-panel .form-row {
        grid-template-columns: 1fr;
    }

    body.writers-panel .editor-modal-content {
        margin: 1rem;
        min-height: calc(100vh - 2rem);
    }

    body.writers-panel .toolbar {
        flex-wrap: wrap;
    }

    body.writers-panel .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    body.writers-panel .editor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    body.writers-panel .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    body.writers-panel .portal-header {
        padding: 2rem 1rem;
    }

    body.writers-panel .portal-header h1 {
        font-size: 2rem;
    }
}
    /* Enhanced styles for upload progress and logging */
    .upload-progress {
      margin-top: 10px;
      display: none;
    }
    
    .progress-bar-container {
      width: 100%;
      height: 20px;
      background-color: #f3f4f6;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
    }
    
    .progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
      width: 0%;
      transition: width 0.3s ease;
      border-radius: 10px 0 0 10px;
      position: relative;
    }
    
    .progress-bar.complete {
      border-radius: 10px;
    }
    
    .progress-text {
      margin-top: 5px;
      font-size: 12px;
      color: #6b7280;
      text-align: center;
    }
    
    .upload-error {
      margin-top: 10px;
      padding: 10px;
      background-color: #fef2f2;
      border: 1px solid #fecaca;
      border-radius: 6px;
      color: #dc2626;
      font-size: 14px;
      display: none;
    }
    
    .upload-success {
      margin-top: 10px;
      padding: 10px;
      background-color: #f0fdf4;
      border: 1px solid #bbf7d0;
      border-radius: 6px;
      color: #16a34a;
      font-size: 14px;
      display: none;
    }
    
    .upload-status {
      margin-top: 10px;
    }
    
    /* Activity Log Styles */
    .activity-log {
      margin-top: 2rem;
      background: white;
      border-radius: 12px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    
    .activity-log-header {
      background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
      color: white;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid #e5e7eb;
    }
    
    .activity-log-header h3 {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 600;
    }
    
    .activity-log-content {
      max-height: 300px;
      overflow-y: auto;
    }
    
    .log-entry {
      padding: 0.75rem 1.5rem;
      border-bottom: 1px solid #f3f4f6;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    
    .log-entry:last-child {
      border-bottom: none;
    }
    
    .log-timestamp {
      font-size: 0.75rem;
      color: #6b7280;
      min-width: 80px;
    }
    
    .log-icon {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      flex-shrink: 0;
    }
    
    .log-icon.success {
      background: #dcfce7;
      color: #16a34a;
    }
    
    .log-icon.error {
      background: #fef2f2;
      color: #dc2626;
    }
    
    .log-icon.info {
      background: #dbeafe;
      color: #2563eb;
    }
    
    .log-icon.warning {
      background: #fef3c7;
      color: #d97706;
    }
    
    .log-message {
      flex: 1;
      font-size: 0.875rem;
      color: #374151;
    }
    
    .log-details {
      font-size: 0.75rem;
      color: #6b7280;
      margin-top: 2px;
    }
    
    .clear-logs-btn {
      margin-top: 1rem;
      padding: 0.5rem 1rem;
      background: #f3f4f6;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      color: #374151;
      font-size: 0.875rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .clear-logs-btn:hover {
      background: #e5e7eb;
    }
    
    /* File size and dimension indicators */
    .upload-requirements {
      margin-top: 8px;
      font-size: 12px;
      color: #6b7280;
      line-height: 1.4;
    }
    
    .requirement-item {
      display: block;
      margin-bottom: 2px;
    }
    
    .requirement-item.met {
      color: #16a34a;
    }
    
    .requirement-item.exceeded {
      color: #dc2626;
      font-weight: 600;
    }
