/* Index Page Specific Styles */

/* Enhanced Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(58, 110, 165, 0.8), rgba(52, 64, 85, 0.9)), url('/uploads/b36e16be-d077-4417-9fcd-348285910ef1.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
  opacity: 0.1;
  animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { opacity: 0.1; }
  100% { opacity: 0.2; }
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 30%, #ffffff 70%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { 
    filter: drop-shadow(0 0 10px rgba(255, 150, 66, 0.3));
  }
  100% { 
    filter: drop-shadow(0 0 20px rgba(255, 150, 66, 0.6));
  }
}

.hero-tagline {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 300;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

.primary-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 4px 15px rgba(58, 110, 165, 0.3);
}

.primary-cta:hover {
  background: linear-gradient(135deg, #2a5a85, var(--primary-color));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(58, 110, 165, 0.4);
}

.secondary-cta {
  background: linear-gradient(135deg, var(--secondary-color), #ff7a1a);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 150, 66, 0.3);
}

.secondary-cta:hover {
  background: linear-gradient(135deg, #ff7a1a, var(--secondary-color));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 150, 66, 0.4);
}

/* Features Banner */
.features-banner {
  padding: 2rem 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--light-color) 50%, #ffffff 100%);
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  position: relative;
}

.features-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  transition: all 0.4s ease;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #ffffff, var(--light-color));
}

.feature-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--secondary-color), #ff7a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%) bottom/100% 3px no-repeat;
  padding-bottom: 0.75rem;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark-color);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: 2.2rem;
  font-weight: 700;
}

.section-header h2 i {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.view-all {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: transparent;
}

.view-all:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.view-all i {
  transition: transform 0.3s;
}

.view-all:hover i {
  transform: translateX(5px);
}

/* Card Placeholder Image */
.card-placeholder-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
  color: var(--secondary-color);
  font-size: 3rem;
}

/* Join Banner */
.join-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 50%, var(--accent-color) 100%);
  border-radius: 20px;
  color: white;
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(58, 110, 165, 0.2);
}

.join-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 6s ease-in-out infinite;
}

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

.join-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.join-content h2 {
  color: white;
  border-bottom: none;
  margin-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

.join-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 400;
}

.benefits-list {
  text-align: left;
  margin: 1.8rem auto;
  max-width: 450px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.benefits-list li {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.benefits-list li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.benefits-list li i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  min-width: 20px;
}

.large-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), #ff7a1a);
  border: none;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(255, 150, 66, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.large-btn:hover {
  background: linear-gradient(135deg, #ff7a1a, var(--secondary-color));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 150, 66, 0.4);
}

/* Enhanced Testimonials */
.testimonials {
  margin-top: 2rem;
  padding: 2.5rem 0;
  background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 50%, var(--light-color) 100%);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 3rem;
  justify-content: center;
  border-bottom: none;
  background: none;
}

.testimonials .section-header::after {
  display: none;
}

.testimonial-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 1rem 2.5rem;
  scroll-snap-type: x mandatory;
}

.testimonial-carousel .card {
  min-width: 320px;
  flex: 0 0 calc(33.333% - 1.5rem);
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  scroll-snap-align: center;
  border: 1px solid rgba(98, 182, 203, 0.1);
}

.testimonial-carousel .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-carousel .card-body {
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 30px;
  background: linear-gradient(135deg, var(--secondary-color), #ff7a1a);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 150, 66, 0.3);
  font-size: 1.1rem;
}

.testimonial-carousel .card-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-color);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 2px solid var(--light-color);
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.author-info {
  flex: 1;
}

.author-info strong {
  display: block;
  color: var(--dark-color);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.rating {
  color: var(--warning-color);
  font-size: 1.1rem;
}

/* Empty Day in Calendar */
.empty-day {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* Weekly Calendar Styling */
.weekly-calendar {
  font-size: 0.9rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid rgba(98, 182, 203, 0.2);
  background: #fff;
}

.weekly-calendar th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  border-bottom: 3px solid var(--secondary-color);
}

.weekly-calendar th:first-child {
  border-top-left-radius: 12px;
}

.weekly-calendar th:last-child {
  border-top-right-radius: 12px;
}

.weekly-calendar th::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, #ff7a1a  100%);
}

