/* style/cockfighting-rules-tips.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #f8f8f8;
  --border-color: #e0e0e0;
  --login-color: #EA7C07;
}

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

.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(--background-color-light);
}

.page-cockfighting-rules-tips__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules-tips__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-cockfighting-rules-tips__main-title {
  font-size: clamp(2em, 4vw, 3em);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-cockfighting-rules-tips__btn-primary,
.page-cockfighting-rules-tips__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting-rules-tips__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-cockfighting-rules-tips__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

.page-cockfighting-rules-tips__section {
  padding: 50px 0;
  background-color: var(--secondary-color);
}

.page-cockfighting-rules-tips__section:nth-of-type(even) {
  background-color: var(--background-color-light);
}

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

.page-cockfighting-rules-tips__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting-rules-tips__section-title--light {
  color: var(--text-color-light);
}

.page-cockfighting-rules-tips p {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-color-dark);
}

.page-cockfighting-rules-tips__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting-rules-tips__link:hover {
  text-decoration: underline;
}

.page-cockfighting-rules-tips__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-cockfighting-rules-tips__card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-color-dark);
}

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

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

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

.page-cockfighting-rules-tips__list-item {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
  color: var(--text-color-dark);
}

.page-cockfighting-rules-tips__list-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting-rules-tips__image--inline {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  max-width: 400px;
  width: 100%;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting-rules-tips__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting-rules-tips__advantage-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-top: 5px solid var(--primary-color);
  color: var(--text-color-dark);
}

.page-cockfighting-rules-tips__advantage-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-cockfighting-rules-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--background-color-light);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

.page-cockfighting-rules-tips__faq-question::-webkit-details-marker {
  display: none; /* For <summary> */
}

.page-cockfighting-rules-tips__faq-question:hover {
  background-color: #eaf6fc;
}

.page-cockfighting-rules-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
}

.page-cockfighting-rules-tips__faq-item[open] .page-cockfighting-rules-tips__faq-toggle {
  content: '−';
}

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

.page-cockfighting-rules-tips__cta-bottom {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-cockfighting-rules-tips__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-cockfighting-rules-tips__text-center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules-tips__hero-image {
    max-width: 100%;
  }
  .page-cockfighting-rules-tips__image--inline {
    float: none;
    margin: 20px auto;
    display: block;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-tips__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting-rules-tips__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-cockfighting-rules-tips__description {
    font-size: 1em;
  }

  .page-cockfighting-rules-tips__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules-tips__btn-primary,
  .page-cockfighting-rules-tips__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules-tips__section {
    padding: 30px 0;
  }

  .page-cockfighting-rules-tips__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-tips__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-tips p {
    font-size: 0.95em;
  }

  .page-cockfighting-rules-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure minimum size is maintained */
    min-height: 200px; /* Ensure minimum size is maintained */
  }

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

  .page-cockfighting-rules-tips__card {
    padding: 25px;
  }

  .page-cockfighting-rules-tips__list-item {
    padding: 20px;
  }

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

  .page-cockfighting-rules-tips__advantage-item {
    padding: 25px;
  }

  .page-cockfighting-rules-tips__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-cockfighting-rules-tips__faq-answer {
    padding: 0 20px 15px;
  }

  .page-cockfighting-rules-tips__cta-bottom {
    padding: 50px 15px;
  }
  .page-cockfighting-rules-tips__container.page-cockfighting-rules-tips__dark-bg {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content area images are not too small */
.page-cockfighting-rules-tips__content-area img,
.page-cockfighting-rules-tips__introduction img,
.page-cockfighting-rules-tips__rules img,
.page-cockfighting-rules-tips__techniques img,
.page-cockfighting-rules-tips__advantages img {
  min-width: 200px;
  min-height: 200px;
}