/* style/poker.css */
.page-poker {
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-poker__section {
    padding: 60px 0;
}

.page-poker__section--dark-bg {
    background-color: #f5f5f5;
    color: #333333;
}

.page-poker__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.page-poker__hero-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.page-poker__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-poker__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    z-index: 10;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.page-poker__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFB300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-poker__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-poker__section-title {
    font-size: 2.8em;
    color: #E44D26;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-poker__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #FFB300;
    border-radius: 2px;
}

.page-poker__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #444444;
}

.page-poker__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin: 10px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
}

.page-poker__button--primary {
    background-color: #E44D26;
    color: #ffffff;
}

.page-poker__button--primary:hover {
    background-color: #d03c1c;
    transform: translateY(-2px);
}

.page-poker__button--secondary {
    background-color: #FFB300;
    color: #333333;
}

.page-poker__button--secondary:hover {
    background-color: #e6a000;
    transform: translateY(-2px);
}

.page-poker__button--outline {
    background-color: transparent;
    color: #E44D26;
    border: 2px solid #E44D26;
}

.page-poker__button--outline:hover {
    background-color: #E44D26;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-poker__button--large {
    padding: 15px 35px;
    font-size: 1.3em;
}

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

.page-poker__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-poker__card:hover {
    transform: translateY(-5px);
}

.page-poker__card-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-poker__card-title {
    font-size: 1.8em;
    color: #E44D26;
    margin-bottom: 15px;
}

.page-poker__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-poker__card-button {
    margin-top: auto; /* Pushes button to the bottom */
}

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

.page-poker__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-poker__step-number {
    font-size: 4em;
    color: rgba(228, 77, 38, 0.1);
    position: absolute;
    top: -10px;
    left: 10px;
    font-weight: bold;
    z-index: 0;
}

.page-poker__step-title {
    font-size: 1.8em;
    color: #E44D26;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-poker__step-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.page-poker__step-button {
    position: relative;
    z-index: 1;
}

.page-poker__content-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-poker__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-poker__strategy-text,
.page-poker__mobile-text {
    flex: 1;
}

.page-poker__strategy-image,
.page-poker__mobile-image {
    flex: 1;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-poker__section--cta {
    background: linear-gradient(135deg, #E44D26, #FFB300);
    color: #ffffff;
    text-align: center;
}

.page-poker__cta-content .page-poker__section-title {
    color: #ffffff;
}

.page-poker__cta-content .page-poker__section-title::after {
    background-color: #ffffff;
}

.page-poker__cta-content .page-poker__text {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-poker__hero-title {
        font-size: 2.5em;
    }
    .page-poker__hero-description {
        font-size: 1.1em;
    }
    .page-poker__section-title {
        font-size: 2.2em;
    }
    .page-poker__content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-poker__content-flex--reverse {
        flex-direction: column;
    }
    .page-poker__strategy-image, .page-poker__mobile-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-poker {
        padding-top: var(--header-offset, 80px);
    }
    .page-poker__hero-title {
        font-size: 2em;
    }
    .page-poker__hero-description {
        font-size: 1em;
    }
    .page-poker__hero-content {
        padding: 15px;
    }
    .page-poker__section {
        padding: 40px 0;
    }
    .page-poker__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-poker__grid, .page-poker__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-poker__button {
        font-size: 1em;
        padding: 10px 20px;
        margin: 5px;
    }
    .page-poker__button--large {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .page-poker__text {
        font-size: 0.95em;
    }
    /* Ensure all images within .page-poker are responsive and do not overflow */
    .page-poker img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px; /* Enforce minimum size for content images */
        object-fit: cover;
    }
    .page-poker__card-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__strategy-image,
    .page-poker__mobile-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-poker__hero-image {
        min-width: unset;
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .page-poker__hero-title {
        font-size: 1.8em;
    }
    .page-poker__hero-description {
        font-size: 0.9em;
    }
    .page-poker__hero-button {
        display: block;
        margin: 10px auto;
    }
    .page-poker__section-title {
        font-size: 1.6em;
    }
}