/* style/game-strategies.css */

/* Base styles for the page content */
.page-game-strategies {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set to match default body background */
}

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

/* Hero Section */
.page-game-strategies__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 600px;
    background-color: #f0f8ff; /* Light background for hero */
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-game-strategies__hero-content {
    flex: 1;
    padding-right: 40px;
    max-width: 600px;
    z-index: 1;
}

.page-game-strategies__hero-title {
    font-size: 3.2em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-strategies__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

.page-game-strategies__hero-buttons {
    display: flex;
    gap: 15px;
}

.page-game-strategies__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.page-game-strategies__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* General Section Styles */
.page-game-strategies__section {
    padding: 60px 0;
    text-align: center;
}

.page-game-strategies__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-game-strategies__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-game-strategies__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-game-strategies__section-title--white {
    color: #FFFFFF;
}

.page-game-strategies__section-title--white::after {
    background-color: #FFFFFF;
}

.page-game-strategies__text-block {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-strategies__text-block--white {
    color: #FFFFFF;
}

.page-game-strategies__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-game-strategies__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Ensure contrast */
    color: #333333; /* Ensure contrast */
}

.page-game-strategies__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-game-strategies__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-game-strategies__card-text {
    color: #666666;
}

/* Game Specific Strategies */
.page-game-strategies__game-strategies-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-strategies__game-strategy-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Ensure contrast */
    color: #333333; /* Ensure contrast */
}

.page-game-strategies__game-strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-game-strategies__game-strategy-item .page-game-strategies__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-game-strategies__item-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-game-strategies__item-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-strategies__item-title a:hover {
    color: #1a7fb8; /* Darker shade for hover */
    text-decoration: underline;
}

.page-game-strategies__item-description {
    color: #666666;
    font-size: 0.95em;
}

/* Video Section */
.page-game-strategies__video-section {
    background-color: #f0f8ff; /* Light background for video section */
    padding: 80px 0;
}

.page-game-strategies__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-game-strategies__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-game-strategies__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Important for responsive image/video */
}

.page-game-strategies__video-caption {
    font-size: 0.95em;
    color: #666666;
    margin-top: 15px;
}

/* Responsible Gaming */
.page-game-strategies__responsible-gaming {
    background-color: #FFFFFF;
}

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

/* FAQ Section */
.page-game-strategies__faq {
    background-color: #f0f8ff;
}

.page-game-strategies__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-game-strategies__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0; /* Ensure contrast */
    color: #333333; /* Ensure contrast */
}

.page-game-strategies__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* For details/summary */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-game-strategies__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-game-strategies__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

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

.page-game-strategies__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

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

.page-game-strategies__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Call to Action Section */
.page-game-strategies__cta {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as background */
    color: #FFFFFF;
}

.page-game-strategies__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-game-strategies__btn-primary,
.page-game-strategies__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-game-strategies__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-game-strategies__btn-primary:hover {
    background-color: #1a7fb8; /* Darker shade */
    border-color: #1a7fb8;
}

.page-game-strategies__btn-primary--white-text {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-game-strategies__btn-primary--white-text:hover {
    background-color: #f0f0f0;
    color: #1a7fb8;
    border-color: #f0f0f0;
}

.page-game-strategies__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-game-strategies__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-strategies__hero-title {
        font-size: 2.8em;
    }
    .page-game-strategies__hero-description {
        font-size: 1.1em;
    }
    .page-game-strategies__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-game-strategies__container {
        padding: 0 15px;
    }

    /* Hero Section adjustments */
    .page-game-strategies__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-game-strategies__hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .page-game-strategies__hero-title {
        font-size: 2.2em;
    }
    .page-game-strategies__hero-description {
        font-size: 1em;
    }
    .page-game-strategies__hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Image responsiveness - crucial */
    .page-game-strategies img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness - crucial */
    .page-game-strategies video,
    .page-game-strategies__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-strategies__video-section,
    .page-game-strategies__video-container,
    .page-game-strategies__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Note: If video-section is the *first* section, it needs padding-top. If not, it's fine. */
    .page-game-strategies__video-section {
      padding-top: 60px !important; /* Reset to regular section padding on mobile if not first hero */
    }

    /* Button responsiveness - crucial */
    .page-game-strategies__btn-primary,
    .page-game-strategies__btn-secondary,
    .page-game-strategies a[class*="button"],
    .page-game-strategies 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; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }
    .page-game-strategies__hero-buttons,
    .page-game-strategies__button-group,
    .page-game-strategies__cta-buttons,
    .page-game-strategies__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-game-strategies__section-title {
        font-size: 1.8em;
    }
    .page-game-strategies__text-block {
        font-size: 1em;
    }

    .page-game-strategies__card,
    .page-game-strategies__game-strategy-item,
    .page-game-strategies__faq-item {
        padding: 20px;
    }

    .page-game-strategies__faq-question {
        font-size: 1.05em;
        padding: 15px 20px;
    }

    .page-game-strategies__dark-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-strategies__hero-title {
        font-size: 1.8em;
    }
    .page-game-strategies__section-title {
        font-size: 1.5em;
    }
    .page-game-strategies__btn-primary,
    .page-game-strategies__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}