/* 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: transparent; /* Body background is handled by shared.css */
}

/* Global rule for all content images in the page-about scope */
.page-about img {
    max-width: 100%; /* Ensures responsiveness by default */
    height: auto;
    display: block; /* Prevents extra space below images */
    min-width: 200px; /* All images must be at least 200px wide */
    min-height: 200px; /* All images must be at least 200px high */
}

/* Container for consistent content width */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sections styling */
.page-about__section {
    padding: 60px 0;
    text-align: center;
}

/* Dark background sections */
.page-about__dark-bg {
    background-color: #26A9E0; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

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

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Place behind content */
    opacity: 0.3; /* Slightly dim the background image */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 1;
}

.page-about__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Call to action buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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; /* Ensure padding doesn't affect total width */
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* Section titles */
.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit; /* Inherit color from section background */
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Mission and Vision Section */
.page-about__mission-vision {
    padding-bottom: 0; /* Adjust spacing */
}

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

.page-about__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

.page-about__feature-icon {
    width: 250px; /* Base width */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Ensure minimum height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__section-title {
    color: #ffffff;
}

.page-about__why-choose-us .page-about__paragraph {
    color: #f0f0f0;
}

.page-about__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-about__advantage-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__section-title {
    color: #26A9E0;
}

.page-about__responsible-gaming .page-about__paragraph {
    color: #555555;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #1a1a1a; /* Darker background for FAQ section */
    color: #ffffff;
}

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

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

.page-about__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    list-style: none; /* Remove default marker */
}

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

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

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.8;
}

/* Call to Action Bottom Section */
.page-about__cta-bottom {
    padding: 80px 0;
}

.page-about__cta-bottom-content {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-about__cta-bottom .page-about__section-title {
    color: #26A9E0;
    margin-bottom: 25px;
}

.page-about__cta-bottom .page-about__paragraph {
    color: #555555;
    margin-bottom: 40px;
}

.page-about__cta-bottom .page-about__btn-primary {
    background-color: #26A9E0; /* Use brand primary for main CTA */
    border-color: #26A9E0;
}

.page-about__cta-bottom .page-about__btn-primary:hover {
    background-color: #1e87bb;
    border-color: #1e87bb;
}

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

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

/* --- Responsive Adjustments --- */

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 40px;
    }

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

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-about__paragraph {
        font-size: 0.95em;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr; /* Single column for features */
    }

    .page-about__feature-icon {
        width: 100% !important;
        max-width: 300px !important; /* Cap max width */
        height: auto !important;
        min-height: 200px !important; /* Enforce minimum height for content images */
        object-fit: cover;
    }

    .page-about__advantages-list {
        grid-template-columns: 1fr; /* Single column for advantages */
    }

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

    .page-about__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-about__cta-bottom-content {
        padding: 30px;
    }

    /* Enforce image responsiveness for all content images */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    /* All containers that might hold images or other content */
    .page-about__section,
    .page-about__container,
    .page-about__feature-item,
    .page-about__advantage-item,
    .page-about__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}