/* Base styles for the Đá Gà page */
.page--g {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
}

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

.page--g__section {
    padding: 60px 0;
    position: relative;
}

.page--g__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2563eb;
    text-align: center;
    margin-bottom: 20px;
}

.page--g__section-description {
    font-size: 18px;
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page--g__dark-bg {
    background-color: #2563eb;
    color: #ffffff;
}

.page--g__dark-bg .page--g__section-title {
    color: #ffffff;
}

.page--g__dark-bg .page--g__section-description {
    color: #f0f0f0;
}

.page--g__light-bg {
    background-color: #f8f9fa;
    color: #333333;
}

/* Hero Section */
.page--g__hero-section {
    padding: 10px 0 60px;
    overflow: hidden;
    position: relative;
}

.page--g__hero-section .page--g__container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page--g__hero-content {
    flex: 1;
    min-width: 300px;
    z-index: 1;
    text-align: left;
}

.page--g__main-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 600px;
}

.page--g__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 600px;
}

.page--g__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.page--g__btn-primary,
.page--g__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    flex-grow: 1;
    max-width: 100%;
}

.page--g__btn-primary {
    background-color: #ffffff;
    color: #2563eb;
    border: 2px solid #ffffff;
}

.page--g__btn-primary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.page--g__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page--g__btn-secondary:hover {
    background-color: #ffffff;
    color: #2563eb;
}

.page--g__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

/* Intro Cockfighting Section */
.page--g__intro-cockfighting .page--g__content-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page--g__intro-cockfighting .page--g__text-block {
    flex: 2;
    min-width: 300px;
}

.page--g__intro-cockfighting .page--g__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #444;
}

.page--g__intro-cockfighting .page--g__image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page--g__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page--g__type-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page--g__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page--g__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page--g__card-text {
    font-size: 15px;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1;
}

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

.page--g__benefit-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page--g__benefit-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page--g__benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
}

.page--g__benefit-text {
    font-size: 15px;
    color: #555555;
}

.page--g__benefit-text a {
    color: #2563eb;
    text-decoration: none;
}

.page--g__benefit-text a:hover {
    text-decoration: underline;
}

.page--g__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Betting Guide Section */
.page--g__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.page--g__step-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    border-top: 5px solid #2563eb;
}

.page--g__step-number {
    font-size: 48px;
    font-weight: 800;
    color: #e0e0e0;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
    opacity: 0.6;
}

.page--g__step-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    margin-top: 20px;
}

.page--g__step-text {
    font-size: 15px;
    color: #555555;
}

.page--g__step-text a {
    color: #2563eb;
    text-decoration: none;
}

.page--g__step-text a:hover {
    text-decoration: underline;
}

.page--g__guide-image {
    text-align: center;
}

/* Betting Tips Section */
.page--g__betting-tips .page--g__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page--g__betting-tips .page--g__tips-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page--g__betting-tips .page--g__tips-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.page--g__betting-tips .page--g__tips-text {
    font-size: 16px;
    color: #f0f0f0;
}

.page--g__betting-tips .page--g__tips-text a {
    color: #ffe082;
    text-decoration: none;
}

.page--g__betting-tips .page--g__tips-text a:hover {
    text-decoration: underline;
}

.page--g__tips-image {
    text-align: center;
}

/* FAQ Section */
.page--g__faq-list {
    margin-top: 40px;
}

details.page--g__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page--g__faq-item summary.page--g__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--g__faq-item summary.page--g__faq-question::-webkit-details-marker {
  display: none;
}
details.page--g__faq-item summary.page--g__faq-question:hover {
  background: #f5f5f5;
}
.page--g__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page--g__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page--g__faq-item .page--g__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page--g__faq-answer p {
    margin: 0;
    padding: 0;
}

.page--g__faq-answer a {
    color: #2563eb;
    text-decoration: none;
}

.page--g__faq-answer a:hover {
    text-decoration: underline;
}

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

.page--g__btn-large {
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

/* General image styling */
.page--g img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

    .page--g__hero-section {
        padding-top: 10px; /* Rely on body padding for header offset */
        padding-bottom: 40px;
    }

    .page--g__hero-section .page--g__container {
        flex-direction: column;
        text-align: center;
    }

    .page--g__hero-content {
        text-align: center;
    }

    .page--g__main-title {
        font-size: 36px;
        max-width: 100%;
    }

    .page--g__hero-description {
        font-size: 16px;
        max-width: 100%;
    }

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

    .page--g__btn-primary,
    .page--g__btn-secondary,
    .page--g__btn-large,
    .page--g a[class*="button"],
    .page--g 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--g__section {
        padding: 40px 0;
    }

    .page--g__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page--g__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page--g__intro-cockfighting .page--g__content-grid {
        flex-direction: column;
    }

    .page--g__type-cards-grid {
        grid-template-columns: 1fr;
    }

    .page--g__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page--g__guide-steps {
        grid-template-columns: 1fr;
    }

    .page--g__betting-tips .page--g__tips-list {
        grid-template-columns: 1fr;
    }

    .page--g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page--g__hero-image-wrapper,
    .page--g__intro-cockfighting .page--g__image-wrapper,
    .page--g__guide-image,
    .page--g__tips-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    details.page--g__faq-item summary.page--g__faq-question { padding: 15px; }
    .page--g__faq-qtext { font-size: 15px; }
    details.page--g__faq-item .page--g__faq-answer { padding: 0 15px 15px; }

    .page--g__faq-answer p {
        font-size: 15px;
    }

    .page--g__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    /* List items responsive */
    .page--g__tips-item,
    .page--g__step-item,
    .page--g__benefit-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .page--g__tips-list,
    .page--g__guide-steps,
    .page--g__benefits-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}