:root {
    --primary-color: #113B7A;
    --auxiliary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border: #244D84;
    --glow: #4FA8FF;
    --gold: #F2C14E;
    --divider: #1B3357;
    --deep-navy: #08162B;
}

/* General Styles for page-cockfighting */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--deep-navy); /* Body background from shared.css */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, var(--deep-navy) 0%, var(--card-bg) 100%);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width of the image itself */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure text is above any potential background elements */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    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(--text-main);
    border: 2px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(29, 95, 209, 0.1);
    border-color: var(--glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-text {
    display: inline-block;
    color: var(--glow);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s ease;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-text:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__benefits-section,
.page-cockfighting__faq-section {
    background-color: var(--card-bg); /* Use card background for light sections */
    color: var(--text-main); /* Main text color */
    padding: 60px 0;
}

.page-cockfighting__betting-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__regulations-section,
.page-cockfighting__cta-section {
    background-color: var(--deep-navy); /* Use deep navy for dark sections */
    color: var(--text-main); /* Main text color */
    padding: 60px 0;
}

.page-cockfighting p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

.page-cockfighting strong {
    color: var(--text-main);
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Betting Types List */
.page-cockfighting__betting-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__betting-item {
    background-color: var(--deep-navy);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__betting-item-title {
    font-size: 1.4em;
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__betting-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Guide Steps */
.page-cockfighting__guide-steps {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--deep-navy);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--glow) 0%, var(--auxiliary-color) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.5);
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1; /* Make paragraphs take available space */
}

/* Tips List */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__tips-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-item-title {
    font-size: 1.4em;
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__tips-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Benefits Grid */
.page-cockfighting__benefits-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 40px;
}

.page-cockfighting__benefit-card {
    background-color: var(--deep-navy);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__benefit-title {
    font-size: 1.5em;
    color: var(--glow);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Regulations List */
.page-cockfighting__regulations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__regulations-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__regulations-item-title {
    font-size: 1.4em;
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__regulations-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    margin-bottom: 20px;
    color: var(--text-main); /* Override gold for darker background */
}
.page-cockfighting__cta-section .page-cockfighting__section-title::after {
    background-color: var(--glow);
}

.page-cockfighting__cta-section p {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* FAQ Section - details implementation */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--deep-navy); /* Dark background for FAQ items */
}
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;
  color: var(--text-main); /* Light text for question */
}
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(29, 95, 209, 0.1); /* Slight highlight on hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold); /* Gold color for toggle icon */
  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: var(--card-bg); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
}
.page-cockfighting__faq-answer p {
    color: var(--text-secondary);
    margin-bottom: 0;
}
.page-cockfighting__faq-answer a {
    color: var(--glow);
    text-decoration: underline;
}
.page-cockfighting__faq-answer a:hover {
    color: var(--gold);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }
    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em !important; /* Force smaller H1 on mobile */
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-cockfighting__hero-cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__btn-text {
        max-width: 100% !important;
        width: 100% !important;
        text-align: center;
    }

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

    .page-cockfighting__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }

    .page-cockfighting p {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

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

    .page-cockfighting__betting-list,
    .page-cockfighting__guide-steps,
    .page-cockfighting__tips-list,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__regulations-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-cockfighting__betting-item,
    .page-cockfighting__step-item,
    .page-cockfighting__tips-item,
    .page-cockfighting__benefit-card,
    .page-cockfighting__regulations-item {
        padding: 20px;
    }

    .page-cockfighting__betting-item-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tips-item-title,
    .page-cockfighting__benefit-title,
    .page-cockfighting__regulations-item-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 1em; }
    .page-cockfighting__faq-toggle { font-size: 20px; width: 24px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }

    .page-cockfighting__cta-section {
        padding: 40px 0;
    }
    .page-cockfighting__cta-section p {
        font-size: 1em;
        margin-bottom: 30px;
    }
}