/* style/about.css */

/* Variables for consistent styling */
: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%);
    --header-offset: 120px; /* Default for desktop, adjusted in shared.css for mobile */
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--winph-text-main); /* Ensures good contrast against dark body background */
    background-color: var(--winph-bg-dark); /* Explicitly set for content area if needed, though body handles */
}

/* HERO Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--winph-bg-dark); /* Fallback */
}

.page-about__hero-image-wrapper {
    width: 100%;
    height: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-about__hero-content {
    position: relative; /* Stacks below image in normal flow */
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--winph-secondary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about__intro-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--winph-text-main);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: var(--winph-button-gradient);
    color: #ffffff;
    border: none;
    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);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-about__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

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

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--winph-primary);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-about__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--winph-secondary);
    margin-bottom: 25px;
}

.page-about__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--winph-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__image-and-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-about__image-and-text-block .page-about__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-about__text-content {
    flex: 1;
    min-width: 300px;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__list-item {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--winph-text-main);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-about__list-item::before {
    content: '•';
    color: var(--winph-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.8;
}

.page-about__list--two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: var(--winph-card-bg);
    padding: 60px 0;
}

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

.page-about__feature-card {
    background: var(--winph-bg-dark);
    border: 1px solid var(--winph-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.3rem;
    color: var(--winph-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-card .page-about__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--winph-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__feature-card .page-about__card-link {
    display: inline-block;
    color: var(--winph-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

.page-about__feature-card .page-about__card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--winph-secondary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-about__feature-card .page-about__card-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.page-about__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-about__image-wrapper .page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 60px 0;
}

.page-about__responsible-gaming-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-about__responsible-gaming-content .page-about__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-about__responsible-gaming-content .page-about__list {
    flex: 1;
    min-width: 300px;
}

.page-about__cta-buttons--center {
    margin-top: 40px;
    justify-content: center;
}

/* Customer Support Section */
.page-about__customer-support-section {
    background-color: var(--winph-card-bg);
    padding: 60px 0;
}

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

.page-about__channel-card {
    background: var(--winph-bg-dark);
    border: 1px solid var(--winph-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__channel-card .page-about__card-title {
    font-size: 1.3rem;
    color: var(--winph-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__channel-card .page-about__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--winph-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__channel-card .page-about__card-link {
    display: inline-block;
    color: var(--winph-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

.page-about__channel-card .page-about__card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--winph-secondary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-about__channel-card .page-about__card-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--winph-bg-dark);
}

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--winph-card-bg);
    color: var(--winph-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--winph-secondary);
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--winph-text-main);
    background-color: var(--winph-bg-dark);
}

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

.page-about__faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__image-and-text-block,
    .page-about__responsible-gaming-content {
        flex-direction: column;
    }

    .page-about__image-and-text-block .page-about__content-image,
    .page-about__text-content,
    .page-about__responsible-gaming-content .page-about__content-image,
    .page-about__responsible-gaming-content .page-about__list {
        min-width: unset;
        width: 100%;
    }

    .page-about__list--two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile specific adjustments for padding and font sizes */
    .page-about__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
        padding-bottom: 40px;
    }

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

    .page-about__intro-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .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;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
    }

    .page-about__text-block {
        font-size: 0.9rem;
    }

    .page-about__features-grid,
    .page-about__support-channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .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;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

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

/* Color Contrast Fixes (if needed, though base colors are designed for contrast) */
.page-about__dark-bg {
    color: #ffffff; /* Deep dark background, light text */
    background: #0A0A0A;
}

.page-about__light-bg {
    color: #333333; /* Light background, dark text */
    background: #ffffff;
}

.page-about__medium-bg {
    color: #000000; /* Medium background, dark text */
    background: #FFD36B;
}