/* style/sports.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B34D;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #0A2463;
  --border-color: #e0e0e0;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default to dark text for light body background */
  background-color: var(--bg-light);
}

/* HERO Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  color: var(--text-light);
  overflow: hidden;
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  padding: 20px;
  border-radius: 8px;
  margin-top: -80px; /* Overlap image slightly */
}

.page-sports__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-button:hover {
  background: #ffcc66; /* Lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-sports__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Background colors for contrast */
.page-sports__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-sports__dark-section .page-sports__section-title {
  color: var(--secondary-color);
}

.page-sports__dark-section .page-sports__section-description {
  color: #cccccc;
}

.page-sports__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Image wrappers */
.page-sports__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Grid Layout */
.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__grid-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-sports__dark-section .page-sports__grid-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-sports__dark-section .page-sports__grid-item .page-sports__card-title {
  color: var(--secondary-color);
}

.page-sports__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__grid-item p {
  font-size: 1em;
  line-height: 1.7;
  color: inherit;
}

/* Lists */
.page-sports__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__list-item {
  background: #ffffff;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: var(--text-dark);
  border-left: 5px solid var(--secondary-color);
}

.page-sports__dark-section .page-sports__list-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-left-color: var(--secondary-color);
}

.page-sports__list-item strong {
  color: var(--primary-color);
}

.page-sports__dark-section .page-sports__list-item strong {
  color: var(--secondary-color);
}

.page-sports__numbered-list {
  list-style: none;
  counter-reset: my-counter;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__numbered-list .page-sports__list-item {
  background: #ffffff;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
  color: var(--text-dark);
  position: relative;
  border-left: none;
  padding-left: 70px;
}

.page-sports__dark-section .page-sports__numbered-list .page-sports__list-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-sports__numbered-list .page-sports__list-item::before {
  counter-increment: my-counter;
  content: counter(my-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-sports__numbered-list .page-sports__list-item h3 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 1.3em;
}

.page-sports__dark-section .page-sports__numbered-list .page-sports__list-item h3 {
  color: var(--secondary-color);
}

.page-sports__numbered-list .page-sports__list-item p {
  margin: 0;
  color: inherit;
}

.page-sports__numbered-list .page-sports__list-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-sports__numbered-list .page-sports__list-item a:hover {
  color: #ffcc66;
}

/* Button Groups */
.page-sports__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-sports__btn-primary:hover {
  background: #071a4f;
  border-color: #071a4f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-sports__dark-section .page-sports__btn-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-sports__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
  text-align: center;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color);
  border: 1px solid #071a4f;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-sports__faq-question:hover {
  background: #071a4f;
  border-color: #051233;
}

.page-sports__faq-question:active {
  background: #051233;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-sports__faq-item.active .page-sports__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-sports__faq-answer p {
  color: inherit;
}

.page-sports__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-sports__faq-answer a:hover {
  color: #ffcc66;
}

/* Links in light sections */
.page-sports__light-bg a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-sports__light-bg a:hover {
  color: #071a4f;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.5em;
  }

  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-title {
    font-size: 2em;
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

  .page-sports__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-sports__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__grid-item {
    padding: 25px;
  }

  .page-sports__card-title {
    font-size: 1.3em;
  }

  .page-sports__list-item {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-sports__numbered-list .page-sports__list-item {
    padding-left: 60px;
  }

  .page-sports__numbered-list .page-sports__list-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    left: 15px;
  }

  .page-sports__numbered-list .page-sports__list-item h3 {
    font-size: 1.1em;
  }

  .page-sports__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-sports__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image scaling */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__image-wrapper,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}