/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0A192F; /* Inherited from body or set explicitly */
}

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

.page-about__section {
    padding: 80px 0;
    text-align: center;
}

.page-about__dark-section {
    background-color: #0A192F;
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-about__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for titles */
    font-weight: bold;
}

.page-about__section-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsiveness */
    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: #FFD700;
    color: #0A192F;
    border: 2px solid #FFD700;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
}

.page-about__link-text {
    color: #FFD700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__link-text:hover {
    color: #e0b800;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjust padding-top for header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

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

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.8); /* Slight darkening for text contrast, not color change */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

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

.page-about__hero-description {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

/* Our Story Section */
.page-about__our-story .page-about__container {
    text-align: left;
}

.page-about__story-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-about__story-text {
    flex: 2;
    min-width: 300px;
}

.page-about__story-text p {
    margin-bottom: 15px;
    color: #333333;
    font-size: 1.1em;
}

.page-about__story-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* Constrain image width */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image if it doesn't take full flex space */
}

/* Why Choose Section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 50%; /* Example: round icons */
    border: 3px solid #FFD700;
}

.page-about__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__feature-text {
    font-size: 1em;
}

/* Responsible Gaming Section */
.page-about__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__responsible-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-about__responsible-text {
    flex: 2;
    min-width: 300px;
}

.page-about__responsible-text p {
    margin-bottom: 15px;
    color: #333333;
    font-size: 1.1em;
}

/* Vision & Mission Section */
.page-about__vision-mission-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__mission-text {
    flex: 2;
    min-width: 300px;
}

.page-about__mission-subtitle {
    font-size: 2em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__mission-text p {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.1em;
}

.page-about__vision-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

/* FAQ Section */
.page-about__faq-section .page-about__container {
    text-align: left;
}

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

.page-about__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #FFD700; /* Auxiliary color for questions */
    color: #0A192F; /* Dark text for auxiliary background */
    transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f9fa; /* Lighter background for answer */
    color: #333333;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer p {
    margin-bottom: 15px;
    color: #333333;
}

/* Bottom CTA Section */
.page-about__cta-bottom .page-about__cta-container {
    max-width: 900px;
}

/* Image responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images don't have extra space below them */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-about__section {
        padding: 60px 0;
    }

    .page-about__hero-section {
        padding: 100px 0 40px;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset is applied */
    }

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

    .page-about__hero-description {
        font-size: 1.1em;
        padding: 0 10px;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-about__story-content,
    .page-about__responsible-content,
    .page-about__vision-mission-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__story-image,
    .page-about__responsible-image,
    .page-about__vision-image {
        order: -1; /* Image first on mobile */
        max-width: 100%; /* Ensure images are fully responsive */
        width: 100%;
    }

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

    .page-about__feature-icon {
        width: 80px;
        height: 80px;
    }

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

    /* Enforce image and container responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__story-content,
    .page-about__responsible-content,
    .page-about__vision-mission-content,
    .page-about__faq-list,
    .page-about__cta-bottom .page-about__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}