/* style/casino-popular-games.css */

/* Custom properties for colors */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-casino-popular-games {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Container for consistent content width */
.page-casino-popular-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-casino-popular-games__section-title {
    font-size: 2.5em; /* Using em for relative sizing */
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

/* Section descriptions/text blocks */
.page-casino-popular-games__section-description,
.page-casino-popular-games__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-casino-popular-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--background);
}

.page-casino-popular-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-casino-popular-games__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-casino-popular-games__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-casino-popular-games__hero-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: clamp(2em, 4vw, 3.5em); /* Example clamp for responsive H1 */
}

.page-casino-popular-games__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-popular-games__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- Buttons --- */
.page-casino-popular-games__btn-primary,
.page-casino-popular-games__btn-secondary,
.page-casino-popular-games__btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text wraps within button */
    box-sizing: border-box; /* Include padding in element's total width and height */
    min-width: 180px;
}

.page-casino-popular-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

.page-casino-popular-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-casino-popular-games__btn-secondary {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--border-color);
}

.page-casino-popular-games__btn-secondary:hover {
    background-color: var(--main-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* --- Intro Section --- */
.page-casino-popular-games__intro-section {
    padding: 60px 0;
    background-color: var(--background);
}

/* --- Game Categories Section --- */
.page-casino-popular-games__game-categories {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-casino-popular-games__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino-popular-games__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-casino-popular-games__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino-popular-games__card-title {
    font-size: 1.4em;
    color: var(--text-main);
    padding: 20px 20px 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-casino-popular-games__card-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-casino-popular-games__btn-card {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

.page-casino-popular-games__btn-card:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

/* --- Benefits Section --- */
.page-casino-popular-games__benefits-section {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-casino-popular-games__benefit-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-casino-popular-games__benefit-item:hover {
    transform: translateY(-5px);
}

.page-casino-popular-games__benefit-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino-popular-games__benefit-description {
    font-size: 1em;
    color: var(--text-secondary);
}

/* --- Guide Section --- */
.page-casino-popular-games__guide-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-casino-popular-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino-popular-games__guide-list li {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    counter-increment: step-counter;
    position: relative;
}

.page-casino-popular-games__guide-list li::before {
    content: "Bước " counter(step-counter);
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.page-casino-popular-games__guide-step-title {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
    margin-top: 15px; /* Adjust for ::before pseudo-element */
}

.page-casino-popular-games__guide-step-description {
    font-size: 1em;
    color: var(--text-secondary);
}

.page-casino-popular-games__guide-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Responsible Gaming Section --- */
.page-casino-popular-games__responsible-gaming {
    padding: 60px 0;
    background-color: var(--background);
    text-align: center;
}

/* --- FAQ Section --- */
.page-casino-popular-games__faq-section {
    padding: 60px 0;
    background-color: var(--background);
}

.page-casino-popular-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-popular-games__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino-popular-games__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    border-bottom: 1px solid var(--divider-color);
}

.page-casino-popular-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-casino-popular-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow-color);
}

.page-casino-popular-games__faq-item[open] .page-casino-popular-games__faq-toggle {
    content: "−";
}

.page-casino-popular-games__faq-answer {
    padding: 15px 20px 20px;
    color: var(--text-secondary);
    font-size: 1em;
}

.page-casino-popular-games__faq-answer p {
    margin-bottom: 0;
}

/* --- Final CTA Section --- */
.page-casino-popular-games__final-cta {
    padding: 60px 0;
    background-color: var(--background);
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-casino-popular-games__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-casino-popular-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino-popular-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino-popular-games__container {
        padding: 0 15px;
    }

    .page-casino-popular-games__hero-section {
        padding: 10px 15px 40px;
    }

    .page-casino-popular-games__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-casino-popular-games__hero-description {
        font-size: 1em;
    }

    .page-casino-popular-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
    }
}