/* style/cockfighting.css */

:root {
    --kbet-primary: #F2C14E;
    --kbet-secondary: #FFD36B;
    --kbet-bg-dark: #0A0A0A;
    --kbet-card-bg: #111111;
    --kbet-text-main: #FFF6D6;
    --kbet-border: #3A2A12;
    --kbet-glow: #FFD36B;
    --kbet-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

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

.page-cockfighting__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--kbet-secondary);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.page-cockfighting__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--kbet-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--kbet-bg-dark);
    position: relative;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for desktop */
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    background: var(--kbet-card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    border: 1px solid var(--kbet-border);
}

.page-cockfighting__main-title {
    font-weight: 900;
    color: var(--kbet-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-cockfighting__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--kbet-text-main);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
    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;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--kbet-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--kbet-primary);
    border: 2px solid var(--kbet-primary);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--kbet-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__btn-link {
    background: none;
    border: none;
    color: var(--kbet-secondary);
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
}

.page-cockfighting__btn-link:hover {
    color: var(--kbet-primary);
}

/* Dark Section */
.page-cockfighting__dark-section {
    background-color: var(--kbet-card-bg);
    border-top: 1px solid var(--kbet-border);
    border-bottom: 1px solid var(--kbet-border);
}

/* Features Section */
.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: var(--kbet-card-bg);
    border: 1px solid var(--kbet-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 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 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-cockfighting__card-text {
    font-size: 16px;
    color: var(--kbet-text-main);
}

/* How-To-Play Section */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-item {
    background: var(--kbet-card-bg);
    border: 1px solid var(--kbet-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 22px;
    color: var(--kbet-secondary);
    margin-bottom: 10px;
}

.page-cockfighting__step-item p {
    color: var(--kbet-text-main);
    font-size: 16px;
    margin-bottom: 15px;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--kbet-border);
  overflow: hidden;
  background: var(--kbet-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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(var(--kbet-primary), 0.1);
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--kbet-primary);
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--kbet-secondary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--kbet-primary), 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--kbet-text-main);
  font-size: 16px;
}

/* CTA Section */
.page-cockfighting__cta-content {
    text-align: center;
    padding: 60px 20px;
}

.page-cockfighting__cta-content .page-cockfighting__description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-cockfighting__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Global image responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Mobile */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-cockfighting__main-title {
        font-size: 36px;
    }
    .page-cockfighting__description {
        font-size: 16px;
    }
    .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-cockfighting__features-grid, .page-cockfighting__steps-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section-padding {
        padding: 40px 15px;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-cockfighting__hero-image {
        max-height: 400px; /* Adjust height for mobile */
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__hero-content {
        margin-top: -40px; /* Less overlap on mobile */
        padding: 25px 15px;
        border-radius: 10px;
    }
    .page-cockfighting__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    /* Buttons and Button Containers */
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__btn-link {
        text-align: center;
    }

    /* Features Section */
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-card {
        padding: 20px;
    }
    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__card-title {
        font-size: 20px;
    }
    .page-cockfighting__card-text {
        font-size: 15px;
    }

    /* How-To-Play Section */
    .page-cockfighting__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__step-item {
        padding: 20px;
    }
    .page-cockfighting__step-title {
        font-size: 20px;
    }
    .page-cockfighting__step-item p {
        font-size: 15px;
    }
    .page-cockfighting__content-image {
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 16px; }
    .page-cockfighting__faq-toggle { font-size: 24px; width: 24px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* CTA Section */
    .page-cockfighting__cta-content {
        padding: 40px 15px;
    }
    .page-cockfighting__cta-content .page-cockfighting__description {
        font-size: 16px;
    }

    /* General image rules for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}