/* style/cockfighting.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-cockfighting__section-title--light {
  color: var(--text-color-light);
}

.page-cockfighting__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__section-description--light {
  color: var(--text-color-light);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset from body */
  background: linear-gradient(to bottom, var(--primary-color) 0%, rgba(1, 116, 57, 0.8) 50%, var(--primary-color) 100%);
  color: var(--text-color-light);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__hero-content h1 {
  color: var(--register-login-font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-cockfighting__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--register {
  background: var(--register-button-bg);
  color: var(--register-login-font);
  border: 2px solid var(--register-login-font);
}

.page-cockfighting__cta-button--register:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--login {
  background: var(--login-button-bg);
  color: var(--register-login-font);
  border: 2px solid var(--register-login-font);
}

.page-cockfighting__cta-button--login:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__cta-button--secondary:hover {
  background: #e0e0e0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Grid */
.page-cockfighting__grid-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-cockfighting__grid-content:nth-child(even) {
  direction: rtl; /* Reverse order for alternating sections */
}

.page-cockfighting__grid-content .page-cockfighting__text-block {
  direction: ltr;
}

.page-cockfighting__grid-content .page-cockfighting__image-block {
  direction: ltr;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-block--center {
  margin-top: 40px;
}

/* Card Grid */
.page-cockfighting__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: var(--background-color-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-color-dark);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card--dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting__card-title--light {
  color: var(--text-color-light);
}

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

.page-cockfighting__card-text--light {
  color: rgba(255, 255, 255, 0.9);
}

/* Feature List */
.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-cockfighting__feature-list li {
  margin-bottom: 15px;
  font-size: 17px;
  position: relative;
  padding-left: 30px;
}

.page-cockfighting__feature-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-color-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
}

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-color: #f5f5f5;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting__hero-content p {
    font-size: 18px;
  }
  .page-cockfighting__grid-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-cockfighting__grid-content:nth-child(even) {
    direction: ltr;
  }
  .page-cockfighting__grid-content .page-cockfighting__text-block {
    order: 2;
  }
  .page-cockfighting__grid-content .page-cockfighting__image-block {
    order: 1;
  }
  .page-cockfighting__image-block--center {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
  }
  .page-cockfighting__section {
    padding: 40px 15px;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting__hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
  }
  .page-cockfighting__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cockfighting__grid-content {
    gap: 20px;
  }
  .page-cockfighting__grid-3-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__feature-list li {
    font-size: 16px;
    padding-left: 25px;
  }
  .page-cockfighting__feature-list li::before {
    font-size: 18px;
  }
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }

  /* Image responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-cockfighting__hero-content p {
    font-size: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 24px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 15px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 22px;
  }
}