/* style/cockfighting-pre-match-analysis.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Màu cam cho nút đăng nhập/CTA phụ */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

.page-cockfighting-pre-match-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-cockfighting-pre-match-analysis__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: var(--bg-white);
}

.page-cockfighting-pre-match-analysis__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting-pre-match-analysis__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting-pre-match-analysis__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.page-cockfighting-pre-match-analysis__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-cockfighting-pre-match-analysis__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);
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%); /* Adjusted gradient */
  color: var(--text-light);
  overflow: hidden;
}

.page-cockfighting-pre-match-analysis__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-cockfighting-pre-match-analysis__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-cockfighting-pre-match-analysis__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-pre-match-analysis__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting-pre-match-analysis__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-pre-match-analysis__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-pre-match-analysis__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-pre-match-analysis__cta-button:hover {
  background: #ff8c00; /* Slightly darker orange */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Rules Impact Section */
.page-cockfighting-pre-match-analysis__rules-impact {
  background-color: var(--bg-white);
}

.page-cockfighting-pre-match-analysis__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting-pre-match-analysis__image-wrapper {
  flex: 1;
  min-width: 200px;
}

.page-cockfighting-pre-match-analysis__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-pre-match-analysis__text-content {
  flex: 1;
}

/* Factors Section */
.page-cockfighting-pre-match-analysis__factors {
  background-color: var(--bg-light);
}

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

.page-cockfighting-pre-match-analysis__card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-cockfighting-pre-match-analysis__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting-pre-match-analysis__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting-pre-match-analysis__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-cockfighting-pre-match-analysis__card-title a:hover {
  text-decoration: underline;
}

.page-cockfighting-pre-match-analysis__image-full-width {
  margin-top: 50px;
  text-align: center;
}

.page-cockfighting-pre-match-analysis__image-full-width img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Betting Tips Section */
.page-cockfighting-pre-match-analysis__betting-tips {
  background-color: var(--bg-white);
}

.page-cockfighting-pre-match-analysis__list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-cockfighting-pre-match-analysis__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
}

.page-cockfighting-pre-match-analysis__list li strong {
  color: var(--primary-color);
}

.page-cockfighting-pre-match-analysis__image-center {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
}

.page-cockfighting-pre-match-analysis__image-center img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Featured Analysis Section */
.page-cockfighting-pre-match-analysis__featured-analysis {
  background-color: var(--bg-light);
}

.page-cockfighting-pre-match-analysis__analysis-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-pre-match-analysis__read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting-pre-match-analysis__read-more:hover {
  color: #1a7bbd; /* Slightly darker blue */
  text-decoration: underline;
}

