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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--mostbet-text-main);
    background-color: var(--mostbet-bg);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 50px;
    color: #ffffff;
    overflow: hidden;
    background-color: var(--mostbet-primary);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -200px; /* Overlap with image slightly for visual effect */
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-cockfighting__description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.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: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--mostbet-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: var(--mostbet-primary);
    border: 2px solid var(--mostbet-primary);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--mostbet-primary);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

/* General Section Styles */
.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--mostbet-text-main);
}

.page-cockfighting__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--mostbet-text-main);
}

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

/* Dark Section */
.page-cockfighting__dark-section {
    background-color: var(--mostbet-primary);
    color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__text-block {
    color: #ffffff;
}

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

.page-cockfighting__card {
    background: var(--mostbet-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    color: var(--mostbet-text-main);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--mostbet-text-main);
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 20px 20px;
    color: var(--mostbet-text-main);
}

.page-cockfighting__card a.page-cockfighting__btn-primary {
    margin: 0 20px 20px;
    width: auto;
}

/* Step-by-Step Guide */
.page-cockfighting__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background: var(--mostbet-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: var(--mostbet-text-main);
}

.page-cockfighting__step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--mostbet-primary);
    margin-bottom: 15px;
}

.page-cockfighting__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--mostbet-text-main);
}

.page-cockfighting__step-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--mostbet-text-main);
}

/* App Section */
.page-cockfighting__app-section {
    background-color: #f8f9fa;
}

.page-cockfighting__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__app-text {
    flex: 1;
}

.page-cockfighting__app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-cockfighting__tips-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--mostbet-secondary);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ffffff;
}

.page-cockfighting__tips-item strong {
    color: var(--mostbet-glow);
}

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

.page-cockfighting__feature-item {
    background: var(--mostbet-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: var(--mostbet-text-main);
}

.page-cockfighting__feature-icon {
    width: 200px; /* Min size 200px */
    height: 200px; /* Min size 200px */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--mostbet-text-main);
}

.page-cockfighting__feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mostbet-text-main);
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--mostbet-border);
  overflow: hidden;
  background: var(--mostbet-card-bg);
}
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: #f5f5f5;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--mostbet-text-main);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--mostbet-primary);
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left;
  color: var(--mostbet-text-main);
}
.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        height: 500px;
    }
    .page-cockfighting__hero-content {
        margin-top: -150px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__description {
        font-size: 1.05rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__app-image-wrapper {
        order: -1;
    }
}

@media (max-width: 849px) {
    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Prevent cropping on smaller screens */
        aspect-ratio: unset !important;
        position: static;
        height: auto;
    }
    .page-cockfighting__hero-image-wrapper {
        height: auto;
        background-color: var(--mostbet-primary);
    }
    .page-cockfighting__hero-content {
        margin-top: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        background: none; /* Remove dark overlay if image is 'contained' */
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px; /* Maintain small top padding */
        padding-bottom: 30px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    /* General images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__content-image {
        margin: 20px auto;
    }

    /* Cards Grid */
    .page-cockfighting__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card-image {
        height: 200px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
        margin: 15px 15px 8px;
    }
    .page-cockfighting__card-text {
        font-size: 0.9rem;
        margin: 0 15px 15px;
    }

    /* Step-by-Step Guide */
    .page-cockfighting__step-by-step {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__step-number {
        font-size: 2.5rem;
    }
    .page-cockfighting__step-title {
        font-size: 1.3rem;
    }

    /* App Section */
    .page-cockfighting__app-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__app-text {
        order: 1;
    }
    .page-cockfighting__app-image-wrapper {
        order: -1;
        padding: 0 15px;
    }
    .page-cockfighting__app-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    /* Tips Section */
    .page-cockfighting__tips-list {
        margin: 20px auto;
        padding: 0 15px;
    }
    .page-cockfighting__tips-item {
        padding: 15px;
        font-size: 0.9rem;
    }

    /* Why Choose Section */
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-icon {
        width: 150px; /* Still > 200px for generation, but visual scale down */
        height: 150px;
    }
    .page-cockfighting__feature-title {
        font-size: 1.15rem;
    }

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