/* style/sports.css */

/* BEM Naming Convention: page-sports__element-name */
/* Colors: --bg: #08160F, --card-bg: #11271B, --text-main: #F2FFF6, --text-secondary: #A7D9B8, --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%), --border: #2E7A4E, --glow: #57E38D, --gold: #F2C14E, --divider: #1E3A2A, --deep-green: #0A4B2C */

.page-sports {
  /* body padding-top handled by shared.css var(--header-offset) */
  color: var(--text-main, #F2FFF6); /* Default text color for the page content */
  background-color: var(--bg, #08160F); /* Default background for the page content */
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--bg, #08160F);
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-sports__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-sports__hero-cta-buttons,
.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-sports__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--btn-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: var(--text-main, #F2FFF6);
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-sports__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2);
  color: var(--glow, #57E38D);
}

.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text-secondary, #A7D9B8);
  background-color: var(--bg, #08160F);
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-sports__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__cockfighting-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  background-color: var(--card-bg, #11271B); /* Darker background for sections */
  padding: 60px 20px;
}

.page-sports__cockfighting-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-sports__video-container {
  width: 100%;
  max-width: 960px; /* Example max-width for video */
  margin: 0 auto 30px auto;
  box-sizing: border-box;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--deep-green, #0A4B2C);
}

.page-sports__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}

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

.page-sports__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-sports__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-sports__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__faq-list {
  margin-top: 30px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: var(--bg, #08160F);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-item summary:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__cta-bottom-section {
  padding-bottom: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-sports__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
  .page-sports__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has offset */
  }

  .page-sports__hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

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

  .page-sports__content-area,
  .page-sports__cockfighting-section,
  .page-sports__promotions-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__cta-bottom-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-sports__card {
    padding: 20px;
  }

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

  .page-sports__card-image {
    height: 180px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding: 0 15px;
  }

  .page-sports img,
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-sports__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-sports__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .page-sports__card-title {
    font-size: 1.2rem;
  }
  .page-sports__faq-item summary {
    font-size: 0.95rem;
  }
}