:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --bg-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;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default text color for the page, assuming dark body bg */
    background-color: var(--bg-color, #08160F); /* Page background, consistent with custom colors */
    padding-top: 0; /* body handles the header offset */
}

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

.page-about__flex-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--text-main-color, #F2FFF6);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section-description {
    font-size: 1.1em;
    color: var(--text-secondary-color, #A7D9B8);
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__content-area {
    font-size: 1em;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-about__content-area p {
    margin-bottom: 15px;
}

.page-about__content-area a {
    color: var(--gold-color, #F2C14E);
    text-decoration: none;
}

.page-about__content-area a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Forced image-above-text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background-color: var(--bg-color, #08160F);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and content */
    box-sizing: border-box;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: var(--text-main-color, #F2FFF6);
}

.page-about__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%; /* Ensure buttons adapt to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-about__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

/* Section Styling */
.page-about__introduction-section,
.page-about__security-section,
.page-about__games-section,
.page-about__promotions-support-section,
.page-about__responsibility-section,
.page-about__faq-section,
.page-about__call-to-action-section {
    padding: 80px 0;
    background-color: var(--bg-color, #08160F);
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-about__introduction-section:last-of-type,
.page-about__call-to-action-section:last-of-type {
    border-bottom: none;
}

/* Security Section specific */
.page-about__security-section .page-about__flex-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.page-about__security-section .page-about__text-block {
    flex: 1;
    padding-right: 40px;
}

.page-about__security-section .page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-about__game-card {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: var(--text-main-color, #F2FFF6);
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-about__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-about__card-title a:hover {
    color: var(--gold-color, #F2C14E);
}

.page-about__card-text {
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-button {
    margin: 0 15px 20px 15px;
}

/* Promotions & Support Section specific */
.page-about__promotions-support-section .page-about__flex-container {
    flex-direction: row-reverse; /* Image on right, text on left */
    justify-content: space-between;
    align-items: flex-start;
}

.page-about__promotions-support-section .page-about__text-block {
    flex: 1;
    padding-left: 40px;
}

.page-about__promotions-support-section .page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-about__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-secondary-color, #A7D9B8);
    transition: all 0.3s ease;
    border: 1px solid var(--divider-color, #1E3A2A);
}

.page-about__faq-item[open] {
    background-color: var(--deep-green-color, #0A4B2C);
    border-color: var(--primary-color, #11A84E);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main-color, #F2FFF6);
    user-select: none;
}

.page-about__faq-question:hover {
    color: var(--gold-color, #F2C14E);
}

.page-about__faq-question::-webkit-details-marker,
.page-about__faq-question::marker {
    display: none;
}

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

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

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary-color, #A7D9B8);
}

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

.page-about__faq-answer ul {
    margin-left: 20px;
    list-style: disc;
}

/* Call to Action Section */
.page-about__call-to-action-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-about__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__flex-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__security-section .page-about__text-block,
    .page-about__promotions-support-section .page-about__text-block {
        padding: 0;
    }
}

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

    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-about__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-about__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

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

    /* Video responsiveness (if any, though none on this page) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important;
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        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 mobile */
    }

    .page-about__game-grid {
        grid-template-columns: 1fr;
    }

    .page-about__game-card {
        margin-bottom: 20px;
    }

    .page-about__game-card:last-child {
        margin-bottom: 0;
    }

    .page-about__introduction-section,
    .page-about__security-section,
    .page-about__games-section,
    .page-about__promotions-support-section,
    .page-about__responsibility-section,
    .page-about__faq-section,
    .page-about__call-to-action-section {
        padding: 40px 0;
    }
}