/* style/cockfighting-rules-tips.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-color-main: #08160F;
  --bg-color-card: #11271B;
  --text-color-main: #F2FFF6;
  --text-color-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-cockfighting-rules-tips {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-main);
  background-color: var(--bg-color-main);
  line-height: 1.6;
}

.page-cockfighting-rules-tips__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-color-main);
  text-align: center;
}

.page-cockfighting-rules-tips__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-cockfighting-rules-tips__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  z-index: 1;
}

.page-cockfighting-rules-tips__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Using clamp for responsive h1 font size */
  font-weight: 700;
  color: var(--text-color-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-cockfighting-rules-tips__intro-text {
  font-size: 1.1em;
  color: var(--text-color-secondary);
  margin-bottom: 30px;
}

.page-cockfighting-rules-tips__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-cockfighting-rules-tips__btn-primary {
  background: var(--button-gradient);
  color: var(--text-color-main);
  border: none;
}

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

.page-cockfighting-rules-tips__btn-secondary {
  background: var(--bg-color-card);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.page-cockfighting-rules-tips__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-main);
}

.page-cockfighting-rules-tips__section {
  padding: 50px 20px;
  background-color: var(--bg-color-main);
}

.page-cockfighting-rules-tips__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting-rules-tips__section-title {
  font-size: 2.5em;
  color: var(--text-color-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-cockfighting-rules-tips__paragraph {
  font-size: 1.05em;
  color: var(--text-color-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting-rules-tips__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting-rules-tips__card {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-main);
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-tips__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting-rules-tips__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules-tips__card-sub-title {
  font-size: 1.3em;
  color: var(--text-color-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting-rules-tips__card-text {
  font-size: 1em;
  color: var(--text-color-secondary);
}

.page-cockfighting-rules-tips__sub-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: left;
}

.page-cockfighting-rules-tips__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-cockfighting-rules-tips__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-color-secondary);
  font-size: 1.05em;
}

.page-cockfighting-rules-tips__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-cockfighting-rules-tips__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting-rules-tips__image--right {
  float: right;
  margin-left: 30px;
  max-width: 40%;
  shape-outside: circle(50%);
  shape-margin: 10px;
}

.page-cockfighting-rules-tips__image--left {
  float: left;
  margin-right: 30px;
  max-width: 40%;
  shape-outside: circle(50%);
  shape-margin: 10px;
}

.page-cockfighting-rules-tips__rules-block::after,
.page-cockfighting-rules-tips__tips-block::after,
.page-cockfighting-rules-tips__benefits-block::after {
  content: '';
  display: block;
  clear: both;
}

.page-cockfighting-rules-tips__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting-rules-tips__faq-section {
  background-color: var(--bg-color-card);
}

.page-cockfighting-rules-tips__faq-list {
  margin-top: 30px;
}

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

.page-cockfighting-rules-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--text-color-main);
  font-weight: 600;
  font-size: 1.1em;
  list-style: none; /* For details/summary */
}

.page-cockfighting-rules-tips__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-cockfighting-rules-tips__faq-toggle {
  font-size: 1.5em;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-tips__faq-item[open] .page-cockfighting-rules-tips__faq-toggle {
  transform: rotate(45deg); /* Rotate for '+' to become '-' */
}

.page-cockfighting-rules-tips__faq-answer {
  padding: 0 20px 20px;
  color: var(--text-color-secondary);
  font-size: 1em;
}

.page-cockfighting-rules-tips__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-cockfighting-rules-tips__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-tips__image--right,
  .page-cockfighting-rules-tips__image--left {
    float: none;
    margin: 0 auto 30px;
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-tips__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }

  .page-cockfighting-rules-tips__section-title {
    font-size: 2em;
  }

  .page-cockfighting-rules-tips__sub-title {
    font-size: 1.5em;
  }

  .page-cockfighting-rules-tips__hero-section,
  .page-cockfighting-rules-tips__section {
    padding: 30px 15px;
  }

  .page-cockfighting-rules-tips__hero-image {
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-tips__image--right,
  .page-cockfighting-rules-tips__image--left {
    float: none;
    margin: 0 auto 20px;
    max-width: 100% !important; /* Force full width on mobile */
  }

  .page-cockfighting-rules-tips__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules-tips__cta-button,
  .page-cockfighting-rules-tips__btn-primary,
  .page-cockfighting-rules-tips__btn-secondary,
  .page-cockfighting-rules-tips a[class*="button"],
  .page-cockfighting-rules-tips a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for stacked buttons */
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-cockfighting-rules-tips__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules-tips__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-tips__section,
  .page-cockfighting-rules-tips__card,
  .page-cockfighting-rules-tips__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules-tips__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting-rules-tips video,
  .page-cockfighting-rules-tips__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting-rules-tips__video-section,
  .page-cockfighting-rules-tips__video-container,
  .page-cockfighting-rules-tips__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting-rules-tips__video-section {
    padding-top: 10px !important;
  }
}