/* style/about.css */

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

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

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

.page-about__section-title {
    font-size: clamp(2em, 5vw, 2.8em); /* Responsive font size */
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: clamp(1.5em, 4vw, 2em);
    color: var(--page-about-primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-about__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--page-about-text-main);
}

.page-about__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-about-glow);
}

/* 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;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure responsiveness */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-about__btn-secondary:hover {
    background-color: var(--page-about-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-about-deep-green); /* A darker shade for the hero background */
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-about__main-title {
    font-size: clamp(2.5em, 6vw, 3.5em); /* H1 responsive font size */
    color: var(--page-about-gold);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__intro-text {
    font-size: clamp(1.1em, 2.5vw, 1.4em);
    color: var(--page-about-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section specific styles */
.page-about__dark-section {
    background-color: var(--page-about-card-bg); /* Use card background for darker sections */
    padding: 60px 0;
}

.page-about__story-section .page-about__image-content {
    border-radius: 12px;
    margin-top: 30px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: var(--page-about-bg);
}

.page-about__mission-vision-section .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

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

.page-about__why-choose-us-section {
    padding: 60px 0;
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: var(--page-about-deep-green);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 200px; /* Keep icon size reasonable */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--page-about-gold);
    margin-bottom: 15px;
}

.page-about__feature-description {
    color: var(--page-about-text-secondary);
    font-size: 1em;
}

.page-about__team-section {
    padding: 60px 0;
    background-color: var(--page-about-bg);
}

.page-about__team-section .page-about__image-content {
    border-radius: 12px;
    margin-top: 30px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__responsible-gaming-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__responsible-gaming-section .page-about__btn-primary {
    margin-top: 30px;
}

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

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-about-text-main);
    background-color: var(--page-about-deep-green);
    border-bottom: 1px solid var(--page-about-divider);
    transition: background-color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--page-about-primary-color);
    color: #ffffff;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-about-gold);
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '−' */
    color: #ffffff;
}

.page-about__faq-answer {
    padding: 20px;
    color: var(--page-about-text-secondary);
    font-size: 1em;
    border-top: none;
}

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

/* Call to Action Bottom Section */
.page-about__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Images within content area */
.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__mission-vision-section .page-about__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Body handles header offset */
    }

    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 1.1em;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__dark-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__team-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-bottom-section {
        padding: 40px 0;
    }

    .page-about__image-content,
    .page-about__hero-image,
    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__features-grid,
    .page-about__grid-item,
    .page-about__feature-card,
    .page-about__faq-list,
    .page-about__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-about__hero-section {
        overflow: hidden !important; /* Ensure hero section does not cause overflow */
    }
}

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}

/* H1 font size for title area, not fixed */
.page-about__hero-content h1 {
    font-weight: 900;
    line-height: 1.2;
    color: var(--page-about-gold); /* Ensure high contrast */
}

/* Text color for content area */
.page-about p,
.page-about li,
.page-about__text-block,
.page-about__feature-description {
    color: var(--page-about-text-secondary); /* Ensures contrast on dark backgrounds */
}

/* Specific contrast fixes if needed for brand colors on specific backgrounds */
.page-about__dark-bg {
    color: #ffffff; /* Deep Green/Card BG will use light text */
}

.page-about__light-bg {
    color: #333333; /* Not used in this dark theme, but for completeness */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient); /* Button gradient */
    color: #ffffff; /* White text on dark button */
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-primary-color); /* Green text on transparent */
    border: 2px solid var(--page-about-primary-color);
}