/* style/about.css */

/* Custom Colors */
:root {
    --page-about-color-primary: #11A84E;
    --page-about-color-secondary: #22C768;
    --page-about-color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-color-card-bg: #11271B;
    --page-about-color-background: #08160F; /* Assuming body will pick this up or similar dark */
    --page-about-color-text-main: #F2FFF6;
    --page-about-color-text-secondary: #A7D9B8;
    --page-about-color-border: #2E7A4E;
    --page-about-color-glow: #57E38D;
    --page-about-color-gold: #F2C14E;
    --page-about-color-divider: #1E3A2A;
    --page-about-color-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--page-about-color-text-main); /* Light text for dark background */
    background-color: var(--page-about-color-background); /* Dark background */
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--page-about-color-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-about-color-primary);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--page-about-color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__description,
.page-about p {
    font-size: 1.1em;
    color: var(--page-about-color-text-secondary);
    margin-bottom: 1em;
}

.page-about__description-secondary {
    font-size: 1.1em;
    color: var(--page-about-color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-color-primary);
    border: 2px solid var(--page-about-color-primary);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-color-primary);
    color: var(--page-about-color-text-main);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

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

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px; /* Space between image and text */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: 800;
    color: var(--page-about-color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-about__grid--reverse {
    grid-template-areas: "image text"; /* Reverse order for responsible gaming */
}
.page-about__grid--reverse .page-about__text-block {
    grid-area: text;
}
.page-about__grid--reverse .page-about__image-block {
    grid-area: image;
}

.page-about__image-block {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-about__dark-section .page-about__section-title {
    color: var(--page-about-color-text-main);
}
.page-about__dark-section .page-about__description,
.page-about__dark-section .page-about__description-secondary,
.page-about__dark-section p {
    color: var(--page-about-color-text-secondary);
}

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

.page-about__feature-card {
    background-color: var(--page-about-color-background); /* Card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 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 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 200px; /* Keep icons from being too large visually */
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px; /* Slightly rounded images */
}

.page-about__card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--page-about-color-primary);
    margin-bottom: 15px;
}

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

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

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

.page-about__faq-item {
    background-color: var(--page-about-color-background);
    border: 1px solid var(--page-about-color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-about-color-text-main);
    cursor: pointer;
    background-color: var(--page-about-color-deep-green);
    border-bottom: 1px solid var(--page-about-color-divider);
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker { /* For Webkit browsers */
    display: none;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
}

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

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

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

.page-about__faq-link {
    color: var(--page-about-color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.page-about__faq-link:hover {
    color: var(--page-about-color-gold);
}

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

/* Images and Videos Responsive (Global Rules) */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

/* Responsive design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-about__grid--reverse {
        grid-template-areas: unset; /* Reset for mobile */
    }
    .page-about__grid--reverse .page-about__text-block,
    .page-about__grid--reverse .page-about__image-block {
        grid-area: unset;
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on mobile */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__description,
    .page-about p {
        font-size: 1em;
    }
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-bottom-section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__feature-icon {
        max-width: 150px; /* Adjust for smaller screens */
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Images/Video/Container mobile force */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about video {
        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__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-bottom-section,
    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__feature-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
}