.page-blog-phdream-best-games {
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-family: Arial, sans-serif;
}

.page-blog-phdream-best-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-blog-phdream-best-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-blog-phdream-best-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog-phdream-best-games__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-blog-phdream-best-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFD36B;
}

.page-blog-phdream-best-games__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-blog-phdream-best-games__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-blog-phdream-best-games__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-blog-phdream-best-games__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-blog-phdream-best-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #F2C14E;
    margin-bottom: 30px;
    font-weight: 600;
}

.page-blog-phdream-best-games__section-text {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.page-blog-phdream-best-games__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-top: 20px;
}

.page-blog-phdream-best-games__game-card {
    background-color: #111111;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-blog-phdream-best-games__game-card:hover {
    transform: translateY(-5px);
    border-color: #FFD36B;
}

.page-blog-phdream-best-games__game-title {
    font-size: 1.6rem;
    color: #FFD36B;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog-phdream-best-games__game-image {
    width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure image behaves as a block element */
}

.page-blog-phdream-best-games__game-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-blog-phdream-best-games__game-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 211, 107, 0.3);
}

.page-blog-phdream-best-games__game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.5);
}

.page-blog-phdream-best-games__cta-final .page-blog-phdream-best-games__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-blog-phdream-best-games__cta-final .page-blog-phdream-best-games__cta-button {
    min-width: 200px;
}

@media (max-width: 768px) {
    .page-blog-phdream-best-games__hero-section {
        padding-bottom: 30px;
    }

    .page-blog-phdream-best-games__hero-content {
        padding: 0 15px;
    }

    .page-blog-phdream-best-games__main-title {
        font-size: 2.2rem;
    }

    .page-blog-phdream-best-games__intro-text {
        font-size: 1rem;
    }

    .page-blog-phdream-best-games__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-blog-phdream-best-games__section {
        padding: 40px 15px;
    }

    .page-blog-phdream-best-games__section-title {
        font-size: 2rem;
    }

    .page-blog-phdream-best-games__section-text {
        font-size: 0.95rem;
    }

    .page-blog-phdream-best-games__game-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-blog-phdream-best-games__game-title {
        font-size: 1.4rem;
    }

    .page-blog-phdream-best-games__game-image {
        max-width: 100%;
        height: auto;
    }

    /* Enforce minimum display size for all content images on mobile */
    .page-blog-phdream-best-games img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure minimum display size */
        min-height: 200px; /* Ensure minimum display size */
    }

    .page-blog-phdream-best-games__cta-final .page-blog-phdream-best-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog-phdream-best-games__cta-final .page-blog-phdream-best-games__cta-button {
        width: 100%;
        max-width: 300px; /* Limit width for single column buttons */
    }
}