/* style/cockfighting-rules.css */

/* Custom Colors */
:root {
  --i9bet150-bg-primary: #08160F;
  --i9bet150-bg-card: #11271B;
  --i9bet150-text-main: #F2FFF6;
  --i9bet150-text-secondary: #A7D9B8;
  --i9bet150-border: #2E7A4E;
  --i9bet150-glow: #57E38D;
  --i9bet150-gold: #F2C14E;
  --i9bet150-divider: #1E3A2A;
  --i9bet150-deep-green: #0A4B2C;
  --i9bet150-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: var(--i9bet150-bg-primary);
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
}

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

.page-cockfighting-rules__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  background-color: var(--i9bet150-bg-primary);
  padding-top: 20px; /* Small padding top for content below image */
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--i9bet150-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting-rules__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--i9bet150-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary,
.page-cockfighting-rules__btn-card,
.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: var(--i9bet150-btn-gradient);
  color: var(--i9bet150-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting-rules__btn-secondary {
  background: var(--i9bet150-bg-card);
  color: var(--i9bet150-glow);
  border: 2px solid var(--i9bet150-glow);
}

.page-cockfighting-rules__btn-secondary:hover {
  background: var(--i9bet150-glow);
  color: var(--i9bet150-bg-primary);
  transform: translateY(-3px);
}

.page-cockfighting-rules__section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background-color: var(--i9bet150-bg-primary);
  box-sizing: border-box;
}

.page-cockfighting-rules__section:nth-child(even) {
  background-color: var(--i9bet150-bg-card);
}

.page-cockfighting-rules__dark-section {
  background-color: var(--i9bet150-bg-card);
  color: var(--i9bet150-text-main);
}

.page-cockfighting-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting-rules__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--i9bet150-gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting-rules__section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--i9bet150-glow);
  border-radius: 2px;
}

.page-cockfighting-rules__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--i9bet150-glow);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-cockfighting-rules__paragraph {
  font-size: 1.1rem;
  color: var(--i9bet150-text-secondary);
  margin-bottom: 15px;
}

.page-cockfighting-rules__highlight {
  color: var(--i9bet150-gold);
  font-weight: 700;
}

.page-cockfighting-rules__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.page-cockfighting-rules__grid-item {
  background-color: var(--i9bet150-bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--i9bet150-border);
}

.page-cockfighting-rules__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-cockfighting-rules__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--i9bet150-text-secondary);
}

.page-cockfighting-rules__list-item::before {
  content: '✔';
  color: var(--i9bet150-glow);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.page-cockfighting-rules__ordered-list .page-cockfighting-rules__list-item::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: var(--i9bet150-gold);
  font-weight: 700;
  position: absolute;
  left: 0;
}

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

.page-cockfighting-rules__card {
  background-color: var(--i9bet150-bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--i9bet150-border);
  display: flex;
  flex-direction: column;
}

.page-cockfighting-rules__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting-rules__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-cockfighting-rules__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--i9bet150-gold);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting-rules__card-text {
  font-size: 1rem;
  color: var(--i9bet150-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting-rules__btn-card {
  margin-top: auto; /* Push button to bottom */
  display: inline-block;
  align-self: flex-start;
}

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

.page-cockfighting-rules__rule-item {
  background-color: var(--i9bet150-bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--i9bet150-border);
}

.page-cockfighting-rules__tips-section {
  margin-top: 60px;
  background-color: var(--i9bet150-bg-card);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--i9bet150-border);
}

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

.page-cockfighting-rules__tip-card {
  background-color: var(--i9bet150-bg-card);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--i9bet150-border);
  text-align: center;
}

.page-cockfighting-rules__tip-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting-rules__faq-section {
  margin-top: 40px;
}

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

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

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--i9bet150-text-main);
  cursor: pointer;
  background-color: var(--i9bet150-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

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

.page-cockfighting-rules__faq-question:hover {
  background-color: var(--i9bet150-glow);
  color: var(--i9bet150-bg-primary);
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-question {
  background-color: var(--i9bet150-glow);
  color: var(--i9bet150-bg-primary);
}

.page-cockfighting-rules__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on entire summary, not just text */
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  width: 20px;
  text-align: center;
  pointer-events: none; /* Allow click on entire summary, not just toggle */
}

.page-cockfighting-rules__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  color: var(--i9bet150-text-secondary);
  background-color: var(--i9bet150-bg-card);
  border-top: 1px solid var(--i9bet150-border);
}

.page-cockfighting-rules__faq-item:not([open]) .page-cockfighting-rules__faq-answer {
  display: none; /* Hide answer when not open for <details> */
}

.page-cockfighting-rules__conclusion {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__grid-two-cols {
    grid-template-columns: 1fr;
  }
}

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

  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__hero-content {
    padding: 20px 15px;
  }

  .page-cockfighting-rules__main-title {
    font-size: 2rem;
  }

  .page-cockfighting-rules__hero-description {
    font-size: 1rem;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary,
  .page-cockfighting-rules__btn-card,
  .page-cockfighting-rules__cta-bottom .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__cta-bottom .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting-rules__section {
    padding: 40px 15px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting-rules__section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules__sub-title {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .page-cockfighting-rules__paragraph {
    font-size: 1rem;
  }

  .page-cockfighting-rules__grid-two-cols,
  .page-cockfighting-rules__card-grid,
  .page-cockfighting-rules__rules-grid,
  .page-cockfighting-rules__grid-three-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules__grid-item,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__rule-item,
  .page-cockfighting-rules__tip-card,
  .page-cockfighting-rules__tips-section,
  .page-cockfighting-rules__faq-item {
    padding: 20px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-cockfighting-rules__card-image {
    height: 200px;
  }

  .page-cockfighting-rules__tip-image {
    height: 180px;
  }

  .page-cockfighting-rules__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-cockfighting-rules__faq-answer {
    padding: 15px 20px;
  }

  .page-cockfighting-rules__cta-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
}