/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --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-about scope */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark body background */
    background-color: var(--color-background); /* Explicitly set for main content area if needed, but body handles global */
}

/* Mobile responsive images/videos/buttons - IMPORTANT */
@media (max-width: 768px) {
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__container,
    .page-about__card,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .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-left: 15px; */ /* Already handled by container padding */
        /* padding-right: 15px; */
    }

    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    .page-about__hero-section,
    .page-about__video-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px !important;
    }

    .page-about__main-title {
        font-size: clamp(28px, 8vw, 42px) !important;
        line-height: 1.2 !important;
    }

    .page-about__section-title {
        font-size: clamp(24px, 7vw, 36px) !important;
        line-height: 1.3 !important;
    }

    .page-about p,
    .page-about li {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, rely on body for header offset */
    text-align: center;
    background-color: var(--color-background);
}

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

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

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(36px, 4vw, 56px); /* Responsive font size for H1 */
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-about__description {
    font-size: 1.125rem; /* 18px */
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-about__section-title {
    font-size: clamp(32px, 3.5vw, 48px);
    color: var(--color-text-main);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.75rem; /* 28px */
    color: var(--color-text-main);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about p {
    font-size: 1rem; /* 16px */
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-about__intro-text {
    text-align: center;
    font-size: 1.125rem; /* 18px */
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

@media (max-width: 992px) {
    .page-about__content-grid,
    .page-about__content-grid--reverse {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid--reverse .page-about__text-block {
        order: 2;
    }
    .page-about__content-grid--reverse .page-about__image-block {
        order: 1;
    }
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* History & Tech Section */
.page-about__history-tech-section {
    padding: 80px 0;
    background-color: var(--color-card-bg); /* Darker background for contrast */
    color: var(--color-text-main);
}

.page-about__history-tech-section .page-about__section-title,
.page-about__history-tech-section .page-about__sub-title,
.page-about__history-tech-section p {
    color: var(--color-text-main);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__feature-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    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:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.5rem; /* 24px */
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 15px;
}

.page-about__feature-card p {
    font-size: 0.9375rem; /* 15px */
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--color-card-bg);
}

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

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

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

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

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--color-deep-green);
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-glow);
    margin-left: 20px;
    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;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

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

/* CTA Bottom Section */
.page-about__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-about__cta-bottom-section .page-about__section-title {
    color: var(--color-text-main);
}

.page-about__cta-bottom-section .page-about__description {
    color: var(--color-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrap on desktop */
}

.page-about__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.page-about__btn-secondary:hover {
    background: var(--color-glow);
    color: var(--color-card-bg);
    transform: translateY(-2px);
}

/* Dark section specific overrides for text color */
.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section p,
.page-about__dark-section .page-about__intro-text {
    color: var(--color-text-main);
}

/* Ensure images in content area are not too small */
.page-about__text-block img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* CSS for video elements - ensure they don't have filters */
.page-about video {
    filter: none; /* Absolutely no filter */
}