/* style/about.css */

:root {
    --ph365-primary: #F2C14E;
    --ph365-secondary: #FFD36B;
    --ph365-card-bg: #111111;
    --ph365-bg: #0A0A0A;
    --ph365-text-main: #FFF6D6;
    --ph365-border: #3A2A12;
    --ph365-glow: #FFD36B;
    --ph365-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 120px; /* Default for desktop, adjusted by shared.css media queries */
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--ph365-text-main); /* Default text color for dark background */
    background-color: var(--ph365-bg); /* Assume dark body background from shared */
    line-height: 1.6;
}

.page-about__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center; /* Ensure image looks good */
}

.page-about__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    margin-top: -100px; /* Adjust to overlap slightly with the bottom of the image for visual flow */
    background: rgba(10, 10, 10, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    color: var(--ph365-primary);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about__description {
    font-size: 1.1em;
    color: var(--ph365-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background: var(--ph365-button-gradient);
    color: #ffffff; /* White text for contrast */
    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(--ph365-primary);
    border: 2px solid var(--ph365-primary);
}

.page-about__btn-secondary:hover {
    background: var(--ph365-primary);
    color: var(--ph365-card-bg);
    transform: translateY(-3px);
}

.page-about__section {
    padding: 60px 0;
    background-color: var(--ph365-bg);
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--ph365-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-about__subtitle {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--ph365-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    color: var(--ph365-text-main);
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__story-section .page-about__story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__story-content p {
    color: var(--ph365-text-main);
    margin-bottom: 15px;
}

.page-about__story-image-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__story-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

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

.page-about__value-title {
    font-size: 1.5em;
    color: var(--ph365-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-card p {
    color: var(--ph365-text-main);
}

.page-about__why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__why-choose-image-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__why-choose-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-about__why-choose-content p {
    color: var(--ph365-text-main);
    margin-bottom: 20px;
}

.page-about__partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.page-about__partner-logo-wrapper {
    padding: 15px 20px;
    background-color: var(--ph365-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ph365-border);
    transition: transform 0.2s ease;
}

.page-about__partner-logo-wrapper:hover {
    transform: translateY(-3px);
}

.page-about__partner-logo {
    width: 167px; /* Fixed width as per requirement */
    height: 127px; /* Fixed height as per requirement */
    object-fit: contain;
    filter: brightness(1.2); /* Slightly brighten logos for visibility on dark background */
    /* Ensure filter property is not used to change image color, only for visibility */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--ph365-card-bg);
    border: 1px solid var(--ph365-border);
    border-radius: 8px;
    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-color: rgba(242, 193, 78, 0.05); /* Slightly lighter background for question */
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    font-size: 1.2em;
    color: var(--ph365-primary);
    margin: 0;
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: var(--ph365-secondary);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(0deg); /* No rotation for minus sign */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -50px;
    }

    .page-about__story-section .page-about__story-grid,
    .page-about__why-choose-grid {
        grid-template-columns: 1fr;
    }

    .page-about__story-image-wrapper,
    .page-about__why-choose-image-wrapper {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
    }

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

    .page-about__main-title {
        font-size: 1.8em; /* Adjusted for mobile */
    }

    .page-about__description {
        font-size: 1em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-about__subtitle {
        font-size: 1.2em;
    }

    .page-about__section {
        padding: 40px 0;
    }

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

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__value-card {
        padding: 25px;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__values-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__partners-section,
    .page-about__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-about__partner-logo {
        width: 100px; /* Adjust partner logos for very small screens if needed */
        height: auto;
    }

    .page-about__partner-logo-wrapper {
        padding: 10px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
    }

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

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

/* Ensure images don't use CSS filters to change color */
.page-about img {
    filter: none; /* Explicitly reset any potential filter */
}

/* Special handling for partner logos to ensure visibility without changing color */
.page-about__partner-logo {
    filter: brightness(1.2); /* This only brightens, does not change hue/saturation/sepia etc. */
}