/* style/cockfighting.css */
/* body đã có padding-top: var(--header-offset) từ shared.css; trang này KHÔNG được thêm lại biến đó */

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  background-color: var(--background, #F4F7FB);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.page-cockfighting__main-title {
  color: var(--text-main, #1F2D3D);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-cockfighting__intro-text {
  font-size: 1.125rem;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: #FFFFFF;
  color: var(--main-color, #2F6BFF);
  border: 2px solid var(--main-color, #2F6BFF);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--main-color, #2F6BFF);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__about-section,
.page-cockfighting__features-section,
.page-cockfighting__how-to-play,
.page-cockfighting__why-choose-us {
  padding: 80px 0;
}

.page-cockfighting__light-bg {
  background-color: var(--background, #F4F7FB);
  color: var(--text-main, #1F2D3D);
}

.page-cockfighting__dark-section {
  background-color: var(--main-color, #2F6BFF);
  color: #FFFFFF;
}

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.2;
  color: inherit; /* Inherits color from parent section */
}

.page-cockfighting__text-block {
  font-size: 1.125rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
}

.page-cockfighting__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-cockfighting__feature-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* How to Play Section */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-cockfighting__step-item {
  background: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-main, #1F2D3D);
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-cockfighting__step-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main, #1F2D3D);
}

.page-cockfighting__step-description {
  font-size: 1rem;
  color: var(--text-main, #1F2D3D);
}

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Us Section */
.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.125rem;
  color: #FFFFFF;
}

.page-cockfighting__benefit-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__benefit-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #A5C4FF; /* Glow color */
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8rem;
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
}

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

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: 2.2rem;
    margin-top: 20px;
  }

  .page-cockfighting__intro-text {
    font-size: 1rem;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play,
  .page-cockfighting__why-choose-us {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1rem;
    padding: 0 15px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-item {
    padding: 20px;
  }

  /* Ensure all images are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers are responsive and prevent overflow */
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__cta-center,
  .page-cockfighting__benefits-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8rem;
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
  .page-cockfighting__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}