/* style/about.css */

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

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for the page, light on dark body */
    background-color: var(--color-background); /* Ensure consistency if body background is overridden */
}

/* Sections */
.page-about__section {
    padding: 60px 0;
    position: relative;
}

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

.page-about__container--center {
    text-align: center;
}

.page-about__section-title {
    font-size: 2.8em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

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

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

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-about__intro-text {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Limit width on larger screens */
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* Light text on gradient button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--color-text-main); /* Light text on dark background */
    border: 2px solid var(--color-border);
    box-shadow: 0 0 10px rgba(46, 122, 78, 0.3);
}

.page-about__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(34, 199, 104, 0.5);
    transform: translateY(-2px);
}

/* Content Grid for About Us & Commitment */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    min-width: 200px; /* Minimum size for image block */
}

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

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

.page-about__feature-card {
    background-color: var(--color-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--color-primary); /* Green for card titles */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-about__game-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-about__game-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.page-about__game-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

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

.page-about__faq-item {
    background-color: var(--color-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__faq-item details {
    border: none; /* Remove default details border */
}

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

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

.page-about__faq-question:hover {
    background-color: var(--color-divider);
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-secondary);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--color-text-secondary);
    font-size: 1em;
}

/* Final CTA Section */
.page-about__cta-final {
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column; /* Also column for reverse on smaller screens */
    }
    .page-about__hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }
    .page-about__intro-text {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Narrower for mobile */
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image and video responsive rules */
    .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-image-wrapper,
    .page-about__image-block,
    .page-about__text-block,
    .page-about__feature-card { /* Ensure all content containers are responsive */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-question,
    .page-about__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}