:root {
    --winph-primary: #F2C14E;
    --winph-secondary: #FFD36B;
    --winph-card-bg: #111111;
    --winph-background: #0A0A0A;
    --winph-text-main: #FFF6D6;
    --winph-border: #3A2A12;
    --winph-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--winph-text-main); /* Default text color for dark background */
    background-color: var(--winph-background); /* Body background is handled by shared, this is for consistency */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area without distortion */
}

.page-about__hero-content {
    position: relative; /* Stacks below image, no overlay */
    max-width: 900px;
    margin-top: 40px; /* Space from image */
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Clamp for H1 font size */
    color: var(--winph-secondary);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-about__subtitle {
    font-size: 1.2rem;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__cta-buttons--centered {
    margin-top: 40px;
}

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--winph-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-about__btn-secondary:hover {
    background: var(--winph-secondary);
    color: var(--winph-card-bg); /* Dark text on secondary hover */
    transform: translateY(-3px);
}

.page-about__btn-text {
    color: var(--winph-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.page-about__btn-text:hover {
    color: var(--winph-primary);
    text-decoration: underline;
}

/* Sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.5rem;
    color: var(--winph-secondary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--winph-primary);
    border-radius: 2px;
}

.page-about__intro-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    color: rgba(255, 246, 214, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__story-section,
.page-about__games-overview-section,
.page-about__customer-support-section,
.page-about__faq-section {
    background-color: var(--winph-card-bg); /* Darker background for these sections */
}

.page-about__dark-section {
    background-color: var(--winph-card-bg);
    color: var(--winph-text-main);
}

.page-about__story-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: justify;
}

.page-about__story-content p {
    color: rgba(255, 246, 214, 0.8);
    max-width: 800px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 30px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-about__image--centered {
    margin-left: auto;
    margin-right: auto;
}


/* Why Choose Section */
.page-about__why-choose-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-about__feature-card {
    background: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--winph-primary);
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: rgba(255, 246, 214, 0.7);
}

/* Games Overview Section */
.page-about__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-about__category-card {
    background: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--winph-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(242, 193, 78, 0.2);
}

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

.page-about__category-card p {
    font-size: 0.95rem;
    color: rgba(255, 246, 214, 0.7);
}

/* Commitment Section */
.page-about__commitment-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-about__commitment-card {
    background: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 10px;
    padding: 30px;
    text-align: justify;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__commitment-card p {
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 15px;
}

/* Customer Support Section */
.page-about__customer-support-section {
    padding-bottom: 60px;
}

.page-about__support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.page-about__support-card {
    background: var(--winph-card-bg);
    border: 1px solid var(--winph-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__support-card p {
    color: rgba(255, 246, 214, 0.7);
}

/* Join Community Section */
.page-about__join-community-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--winph-background);
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(242, 193, 78, 0.05); /* Slightly lighter background for question */
    transition: background 0.3s ease;
}

.page-about__faq-question:hover {
    background: rgba(242, 193, 78, 0.1);
}

.page-about__faq-title {
    font-size: 1.2rem;
    color: var(--winph-primary);
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--winph-secondary);
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
    color: var(--winph-primary);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding is zero */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px; /* Final padding when active */
}

.page-about__faq-answer p {
    color: rgba(255, 246, 214, 0.7);
    margin: 0;
    padding-bottom: 10px;
}

/* General paragraph text for main content areas */
.page-about p {
    color: var(--winph-text-main); /* Ensure contrast on default background */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-about__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        margin-top: 30px;
        padding: 0 15px;
    }

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

    .page-about__subtitle {
        font-size: 1rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-about__container {
        padding: 30px 15px;
    }

    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-about__intro-text {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .page-about__story-content {
        gap: 20px;
    }

    .page-about__features-grid,
    .page-about__game-categories,
    .page-about__commitment-grid,
    .page-about__support-options {
        grid-template-columns: 1fr;
    }

    .page-about__feature-card,
    .page-about__category-card,
    .page-about__commitment-card,
    .page-about__support-card {
        padding: 20px;
    }

    .page-about__card-title,
    .page-about__category-title {
        font-size: 1.3rem;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: cover;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ specific mobile adjustments */
    .page-about__faq-question {
        padding: 15px 20px;
    }

    .page-about__faq-title {
        font-size: 1.1rem;
    }

    .page-about__faq-toggle {
        font-size: 1.5rem;
    }

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

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