:root {
    --primary-color: #017439; /* Main green */
    --secondary-color: #FFFFFF; /* White */
    --register-btn-bg: #C30808; /* Red for Register/Login buttons */
    --login-btn-bg: #C30808; /* Red for Register/Login buttons */
    --btn-text-color: #FFFF00; /* Yellow for button text */
    --body-bg: #FFFFFF; /* Default background */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources-gameplay-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--body-bg);
}

/* Hero Section */
.page-resources-gameplay-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%); /* Blend primary with dark for depth */
    color: var(--text-color-light);
    overflow: hidden;
}

.page-resources-gameplay-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-gameplay-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-gameplay-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.page-resources-gameplay-guide__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--btn-text-color); /* Yellow for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-gameplay-guide__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

.page-resources-gameplay-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-resources-gameplay-guide__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure buttons have a minimum width */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-gameplay-guide__btn-register {
    background: var(--register-btn-bg); /* Red */
    color: var(--btn-text-color); /* Yellow */
    border: 2px solid var(--btn-text-color);
}

.page-resources-gameplay-guide__btn-register:hover {
    background: #a80707; /* Darker red */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-gameplay-guide__btn-login {
    background: var(--login-btn-bg); /* Red */
    color: var(--btn-text-color); /* Yellow */
    border: 2px solid var(--btn-text-color);
}

.page-resources-gameplay-guide__btn-login:hover {
    background: #a80707; /* Darker red */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources-gameplay-guide__section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--body-bg); /* Default light background */
}

.page-resources-gameplay-guide__introduction,
.page-resources-gameplay-guide__basic-rules,
.page-resources-gameplay-guide__step-by-step,
.page-resources-gameplay-guide__strategies,
.page-resources-gameplay-guide__faq-section,
.page-resources-gameplay-guide__cta-final {
    background-color: var(--secondary-color); /* White background for these sections */
    color: var(--text-color-dark);
}

.page-resources-gameplay-guide__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-gameplay-guide__dark-section .page-resources-gameplay-guide__section-title {
    color: var(--btn-text-color); /* Yellow for titles in dark sections */
}

.page-resources-gameplay-guide__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources-gameplay-guide__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-gameplay-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--register-btn-bg); /* Red line under titles */
    border-radius: 2px;
}

.page-resources-gameplay-guide__section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources-gameplay-guide__section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-resources-gameplay-guide__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-resources-gameplay-guide__list li {
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.05em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-gameplay-guide__list li strong {
    color: var(--primary-color);
}

.page-resources-gameplay-guide__sub-list {
    list-style: disc;
    margin-left: 25px;
    margin-top: 10px;
    font-size: 0.95em;
    color: #555;
}

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

.page-resources-gameplay-guide__card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

.page-resources-gameplay-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources-gameplay-guide__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources-gameplay-guide__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 0;
    border-radius: 6px;
    object-fit: cover;
}

.page-resources-gameplay-guide__numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-resources-gameplay-guide__numbered-list li {
    background-color: #fefefe;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    counter-increment: step-counter;
    position: relative;
    padding-left: 70px;
}

.page-resources-gameplay-guide__numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--primary-color);
    color: var(--btn-text-color); /* Yellow number */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-resources-gameplay-guide__numbered-list li h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-resources-gameplay-guide__numbered-list li p {
    margin-bottom: 0;
}

.page-resources-gameplay-guide__numbered-list li a {
    color: var(--register-btn-bg);
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-gameplay-guide__numbered-list li a:hover {
    color: #a80707;
}

/* FAQ Section */
.page-resources-gameplay-guide__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-resources-gameplay-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-resources-gameplay-guide__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-gameplay-guide__faq-question:active {
    background: #eeeeee;
}

.page-resources-gameplay-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}