/* style/index-about-winph.css */

/* Variables based on provided color scheme */
:root {
    --winph-primary: #F2C14E;
    --winph-secondary: #FFD36B;
    --winph-bg-dark: #0A0A0A;
    --winph-card-bg: #111111;
    --winph-text-main: #FFF6D6;
    --winph-border: #3A2A12;
    --winph-glow: #FFD36B;
    --winph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-index-about-winph {
    background-color: var(--winph-bg-dark); /* Page specific background */
    color: var(--winph-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-index-about-winph__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-index-about-winph__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-index-about-winph__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-index-about-winph__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-index-about-winph__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--winph-text-main);
}

.page-index-about-winph__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    font-weight: 700;
    color: var(--winph-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index-about-winph__intro-text {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: var(--winph-text-main);
}

/* CTA Buttons */
.page-index-about-winph__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-index-about-winph__cta-buttons--center {
    margin-top: 30px;
}

.page-index-about-winph__btn-primary,
.page-index-about-winph__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-index-about-winph__btn-primary {
    background: var(--winph-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.3);
}

.page-index-about-winph__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-index-about-winph__btn-secondary {
    background-color: transparent;
    color: var(--winph-secondary);
    border: 2px solid var(--winph-secondary);
}

.page-index-about-winph__btn-secondary:hover {
    background-color: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-index-about-winph__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--winph-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-index-about-winph__section-description {
    font-size: 1.1rem;
    color: var(--winph-text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-index-about-winph__about-section,
.page-index-about-winph__games-section,
.page-index-about-winph__promo-section,
.page-index-about-winph__security-section,
.page-index-about-winph__access-section,
.page-index-about-winph__support-section,
.page-index-about-winph__faq-section,
.page-index-about-winph__cta-bottom-section {
    padding: 60px 0;
}

/* Grid Layouts */
.page-index-about-winph__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-about-winph__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Styling */
.page-index-about-winph__card {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: var(--winph-text-main);
    text-align: left;
}

.page-index-about-winph__card-title {
    font-size: 1.5rem;
    color: var(--winph-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-about-winph__card p {
    font-size: 1rem;
    color: var(--winph-text-main);
}

/* Game Cards */
.page-index-about-winph__game-card {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-index-about-winph__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-index-about-winph__game-card-title {
    font-size: 1.4rem;
    color: var(--winph-secondary);
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: 600;
}

.page-index-about-winph__game-card p {
    font-size: 0.95rem;
    color: var(--winph-text-main);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-about-winph__game-card .page-index-about-winph__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

/* Security Cards */
.page-index-about-winph__security-card {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: var(--winph-text-main);
    text-align: center;
}

.page-index-about-winph__security-card-image {
    width: 100%;
    max-width: 250px; /* Smaller image in card */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* VIP Section */
.page-index-about-winph__vip-section {
    background: var(--winph-button-gradient); /* Use gradient as background for emphasis */
    color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 211, 107, 0.4);
}

.page-index-about-winph__vip-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-index-about-winph__vip-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ffffff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-about-winph__vip-section .page-index-about-winph__btn-primary {
    background: #ffffff;
    color: var(--winph-primary);
    border: 2px solid #ffffff;
    box-shadow: none;
}

.page-index-about-winph__vip-section .page-index-about-winph__btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* CTA Bottom Section */
.page-index-about-winph__cta-bottom-section .page-index-about-winph__dark-section {
    background-color: var(--winph-card-bg);
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Section */
.page-index-about-winph__faq-list {
    margin-top: 40px;
}

.page-index-about-winph__faq-item {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-about-winph__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: var(--winph-secondary);
    font-weight: 600;
    font-size: 1.15rem;
    transition: background-color 0.3s ease;
}

.page-index-about-winph__faq-question:hover {
    background-color: rgba(255, 211, 107, 0.05);
}

.page-index-about-winph__faq-title {
    margin: 0;
    color: var(--winph-secondary); /* Ensure title color is consistent */
    font-size: 1.15rem; /* Match question font size */
    font-weight: 600;
}

.page-index-about-winph__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--winph-primary);
}

.page-index-about-winph__faq-item.active .page-index-about-winph__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or rotate to minus symbol) */
}

.page-index-about-winph__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--winph-text-main);
    font-size: 1rem;
}

.page-index-about-winph__faq-item.active .page-index-about-winph__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

.page-index-about-winph__faq-answer p {
    margin-bottom: 0;
    color: var(--winph-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-about-winph__hero-content {
        padding: 0 40px;
    }
    .page-index-about-winph__container {
        padding: 0 40px;
    }
    .page-index-about-winph__section-description {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-index-about-winph__container {
        padding: 0 15px;
    }

    /* Section paddings */
    .page-index-about-winph__about-section,
    .page-index-about-winph__games-section,
    .page-index-about-winph__promo-section,
    .page-index-about-winph__security-section,
    .page-index-about-winph__access-section,
    .page-index-about-winph__support-section,
    .page-index-about-winph__faq-section,
    .page-index-about-winph__cta-bottom-section {
        padding: 40px 0;
    }

    /* Hero Section */
    .page-index-about-winph__hero-section {
        padding-bottom: 40px;
    }
    .page-index-about-winph__main-title {
        font-size: 2.2rem;
    }
    .page-index-about-winph__intro-text {
        font-size: 1rem;
    }

    /* CTA Buttons */
    .page-index-about-winph__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Adjust max-width for column layout */
        padding: 0 15px; /* Add padding to container */
        margin: 0 auto;
    }
    .page-index-about-winph__btn-primary,
    .page-index-about-winph__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Section titles and descriptions */
    .page-index-about-winph__section-title {
        font-size: 2rem;
        padding: 0 15px;
    }
    .page-index-about-winph__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Grid */
    .page-index-about-winph__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index-about-winph__grid--3-cols {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .page-index-about-winph__card,
    .page-index-about-winph__game-card,
    .page-index-about-winph__security-card {
        padding: 25px;
    }
    .page-index-about-winph__card-title,
    .page-index-about-winph__game-card-title {
        font-size: 1.3rem;
    }
    .page-index-about-winph__game-card-image {
        height: 200px;
    }

    /* VIP Section */
    .page-index-about-winph__vip-section {
        padding: 30px;
    }
    .page-index-about-winph__vip-title {
        font-size: 1.6rem;
    }
    .page-index-about-winph__vip-section p {
        font-size: 1rem;
    }

    /* FAQ */
    .page-index-about-winph__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-index-about-winph__faq-title {
        font-size: 1rem;
    }
    .page-index-about-winph__faq-toggle {
        font-size: 1.5rem;
    }
    .page-index-about-winph__faq-answer {
        padding: 0 15px;
    }
    .page-index-about-winph__faq-item.active .page-index-about-winph__faq-answer {
        padding: 10px 15px;
    }

    /* Image responsiveness for all images */
    .page-index-about-winph img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images or buttons */
    .page-index-about-winph__section,
    .page-index-about-winph__card,
    .page-index-about-winph__container,
    .page-index-about-winph__hero-section,
    .page-index-about-winph__about-section,
    .page-index-about-winph__games-section,
    .page-index-about-winph__promo-section,
    .page-index-about-winph__security-section,
    .page-index-about-winph__access-section,
    .page-index-about-winph__support-section,
    .page-index-about-winph__faq-section,
    .page-index-about-winph__cta-bottom-section,
    .page-index-about-winph__hero-image-wrapper,
    .page-index-about-winph__cta-buttons,
    .page-index-about-winph__button-group,
    .page-index-about-winph__btn-container,
    .page-index-about-winph__vip-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Specific overrides for padding on sections that already have 0 padding-left/right */
    .page-index-about-winph__hero-section,
    .page-index-about-winph__about-section,
    .page-index-about-winph__games-section,
    .page-index-about-winph__promo-section,
    .page-index-about-winph__security-section,
    .page-index-about-winph__access-section,
    .page-index-about-winph__support-section,
    .page-index-about-winph__faq-section,
    .page-index-about-winph__cta-bottom-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure specific elements within sections get their padding */
    .page-index-about-winph__hero-content,
    .page-index-about-winph__vip-section,
    .page-index-about-winph__cta-buttons,
    .page-index-about-winph__section-title,
    .page-index-about-winph__section-description {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}