/* style/cockfighting.css */

/* General styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    line-height: 1.6;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(168, 79, 12, 0.3); /* Border color with opacity */
}

.page-cockfighting__section:last-of-type {
    border-bottom: none;
}

.page-cockfighting__section-title,
.page-cockfighting__card-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FFB04D; /* Glow color for titles */
    text-shadow: 0 0 8px rgba(255, 176, 77, 0.4);
}

.page-cockfighting__card-title {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-cockfighting__description {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-size: 18px;
    color: #FFF3E6;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    background-color: #0D0E12;
}

.page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image filter if any */
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFB04D;
    text-shadow: 0 0 15px rgba(255, 176, 77, 0.6);
    line-height: 1.2;
}

.page-cockfighting__intro-text {
    font-size: 18px;
    margin-bottom: 40px;
    color: #FFF3E6;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__cta-buttons--center {
    margin-top: 40px;
    justify-content: center;
}

.page-cockfighting__cta-buttons--margin-top {
    margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: 2px solid #FFA53A;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E87A1A 100%);
    border-color: #FFB04D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFA53A;
    border: 2px solid #FFA53A;
    box-shadow: 0 2px 10px rgba(255, 165, 58, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 165, 58, 0.1);
    color: #FFB04D;
    border-color: #FFB04D;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.3);
}

/* About Cockfighting Section */
.page-cockfighting__about-cockfighting {
    background-color: #0D0E12;
}

.page-cockfighting__content-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__text-block {
    flex: 1;
    font-size: 17px;
}

.page-cockfighting__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Rules Section */
.page-cockfighting__rules-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-cockfighting__list-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    color: #FFF3E6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-cockfighting__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__list-item strong {
    color: #FFA53A;
}

/* Why Choose 789ibet Section */
.page-cockfighting__why-789ibet {
    background-color: #0D0E12;
}

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

.page-cockfighting__feature-card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 165, 58, 0.2);
}

.page-cockfighting__card-description {
    font-size: 16px;
    color: #FFF3E6;
}

/* How to Play Section */
.page-cockfighting__guide-list {
    counter-reset: guide-step;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-cockfighting__guide-list .page-cockfighting__list-item {
    position: relative;
    padding-left: 50px;
    text-align: left;
    background-color: #17191F;
    border: 1px solid #A84F0C;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    color: #FFF3E6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-cockfighting__guide-list .page-cockfighting__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__guide-list .page-cockfighting__list-item::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #FFB04D;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #0D0E12;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}
details.page-cockfighting__faq-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
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;
  color: #FFF3E6;
}
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: rgba(255, 165, 58, 0.05); /* Slight hover effect */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow color for question text */
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
  line-height: 1;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #111216; /* Slightly darker than card BG */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 16px;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
    margin: 0;
}


/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

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

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-cockfighting__card-title {
        font-size: 20px;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .page-cockfighting__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        min-height: auto;
        padding-top: 10px !important; /* Fixed header offset */
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 400px; /* Adjust height for mobile */
        margin-bottom: 20px;
    }

    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__hero-content {
        padding: 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(30px, 8vw, 40px); /* Use clamp for H1 */
        margin-bottom: 15px;
    }

    .page-cockfighting__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* CTA Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-cockfighting__cta-buttons--center {
        margin-top: 30px;
    }
    .page-cockfighting__cta-buttons--margin-top {
        margin-top: 30px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* About Cockfighting Section */
    .page-cockfighting__content-flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 16px;
    }

    .page-cockfighting__image-block {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Rules Section */
    .page-cockfighting__rules-list {
        max-width: 100%;
    }

    .page-cockfighting__list-item {
        font-size: 16px;
        padding: 15px;
    }

    /* Why Choose 789ibet Section */
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-cockfighting__feature-card {
        padding: 20px;
    }

    .page-cockfighting__feature-image {
        height: 160px; /* Adjust height for mobile */
    }

    .page-cockfighting__card-description {
        font-size: 15px;
    }

    /* How to Play Section */
    .page-cockfighting__guide-list {
        max-width: 100%;
    }

    .page-cockfighting__guide-list .page-cockfighting__list-item {
        font-size: 16px;
        padding: 15px 15px 15px 50px; /* Adjust padding for step number */
    }

    .page-cockfighting__guide-list .page-cockfighting__list-item::before {
        width: 28px;
        height: 28px;
        font-size: 15px;
        left: 10px;
    }

    /* FAQ Section */
    .page-cockfighting__faq-list {
        max-width: 100%;
    }
    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;
      width: 28px;
      margin-left: 10px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
      padding: 0 20px 15px;
      font-size: 15px;
    }

    /* Universal image responsive styles */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__content-flex,
    .page-cockfighting__image-block,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container,
    .page-cockfighting__features-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* @media (max-width: 1024px) rules (tablet) */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(40px, 5vw, 52px);
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__image-block {
        flex: none;
        width: 100%;
    }
    .page-cockfighting__features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}