:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --card-bg-color: #FFFFFF;
    --background-color: #F4F7FB;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--background-color);
    padding-bottom: 50px;
}

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

/* 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: 10px; /* Small top padding for hero section */
    background-color: var(--background-color);
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width on desktop */
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-cockfighting__description {
    font-size: 1.15em;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-cockfighting__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--inverted {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__cta-button--inverted:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-cockfighting__cta-button--secondary {
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    margin-left: 15px;
}

.page-cockfighting__cta-button--secondary:hover {
    background: #5a92e8;
}

/* General Sections */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    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(--secondary-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 25px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Background colors for sections */
.page-cockfighting__light-bg {
    background-color: var(--background-color);
    padding: 80px 0;
    color: var(--text-main-color);
}

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title::after {
    background-color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__text-block {
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__highlight {
    color: var(--secondary-color);
}


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

.page-cockfighting__feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.page-cockfighting__feature-card p {
    color: var(--text-main-color);
    font-size: 1em;
}

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

.page-cockfighting__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-cockfighting__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__game-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__game-card p {
    color: #e0e0e0;
    font-size: 1em;
}

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

.page-cockfighting__benefits-list li {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__benefits-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__benefit-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__benefits-list li p {
    color: var(--text-main-color);
    font-size: 1em;
}

/* How To Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__step-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-card p {
    color: #e0e0e0;
    font-size: 1em;
}

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

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

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

details.page-cockfighting__faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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;
}

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: var(--background-color);
}

.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    background: var(--card-bg-color);
    border-radius: 0 0 12px 12px;
    color: var(--text-main-color);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Latest News Section (Blog) */
.page-cockfighting__latest-news-section {
    padding: 80px 0;
}

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

.page-cockfighting__blog-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__blog-content {
    padding: 25px;
    color: #ffffff;
}

.page-cockfighting__blog-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__blog-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__blog-title a:hover {
    color: var(--secondary-color);
}

.page-cockfighting__blog-date {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-cockfighting__blog-excerpt {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.page-cockfighting__read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cockfighting__read-more:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image img {
        border-radius: 8px;
    }

    .page-cockfighting__section-title {
        font-size: 2.2em;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__description {
        font-size: 1em;
    }

    .page-cockfighting__game-card img,
    .page-cockfighting__step-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-cockfighting__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-cockfighting__cta-button--secondary {
        margin-top: 15px;
        margin-left: 0;
    }

    .page-cockfighting__text-block--center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

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

    .page-cockfighting__light-bg,
    .page-cockfighting__dark-bg,
    .page-cockfighting__faq-section,
    .page-cockfighting__latest-news-section {
        padding: 50px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__game-grid,
    .page-cockfighting__benefits-list,
    .page-cockfighting__steps-grid,
    .page-cockfighting__blog-grid {
        gap: 20px;
        margin-top: 30px;
        grid-template-columns: 1fr; /* Single column layout on mobile */
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__game-card,
    .page-cockfighting__benefits-list li,
    .page-cockfighting__step-card,
    .page-cockfighting__blog-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-cockfighting__game-card img,
    .page-cockfighting__step-card img {
        
        border-radius: 6px;
    }

    .page-cockfighting__feature-title,
    .page-cockfighting__game-title,
    .page-cockfighting__benefit-title,
    .page-cockfighting__step-title {
        font-size: 1.2em;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px 20px;
    }

    .page-cockfighting__faq-qtext {
        font-size: 1em;
    }

    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 24px;
    }

    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }

    .page-cockfighting__blog-card img {
        
    }
    .page-cockfighting__blog-content {
        padding: 20px;
    }
    .page-cockfighting__blog-title {
        font-size: 1.2em;
    }
    .page-cockfighting__blog-excerpt {
        font-size: 0.95em;
    }
}

/* Image responsive rules */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile image and container rules */
@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__hero-image,
  .page-cockfighting__game-card,
  .page-cockfighting__step-card,
  .page-cockfighting__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Ensure no horizontal scroll */
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Button responsive rules */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__cta-buttons,
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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__text-block--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}