/* style/game-guides.css */

/* Custom Colors */
:root {
    --g168-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --g168-card-bg: #11271B;
    --g168-bg: #08160F;
    --g168-text-main: #F2FFF6;
    --g168-text-secondary: #A7D9B8;
    --g168-border: #2E7A4E;
    --g168-glow: #57E38D;
    --g168-gold: #F2C14E;
    --g168-divider: #1E3A2A;
    --g168-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-game-guides {
    background-color: var(--g168-bg); /* Dark background from custom colors */
    color: var(--g168-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-game-guides__container--center {
    text-align: center;
}

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

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--g168-gold); /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
    /* Clamp font size for H2 to ensure responsiveness without being too large */
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.page-game-guides__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--g168-text-secondary);
}

.page-game-guides__highlight-text {
    color: var(--g168-gold);
    font-weight: bold;
}

.page-game-guides__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-game-guides__list-item {
    background-color: var(--g168-card-bg);
    border-left: 4px solid var(--g168-gold);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--g168-text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
}

.page-game-guides__list-item strong {
    color: var(--g168-gold);
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: var(--g168-bg);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 40px; /* Space between image and content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__hero-image {
    display: block;
    width: 100%;
    max-width: 1200px; /* Display width for the image */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--g168-border);
}

.page-game-guides__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-game-guides__main-title {
    color: var(--g168-gold);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
    /* Clamp font size for H1 */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-game-guides__description {
    font-size: 1.3rem;
    color: var(--g168-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-game-guides__cta-buttons--center {
    margin-top: 40px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-game-guides__btn-primary {
    background: var(--g168-btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--g168-gold);
    border: 2px solid var(--g168-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(242, 193, 78, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-text {
    color: var(--g168-gold);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
    color: var(--g168-glow);
    text-decoration: underline;
}

/* Image styles */
.page-game-guides__image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--g168-border);
}

/* Strategy Cards Section */
.page-game-guides__strategy-cards-section {
    background-color: var(--g168-deep-green); /* Slightly different background for visual break */
}

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

.page-game-guides__card {
    background-color: var(--g168-card-bg); /* Card background from custom colors */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--g168-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--g168-border);
}

.page-game-guides__card-title {
    font-size: 1.5rem;
    color: var(--g168-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

.page-game-guides__card-text {
    font-size: 1rem;
    color: var(--g168-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Dark Section (for CTA at bottom) */
.page-game-guides__dark-section {
    background-color: var(--g168-deep-green);
    border-top: 1px solid var(--g168-divider);
    border-bottom: 1px solid var(--g168-divider);
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: var(--g168-gold);
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: var(--g168-text-main);
    font-size: 1.2rem;
}

.page-game-guides__link-in-text {
    color: var(--g168-glow);
    text-decoration: underline;
    font-weight: bold;
}

.page-game-guides__link-in-text:hover {
    color: var(--g168-gold);
}

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

.page-game-guides__faq-item {
    background-color: var(--g168-card-bg);
    border: 1px solid var(--g168-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--g168-text-main);
    background-color: var(--g168-card-bg);
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for dark background */
}

.page-game-guides__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--g168-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'minus' effect */
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

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

    .page-game-guides__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-game-guides__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-game-guides__hero-content {
        padding: 0 15px;
    }

    .page-game-guides__description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides 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: 20px;
        padding-right: 20px;
    }

    .page-game-guides__container,
    .page-game-guides__card-grid,
    .page-game-guides__faq-list {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-game-guides__card-image {
        height: 180px;
    }

    /* Images responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-game-guides__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-game-guides__faq-toggle {
        font-size: 1.5rem;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-game-guides__text-block {
        font-size: 1rem;
    }
    .page-game-guides__list-item {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-game-guides__description {
        font-size: 1rem;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }
}