/* style/about.css */

/* --- General Styles for page-about scope --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body background is light/white */
}

.page-about__section {
    padding: 60px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-about__section strong {
    color: #26A9E0;
}

.page-about__image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text in DOM order */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f0f8ff; /* Light background for hero */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px;
}

.page-about__hero-image {
    width: 100%; /* Ensure image fills its wrapper */
    height: auto; /* Maintain aspect ratio */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-about__hero-title {
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Example clamp for H1 */
}

.page-about__hero-description {
    font-size: 1.25em;
    color: #555555;
    margin-bottom: 30px;
}

/* --- CTA Buttons --- */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

.page-about__btn-text {
    background: none;
    border: none;
    color: #26A9E0;
    padding: 5px 0;
    font-size: 1em;
    text-decoration: underline;
    display: inline-block; /* Adjust for text-like links */
}

.page-about__btn-text:hover {
    color: #1e87c0;
}


/* --- Value List Section --- */
.page-about__value-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
}

.page-about__value-heading {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* --- Game Categories Section --- */
.page-about__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__game-category-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__game-category-item:hover {
    transform: translateY(-5px);
}

.page-about__game-category-heading {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__responsible-gaming-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-about__responsible-gaming-item:hover {
    transform: translateY(-5px);
}

.page-about__responsible-gaming-heading {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__responsible-gaming p {
    font-size: 1em;
    color: #555555;
}

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

.page-about__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item[open] {
    background-color: #ffffff;
    border-color: #26A9E0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f8ff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: #26A9E0;
    color: #ffffff;
    border-bottom-color: #26A9E0;
}

.page-about__faq-item[open] .page-about__faq-qtext {
    color: #ffffff;
}

.page-about__faq-question:hover {
    background-color: #e6f2ff;
}

.page-about__faq-item[open] .page-about__faq-question:hover {
    background-color: #1e87c0;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    line-height: 1;
    color: #26A9E0;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    color: #ffffff;
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-about__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: #1e87c0;
}

/* Hide default details marker */
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-about__faq-item summary {
    list-style: none;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem); /* Example clamp for H1 */
    }
    .page-about__hero-description {
        font-size: 1.15em;
    }
}

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

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

    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-about__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for mobile */
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-about__image,
    .page-about__hero-image {
        margin-left: auto;
        margin-right: auto;
    }

    /* All containers with images/content */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-image-wrapper,
    .page-about__hero-content,
    .page-about__value-item,
    .page-about__game-category-item,
    .page-about__responsible-gaming-item,
    .page-about__faq-item,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for mobile */
        font-size: 1em;
    }

    .page-about__value-list,
    .page-about__game-categories,
    .page-about__responsible-gaming-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-about__value-item,
    .page-about__game-category-item,
    .page-about__responsible-gaming-item {
        padding: 20px;
    }

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

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

/* Ensure no CSS filters are used on images */
.page-about img {
    filter: none !important;
}

/* Content area image CSS size lower bound */
.page-about__container img,
.page-about__hero-section img {
    min-width: 200px;
    min-height: 200px;
}