/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --background-color-light: #FFFFFF;
    --background-color-dark: #26A9E0;
    --button-login-color: #EA7C07;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color-light);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-about__subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

/* General Section Styling */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__text-block p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color-dark);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

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

.page-about__image-wrapper {
    text-align: center;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Why Choose Section */
.page-about__why-choose-section {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
}

.page-about__why-choose-section .page-about__section-title,
.page-about__why-choose-section .page-about__section-description {
    color: var(--text-color-light);
}

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

.page-about__feature-card {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.page-about__feature-card .page-about__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__feature-card p {
    font-size: 1em;
    line-height: 1.7;
}

/* Games Section */
.page-about__games-section {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

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

.page-about__game-card {
    background-color: var(--background-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-about__game-card .page-about__card-title {
    font-size: 1.4em;
    font-weight: 600;
    padding: 15px;
    color: var(--primary-color);
}

.page-about__game-card p {
    font-size: 0.95em;
    padding: 0 15px 15px;
    line-height: 1.7;
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
}

.page-about__commitment-section .page-about__section-title {
    color: var(--text-color-light);
}

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

.page-about__commitment-content .page-about__sub-title {
    color: var(--text-color-light);
}

.page-about__commitment-content .page-about__text-block p {
    color: var(--text-color-light);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

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

.page-about__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f9f9f9;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

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

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-dark);
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
    text-align: center;
    padding-bottom: 60px;
}

.page-about__contact-cta-section .page-about__section-title,
.page-about__contact-cta-section .page-about__section-description {
    color: var(--text-color-light);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: var(--button-login-color); /* Using specific login color for primary action */
    color: var(--text-color-light);
    border: 2px solid var(--button-login-color);
    margin-right: 15px;
}

.page-about__btn-primary:hover {
    background-color: darken(var(--button-login-color), 10%); /* Placeholder for darken, will be static color */
    border-color: darken(var(--button-login-color), 10%);
    background-color: #d86c06;
    border-color: #d86c06;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-about__cta-container,
.page-about__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__grid-layout,
    .page-about__commitment-content {
        grid-template-columns: 1fr;
    }
    .page-about__image-wrapper {
        order: -1; /* Image on top for smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-about__subtitle {
        font-size: 1em;
    }

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

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

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

    .page-about__features-grid,
    .page-about__games-grid {
        grid-template-columns: 1fr;
    }

    .page-about__game-image {
        height: 180px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-container,
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Images responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }

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

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

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

    .page-about__game-card .page-about__card-title {
        font-size: 1.2em;
    }
}