/* style/guides-common-game-rules.css */

/* General styling for the page content, ensuring contrast and responsiveness */
.page-guides-common-game-rules {
    font-family: 'Arial', sans-serif;
    color: #e5dfd3; /* Light text color for dark background, ensuring WCAG AA contrast */
    background-color: #1A202C; /* Main dark background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

.page-guides-common-game-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-guides-common-game-rules__hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1A202C 0%, #3a4150 100%); /* Darker gradient */
    text-align: center;
    overflow: hidden;
}

.page-guides-common-game-rules__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15; /* Subtle background image */
    z-index: 0;
}

.page-guides-common-game-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-guides-common-game-rules__hero > .page-guides-common-game-rules__container {
    position: relative;
    z-index: 1;
}

.page-guides-common-game-rules__hero-title {
    font-size: 3.5em;
    color: #E0B400; /* Golden accent for main title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-guides-common-game-rules__hero-subtitle {
    font-size: 1.3em;
    color: #e5dfd3;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Section Styling */
.page-guides-common-game-rules__section {
    padding: 60px 0;
    text-align: center;
}

.page-guides-common-game-rules__section:nth-of-type(even) {
    background-color: #2a303d; /* Slightly lighter dark background for alternating sections */
}

.page-guides-common-game-rules__section-title {
    font-size: 2.5em;
    color: #E0B400;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-guides-common-game-rules__section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e5dfd3;
    text-align: left;
}

.page-guides-common-game-rules__section ul,
.page-guides-common-game-rules__section ol {
    list-style-position: inside;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-guides-common-game-rules__section li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #e5dfd3;
}

.page-guides-common-game-rules__section strong {
    color: #E0B400; /* Emphasize keywords with accent color */
}

/* Buttons */
.page-guides-common-game-rules__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.page-guides-common-game-rules__btn--primary {
    background-color: #E0B400;
    color: #1A202C; /* Dark text on golden button for contrast */
    border: 2px solid #E0B400;
}

.page-guides-common-game-rules__btn--primary:hover {
    background-color: #f0c51e;
    transform: translateY(-3px);
}

.page-guides-common-game-rules__btn--secondary {
    background-color: transparent;
    color: #E0B400;
    border: 2px solid #E0B400;
    margin-left: 15px;
}

.page-guides-common-game-rules__btn--secondary:hover {
    background-color: #E0B400;
    color: #1A202C;
    transform: translateY(-3px);
}

.page-guides-common-game-rules__btn--download {
    background-color: #E0B400;
    color: #1A202C;
    border: 2px solid #E0B400;
}

.page-guides-common-game-rules__btn--download:hover {
    background-color: #f0c51e;
    transform: translateY(-3px);
}

.page-guides-common-game-rules__btn--tertiary {
    background-color: #3a4150; /* A darker shade for login */
    color: #E0B400;
    border: 2px solid #3a4150;
    margin-left: 15px;
}

.page-guides-common-game-rules__btn--tertiary:hover {
    background-color: #E0B400;
    color: #1A202C;
    transform: translateY(-3px);
}

/* Game Categories Grid */
.page-guides-common-game-rules__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-guides-common-game-rules__game-card {
    background-color: #2a303d;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-guides-common-game-rules__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-guides-common-game-rules__game-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-guides-common-game-rules__game-card-title {
    font-size: 1.8em;
    color: #E0B400;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-guides-common-game-rules__game-card p {
    font-size: 1em;
    color: #e5dfd3;
    margin-bottom: 10px;
}

.page-guides-common-game-rules__game-subtitle {
    font-size: 1.3em;
    color: #f0c51e; /* Slightly brighter golden for sub-subtitles */
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-guides-common-game-rules__game-details ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.page-guides-common-game-rules__game-details ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.page-guides-common-game-rules__game-details li {
    margin-bottom: 5px;
    color: #e5dfd3;
}

/* CTA Download Section */
.page-guides-common-game-rules__cta-download {
    background: linear-gradient(90deg, #1A202C, #3a4150); /* Dark gradient for CTA */
    padding: 80px 0;
}

.page-guides-common-game-rules__cta-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-guides-common-game-rules__cta-text {
    flex: 1;
}

.page-guides-common-game-rules__cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-guides-common-game-rules__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-guides-common-game-rules__cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* FAQ Section */
.page-guides-common-game-rules__faq-item {
    background-color: #2a303d;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-guides-common-game-rules__faq-question {
    font-size: 1.4em;
    color: #E0B400;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-guides-common-game-rules__faq-answer {
    font-size: 1.1em;
    color: #e5dfd3;
}

/* Commitment Section */
.page-guides-common-game-rules__commitment p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-guides-common-game-rules__hero-title {
        font-size: 3em;
    }

    .page-guides-common-game-rules__section-title {
        font-size: 2em;
    }

    .page-guides-common-game-rules__cta-content {
        flex-direction: column;
        text-align: center;
    }

    .page-guides-common-game-rules__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-guides-common-game-rules__hero {
        padding: 80px 0 60px;
    }
    .page-guides-common-game-rules__hero-title {
        font-size: 2.5em;
    }
    .page-guides-common-game-rules__hero-subtitle {
        font-size: 1.1em;
    }
    .page-guides-common-game-rules__section {
        padding: 40px 0;
    }
    .page-guides-common-game-rules__section-title {
        font-size: 1.8em;
    }
    .page-guides-common-game-rules__game-grid {
        grid-template-columns: 1fr;
    }
    .page-guides-common-game-rules__cta-content {
        gap: 30px;
    }
    .page-guides-common-game-rules__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-guides-common-game-rules__btn--secondary,
    .page-guides-common-game-rules__btn--tertiary {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .page-guides-common-game-rules__hero-title {
        font-size: 2em;
    }
    .page-guides-common-game-rules__hero-subtitle {
        font-size: 1em;
    }
    .page-guides-common-game-rules__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-guides-common-game-rules__section-title {
        font-size: 1.5em;
    }
    .page-guides-common-game-rules__game-card-title {
        font-size: 1.5em;
    }
    .page-guides-common-game-rules__game-subtitle {
        font-size: 1.1em;
    }
    .page-guides-common-game-rules__faq-question {
        font-size: 1.2em;
    }
}