/* style/game-guides.css */

/* Custom Properties for Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --light-bg-text: #333333; /* For light background sections */
    --light-bg-color: #ffffff;
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--background-color); /* Matches body background if not overridden by shared */
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--card-bg);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 20px;
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__hero-description {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

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

.page-game-guides__btn-primary {
    background: var(--button-gradient-start);
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--light-bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-bg-color);
    transform: translateY(-3px);
}

/* Section Styling */
.page-game-guides__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.page-game-guides__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* Background variations */
.page-game-guides__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 60px 0;
}
.page-game-guides__dark-bg .page-game-guides__section-title {
    color: var(--gold-color);
}
.page-game-guides__dark-bg .page-game-guides__card-title a,
.page-game-guides__dark-bg .page-game-guides__card-link,
.page-game-guides__dark-bg .page-game-guides__list-item-title {
    color: var(--primary-color);
}

.page-game-guides__light-bg {
    background-color: var(--light-bg-color);
    color: var(--light-bg-text);
    padding: 60px 0;
}
.page-game-guides__light-bg .page-game-guides__section-title {
    color: var(--deep-green-color);
}
.page-game-guides__light-bg .page-game-guides__card-title a,
.page-game-guides__light-bg .page-game-guides__card-link,
.page-game-guides__light-bg .page-game-guides__list-item-title {
    color: var(--primary-color);
}

/* Game Types Section */
.page-game-guides__game-types-section {
    padding: 60px 0;
}

.page-game-guides__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px 20px;
}

.page-game-guides__card-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--glow-color);
}

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 20px;
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-game-guides__card-link {
    display: inline-block;
    margin: 0 20px 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-game-guides__card-link:hover {
    color: var(--glow-color);
}

/* How-To-Use Section */
.page-game-guides__ordered-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-guides__ordered-list li {
    background-color: var(--light-bg-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    color: var(--light-bg-text);
}

.page-game-guides__list-item-title {
    font-weight: 700;
    color: var(--deep-green-color);
    display: block;
    margin-bottom: 5px;
}

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

.page-game-guides__tip-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-game-guides__tip-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__tip-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-game-guides__tip-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsible Gaming Section */
.page-game-guides__unordered-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-guides__unordered-list li {
    background-color: var(--light-bg-color);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    color: var(--light-bg-text);
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding: 60px 0;
}

.page-game-guides__faq-list {
    margin-top: 40px;
}

.page-game-guides__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-game-guides__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-game-guides__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* CTA Bottom Section */
.page-game-guides__cta-bottom-section {
    text-align: center;
    padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        padding: 30px 20px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-game-guides__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-game-guides__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__game-types-section,
    .page-game-guides__how-to-use-section,
    .page-game-guides__tips-section,
    .page-game-guides__responsible-gaming-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom-section {
        padding: 40px 0;
    }
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }
    .page-game-guides__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 25px;
    }
    .page-game-guides__text-block {
        font-size: 1rem;
    }
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__card,
    .page-game-guides__tip-card,
    .page-game-guides__ordered-list li,
    .page-game-guides__unordered-list li,
    .page-game-guides__faq-item {
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px;
    }
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__hero-image,
    .page-game-guides__card-grid,
    .page-game-guides__tips-grid,
    .page-game-guides__faq-list,
    .page-game-guides__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__tip-image {
        height: 150px;
    }
    .page-game-guides__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }
    .page-game-guides__section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
    .page-game-guides__card-grid,
    .page-game-guides__tips-grid {
        grid-template-columns: 1fr;
    }
    .page-game-guides__card-image {
        height: 150px;
    }
    .page-game-guides__tip-image {
        height: 120px;
    }
}