.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F3F8FF); /* Default text color for dark body background */
    background-color: transparent; /* Body will have the deep-navy background */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    margin-top: 30px; /* Separating content from image */
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #F3F8FF);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary, #AFC4E8);
}

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

/* General Buttons */
.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;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't exceed container */
    flex-grow: 1; /* Allow buttons to grow */
    min-width: 180px; /* Minimum width for buttons */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main, #F3F8FF);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--glow, #4FA8FF);
    border: 2px solid var(--glow, #4FA8FF);
    box-shadow: 0 2px 10px rgba(79, 168, 255, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(79, 168, 255, 0.1);
    color: var(--text-main, #F3F8FF);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 168, 255, 0.4);
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main, #F3F8FF);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-cockfighting__section-description {
    font-size: 18px;
    color: var(--text-secondary, #AFC4E8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__content-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary, #AFC4E8);
}

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

/* Bet Types Section */
.page-cockfighting__bet-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__bet-item {
    background-color: var(--card-bg, #10233F);
    border: 1px solid var(--border, #244D84);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__bet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__bet-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
}

.page-cockfighting__bet-description {
    font-size: 16px;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
}

/* Guide Section */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__guide-item {
    background-color: var(--card-bg, #10233F);
    border: 1px solid var(--border, #244D84);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-step-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
    font-size: 16px;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Advantages Section (uses content-wrapper) */
.page-cockfighting__advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__advantage-item {
    font-size: 17px;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-cockfighting__advantage-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold, #F2C14E);
    font-weight: bold;
    font-size: 20px;
}

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

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border, #244D84);
  overflow: hidden;
  background: var(--card-bg, #10233F);
  box-shadow: 0 2px 8px 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(--primary-color-rgb, 17, 59, 122), 0.5); /* Use rgba for hover effect */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F3F8FF);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-bg-rgb, 16, 35, 63), 0.8); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary, #AFC4E8);
  font-size: 16px;
  line-height: 1.6;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 40px;
    }

    .page-cockfighting__hero-description {
        font-size: 17px;
    }

    .page-cockfighting__section-title {
        font-size: 32px;
    }

    .page-cockfighting__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__content-wrapper--reverse {
        flex-direction: column; /* Also column for reverse on tablet */
    }

    .page-cockfighting__content-image {
        max-width: 100%;
        height: auto;
    }

    .page-cockfighting__bet-item,
    .page-cockfighting__guide-item {
        padding: 25px;
    }

    .page-cockfighting__bet-title {
        font-size: 22px;
    }

    .page-cockfighting__guide-step-title {
        font-size: 20px;
    }

    .page-cockfighting__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons */
    .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: 12px 20px !important;
        font-size: 16px !important;
    }
    
    .page-cockfighting__cta-wrapper {
        padding: 0 15px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* General Section Styling */
    .page-cockfighting__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

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

    .page-cockfighting__section-title::after {
        width: 60px;
        height: 3px;
    }

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

    .page-cockfighting__content-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .page-cockfighting__content-wrapper--reverse {
        flex-direction: column;
    }

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

    .page-cockfighting__content-image {
        min-width: unset; /* Remove min-width to allow full flexibility */
    }

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

    /* Bet Types Section */
    .page-cockfighting__bet-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__bet-item {
        padding: 20px;
    }

    .page-cockfighting__bet-title {
        font-size: 20px;
    }

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

    /* Guide Section */
    .page-cockfighting__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__guide-item {
        padding: 20px;
    }

    .page-cockfighting__guide-step-title {
        font-size: 18px;
    }

    .page-cockfighting__guide-item p {
        font-size: 15px;
    }

    /* Advantages Section */
    .page-cockfighting__advantage-item {
        font-size: 16px;
        padding-left: 25px;
    }

    .page-cockfighting__advantage-item::before {
        font-size: 18px;
    }

    /* 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: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }
}