.page-poker {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-main: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;

    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-main); /* Page background */
}

.page-poker__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-poker__hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: var(--header-offset, 120px) 0 60px; /* Use header offset for top padding, plus extra padding */
    display: flex;
    flex-direction: column; /* Default for mobile, will change to row for desktop */
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-poker__hero-content-wrapper {
    max-width: 800px;
    padding: 20px;
    z-index: 1;
}

.page-poker__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-poker__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #000000; /* Dark text for light background */
    margin-bottom: 20px;
    max-width: 100%;
}

.page-poker__hero-description {
    font-size: 1.1rem;
    color: #333333; /* Dark text for light background */
    margin-bottom: 30px;
    max-width: 100%;
}

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

.page-poker__btn-primary,
.page-poker__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-poker__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff; /* White text for dark gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-poker__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-poker__btn-secondary {
    background: transparent;
    color: var(--text-main); /* Main text color */
    border: 2px solid var(--border-color);
}

.page-poker__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-poker__btn-large {
    padding: 18px 40px;
    font-size: 1.25rem;
    min-width: 280px;
}

.page-poker__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-poker__section-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main);
}

/* Dark Section Styling */
.page-poker__dark-section {
    background-color: var(--background-main);
    padding: 80px 0;
}
.page-poker__dark-section .page-poker__section-title {
    color: var(--primary-color);
}
.page-poker__dark-section .page-poker__section-description {
    color: var(--text-main);
}

/* Card Styling */
.page-poker__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-poker__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-poker__card h3 {
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.page-poker__card p {
    color: var(--text-main);
    font-size: 1rem;
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* About Section */
.page-poker__about-section {
    padding: 80px 0;
}

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

.page-poker__feature-icon {
    width: 200px; /* Display width, minimum 200px */
    height: 150px; /* Display height, minimum 200px (or aspect ratio maintained) */
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
}

/* Games Section */
.page-poker__games-section {
    padding: 80px 0;
}

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

.page-poker__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, >= 200px */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-poker__game-card .page-poker__btn-primary {
    margin-top: 20px;
    width: auto;
}

/* How to Start Section */
.page-poker__how-to-start-section {
    padding: 80px 0;
}

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

.page-poker__step-card {
    padding-bottom: 20px; /* Adjust padding for button */
}

.page-poker__step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-poker__step-card .page-poker__btn-secondary {
    margin-top: 20px;
    width: auto;
}

/* Bonuses Section */
.page-poker__bonuses-section {
    padding: 80px 0;
}

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

.page-poker__bonus-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-poker__bonus-card .page-poker__btn-primary {
    margin-top: 20px;
    width: auto;
}

/* Mobile App Section */
.page-poker__mobile-app-section {
    padding: 80px 0;
}

.page-poker__mobile-app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-poker__mobile-app-text {
    text-align: center;
    max-width: 600px;
}

.page-poker__app-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

.page-poker__mobile-app-image-wrapper {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-poker__mobile-app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-poker__security-section {
    padding: 80px 0;
}

.page-poker__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-poker__security-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-poker__security-icon {
    width: 200px; /* Display width, minimum 200px */
    height: 200px; /* Display height, minimum 200px */
    margin: 0 auto 15px;
    display: block;
    object-fit: contain;
}

.page-poker__security-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.page-poker__security-text {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* FAQ Section */
.page-poker__faq-section {
    padding: 80px 0;
}

.page-poker__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

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

.page-poker__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly lighter dark background for question */
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-poker__faq-question:hover {
    background-color: #2a2a2a;
}

.page-poker__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

.page-poker__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-poker__faq-item.active .page-poker__faq-toggle {
    transform: rotate(45deg);
}

.page-poker__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-main);
}

.page-poker__faq-item.active .page-poker__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px;
}

.page-poker__faq-answer p {
    margin: 0;
    color: var(--text-main);
}

.page-poker__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* Join Us Section */
.page-poker__join-us-section {
    padding: 80px 0 100px;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-poker__hero-section {
        flex-direction: row;
        text-align: left;
        padding: var(--header-offset, 120px) 0 80px;
    }

    .page-poker__hero-content-wrapper {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 50%;
    }

    .page-poker__hero-image-wrapper {
        margin-top: 0;
        max-width: 50%;
        padding-right: 20px;
    }

    .page-poker__cta-buttons {
        justify-content: flex-start;
    }

    .page-poker__mobile-app-content {
        flex-direction: row;
        text-align: left;
    }

    .page-poker__mobile-app-text {
        text-align: left;
        max-width: 50%;
    }

    .page-poker__app-buttons {
        justify-content: flex-start;
    }

    .page-poker__mobile-app-image-wrapper {
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .page-poker__container {
        padding: 0 15px;
    }

    .page-poker__hero-section {
        padding-top: var(--header-offset, 100px) !important;
        padding-bottom: 40px;
    }

    .page-poker__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-poker__hero-description {
        font-size: 1rem;
    }

    .page-poker__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-poker__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-poker__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-poker__btn-primary,
    .page-poker__btn-secondary,
    .page-poker a[class*="button"],
    .page-poker a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-poker__app-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-poker img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-poker__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-poker__section,
    .page-poker__card,
    .page-poker__container,
    .page-poker__hero-image-wrapper,
    .page-poker__mobile-app-image-wrapper,
    .page-poker__cta-buttons,
    .page-poker__app-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-poker__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-poker__faq-answer {
        padding: 0 20px;
    }

    .page-poker__faq-item.active .page-poker__faq-answer {
        padding: 10px 20px 20px;
    }
}