.weekly-calendar td {
  padding: 1.5rem 1rem;
  border: none;
  border-right: 1px solid rgba(98, 182, 203, 0.15);
  border-bottom: 1px solid rgba(98, 182, 203, 0.15);
  min-height: 120px;
  vertical-align: top;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.weekly-calendar td:last-child {
  border-right: none;
}

.weekly-calendar tr:last-child td {
  border-bottom: none;
}

.weekly-calendar tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.weekly-calendar tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.weekly-calendar td:hover {
  background: linear-gradient(135deg, rgba(98, 182, 203, 0.05) 0%, rgba(255, 150, 66, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-event {
  background: linear-gradient(135deg, rgba(98, 182, 203, 0.12) 0%, rgba(98, 182, 203, 0.08) 100%);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(98, 182, 203, 0.15);
}

.calendar-event::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  transition: width 0.3s ease;
}

.calendar-event:hover {
  background: linear-gradient(135deg, rgba(98, 182, 203, 0.18) 0%, rgba(255, 150, 66, 0.12) 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(98, 182, 203, 0.25);
}

.calendar-event:hover::before {
  width: 8px;
}

.calendar-event strong {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.calendar-event strong i {
  color: var(--secondary-color);
  font-size: 0.8rem;
}

.calendar-event .event-title {
  color: var(--dark-color);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.event-image-small {
  display: block;
  max-width: 60px;
  max-height: 60px;
  margin-top: 0.75rem;
  border: 2px solid #fff;
  padding: 2px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.calendar-event:hover .event-image-small {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Empty day styling */
.empty-day {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.9rem;
  padding: 1rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.05) 0%, rgba(148, 163, 184, 0.02) 100%);
  border-radius: 6px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.empty-day::before {
  content: '📅';
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Special event highlighting for weekends */
.weekly-calendar th:nth-child(6),
.weekly-calendar th:nth-child(7) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ff7a1a 100%);
}

.weekly-calendar td:nth-child(6),
.weekly-calendar td:nth-child(7) {
  background: linear-gradient(135deg, rgba(255, 150, 66, 0.02) 0%, rgba(255, 150, 66, 0.01) 100%);
}

/* Today's column highlighting */
.weekly-calendar .today-column {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.08) 0%, rgba(255, 71, 87, 0.04) 100%) !important;
  border-left: 3px solid #ff4757 !important;
  border-right: 3px solid #ff4757 !important;
}

/* Main Page Layout with Ads Column */
.page-content > .container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0.5rem auto; /* further reduced vertical margin for homepage container */
}

.main-content {
  flex: 3;
  min-width: 0; /* Prevents flex item from overflowing */
  overflow: hidden; /* Contains any overflowing content */
}

.ads-column {
  flex: 1;
  position: sticky;
  top: 65px; /* offset under header */
  align-self: flex-start;
}

/* Sky Sports Banner */
.skysports-banner {
  margin: 0.5rem 0;  /* Reduced margin to minimum */
  text-align: center;
  background-color: var(--light-color);
  padding: 1rem 0;
}

.skysports-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Special Events Gallery */
.special-events-gallery {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1rem; /* Add padding to ensure cards aren't cut off */
  margin: 0 -1rem 3rem -1rem; /* Compensate for padding */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling */
.special-events-gallery::-webkit-scrollbar {
  height: 8px;
}

.special-events-gallery::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 4px;
}

.special-events-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: background 0.3s ease;
}

.special-events-gallery::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.special-events-gallery .event-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border: 1px solid rgba(98, 182, 203, 0.15);
  cursor: pointer;
  flex: 0 0 350px;
  scroll-snap-align: start;
  min-width: 350px;
  max-width: 350px;
}

.special-events-gallery .event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.special-events-gallery .event-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 110, 165, 0.05) 0%, rgba(98, 182, 203, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.special-events-gallery .event-card:hover::before {
  transform: scaleX(1);
}

.special-events-gallery .event-card:hover::after {
  opacity: 1;
}

.special-events-gallery .event-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.20);
}

.special-events-gallery .event-card figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  height: 250px;
}

.special-events-gallery .event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.special-events-gallery .event-card:hover img {
  transform: scale(1.08);
}

.special-events-gallery .event-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(52, 64, 85, 0.95));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.special-events-gallery .event-card:hover figcaption {
  transform: translateY(0);
}

.special-events-gallery .event-card .event-details {
  padding: 2rem;
  position: relative;
}

