/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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 */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-about__hero-content {
    max-width: 900px;
    z-index: 10;
    margin-bottom: 40px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for title for impact */
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for register/login buttons */
    color: #FFFF00; /* Custom font color for register/login buttons */
    border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #f0f0f0;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: none;
    min-width: 200px;
    min-height: 200px;
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #f0f0f0;
}

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

/* Dark Background Sections */
.page-about__dark-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 0;
}

.page-about__dark-section .page-about__section-title {
    color: #FFFF00;
}

.page-about__dark-section .page-about__section-intro {
    color: #f0f0f0;
}

/* Light Background Sections */
.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 80px 0;
}

.page-about__light-bg .page-about__section-title {
    color: #017439;
}

.page-about__light-bg .page-about__section-intro {
    color: #555555;
}

/* Story Section */
.page-about__story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__story-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__story-item:hover {
    transform: translateY(-5px);
}

.page-about__story-heading {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-about__story-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-about__story-image {
    display: block;
    margin: 50px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__feature-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.page-about__card {
    background-color: #ffffff;
    color: #333333;
}

.page-about__feature-heading {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-about__security-image {
    display: block;
    margin: 50px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    filter: none;
    min-width: 200px;
    min-height: 200px;
}

/* Our Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-heading {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-about__value-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Game Variety Section */
.page-about__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__game-item {
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-about__game-heading {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__game-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__btn-text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-about__btn-text-link:hover {
    color: #005a2e;
}

.page-about__game-image {
    display: block;
    margin: 50px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    filter: none;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__cta-section .page-about__section-title {
    color: #FFFF00;
}

.page-about__cta-section .page-about__section-intro {
    color: #f0f0f0;
}

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

.page-about__cta-image {
    display: block;
    margin: 50px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

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

.page-about__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    outline: none;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.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;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }

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

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-text-link {
        width: 100% !important;
        max-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__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-about__dark-section,
    .page-about__light-bg,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 60px 0;
    }

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

    .page-about__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-about__story-item,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__game-item {
        padding: 25px;
    }

    .page-about__story-heading,
    .page-about__feature-heading,
    .page-about__value-heading,
    .page-about__game-heading {
        font-size: 1.4em;
    }

    /* Image responsive rules for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* All containers with images/content must prevent overflow */
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__why-choose-us,
    .page-about__our-values,
    .page-about__game-variety,
    .page-about__cta-section,
    .page-about__faq-section,
    .page-about__hero-content,
    .page-about__hero-buttons,
    .page-about__story-grid,
    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__game-grid,
    .page-about__cta-buttons,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__hero-image-wrapper {
        position: relative;
        height: 250px;
        margin-top: 20px;
    }
}

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