/* style/resources-game-strategy.css */

/* Variables for consistent styling */
:root {
    --ph-plus-primary-color: #000000; /* Main color */
    --ph-plus-secondary-color: #FFFFFF; /* Auxiliary color */
    --ph-plus-register-color: #FFFFFF; /* Register button text */
    --ph-plus-login-color: #FCBC45; /* Login button background */
    --ph-plus-background-color: #FFFFFF; /* Page background */
    --ph-plus-text-color-dark: #333333; /* For light backgrounds */
    --ph-plus-text-color-light: #FFFFFF; /* For dark backgrounds */
    --ph-plus-link-color: #FCBC45; /* Link color */
    --ph-plus-link-hover-color: #e0a53a; /* Link hover color */
}

/* Base styles for the page content, ensuring header offset and dark text on light body */
.page-resources-game-strategy {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--ph-plus-background-color);
    color: var(--ph-plus-text-color-dark); /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Hero Section */
.page-resources-game-strategy__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: var(--ph-plus-text-color-light); /* Assuming hero has a dark overlay or image makes text light */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.page-resources-game-strategy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-resources-game-strategy__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-resources-game-strategy__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text */
    border-radius: 8px;
}

.page-resources-game-strategy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--ph-plus-text-color-light);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-game-strategy__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--ph-plus-text-color-light);
}

.page-resources-game-strategy__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Button Styles */
.page-resources-game-strategy__button {
    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, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.page-resources-game-strategy__button--primary {
    background-color: var(--ph-plus-login-color); /* FCBC45 */
    color: var(--ph-plus-primary-color); /* #000000 */
}

.page-resources-game-strategy__button--primary:hover {
    background-color: var(--ph-plus-link-hover-color);
    transform: translateY(-2px);
}

.page-resources-game-strategy__button--secondary {
    background-color: transparent;
    color: var(--ph-plus-register-color); /* #FFFFFF */
    border: 2px solid var(--ph-plus-register-color);
}

.page-resources-game-strategy__button--secondary:hover {
    background-color: var(--ph-plus-register-color);
    color: var(--ph-plus-primary-color);
    transform: translateY(-2px);
}

/* Content Area */
.page-resources-game-strategy__content-area {
    max-width: 800px; /* Constrain content width for readability */
    margin: 40px auto;
    padding: 20px;
    background-color: var(--ph-plus-background-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-game-strategy__back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--ph-plus-link-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-game-strategy__back-link:hover {
    color: var(--ph-plus-link-hover-color);
    text-decoration: underline;
}

.page-resources-game-strategy__article {
    padding: 20px 0;
}

.page-resources-game-strategy__article-heading {
    font-size: 2.2em;
    color: var(--ph-plus-primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-game-strategy__sub-heading {
    font-size: 1.8em;
    color: var(--ph-plus-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-resources-game-strategy__article p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--ph-plus-text-color-dark);
}

.page-resources-game-strategy__image-container {
    margin: 30px auto;
    text-align: center;
    max-width: 100%; /* Ensure image container doesn't overflow */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-game-strategy__image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    /* No filter properties allowed */
}

/* Ensure content images are not small */
.page-resources-game-strategy__article img {
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Call to Action Section at the end of the article */
.page-resources-game-strategy__cta-section {
    background-color: var(--ph-plus-primary-color); /* Dark background */
    color: var(--ph-plus-text-color-light); /* Light text */
    padding: 40px;
    margin-top: 50px;
    border-radius: 10px;
    text-align: center;
}

.page-resources-game-strategy__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--ph-plus-login-color); /* Highlight with accent color */
    font-weight: bold;
}

.page-resources-game-strategy__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-game-strategy__main-title {
        font-size: 2.8em;
    }
    .page-resources-game-strategy__intro-text {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-resources-game-strategy__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-resources-game-strategy__main-title {
        font-size: 2.2em;
    }
    .page-resources-game-strategy__intro-text {
        font-size: 1.1em;
    }
    .page-resources-game-strategy__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-game-strategy__button {
        width: 80%;
        max-width: 300px;
    }
    .page-resources-game-strategy__content-area {
        padding: 15px;
        margin: 20px auto;
    }
    .page-resources-game-strategy__article-heading {
        font-size: 1.8em;
    }
    .page-resources-game-strategy__sub-heading {
        font-size: 1.5em;
    }
    .page-resources-game-strategy__article p {
        font-size: 1em;
    }
    .page-resources-game-strategy__cta-title {
        font-size: 2em;
    }
    .page-resources-game-strategy__cta-description {
        font-size: 1.1em;
    }
    /* Mobile content image constraint */
    .page-resources-game-strategy__article img,
    .page-resources-game-strategy__image-container img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure minimum size is maintained */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-resources-game-strategy__main-title {
        font-size: 1.8em;
    }
    .page-resources-game-strategy__intro-text {
        font-size: 1em;
    }
    .page-resources-game-strategy__button {
        width: 90%;
    }
    .page-resources-game-strategy__cta-title {
        font-size: 1.8em;
    }
    .page-resources-game-strategy__cta-description {
        font-size: 1em;
    }
}