.special-events-gallery .event-card .event-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.special-events-gallery .event-card .event-date {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 150, 66, 0.1), rgba(255, 150, 66, 0.05));
  border-radius: 25px;
  border: 1px solid rgba(255, 150, 66, 0.2);
  width: fit-content;
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box; /* Include padding in width calculation */
}

.special-events-gallery .event-card .event-date i {
  font-size: 1.2rem;
}

.special-events-gallery .event-card .event-description {
  color: var(--dark-color);
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* Card image placeholder for events without images */
.card-img-placeholder {
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 50%, var(--light-color) 100%);
  color: var(--secondary-color);
  margin: 0;
  position: relative;
  overflow: hidden;
}

.card-img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2362b6cb' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 8s ease-in-out infinite;
}

.card-img-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.card-img-placeholder figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(52, 64, 85, 0.95));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Enhanced event card animations */
@keyframes cardPulse {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  }
  50% {
    box-shadow: 0 12px 40px rgba(58, 110, 165, 0.15);
  }
}

.special-events-gallery .event-card:focus {
  outline: none;
  animation: cardPulse 2s ease-in-out infinite;
}

/* Event card badges */
.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--secondary-color), #ff7a1a);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(255, 150, 66, 0.3);
}

/* Today's Event Special Styling */
.special-events-gallery .today-event {
  order: -1; /* Move today's events to the front */
  border: 2px solid #ff4757;
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.2);
}

.special-events-gallery .today-event:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 71, 87, 0.25);
}

/* Today's Event Badge */
.today-badge {
  background: linear-gradient(135deg, #ff4757, #ff3742) !important;
  font-weight: 700;
  color: white !important;
}

/* Today's Date Styling */
.today-date {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05)) !important;
  border: 1px solid rgba(255, 71, 87, 0.3) !important;
  color: #ff3742 !important;
  font-weight: 700 !important;
}

.today-date i {
  color: #ff3742 !important;
}

/* Today's Events Alert */
.today-events-alert {
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
}

.today-events-alert i {
  color: #feca57;
  margin-right: 0.5rem;
}

