/* style/about.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Main text color for the page, as body background is dark */
    background-color: var(--background-color); /* Matches custom background color */
    line-height: 1.6;
}

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

.page-about__dark-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-about__light-bg {
    background-color: #0A4B2C; /* Using deep green for contrast with dark sections, still dark but different tone */
    color: var(--text-main-color);
}

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

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

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

/* Section Titles */
.page-about__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

/* Content Wrappers */
.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__content-wrapper:nth-of-type(even) {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.page-about__text-block p {
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-about__image-content {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__image-content--center {
    display: block;
    margin: 40px auto;
    max-width: 80%;
}

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

.page-about__feature-card.page-about__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: var(--text-secondary-color);
}

/* Games & Services Grid */
.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__game-category.page-about__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__game-category p {
    color: var(--text-secondary-color);
}

/* Call to Action */
.page-about__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--deep-green-color);
}

.page-about__cta-text {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

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

.page-about__btn-tertiary {
    background-color: transparent;
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
}

.page-about__btn-tertiary:hover {
    background-color: var(--border-color);
    color: var(--text-main-color);
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    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;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--gold-color);
    list-style: none;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    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: var(--text-secondary-color);
}

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

.page-about__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
    }

    .page-about__content-wrapper:nth-of-type(even) {
        flex-direction: column;
    }

    .page-about__image-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
        padding-top: 20px;
    }

    .page-about__container,
    .page-about__hero-content,
    .page-about__text-block,
    .page-about__feature-card,
    .page-about__game-category,
    .page-about__faq-item,
    .page-about__cta-section,
    .page-about__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Buttons responsive */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary,
    .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: 12px 20px; /* Adjust padding for smaller screens */
    }

    .page-about__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__feature-card.page-about__card,
    .page-about__game-category.page-about__card {
        padding: 25px;
    }

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

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