/* style/about.css */

/* Custom Colors */
:root {
    --hytw33993-primary: #11A84E;
    --hytw33993-secondary: #22C768;
    --hytw33993-card-bg: #11271B;
    --hytw33993-background: #08160F;
    --hytw33993-text-main: #F2FFF6;
    --hytw33993-text-secondary: #A7D9B8;
    --hytw33993-border: #2E7A4E;
    --hytw33993-glow: #57E38D;
    --hytw33993-gold: #F2C14E;
    --hytw33993-divider: #1E3A2A;
    --hytw33993-deep-green: #0A4B2C;
}

/* Base styles for the page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--hytw33993-text-main); /* Default text color for dark background */
    background-color: var(--hytw33993-background); /* Ensure consistency with body background */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--hytw33993-text-main);
}

.page-about__section-title--light {
    color: var(--hytw33993-text-main);
}

.page-about__content-area {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
}

.page-about__content-area p {
    margin-bottom: 1em;
    color: var(--hytw33993-text-secondary);
}

.page-about__content-area--light p,
.page-about__content-area--light li {
    color: var(--hytw33993-text-secondary);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* body already handles header offset, small top padding for aesthetic */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--hytw33993-gold);
    margin-bottom: 20px;
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--hytw33993-text-secondary);
    margin-bottom: 30px;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--hytw33993-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-link {
    background-color: transparent;
    color: var(--hytw33993-primary);
    border: 1px solid var(--hytw33993-primary);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-about__btn-link:hover {
    background-color: var(--hytw33993-primary);
    color: #ffffff;
}

/* Grid Layouts */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

@media (min-width: 768px) {
    .page-about__grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__grid-layout:nth-child(even) .page-about__image-block {
        order: 1;
    }
    .page-about__grid-layout:nth-child(even) .page-about__text-block {
        order: 2;
    }
}

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

.page-about__image-content {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Values Section */
.page-about__values-section {
    background-color: var(--hytw33993-background);
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item {
    background-color: var(--hytw33993-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--hytw33993-border);
}

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

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: var(--hytw33993-deep-green);
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__feature-item {
    margin-bottom: 25px;
}

.page-about__feature-heading {
    font-size: 1.4em;
    color: var(--hytw33993-gold);
    margin-bottom: 10px;
}

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

.page-about__game-card {
    background-color: var(--hytw33993-card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--hytw33993-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-about__game-card p {
    color: var(--hytw33993-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Security Section */
.page-about__security-list,
.page-about__responsible-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__security-item,
.page-about__responsible-item {
    margin-bottom: 25px;
}

.page-about__security-heading,
.page-about__responsible-heading {
    font-size: 1.4em;
    color: var(--hytw33993-gold);
    margin-bottom: 10px;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
}

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

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

/* FAQ Section */
.page-about__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--hytw33993-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
    background-color: rgba(var(--hytw33993-primary), 0.1);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--hytw33993-text-main);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--hytw33993-primary);
}

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

/* Ensure details native toggle works */
details[open] .page-about__faq-question {
    background-color: rgba(var(--hytw33993-primary), 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-about__grid-layout:nth-child(even) .page-about__image-block {
        order: initial;
    }
    .page-about__grid-layout:nth-child(even) .page-about__text-block {
        order: initial;
    }
    .page-about__value-list,
    .page-about__game-categories {
        grid-template-columns: 1fr;
    }

    /* Mobile image/video/container responsiveness */
    .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-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__content-area, .page-about__faq-list {
        padding: 0 15px;
    }
    .page-about__video-section {
        padding-top: 10px !important;
    }
}

/* Image styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter properties */
}

/* Ensure color contrast for elements */
.page-about p,
.page-about li,
.page-about__value-item p,
.page-about__feature-item p,
.page-about__game-card p,
.page-about__security-item p,
.page-about__responsible-item p,
.page-about__cta-description,
.page-about__faq-answer p {
    color: var(--hytw33993-text-secondary);
}

.page-about__section-title,
.page-about__main-title,
.page-about__value-heading,
.page-about__feature-heading,
.page-about__game-title,
.page-about__security-heading,
.page-about__responsible-heading,
.page-about__faq-qtext {
    color: var(--hytw33993-gold);
}

.page-about__btn-primary {
    color: #ffffff; /* Always white text on primary button gradient */
}

.page-about__btn-secondary {
    color: var(--hytw33993-primary); /* Primary color text on transparent background */
}

.page-about__btn-secondary:hover {
    color: #ffffff;
}

.page-about__faq-toggle {
    color: var(--hytw33993-primary);
}