/* Sports & Recreation Page Styles */

.sports-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.sports-section:nth-child(odd) {
  background-color: #fff;
}

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

.section-header h2 {
  font-family: 'Saira', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0d1b3e;
  margin-bottom: 10px;
}

.section-header p {
  color: #6c757d;
  font-size: 16px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.slider-wrapper {
  position: relative;
  height: 200px;
  margin-bottom: 40px;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

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

.slider img.active {
  opacity: 1;
}

.icon-badge {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
}

.icon-badge img {
  width: 35px;
  height: 35px;
  position: static;
  opacity: 1;
}

.content {
  padding: 0 25px;
}

.content h3 {
  color: #0d1b3e;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: 'Saira', sans-serif;
  font-weight: 600;
}

.content p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.read-more {
  display: inline-block;
  background: #f1f1f1;
  color: #333;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.read-more:hover {
  background: #0693e3;
  color: #fff;
}

.sports-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1400px;
  margin: 40px auto 0;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.collage-image {
  position: relative;
  z-index: 1;
  height: 280px;
  overflow: hidden;
  cursor: pointer;
}

.collage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.collage-image:hover img {
  transform: scale(1.08);
}

.collage-content {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.collage-content:hover {
  background-color: #f9f9f9;
}

.collage-content::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.arrow-left::before {
  left: -15px;
  border-width: 15px 15px 15px 0;
  border-color: transparent #fff transparent transparent;
}

.arrow-right::before {
  right: -15px;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent #fff;
}

.collage-content:hover.arrow-left::before {
  border-color: transparent #f9f9f9 transparent transparent;
}

.collage-content:hover.arrow-right::before {
  border-color: transparent transparent transparent #f9f9f9;
}

.collage-content h3 {
  font-family: 'Saira', sans-serif;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.collage-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.view-gallery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0693e3;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.collage-content:hover .view-gallery {
  color: #057ab8;
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow-y: auto;
}

.gallery-modal-content {
  background-color: white;
  margin: 3% auto;
  padding: 40px;
  width: 90%;
  max-width: 1100px;
  border-radius: 15px;
  position: relative;
}

.gallery-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #333;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.gallery-close:hover {
  color: #0693e3;
}

#galleryTitle {
  font-family: 'Saira', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  padding-right: 40px;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  grid-auto-rows: 180px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.item-tall {
  grid-row: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 1;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay-text {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
}

.overlay-text p {
  margin: 2px 0;
}
.facility-block {
  margin: 10px !important;
  padding: 20px !important;
} 

.overlay-text strong {
  text-transform: capitalize;
  color: #ccc;
  font-weight: 500;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 200px !important;
  }
  .gallery-item {
    min-height: 200px !important;
  }
  .item-tall {
    grid-row: span 2 !important;
    min-height: 400px !important;
  }
  .gallery-item img {
    height: 100% !important;
    min-height: 100% !important;
  }
}

.cta-section {
  background: linear-gradient(135deg, #0693e3 0%, #057ab8 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-family: 'Saira', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.cta-btn.primary {
  background: white;
  color: #0693e3;
}

.cta-btn.primary:hover {
  background: transparent;
  color: white;
}

.cta-btn.secondary {
  background: transparent;
  color: white;
}

.cta-btn.secondary:hover {
  background: white;
  color: #0693e3;
}

@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sports-collage {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sports-collage > div:nth-child(5) { order: 6; }
  .sports-collage > div:nth-child(6) { order: 5; }
  .sports-collage > div:nth-child(7) { order: 8; }
  .sports-collage > div:nth-child(8) { order: 7; }
  
  .arrow-right::before {
    right: auto;
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent #fff transparent transparent;
  }
  
  .collage-content:hover.arrow-right::before {
    border-color: transparent #f9f9f9 transparent transparent;
  }
}

@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .sports-collage {
    grid-template-columns: 1fr;
  }
  
  .collage-image {
    height: 220px;
  }
  
  .collage-content::before {
    display: none;
  }
  
  .gallery-modal-content {
    padding: 25px;
    width: 95%;
    margin: 5% auto;
  }
  
  #galleryTitle {
    font-size: 22px;
    padding-right: 30px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid img {
    height: 200px;
  }
  
  .cta-content h2 {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
  }
}
