/* style/resources-cpc4-game-guide.css */

/* Custom properties for colors (derived from brand colors) */
:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* Auxiliary white */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --text-light: #ffffff; /* Light text for dark backgrounds */
    --button-register: #C30808; /* Register button color */
    --button-login: #C30808; /* Login button color */
    --font-register-login: #FFFF00; /* Font color for register/login */
    --background-light: #f9f9f9; /* Light background for sections */
    --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-resources-cpc4-game-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Fallback, but shared.css body background will apply */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Section container */
.page-resources-cpc4-game-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Generic section styling */
.page-resources-cpc4-game-guide__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-resources-cpc4-game-guide__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-resources-cpc4-game-guide__sub-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-cpc4-game-guide__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Color contrast enforcement for specific sections */
.page-resources-cpc4-game-guide__light-bg {
    background-color: var(--secondary-color); /* White background */
    color: var(--text-dark); /* Dark text */
}

.page-resources-cpc4-game-guide__light-bg .page-resources-cpc4-game-guide__section-title,
.page-resources-cpc4-game-guide__light-bg .page-resources-cpc4-game-guide__sub-title {
    color: var(--primary-color);
}

.page-resources-cpc4-game-guide__dark-bg {
    background-color: var(--primary-color); /* Green background */
    color: var(--text-light); /* Light text */
}

.page-resources-cpc4-game-guide__dark-bg .page-resources-cpc4-game-guide__section-title,
.page-resources-cpc4-game-guide__dark-bg .page-resources-cpc4-game-guide__sub-title {
    color: var(--secondary-color); /* White text */
}

/* Hero Section */
.page-resources-cpc4-game-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, #00a859 100%); /* Green gradient */
    color: var(--text-light);
}

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

.page-resources-cpc4-game-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-cpc4-game-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    /* No filter to change image color */
}

.page-resources-cpc4-game-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-cpc4-game-guide__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-resources-cpc4-game-guide__hero-description {
    font-size: 20px;
    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.3);
}

/* CTA Buttons */
.page-resources-cpc4-game-guide__cta-button,
.page-resources-cpc4-game-guide__btn-primary,
.page-resources-cpc4-game-guide__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register); /* Use register color for primary CTAs */
    color: var(--font-register-login); /* Use font color for register/login */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-cpc4-game-guide__cta-button:hover,
.page-resources-cpc4-game-guide__btn-primary:hover {
    background: #e02020; /* Slightly darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-cpc4-game-guide__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.page-resources-cpc4-game-guide__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-cpc4-game-guide__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Image specific styles */
.page-resources-cpc4-game-guide__image-wrapper {
    text-align: center;
    margin: 30px auto;
    max-width: 800px; /* Limit width for content images */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-cpc4-game-guide__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    /* No filter to change image color */
}

/* List styles */
.page-resources-cpc4-game-guide__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 17px;
}

.page-resources-cpc4-game-guide__list-item {
    margin-bottom: 10px;
    line-height: 1.7;
}

.page-resources-cpc4-game-guide__list-item strong {
    color: inherit; /* Ensure strong text color matches parent */
}

/* Links within content */
.page-resources-cpc4-game-guide a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources-cpc4-game-guide__dark-bg a {
    color: var(--font-register-login); /* Yellow for links on dark background */
}

.page-resources-cpc4-game-guide a:hover {
    color: #00a859; /* Lighter green on hover */
}

.page-resources-cpc4-game-guide__dark-bg a:hover {
    color: #ffd700; /* Gold for links on dark background hover */
}

/* FAQ Section */
.page-resources-cpc4-game-guide__faq-section {
    background-color: var(--background-light); /* Light background for FAQ */
    padding: 60px 0;
}

.page-resources-cpc4-game-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-resources-cpc4-game-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-cpc4-game-guide__faq-question:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.page-resources-cpc4-game-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-dark);
}

.page-resources-cpc4-game-guide__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources-cpc4-game-guide__faq-item.active .page-resources-cpc4-game-guide__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
    color: var(--button-register); /* Red for active toggle */
}