/* style/cockfighting.css */
: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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--background-color);
}

.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, body handles --header-offset */
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.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.2);
}

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

.page-cockfighting__hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.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 {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--dark {
    background: var(--button-gradient);
    color: #ffffff;
}

.page-cockfighting__cta-button--conclusion {
    margin-top: 30px;
    padding: 18px 45px;
    font-size: 20px;
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-cockfighting__sub-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__light-bg {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

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

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

.page-cockfighting__dark-bg .page-cockfighting__list li {
    color: #f0f0f0;
}

/* Grid Layout for Types */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__card p {
    font-size: 1rem;
    color: var(--text-main-color);
}

/* Lists */
.page-cockfighting__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-cockfighting__list li {
    margin-bottom: 10px;
}

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

.page-cockfighting__feature-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 30px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.page-cockfighting__feature-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__feature-item p {
    font-size: 0.95rem;
    color: var(--text-main-color);
}

.page-cockfighting__center-button {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
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: #f5f8ff; /* Lighter hover for contrast */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #f9fcff; /* Slightly different background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
}

.page-cockfighting__conclusion-section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    color: var(--text-main-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }
}

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

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

    .page-cockfighting__hero-image img {
        border-radius: 8px;
    }

    .page-cockfighting__hero-section h1 {
        font-size: 2.2rem;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

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

    .page-cockfighting__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.6rem;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__grid-layout,
    .page-cockfighting__feature-grid {
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__feature-item {
        padding: 20px;
        border-radius: 8px;
    }

    .page-cockfighting__card img {
        height: 200px;
        border-radius: 6px;
    }

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

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section,
    .page-cockfighting__container,
    .page-cockfighting__card,
    .page-cockfighting__feature-item,
    .page-cockfighting__hero-container,
    .page-cockfighting__hero-image,
    .page-cockfighting__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !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;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
}