/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Use var(--header-offset) for top padding */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background-color: #26A9E0; /* Brand color for hero */
}

.page-about__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
    z-index: 1;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly set white background */
}

.page-about__story-section .page-about__section-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-about__story-section .page-about__text-block {
    color: #333333;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.page-about__image-sidebar {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color for section background */
    color: #ffffff; /* White text for brand color background */
}

.page-about__why-choose-us-section .page-about__section-title {
    color: #ffffff;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Ensure white text on dark card */
}

.page-about__feature-icon {
    width: 100%; /* Occupy card width */
    max-width: 200px; /* But not too large */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-about__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__responsible-gaming-section .page-about__text-block {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: #333333;
}

.page-about__image-full-width {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
}

.page-about__faq-section .page-about__section-title {
    color: #ffffff;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.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, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-about__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
    position: relative;
    overflow: hidden;
}

.page-about__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)); /* Light overlay */
    z-index: 1;
}

.page-about__cta-section .page-about__container {
    position: relative;
    z-index: 2;
}

.page-about__cta-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__cta-section .page-about__text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #333333;
}

.page-about__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* --- Responsive Adjustments --- */
/* Fixed header spacing */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile */
}

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

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-about {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .page-about__hero-title {
        font-size: 2.2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .page-about__feature-title {
        font-size: 1.3em;
    }

    .page-about__image-sidebar,
    .page-about__image-full-width,
    .page-about__cta-image,
    .page-about__hero-image,
    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure all image containers are responsive */
    .page-about__story-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Override padding for hero and cta sections where image is background */
    .page-about__hero-section,
    .page-about__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__hero-section .page-about__container,
    .page-about__cta-section .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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