/* style/match-schedule.css */

/* Base Styles & Typography */
.page-match-schedule {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicitly set for clarity */
}

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

.page-match-schedule__hero-section,
.page-match-schedule__schedule-section,
.page-match-schedule__tournaments-section,
.page-match-schedule__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-match-schedule__about-video-section,
.page-match-schedule__how-to-section,
.page-match-schedule__faq-section {
  padding: 80px 0;
  text-align: center;
  color: #333333; /* Dark text for light background */
}

.page-match-schedule__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-match-schedule__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-match-schedule__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('[GALLERY:hero_bg:1920x1080:đá gà trực tiếp thomo c2, sân đấu, không khí sôi động]') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-match-schedule__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-match-schedule__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-match-schedule__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-match-schedule__btn-primary,
.page-match-schedule__btn-secondary,
.page-match-schedule__table-btn,
.page-match-schedule__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-match-schedule__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-match-schedule__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-match-schedule__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-match-schedule__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: inherit;
}

.page-match-schedule__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
  color: inherit;
}

/* Video Section */
.page-match-schedule__about-video-section .page-match-schedule__section-title,
.page-match-schedule__about-video-section .page-match-schedule__text-block {
  color: #333333;
}

.page-match-schedule__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-match-schedule__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-match-schedule__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #555555;
}

/* Schedule Table */
.page-match-schedule__table-responsive {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.page-match-schedule__schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  min-width: 700px; /* Ensure table is readable on smaller screens */
}

.page-match-schedule__schedule-table th,
.page-match-schedule__schedule-table td {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: #ffffff;
}

.page-match-schedule__schedule-table th {
  background-color: #26A9E0;
  font-weight: bold;
  text-transform: uppercase;
}

.page-match-schedule__schedule-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

.page-match-schedule__schedule-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-match-schedule__table-btn {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #EA7C07; /* Login color for action */
  color: #ffffff;
  border: none;
}

.page-match-schedule__table-btn:hover {
  background-color: #c76706;
}

.page-match-schedule__table-btn--disabled {
  background-color: #555555;
  cursor: not-allowed;
  opacity: 0.7;
}

.page-match-schedule__cta-block {
  margin-top: 40px;
}

/* How-to Section */
.page-match-schedule__how-to-section .page-match-schedule__section-title,
.page-match-schedule__how-to-section .page-match-schedule__text-block {
  color: #333333;
}

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

.page-match-schedule__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  color: #333333;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-match-schedule__step-icon {
  width: 200px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-match-schedule__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-match-schedule__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-match-schedule__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 0;
  border-bottom: 2px solid #26A9E0;
  display: inline-block;
}

.page-match-schedule__btn-link:hover {
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Tournaments Section */
.page-match-schedule__tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-match-schedule__tournament-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-match-schedule__tournament-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-match-schedule__tournament-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-match-schedule__tournament-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-match-schedule__faq-section .page-match-schedule__section-title,
.page-match-schedule__faq-section .page-match-schedule__text-block {
  color: #333333;
}

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

.page-match-schedule__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-match-schedule__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f0f0f0;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-match-schedule__faq-question:hover {
  background-color: #e5e5e5;
}

.page-match-schedule__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

.page-match-schedule__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-match-schedule__faq-item.active .page-match-schedule__faq-toggle {
  transform: rotate(45deg);
}

.page-match-schedule__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-match-schedule__faq-item.active .page-match-schedule__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-match-schedule__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #555555;
}

/* CTA Section */
.page-match-schedule__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-match-schedule__hero-title {
    font-size: 3em;
  }
  .page-match-schedule__section-title {
    font-size: 2em;
  }
}

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

  .page-match-schedule__hero-section,
  .page-match-schedule__schedule-section,
  .page-match-schedule__tournaments-section,
  .page-match-schedule__cta-section,
  .page-match-schedule__about-video-section,
  .page-match-schedule__how-to-section,
  .page-match-schedule__faq-section {
    padding: 60px 0;
  }

  .page-match-schedule__hero-title {
    font-size: 2.5em;
  }

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

  .page-match-schedule__hero-actions,
  .page-match-schedule__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-match-schedule__btn-primary,
  .page-match-schedule__btn-secondary,
  .page-match-schedule__table-btn,
  .page-match-schedule__btn-link {
    padding: 12px 20px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-match-schedule__container {
    padding: 0 15px;
  }

  .page-match-schedule__video-wrapper {
    margin: 30px auto;
  }

  /* Responsive images */
  .page-match-schedule img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover; /* Ensure images fill space without distortion */
  }

  .page-match-schedule__section,
  .page-match-schedule__card,
  .page-match-schedule__container,
  .page-match-schedule__video-section,
  .page-match-schedule__video-container,
  .page-match-schedule__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-match-schedule__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-match-schedule__steps-grid,
  .page-match-schedule__tournament-grid {
    grid-template-columns: 1fr;
  }

  .page-match-schedule__step-card,
  .page-match-schedule__tournament-card {
    padding: 20px;
  }

  .page-match-schedule__schedule-table {
    min-width: 100%; /* Allow table to shrink, but prevent overflow */
  }

  .page-match-schedule__table-responsive {
    padding: 10px;
  }

  .page-match-schedule__faq-item {
    margin-bottom: 10px;
  }

  .page-match-schedule__faq-question,
  .page-match-schedule__faq-answer {
    padding: 12px 15px;
  }

  .page-match-schedule__faq-question h3 {
    font-size: 1em;
  }

  .page-match-schedule__faq-answer p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-match-schedule__hero-title {
    font-size: 2em;
  }
  .page-match-schedule__section-title {
    font-size: 1.8em;
  }
  .page-match-schedule__hero-description,
  .page-match-schedule__text-block {
    font-size: 0.95em;
  }
}