/* Platform Advantage Section */
.page-cockfighting-pre-match-analysis__platform-advantage {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting-pre-match-analysis__platform-advantage .page-cockfighting-pre-match-analysis__section-title {
  color: var(--text-light);
}

.page-cockfighting-pre-match-analysis__platform-advantage .page-cockfighting-pre-match-analysis__section-title::after {
  background-color: var(--text-light);
}

.page-cockfighting-pre-match-analysis__platform-advantage .page-cockfighting-pre-match-analysis__text-block {
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-pre-match-analysis__platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting-pre-match-analysis__feature-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-pre-match-analysis__feature-item h3 {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-cockfighting-pre-match-analysis__feature-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.page-cockfighting-pre-match-analysis__button-group {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.page-cockfighting-pre-match-analysis__btn-primary,
.page-cockfighting-pre-match-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-pre-match-analysis__btn-primary {
  background: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-cockfighting-pre-match-analysis__btn-primary:hover {
  background: #ff8c00;
  border-color: #ff8c00;
  transform: translateY(-2px);
}

.page-cockfighting-pre-match-analysis__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
}

.page-cockfighting-pre-match-analysis__btn-secondary:hover {
  background: #e0e0e0;
  color: #1a7bbd;
  border-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-cockfighting-pre-match-analysis__image-platform {
  margin-top: 50px;
  text-align: center;
}

.page-cockfighting-pre-match-analysis__image-platform img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-cockfighting-pre-match-analysis__faq {
  background-color: var(--bg-white);
}

.page-cockfighting-pre-match-analysis__faq-list {
  margin-top: 40px;
}

.page-cockfighting-pre-match-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.page-cockfighting-pre-match-analysis__faq-item.active .page-cockfighting-pre-match-analysis__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-cockfighting-pre-match-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-white);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting-pre-match-analysis__faq-item.active .page-cockfighting-pre-match-analysis__faq-question {
  border-bottom: 1px solid #f0f0f0;
  background-color: #f5f5f5;
}

.page-cockfighting-pre-match-analysis__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting-pre-match-analysis__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting-pre-match-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-cockfighting-pre-match-analysis__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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: 32px;
  height: 32px;
}

.page-cockfighting-pre-match-analysis__faq-item.active .page-cockfighting-pre-match-analysis__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

/* General Image Styling */
.page-cockfighting-pre-match-analysis img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-pre-match-analysis__hero-title {
    font-size: 40px;
  }

  .page-cockfighting-pre-match-analysis__hero-description {
    font-size: 18px;
  }

  .page-cockfighting-pre-match-analysis__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }

  .page-cockfighting-pre-match-analysis__section-title {
    font-size: 28px;
  }

  .page-cockfighting-pre-match-analysis__text-block {
    font-size: 16px;
  }

  .page-cockfighting-pre-match-analysis__factors-grid,
  .page-cockfighting-pre-match-analysis__platform-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-cockfighting-pre-match-analysis__analysis-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-cockfighting-pre-match-analysis__card-title {
    font-size: 20px;
  }

  .page-cockfighting-pre-match-analysis__faq-question h3 {
    font-size: 17px;
  }
}

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

  .page-cockfighting-pre-match-analysis__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-cockfighting-pre-match-analysis__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-cockfighting-pre-match-analysis__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-cockfighting-pre-match-analysis__section {
    padding: 40px 0;
  }

  .page-cockfighting-pre-match-analysis__container {
    padding: 0 15px;
  }

  .page-cockfighting-pre-match-analysis__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-cockfighting-pre-match-analysis__text-block {
    font-size: 15px;
  }

  .page-cockfighting-pre-match-analysis__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting-pre-match-analysis__factors-grid,
  .page-cockfighting-pre-match-analysis__analysis-cards,
  .page-cockfighting-pre-match-analysis__platform-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-pre-match-analysis__image-full-width,
  .page-cockfighting-pre-match-analysis__image-center,
  .page-cockfighting-pre-match-analysis__image-platform {
    margin-top: 30px;
  }

  .page-cockfighting-pre-match-analysis__list li {
    font-size: 15px;
    padding-left: 25px;
    background-size: 18px 18px;
  }

  .page-cockfighting-pre-match-analysis__platform-advantage {
    padding: 60px 0;
  }

  .page-cockfighting-pre-match-analysis__button-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-cockfighting-pre-match-analysis__btn-primary,
  .page-cockfighting-pre-match-analysis__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-cockfighting-pre-match-analysis__faq-question {
    padding: 15px;
  }

  .page-cockfighting-pre-match-analysis__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting-pre-match-analysis__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-cockfighting-pre-match-analysis__faq-item.active .page-cockfighting-pre-match-analysis__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image specific overrides */
  .page-cockfighting-pre-match-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting-pre-match-analysis__hero-image,
  .page-cockfighting-pre-match-analysis__image-wrapper,
  .page-cockfighting-pre-match-analysis__image-full-width,
  .page-cockfighting-pre-match-analysis__image-center,
  .page-cockfighting-pre-match-analysis__image-platform {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0px; /* Adjust if inner padding is needed */
  }
}