.today-events-alert strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .today-events-alert {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Mobile responsive layout - move ads to bottom */
  .page-content > .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-content {
    order: 1;
    overflow: visible; /* Allow normal scrolling on mobile */
  }
  
  .ads-column {
    order: 2;
    position: relative;
    top: auto;
    width: 100%;
    margin-top: 2rem;
  }
  
  .skysports-banner {
    margin: 1rem 0;
    padding: 0.75rem 0;
  }
  
  /* Mobile event cards - much smaller to fit screen */
  .special-events-gallery {
    gap: 1.5rem; /* Reduce gap on mobile */
    padding: 0 0.5rem; /* Reduce padding on mobile */
    margin: 0 -0.5rem 2rem -0.5rem; /* Adjust margins */
    position: relative;
  }
  
  /* Add a subtle scroll hint on mobile */
  .special-events-gallery::after {
    content: '→';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(98, 182, 203, 0.8);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 10;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }
  
  .special-events-gallery .event-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    overflow: hidden; /* Prevent content overflow */
  }
  
  .special-events-gallery .event-card figcaption {
    padding: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .special-events-gallery .event-card .event-details {
    padding: 0.75rem;
    overflow: hidden; /* Prevent horizontal overflow */
  }
  
  .special-events-gallery .event-card .event-date {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    max-width: calc(100% - 1rem); /* Ensure it doesn't exceed card width */
    width: auto; /* Override fit-content on mobile */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Allow text wrapping */
    gap: 0.5rem; /* Reduce gap between icon and text */
    flex-wrap: wrap; /* Allow content to wrap if needed */
  }
  
  .special-events-gallery .event-card .event-description {
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: hidden; /* Prevent overflow */
  }
  
  /* Reduce join banner size on mobile */
  .join-banner {
    padding: 1.8rem 1rem; /* Sleek mobile padding */
    margin: 1.5rem 0; /* Tighter margins */
  }
  
  .join-content h2 {
    font-size: 1.7rem; /* Sleek mobile heading */
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
  }
  
  .join-content p {
    font-size: 0.95rem; /* Refined mobile text */
    margin-bottom: 1.2rem;
    line-height: 1.5;
  }
  
  .benefits-list {
    margin: 1.5rem auto; /* Reduce margins */
    max-width: 100%; /* Full width on mobile */
    grid-template-columns: 1fr; /* Single column */
  }
  
  .benefits-list li {
    padding: 0.75rem; /* Smaller padding */
    margin-bottom: 0.75rem;
  }
  
  .large-btn {
    padding: 0.9rem 2rem; /* Smaller button */
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }
  
  /* Weekly calendar mobile responsiveness */
  .weekly-calendar {
    font-size: 0.75rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .weekly-calendar::-webkit-scrollbar {
    height: 8px;
  }
  
  .weekly-calendar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  
  .weekly-calendar::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 4px;
  }
  
  .weekly-calendar thead,
  .weekly-calendar tbody,
  .weekly-calendar tr {
    display: block;
  }
  
  .weekly-calendar thead tr {
    display: flex;
  }
  
  .weekly-calendar tbody tr {
    display: flex;
  }
  
  .weekly-calendar th,
  .weekly-calendar td {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
    white-space: normal;
    padding: 0.75rem 0.5rem;
    min-height: 100px;
  }
  
  .weekly-calendar th {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .weekly-calendar th:first-child {
    border-top-left-radius: 8px;
  }
  
  .weekly-calendar th:last-child {
    border-top-right-radius: 8px;
  }
  
  .calendar-event {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    font-size: 0.7rem;
    border-radius: 6px;
  }
  
  .calendar-event strong {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .event-image-small {
    max-width: 40px;
    max-height: 40px;
    margin-top: 0.5rem;
  }
  
  .empty-day {
    padding: 0.75rem 0.25rem;
    font-size: 0.7rem;
  }
  
  .empty-day::before {
    font-size: 1.2rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* Even smaller event cards for very small screens */
  .special-events-gallery {
    gap: 1rem; /* Even smaller gap for very small screens */
    padding: 0 0.25rem;
    margin: 0 -0.25rem 1.5rem -0.25rem;
  }
  
  .special-events-gallery .event-card {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
    overflow: hidden; /* Prevent content overflow */
  }
  
  .special-events-gallery .event-card figcaption {
    padding: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .special-events-gallery .event-card .event-details {
    padding: 0.5rem;
    overflow: hidden; /* Prevent horizontal overflow */
  }
  
  .special-events-gallery .event-card .event-date {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    max-width: calc(100% - 0.5rem); /* Ensure it doesn't exceed card width */
    width: auto; /* Override fit-content on mobile */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Allow text wrapping */
    gap: 0.4rem; /* Smaller gap for very small screens */
    flex-wrap: wrap; /* Allow content to wrap if needed */
  }
  
  .special-events-gallery .event-card .event-description {
    font-size: 0.8rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: hidden; /* Prevent overflow */
  }
  
  /* Even smaller join banner for very small screens */
  .join-banner {
    padding: 1.3rem 0.8rem; /* Ultra-sleek padding */
    margin: 1.2rem 0;
  }
  
  .join-content h2 {
    font-size: 1.4rem; /* Refined small heading */
    margin-bottom: 0.6rem;
    letter-spacing: -0.2px;
  }
  
  .join-content p {
    font-size: 0.85rem; /* Sleek small text */
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  
  .benefits-list li {
    padding: 0.5rem; /* Very small padding */
    margin-bottom: 0.5rem;
    flex-direction: column; /* Stack icon and text */
    text-align: center;
    gap: 0.5rem;
  }
  
  .large-btn {
    padding: 0.75rem 1.5rem; /* Much smaller button */
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  /* Weekly calendar for very small screens */
  .weekly-calendar th,
  .weekly-calendar td {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 140px;
    padding: 0.5rem 0.25rem;
    min-height: 80px;
  }
  
  .weekly-calendar th {
    font-size: 0.7rem;
    padding: 0.75rem 0.25rem;
  }
  
  .calendar-event {
    font-size: 0.65rem;
    padding: 0.4rem;
    margin-bottom: 0.4rem;
  }
  
  .calendar-event strong {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }
  
  .event-image-small {
    max-width: 30px;
    max-height: 30px;
    margin-top: 0.25rem;
  }
  
  .empty-day {
    padding: 0.5rem 0.2rem;
    font-size: 0.6rem;
  }
  
  .empty-day::before {
    font-size: 1rem;
  }
}

/* Special Events Gallery */
