/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main, #F3F8FF); /* Default text color for dark background */
  background-color: var(--Deep-Navy, #08162B); /* Match body background */
}

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

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

.page-cockfighting__dark-section {
  background-color: var(--Card-BG, #10233F); /* Using Card-BG for dark sections */
  color: var(--Text-Main, #F3F8FF);
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Gold, #F2C14E);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-cockfighting__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--Gold, #F2C14E);
}

.page-cockfighting__content-area {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__content-area p {
  margin-bottom: 15px;
}

.page-cockfighting__content-area ul,
.page-cockfighting__content-area ol {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-cockfighting__content-area li {
  margin-bottom: 8px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__content-area h3 {
  color: var(--Gold, #F2C14E);
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-cockfighting__text-center {
  text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Rely on body padding-top for header offset, use ~10px top for section */
  background-color: var(--Deep-Navy, #08162B);
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px 0;
  color: var(--Text-Main, #F3F8FF);
}

.page-cockfighting__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: var(--Gold, #F2C14E);
  font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 */
}

.page-cockfighting__description {
  font-size: 19px;
  margin-bottom: 30px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

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

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(17, 59, 122, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--Gold, #F2C14E);
  border: 2px solid var(--Gold, #F2C14E);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--Gold, #F2C14E);
  color: var(--Deep-Navy, #08162B);
  transform: translateY(-2px);
}

/* Game Types Section */
.page-cockfighting__game-types {
  background-color: var(--Card-BG, #10233F);
}

.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--Deep-Navy, #08162B);
  border: 1px solid var(--Border, #244D84);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--Gold, #F2C14E);
}

.page-cockfighting__card-description {
  font-size: 15px;
  padding: 0 15px 20px;
}

/* Betting Guide Section */
.page-cockfighting__betting-guide .page-cockfighting__content-area ul {
  list-style-type: disc;
  padding-left: 40px;
}

.page-cockfighting__betting-guide .page-cockfighting__content-area ol {
  list-style-type: decimal;
  padding-left: 40px;
}

.page-cockfighting__image-wrapper {
  margin-top: 30px;
  text-align: center;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Advantages Section */
.page-cockfighting__advantages-grid {
  grid-template-columns: repeat(2, 1fr);
}

.page-cockfighting__advantage-item {
  background-color: var(--Card-BG, #10233F);
  border: 1px solid var(--Border, #244D84);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.page-cockfighting__advantage-item:hover {
  transform: translateY(-3px);
}

.page-cockfighting__advantage-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--Gold, #F2C14E);
}

.page-cockfighting__advantage-item p {
  font-size: 15px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__advantage-image-wrapper {
  margin-top: 60px;
}

/* Registration Guide Section */
.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__step-list li {
  background-color: var(--Card-BG, #10233F);
  border: 1px solid var(--Border, #244D84);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__step-list li h3 {
  color: var(--Gold, #F2C14E);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Strategy Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__tips-list li {
  background-color: var(--Card-BG, #10233F);
  border: 1px solid var(--Border, #244D84);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--Text-Secondary, #AFC4E8);
}

.page-cockfighting__tips-list li h3 {
  color: var(--Gold, #F2C14E);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--Border, #244D84);
  overflow: hidden;
  background: var(--Card-BG, #10233F);
  color: var(--Text-Secondary, #AFC4E8);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: var(--Text-Main, #F3F8FF);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(var(--Deep-Navy, #08162B), 0.5);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #F3F8FF);
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: var(--Deep-Navy, #08162B);
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: var(--Text-Secondary, #AFC4E8);
}

/* Conclusion Section */
.page-cockfighting__conclusion {
  padding-bottom: 80px;
  background-color: var(--Deep-Navy, #08162B);
}

/* General image styling for content area */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Media Queries for Responsive Design --- */

/* Tablet and smaller desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-cockfighting__description {
    font-size: 17px;
  }
  .page-cockfighting__grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__advantage-item {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__card-description {
    font-size: 14px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important; /* Force padding for mobile containers */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-cockfighting__content-area {
    font-size: 16px;
    padding: 0 10px;
  }

  /* HERO Section Mobile */
  .page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
  }

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

  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__hero-content {
    padding: 20px 10px 0;
  }

  .page-cockfighting__main-title {
    font-size: clamp(26px, 7vw, 38px); /* Adjust clamp for mobile H1 */
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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;
  }

  /* Product Display Area (Game Types) */
  .page-cockfighting__grid-layout {
    grid-template-columns: 1fr 1fr; /* 2 columns for mobile */
    gap: 20px;
    padding: 0 10px;
    margin-top: 30px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__card {
    margin-bottom: 0;
  }

  .page-cockfighting__card-image {
    height: 180px; /* Adjust card image height for mobile */
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  /* General Images & Containers */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__image-wrapper {
    padding: 0 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Article body, lists, steps */
  .page-cockfighting__content-area ol,
  .page-cockfighting__content-area ul {
    padding-left: 20px !important;
  }

  .page-cockfighting__step-list li,
  .page-cockfighting__tips-list li {
    padding: 20px;
  }

  /* FAQ Section Mobile */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 15px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
}