:root {
    --page-winph-51-primary-color: #FFD700; /* Gold */
    --page-winph-51-secondary-color: #DC143C; /* Crimson Red */
    --page-winph-51-background-dark: #1A1A1A; /* Dark Grey */
    --page-winph-51-background-light: #2C2C2C; /* Slightly lighter dark grey */
    --page-winph-51-text-color: #FFFFFF;
    --page-winph-51-accent-color: #00BFFF; /* Deep Sky Blue */
    --page-winph-51-button-hover: #E0B500;
}

.page-winph-51 {
    font-family: 'Arial', sans-serif;
    color: var(--page-winph-51-text-color);
    background-color: var(--page-winph-51-background-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from fixed elements */
}

/* General Section Styling */
.page-winph-51__hero-section,
.page-winph-51__game-categories,
.page-winph-51__promotions-section,
.page-winph-51__mobile-app-section,
.page-winph-51__why-choose-us,
.page-winph-51__cta-section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
}

/* Specific styling for hero section to accommodate header offset */
.page-winph-51__hero-section {
    padding-top: 10px; /* Small decorative top padding, assuming body has --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--page-winph-51-background-dark) 0%, var(--page-winph-51-background-light) 100%);
    position: relative;
    overflow: hidden;
}

.page-winph-51__hero-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 30px;
    box-sizing: border-box;
}

.page-winph-51__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.page-winph-51__hero-image:hover {
    transform: scale(1.02);
}

.page-winph-51__hero-content {
    z-index: 1;
    position: relative;
}

.page-winph-51__hero-title {
    font-size: 2.8em;
    color: var(--page-winph-51-primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    line-height: 1.2;
}

.page-winph-51__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #E0E0E0;
}

.page-winph-51__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-winph-51__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    min-width: 180px;
}

.page-winph-51__btn--primary {
    background-color: var(--page-winph-51-primary-color);
    color: var(--page-winph-51-background-dark);
    border: 2px solid var(--page-winph-51-primary-color);
}

.page-winph-51__btn--primary:hover {
    background-color: var(--page-winph-51-button-hover);
    border-color: var(--page-winph-51-button-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.4);
}

.page-winph-51__btn--secondary {
    background-color: transparent;
    color: var(--page-winph-51-primary-color);
    border: 2px solid var(--page-winph-51-primary-color);
}

.page-winph-51__btn--secondary:hover {
    background-color: var(--page-winph-51-primary-color);
    color: var(--page-winph-51-background-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.4);
}

.page-winph-51__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: unset;
}

.page-winph-51__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Section Titles and Descriptions */
.page-winph-51__section-title {
    font-size: 2.2em;
    color: var(--page-winph-51-primary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 30px;
}

.page-winph-51__section-description {
    font-size: 1em;
    color: #CCCCCC;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Game Categories */
.page-winph-51__game-categories {
    background-color: var(--page-winph-51-background-light);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-winph-51__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-winph-51__category-item {
    background-color: var(--page-winph-51-background-dark);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-winph-51__category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-winph-51__category-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    box-sizing: border-box;
    object-fit: cover;
    width: 300px; /* Fixed width for consistency */
    height: 225px; /* Fixed height for consistency (4:3 aspect) */
}

.page-winph-51__category-title {
    font-size: 1.5em;
    color: var(--page-winph-51-primary-color);
    margin-bottom: 10px;
}

.page-winph-51__category-text {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Promotions Section */
.page-winph-51__promotions-section {
    background-color: var(--page-winph-51-background-dark);
}

.page-winph-51__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-winph-51__promo-card {
    background-color: var(--page-winph-51-background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-winph-51__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-winph-51__promo-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    box-sizing: border-box;
}

.page-winph-51__promo-title {
    font-size: 1.6em;
    color: var(--page-winph-51-primary-color);
    margin: 20px 15px 10px 15px;
}

.page-winph-51__promo-text {
    font-size: 0.95em;
    color: #B0B0B0;
    margin: 0 15px 25px 15px;
    flex-grow: 1;
}

.page-winph-51__promo-card .page-winph-51__btn {
    margin: 0 20px 20px 20px;
    align-self: center;
}

/* Mobile App Section */
.page-winph-51__mobile-app-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: var(--page-winph-51-background-light);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-winph-51__app-content {
    flex: 1;
    text-align: left;
}

.page-winph-51__app-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    box-sizing: border-box;
}

.page-winph-51__app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: block;
    box-sizing: border-box;
}

/* Why Choose Us Section */
.page-winph-51__why-choose-us {
    background-color: var(--page-winph-51-background-dark);
}

.page-winph-51__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-winph-51__benefit-item {
    background-color: var(--page-winph-51-background-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive list items */
}

.page-winph-51__benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-winph-51__benefit-icon {
    width: 100px; /* Min 200x200, but scaled for display */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--page-winph-51-primary-color));
    box-sizing: border-box;
}

.page-winph-51__benefit-title {
    font-size: 1.4em;
    color: var(--page-winph-51-primary-color);
    margin-bottom: 10px;
}

.page-winph-51__benefit-text {
    font-size: 0.95em;
    color: #B0B0B0;
}

/* Call to Action Section */
.page-winph-51__cta-section {
    background-color: var(--page-winph-51-primary-color);
    color: var(--page-winph-51-background-dark);
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-winph-51__cta-content {
    max-width: 800px;
}

.page-winph-51__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-winph-51-background-dark);
}

.page-winph-51__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(26, 26, 26, 0.9);
}

/* Floating Buttons */
.page-winph-51__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.page-winph-51__float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 50px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    color: var(--page-winph-51-background-dark);
    background-color: var(--page-winph-51-primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-winph-51__float-btn--login {
    background-color: var(--page-winph-51-accent-color);
    color: var(--page-winph-51-text-color);
}

.page-winph-51__float-btn:hover {
    transform: scale(1.05);
    background-color: var(--page-winph-51-button-hover);
}

.page-winph-51__float-btn--login:hover {
    background-color: #008CBA; /* Darker blue on hover */
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-winph-51__hero-title {
        font-size: 2.2em;
    }
    .page-winph-51__section-title {
        font-size: 1.8em;
    }
    .page-winph-51__cta-title {
        font-size: 2em;
    }
    .page-winph-51__mobile-app-section {
        flex-direction: column;
        text-align: center;
    }
    .page-winph-51__app-content {
        text-align: center;
    }
    .page-winph-51__app-image-container {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    /* General adjustments */
    .page-winph-51__hero-section,
    .page-winph-51__game-categories,
    .page-winph-51__promotions-section,
    .page-winph-51__mobile-app-section,
    .page-winph-51__why-choose-us,
    .page-winph-51__cta-section {
        padding: 40px 15px;
    }

    .page-winph-51__hero-title {
        font-size: 1.8em;
    }
    .page-winph-51__hero-description {
        font-size: 1em;
    }
    .page-winph-51__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-winph-51__btn {
        width: 100%;
        max-width: 280px; /* Limit max width for smaller screens */
        margin: 0 auto;
    }
    .page-winph-51__btn--large {
        font-size: 1.1em;
        padding: 15px 25px;
    }

    .page-winph-51__section-title {
        font-size: 1.6em;
    }
    .page-winph-51__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* List items responsive */
    .page-winph-51__category-item,
    .page-winph-51__promo-card,
    .page-winph-51__benefit-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px !important; /* Adjust padding for mobile */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .page-winph-51__category-grid,
    .page-winph-51__promo-grid,
    .page-winph-51__benefits-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px; /* Reduce gap */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .page-winph-51__category-image,
    .page-winph-51__promo-image {
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        max-height: 200px; /* Limit max height for mobile images */
        object-fit: cover;
    }
    
    .page-winph-51__app-image-container {
        max-width: 90%;
    }

    .page-winph-51__cta-section {
        padding: 50px 15px;
    }
    .page-winph-51__cta-title {
        font-size: 1.8em;
    }
    .page-winph-51__cta-description {
        font-size: 1em;
    }

    .page-winph-51__floating-buttons {
        flex-direction: row;
        width: calc(100% - 40px); /* 100% width minus right/left padding */
        left: 20px;
        right: 20px;
        bottom: 15px;
        justify-content: space-around;
        gap: 10px;
    }
    .page-winph-51__float-btn {
        flex: 1;
        width: auto;
        max-width: 150px; /* Limit individual button width */
        height: 45px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-winph-51__hero-title {
        font-size: 1.5em;
    }
    .page-winph-51__section-title {
        font-size: 1.4em;
    }
    .page-winph-51__cta-title {
        font-size: 1.6em;
    }
    .page-winph-51__hero-description,
    .page-winph-51__section-description,
    .page-winph-51__category-text,
    .page-winph-51__promo-text,
    .page-winph-51__benefit-text,
    .page-winph-51__cta-description {
        font-size: 0.9em;
    }
}