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

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dh88-text-main); /* Light text for dark background */
    background-color: var(--dh88-background); /* Ensure consistency if shared.css doesn't cover */
}

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

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

.page-about__container--flex-reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--dh88-card-bg); /* Darker green for hero background */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
    color: var(--dh88-text-main);
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--dh88-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

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

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--dh88-divider);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__dark-bg {
    background-color: var(--dh88-card-bg); /* Darker background for specific sections */
    color: var(--dh88-text-main);
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--dh88-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-about__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--dh88-text-secondary);
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    background-color: var(--dh88-deep-green);
    border-left: 5px solid var(--dh88-primary);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--dh88-text-main);
    font-size: 1.05em;
}

.page-about__list-item strong {
    color: var(--dh88-gold);
}

/* Image and Content Block Layout */
.page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__content-block {
    flex: 2;
    min-width: 300px;
}

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

.page-about__game-card {
    background-color: var(--dh88-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-about__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min size */
    min-width: 200px; /* Enforce min size */
}

.page-about__game-description {
    color: var(--dh88-text-secondary);
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--dh88-button-gradient);
    color: var(--dh88-text-main); /* White text on dark button */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--dh88-background); /* Use the main background for contrast */
    padding-bottom: 80px;
}

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

.page-about__faq-item {
    background-color: var(--dh88-card-bg); /* Card background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--dh88-text-main);
    cursor: pointer;
    background-color: var(--dh88-deep-green); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

.page-about__faq-item[open] > .page-about__faq-question {
    background-color: var(--dh88-primary); /* Highlight open question */
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--dh88-text-main); /* Ensure text is visible */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: var(--dh88-text-main);
}

.page-about__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 1em;
    color: var(--dh88-text-secondary);
    background-color: var(--dh88-card-bg); /* Match card background */
}

.page-about__faq-answer p {
    margin-bottom: 15px;
    color: var(--dh88-text-secondary);
}

.page-about__faq-btn {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Call to Action */
.page-about__call-to-action {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--dh88-card-bg);
    color: var(--dh88-text-main);
}

.page-about__call-to-action .page-about__section-title {
    color: var(--dh88-gold);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__container--flex,
    .page-about__container--flex-reverse {
        flex-direction: column;
        text-align: center;
    }
    .page-about__image-wrapper {
        order: -1; /* Image appears above content on mobile */
        margin-bottom: 30px;
    }
    .page-about__container--flex-reverse .page-about__image-wrapper {
        order: unset; /* Image appears below content on mobile for reverse flex */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }
    .page-about__description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__text-block,
    .page-about__list-item,
    .page-about__game-description,
    .page-about__faq-answer {
        font-size: 0.95em;
    }
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image-wrapper,
    .page-about__image-wrapper,
    .page-about__game-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__container,
    .page-about__section,
    .page-about__game-card,
    .page-about__faq-item,
    .page-about__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-about__game-card {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}

/* Ensure images always respect minimum size and are not small icons */
.page-about img {
    min-width: 200px;
    min-height: 200px;
}