/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc hero section */

:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #08160F;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-border: #2E7A4E;
  --page-cockfighting-glow: #57E38D;
  --page-cockfighting-gold: #F2C14E;
  --page-cockfighting-divider: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--page-cockfighting-text-main); /* Text Main for general content */
  background-color: var(--page-cockfighting-background); /* Background color from custom palette */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--page-cockfighting-text-main);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__text-block--small {
  font-size: 14px;
  color: var(--page-cockfighting-text-secondary);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small decorative top padding */
  padding-bottom: 80px;
  background-color: var(--page-cockfighting-deep-green);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-align: center;
}

.page-cockfighting__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--page-cockfighting-gold);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__intro-text {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-cockfighting-text-main);
  margin-bottom: 40px;
  line-height: 1.5;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--page-cockfighting-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-secondary-color);
  color: var(--page-cockfighting-background);
  transform: translateY(-2px);
}

.page-cockfighting__cta-buttons--centered {
  margin-top: 40px;
}

.page-cockfighting__btn-primary--large {
  font-size: 20px;
  padding: 18px 35px;
}

/* Card Styles */
.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--page-cockfighting-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-cockfighting__card-title {
  font-size: 22px;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

/* Feature Grid */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card .page-cockfighting__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* Guide List */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__guide-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}

.page-cockfighting__guide-step-title {
  font-size: 24px;
  color: var(--page-cockfighting-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Bet Types Section */
.page-cockfighting__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__tips-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  padding: 20px;
}

.page-cockfighting__tips-icon {
  font-size: 24px;
  color: var(--page-cockfighting-gold);
  margin-right: 15px;
  flex-shrink: 0;
}

.page-cockfighting__tips-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: var(--page-cockfighting-gold);
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-divider);
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* Bottom CTA */
.page-cockfighting__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--page-cockfighting-deep-green) 0%, var(--page-cockfighting-primary-color) 100%);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__cta-bottom-content {
  max-width: 900px;
}

/* Global image rules for content area - ensure min 200px */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

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

  .page-cockfighting__main-title {
    font-size: 36px;
  }

  .page-cockfighting__intro-text {
    font-size: 16px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__btn-primary--large {
    font-size: 18px;
    padding: 15px 25px;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__bet-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__guide-item,
  .page-cockfighting__tips-item,
  .page-cockfighting__card,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__guide-step-title {
    font-size: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  .page-cockfighting__tips-text,
  .page-cockfighting__text-block {
    font-size: 15px;
  }

  .page-cockfighting__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }
  
  /* Mobile image and video specific overrides */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important; /* Explicitly set width to 100% for images */
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller display sizes on mobile if needed by auto */
    min-height: unset !important;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Body handles offset, this is decorative */
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}