:root {
    --primary-color: #0A2342; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #F0F2F5;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-alt-light: #f9f9f9;
    --bg-dark: #0A2342;
    --border-color: #e0e0e0;
}

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

/* General container */
.page--g .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections styling */
.page--g section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page--g section:nth-of-type(even) {
    background-color: var(--bg-alt-light); /* Slightly lighter background for contrast */
}

/* Headings */
.page--g h1, .page--g h2, .page--g h3, .page--g h4, .page--g h5, .page--g h6 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.page--g h1 {
    font-size: 3.2em;
    color: var(--secondary-color); /* Hero title can be gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.page--g h2::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 h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page--g p {
    margin-bottom: 15px;
    text-align: justify;
    color: #444;
}

/* Hero Section */
.page--g .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5e 100%); /* Darker gradient for background */
    color: var(--text-light);
}

.page--g .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.page--g .hero-image img {
    width: 100%;
    height: auto;
    min-height: 300px; /* Minimum height for hero image */
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page--g .hero-content h1 {
    color: var(--secondary-color);
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.page--g .hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page--g .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color); /* Dark text on gold button for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page--g .cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page--g .btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page--g .btn-small:hover {
    background: #e6c200;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}


/* Intro Section */
.page--g .intro-section p {
    font-size: 1.1em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page--g .feature-item {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color);
}

.page--g .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page--g .feature-item img {
    max-width: 100%; /* Ensure images are not too small */
    height: 200px; /* Enforce minimum height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page--g .feature-item h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page--g .feature-item p {
    font-size: 1em;
    color: #555;
    text-align: center;
}

/* Game Types Section */
.page--g .game-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .game-type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page--g .game-type-item img {
    max-width: 100%;
    height: 250px; /* Enforce minimum height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page--g .game-type-item h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page--g .game-type-item p {
    font-size: 1.1em;
    color: #666;
    text-align: center;
}

/* How to Play Section */
.page--g ol {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    counter-reset: step-counter;
}

.page--g ol li {
    background-color: var(--bg-light);
    border-left: 5px solid var(--secondary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-left: 60px;
}

.page--g ol li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page--g ol li h3 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.7em;
}

.page--g ol li p {
    text-align: left;
    font-size: 1em;
    color: #555;
}

/* Tips and Strategies Section */
.page--g ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page--g ul li {
    background-color: var(--bg-light);
    border-bottom: 1px solid #eee;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.page--g ul li:hover {
    background-color: #f5f5f5;
}

.page--g ul li h3 {
    text-align: left;
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page--g ul li p {
    text-align: left;
    font-size: 1em;
    color: #555;
}


/* Promotions Section */
.page--g .promotion-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    border-top: 6px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page--g .promotion-card img {
    max-width: 100%;
    height: 200px; /* Enforce minimum height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page--g .promotion-card h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page--g .promotion-card p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

/* Security & Support Section */
.page--g .security-support-section h3 {
    text-align: left;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

.page--g .security-support-section p {
    color: #555;
    text-align: justify;
}

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

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

.page--g .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color); /* Dark background for question */
    color: var(--text-light); /* Light text on dark background */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page--g .faq-question:hover {
    background: #1a3a5e; /* Slightly lighter dark on hover */
    color: var(--secondary-color);
}

.page--g .faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: inherit; /* Inherit color from parent */
    text-align: left;
}

.page--g .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--secondary-color); /* Gold toggle icon */
}

.page--g .faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.page--g .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
    color: #444;
}

.page--g .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
    border-top: 1px solid #eee;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page--g .faq-answer p {
    margin-bottom: 0;
    text-align: justify;
}

/* Call to Action Section */
.page--g .call-to-action-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5e 100%);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page--g .call-to-action-section h2 {
    color: var(--secondary-color);
    font-size: 3em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g .call-to-action-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page--g h1 {
        font-size: 3em;
    }
    .page--g h2 {
        font-size: 2.2em;
    }
    .page--g h3 {
        font-size: 1.6em;
    }
    .page--g .hero-content p {
        font-size: 1.2em;
    }
    .page--g .cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page--g .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page--g .hero-image img {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .page--g section {
        padding: 40px 0;
    }
    .page--g h1 {
        font-size: 2.5em;
    }
    .page--g h2 {
        font-size: 2em;
    }
    .page--g h3 {
        font-size: 1.4em;
    }
    .page--g .hero-content p {
        font-size: 1em;
    }
    .page--g .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page--g .feature-item,
    .page--g .game-type-item,
    .page--g .promotion-card {
        padding: 20px;
    }
    .page--g .feature-item img,
    .page--g .game-type-item img,
    .page--g .promotion-card img {
        height: 180px; /* Adjust image height for smaller screens */
    }
    .page--g ol li {
        padding-left: 50px;
    }
    .page--g ol li::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
        left: 10px;
    }
    .page--g .faq-question {
        padding: 15px 20px;
    }
    .page--g .faq-question h3 {
        font-size: 1.1em;
    }
    .page--g .faq-toggle {
        font-size: 20px;
    }
    .page--g .faq-answer {
        padding: 0 20px;
    }
    .page--g .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page--g .call-to-action-section {
        padding: 50px 15px;
    }
    .page--g .call-to-action-section h2 {
        font-size: 2.2em;
    }
    .page--g .call-to-action-section p {
        font-size: 1.1em;
    }
    .page--g .hero-image img {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page--g h1 {
        font-size: 2em;
    }
    .page--g h2 {
        font-size: 1.8em;
    }
    .page--g h3 {
        font-size: 1.3em;
    }
    .page--g .hero-content p {
        font-size: 0.9em;
    }
    .page--g .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    .page--g .feature-item img,
    .page--g .game-type-item img,
    .page--g .promotion-card img {
        height: 150px; /* Further adjust image height for mobile */
    }
    .page--g .call-to-action-section h2 {
        font-size: 1.8em;
    }
    .page--g .call-to-action-section p {
        font-size: 0.9em;
    }
}