/* style/cockfighting.css */

/* Base Styles */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
}

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

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

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

.page-cockfighting__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-cockfighting__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__heading {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-cockfighting__heading--white {
    color: #FFFFFF;
}

.page-cockfighting__sub-heading {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
}

.page-cockfighting__sub-heading--white {
    color: #FFFFFF;
}

.page-cockfighting__paragraph {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-cockfighting__paragraph--white {
    color: #FFFFFF;
    text-align: justify;
}

.page-cockfighting__highlight {
    font-weight: bold;
    color: #EA7C07; /* Login color for highlight */
}

.page-cockfighting__paragraph--white .page-cockfighting__highlight {
    color: #FFFFFF;
}

.page-cockfighting__bold {
    font-weight: bold;
}

.page-cockfighting__brand-name {
    font-weight: bold;
    color: #26A9E0;
}

.page-cockfighting__dark-bg .page-cockfighting__brand-name {
    color: #FFFFFF;
}

/* 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: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1400px;
    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;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.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%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    margin-top: -80px; /* Overlap with image for better visual flow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

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

.page-cockfighting__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
}

/* Game Types Section */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

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

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: bold;
    padding: 20px 20px 10px;
    color: #26A9E0;
}

.page-cockfighting__card-text {
    font-size: 15px;
    padding: 0 20px 20px;
    text-align: justify;
}

/* Betting Guide Section */
.page-cockfighting__steps-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__step-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__step-title {
    font-size: 20px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__step-text {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-cockfighting__btn-primary:hover {
    background: #1e87c2;
    transform: translateY(-2px);
}

/* Strategy Section */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__text-block {
    padding: 20px;
}

.page-cockfighting__block-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-align: left;
}

.page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #FFFFFF;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #26A9E0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.page-cockfighting__btn-secondary:hover {
    background: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Safety and Support Section (uses general styles) */

/* FAQ Section */
.page-cockfighting__faq-section {
    padding-bottom: 80px;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px;
  opacity: 0;
  background-color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; 
  padding: 20px !important;
  opacity: 1;
  background-color: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; 
  color: #333333;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #26A9E0;
  transform: rotate(180deg);
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    padding: 80px 0;
    background-color: #f0f8ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__heading {
        font-size: 30px;
    }
    .page-cockfighting__sub-heading {
        font-size: 22px;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__image-block {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-content {
        padding: 20px;
        margin-top: -60px;
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 15px;
    }
    .page-cockfighting__cta-button--large {
        padding: 15px 40px;
        font-size: 18px;
    }
    .page-cockfighting__heading {
        font-size: 26px;
    }
    .page-cockfighting__sub-heading {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-cockfighting__container {
        padding: 25px 15px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__grid-layout, .page-cockfighting__steps-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 20px;
    }
    .page-cockfighting__block-title {
        font-size: 20px;
        text-align: center;
    }
    .page-cockfighting__main-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
    }
    /* Mobile image and container adaptation */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-container,
    .page-cockfighting__hero-image,
    .page-cockfighting__hero-content,
    .page-cockfighting__step-item,
    .page-cockfighting__text-block,
    .page-cockfighting__image-block,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Mobile button adaptation */
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-cockfighting__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
      font-size: 16px;
      width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
      margin-left: 10px;
      width: 28px;
      height: 28px;
      font-size: 24px;
    }
    .page-cockfighting__faq-answer {
      padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
      padding: 15px !important;
    }
}