/* style/about.css */

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-about__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    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 responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-about__btn-primary:hover {
    background-color: #1e87b6; /* Slightly darker brand color */
    border-color: #1e87b6;
}

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

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Responsive height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 0;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

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

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

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for this section */
    color: #ffffff;
}

.page-about__story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-about__story-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__story-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: #000000; /* Main body dark background */
    color: #ffffff;
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__value-card {
    background-color: rgba(38, 169, 224, 0.1); /* Transparent brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(38, 169, 224, 0.3);
}

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

.page-about__value-card p {
    color: #f0f0f0;
}

/* Games Showcase Section */
.page-about__games-showcase {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-about__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__game-card {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle light background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-about__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-about__game-title {
    font-size: 1.4em;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.page-about__game-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__game-title a:hover {
    color: #ffffff;
}

.page-about__game-card p {
    color: #f0f0f0;
    padding: 0 15px 20px;
    font-size: 0.95em;
}

.page-about__cta-center {
    text-align: center;
}

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

.page-about__responsible-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__responsible-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__responsible-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-about__responsible-text li {
    margin-bottom: 8px;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.15); /* Slightly darker brand color for question background */
    transition: background-color 0.3s ease;
}

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

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

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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; /* Sufficient height for content */
    padding: 20px;
}

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

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
    margin-top: 10px;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

.page-about__cta-container {
    max-width: 900px;
}

.page-about__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-about__cta-buttons .page-about__btn-primary {
    background-color: #EA7C07; /* Login color */\    border-color: #EA7C07;
}

.page-about__cta-buttons .page-about__btn-primary:hover {
    background-color: #c96a06;
    border-color: #c96a06;
}

.page-about__cta-buttons .page-about__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

    .page-about__story-grid,
    .page-about__responsible-content {
        grid-template-columns: 1fr;
    }

    .page-about__story-image-wrapper,
    .page-about__responsible-image {
        order: -1; /* Image above text on mobile */
        margin-bottom: 30px;
    }
}

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

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

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

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

    .page-about__section-subtitle {
        font-size: 1em;
    }

    .page-about__story-section,
    .page-about__values-section,
    .page-about__games-showcase,
    .page-about__responsible-gaming,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px; /* Add padding to container for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__story-image-wrapper,
    .page-about__game-card,
    .page-about__responsible-image,
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .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__hero-cta,
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

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

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

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

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

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

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

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
}