/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    padding: 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.page-about__main-heading {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-about__heading {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand primary color */
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-about__paragraph a:hover {
    color: #1a7bbd; /* Darker shade for hover */
}

/* Dark Background Section */
.page-about__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-about__dark-bg .page-about__heading {
    color: #FFFFFF;
}

.page-about__dark-bg .page-about__paragraph {
    color: #f0f0f0;
}

.page-about__dark-bg .page-about__paragraph a {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-about__dark-bg .page-about__paragraph a:hover {
    color: #f0f0f0;
}

/* Grid Layout for Cards */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color */
}

.page-about__card-heading a {
    color: #26A9E0;
    text-decoration: none;
}

.page-about__card-heading a:hover {
    text-decoration: underline;
}

.page-about__card-paragraph {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

.page-about__card-paragraph a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-about__card-paragraph a:hover {
    color: #1a7bbd;
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Feature List */
.page-about__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__feature-item {
    background: #f8f8f8;
    border-left: 5px solid #26A9E0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__feature-heading {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

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

.page-about__feature-description a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-about__feature-description a:hover {
    color: #1a7bbd;
}

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

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

.page-about__cta-button {
    display: inline-block;
    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; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-about__btn-primary:hover {
    background-color: #1a7bbd; /* Darker shade */
    border-color: #1a7bbd;
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f8ff; /* Light background on hover */
    color: #1a7bbd;
    border-color: #1a7bbd;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f5f5f5;
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom: none;
    color: #26A9E0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

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

.page-about__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 0;
}

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

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-heading {
        font-size: 2.8em;
    }
    .page-about__heading {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-about__main-heading {
        font-size: 2em;
    }

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

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

    .page-about__heading {
        font-size: 1.8em;
    }

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

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image containers responsive */
    .page-about__hero-image-wrapper,
    .page-about__container,
    .page-about__grid-layout,
    .page-about__feature-list,
    .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 content overflow */
    }

    /* Buttons responsive */
    .page-about__cta-button,
    .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-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Card images responsive */
    .page-about__card-image {
        height: auto !important; /* Allow height to adjust */
    }

    /* FAQ responsive */
    .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: 10px 20px 20px;
    }

    /* Ensure content area images are not tiny */
    .page-about__about-us-intro .page-about__image,
    .page-about__future-vision .page-about__image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure all images in content sections are at least 200x200 */
.page-about__about-us-intro img,
.page-about__game-products img,
.page-about__commitment img,
.page-about__future-vision img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space nicely */
}