/* style/-g.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --border-color: #e0e0e0;
}

.page--g {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page--g__section {
    padding: 60px 0;
    text-align: center;
}

.page--g__section:nth-of-type(even) {
    background-color: #f0f2f5; /* Slightly darker background for contrast */
}

.page--g__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page--g__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--g__section-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page--g__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.page--g__cta-button:hover {
    background-color: #e0a800; /* Darker secondary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page--g__cta-button--small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Hero Section */
.page--g__hero {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker primary for depth */
    color: var(--text-light);
    padding: 80px 20px;
    overflow: hidden;
}

.page--g__hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

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

.page--g__hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page--g__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page--g__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

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

/* About Đá Gà Section */
.page--g__about-daga .page--g__content-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
}

.page--g__about-daga .page--g__text-content {
    flex: 2;
}

.page--g__about-daga .page--g__text-content h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page--g__about-daga .page--g__text-content ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page--g__about-daga .page--g__text-content ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ffc107"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page--g__about-daga .page--g__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page--g__about-daga .page--g__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Game Types Section */
.page--g__game-types .page--g__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page--g__card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page--g__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page--g__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page--g__card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page--g__card-body h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page--g__card-body h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page--g__card-body h3 a:hover {
    color: #0056b3; /* Darker primary on hover */
}

.page--g__card-body p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page--g__card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page--g__card-button:hover {
    background-color: #0056b3;
}

/* Guide Section */
.page--g__guide .page--g__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page--g__guide .page--g__guide-list li {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    padding-left: 90px;
}

.page--g__guide .page--g__guide-list li::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    position: absolute;
    left: 30px;
    top: 30px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page--g__guide .page--g__guide-list li h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page--g__guide .page--g__guide-list li p {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 15px;
}

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

.page--g__tips .page--g__grid-item {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page--g__tips .page--g__grid-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.page--g__tips .page--g__grid-item p {
    color: #666;
    font-size: 1em;
    text-align: center;
}

.page--g__tip-image {
    width: 100%;
    max-width: 300px; /* Adjust based on desired size */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Security & Support Section */
.page--g__security-support {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page--g__security-support .page--g__section-title {
    color: var(--secondary-color);
}

.page--g__security-support .page--g__section-description {
    color: rgba(255, 255, 255, 0.9);
}

.page--g__security-support .page--g__flex-columns {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page--g__security-support .page--g__flex-item {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page--g__security-support .page--g__flex-item h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page--g__security-support .page--g__flex-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05em;
    margin-bottom: 20px;
}

.page--g__icon-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brighten for visibility on dark background, but not change hue/saturation */
}

/* FAQ Section */
.page--g__faq .page--g__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page--g__faq .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page--g__faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page--g__faq .faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

.page--g__faq .faq-question:hover {
    background: #f5f5f5;
}

.page--g__faq .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-dark);
}

.page--g__faq .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.page--g__faq .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.page--g__faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page--g__faq .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-color: var(--primary-color);
}

.page--g__faq .faq-answer p {
    margin: 0;
    color: #555;
    font-size: 1.0em;
}

/* Conclusion Section */
.page--g__conclusion {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.page--g__conclusion .page--g__section-title {
    color: var(--secondary-color);
}

.page--g__conclusion .page--g__section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
}

.page--g__conclusion .page--g__cta-button {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page--g__conclusion .page--g__cta-button:hover {
    background-color: #e0a800;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page--g__hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .page--g__hero-content h1 {
        font-size: 2.8em;
    }

    .page--g__hero-content p {
        font-size: 1.1em;
    }

    .page--g__hero-image {
        margin-bottom: 40px;
    }

    .page--g__about-daga .page--g__content-grid {
        flex-direction: column;
    }

    .page--g__about-daga .page--g__text-content ul li {
        font-size: 1em;
    }

    .page--g__security-support .page--g__flex-columns {
        flex-direction: column;
    }

    .page--g__security-support .page--g__flex-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page--g__section {
        padding: 40px 0;
    }

    .page--g__section-title {
        font-size: 2em;
    }

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

    .page--g__hero {
        padding: 60px 15px;
    }

    .page--g__hero-content h1 {
        font-size: 2.2em;
    }

    .page--g__hero-content p {
        font-size: 1em;
    }

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

    .page--g__guide .page--g__guide-list li {
        padding: 20px;
        padding-left: 70px;
    }

    .page--g__guide .page--g__guide-list li::before {
        left: 20px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .page--g__guide .page--g__guide-list li h3 {
        font-size: 1.5em;
    }

    .page--g__tips .page--g__grid-item {
        padding: 20px;
    }

    .page--g__tips .page--g__grid-item h3 {
        font-size: 1.4em;
    }

    .page--g__icon-large {
        width: 90px;
        height: 90px;
    }

    .page--g__faq .faq-question {
        padding: 15px 20px;
    }

    .page--g__faq .faq-question h3 {
        font-size: 1.1em;
    }

    .page--g__faq .faq-toggle {
        font-size: 1.5em;
    }

    .page--g__faq .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page--g__section-title {
        font-size: 1.8em;
    }

    .page--g__hero-content h1 {
        font-size: 1.8em;
    }

    .page--g__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page--g__card-body h3 {
        font-size: 1.4em;
    }

    .page--g__guide .page--g__guide-list li h3 {
        font-size: 1.3em;
    }
}