/* style/sports.css */

/* Body padding-top is handled by shared.css var(--header-offset) */

/* General styles for the sports page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page */
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-sports__section-description {
  font-size: 1.1rem;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
}

.page-sports__hero-image {
  position: relative; /* Changed from absolute to relative to ensure it's in normal flow for 'image above text' */
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #26A9E0;
  margin-bottom: 15px;
  /* clamp for responsive font-size without fixed values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-sports__intro-text {
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-sports__btn-tertiary {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.page-sports__btn-tertiary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Video Section */
.page-sports__video-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.page-sports__video-link-wrapper {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
}

/* Sports Categories Section */
.page-sports__categories-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
}

.page-sports__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__category-card:hover {
  transform: translateY(-5px);
}

.page-sports__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #ffffff; /* White text for dark background */
}

.page-sports__advantages-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-sports__advantages-text-block {
  flex: 1;
  text-align: left;
}

.page-sports__advantages-section .page-sports__section-title {
  color: #ffffff;
  text-align: left;
}

.page-sports__advantages-section .page-sports__section-description {
  color: #f0f0f0;
  text-align: left;
}

.page-sports__advantage-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__advantage-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.page-sports__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-color: #ffffff;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center / contain;
}

.page-sports__advantages-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
}

.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.page-sports__guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-sports__guide-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__guide-text-block {
  flex: 1;
  text-align: left;
}

.page-sports__guide-section .page-sports__section-title {
  text-align: left;
}

.page-sports__guide-section .page-sports__section-description {
  text-align: left;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__guide-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.page-sports__guide-list a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__guide-list a:hover {
  text-decoration: underline;
  color: #1a7fb8;
}

/* Call to Action Section (Footer CTA) */
.page-sports__cta-section {
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-sports__cta-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-section .page-sports__section-description {
  color: #f0f0f0;
}

/* Dark background elements */
.page-sports__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Light background elements */
.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-image {
    max-height: 400px;
  }
  .page-sports__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
  .page-sports__advantages-content,
  .page-sports__guide-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__advantages-text-block,
  .page-sports__guide-text-block {
    text-align: center;
  }
  .page-sports__advantages-section .page-sports__section-title,
  .page-sports__advantages-section .page-sports__section-description,
  .page-sports__guide-section .page-sports__section-title,
  .page-sports__guide-section .page-sports__section-description {
    text-align: center;
  }
  .page-sports__advantages-image,
  .page-sports__guide-image {
    max-width: 80%;
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-sports__advantage-list,
  .page-sports__guide-list {
    text-align: left; /* Keep list items left-aligned for readability */
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-sports__intro-text {
    font-size: 1rem;
  }
  .page-sports__section-title {
    font-size: 1.8rem;
  }
  .page-sports__section-description {
    font-size: 1rem;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__video,
  .page-sports__hero-image,
  .page-sports__category-image,
  .page-sports__advantages-image,
  .page-sports__promo-image,
  .page-sports__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-link-wrapper,
  .page-sports__categories-section,
  .page-sports__category-card,
  .page-sports__advantages-section,
  .page-sports__advantages-content,
  .page-sports__advantages-text-block,
  .page-sports__promotions-section,
  .page-sports__promo-card,
  .page-sports__guide-section,
  .page-sports__guide-content,
  .page-sports__guide-text-block,
  .page-sports__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-sports__advantages-image,
  .page-sports__guide-image {
    max-width: 100%; /* Ensure it doesn't overflow */
  }
  .page-sports__category-grid,
  .page-sports__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__category-card,
  .page-sports__promo-card {
    padding: 20px;
  }
  .page-sports__dark-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__light-bg {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-image {
    max-height: 300px;
  }
  .page-sports__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-sports__section-title {
    font-size: 1.5rem;
  }
  .page-sports__intro-text {
    font-size: 0.9rem;
  }
}