/* style/about.css */

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

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

/* Container for consistent content width */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: 2.8em;
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 2em;
    color: var(--page-about-text-main);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__text-main {
    color: var(--page-about-text-main);
}

.page-about__text-secondary {
    color: var(--page-about-text-secondary);
}

.page-about__inline-link {
    color: var(--page-about-glow-color); /* Use glow color for inline links */
    text-decoration: underline;
}

.page-about__inline-link:hover {
    color: var(--page-about-gold-color);
    text-decoration: none;
}

/* Hero Section */
.page-about__hero-section {
    padding: 10px 0 60px 0; /* body already handles padding-top from header, so this is small */
    background-color: var(--page-about-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-about__hero-section .page-about__container {
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    gap: 40px;
    align-items: center;
}

.page-about__hero-content {
    text-align: center;
    flex: 1;
    max-width: 800px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-about-gold-color); /* H1 with gold color for emphasis */
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for mobile */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding and border are included in element's total width and height */
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-about__btn-primary:hover {
    background: var(--page-about-btn-hover-gradient);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-glow-color);
    border: 2px solid var(--page-about-glow-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-glow-color);
    color: var(--page-about-bg-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-about__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure it takes full width initially */
    max-width: 800px; /* Limit image wrapper width on larger screens */
    margin-top: 30px; /* Space between content and image */
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Mission & Vision Section (default background from .page-about) */
.page-about__mission-vision .page-about__container {
    text-align: left;
}

/* Values Section */
.page-about__values-section {
    background-color: var(--page-about-card-bg); /* Darker background for cards */
    padding: 80px 0;
}

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

.page-about__value-card {
    background-color: var(--page-about-bg-primary); /* Use primary bg for card content */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-about-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__value-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 200px; /* Limit max size of icon */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__card-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--page-about-gold-color); /* Card titles with gold */
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__container {
    text-align: left;
}

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

.page-about__feature-item {
    background-color: var(--page-about-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-divider-color);
    text-align: left;
}

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

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

.page-about__responsible-gaming-content {
    display: flex;
    flex-direction: column; /* Default to column */
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__responsible-gaming-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: block;
    width: 800px; /* HTML width attribute */
    height: 600px; /* HTML height attribute */
}

.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.page-about__list-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--page-about-text-main);
    padding-left: 25px;
    position: relative;
}

.page-about__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--page-about-glow-color);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-about-gold-color);
    cursor: pointer;
    background-color: var(--page-about-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--page-about-border-color);
    user-select: none;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--page-about-glow-color);
}

/* For details tag, hide default marker */
.page-about__faq-item summary {
    list-style: none;
}

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

/* Rotate icon when active/open for details */
.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For details tag, answer is visible */
.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* Fallback for JS-controlled FAQ (if not using <details>) */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to show content */
    padding-top: 15px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}


/* CTA Section */
.page-about__cta-section {
    background-color: var(--page-about-deep-green); /* Use deep green for CTA background */
    padding: 80px 0;
}

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

/* --- Responsive Adjustments --- */
@media (min-width: 769px) {
    .page-about__hero-section .page-about__container {
        flex-direction: row; /* Desktop: row layout */
        text-align: left;
    }

    .page-about__hero-content {
        text-align: left;
        padding-right: 40px; /* Space between text and image */
    }

    .page-about__hero-image-wrapper {
        margin-top: 0;
        margin-left: 30px; /* Space between text and image */
    }

    .page-about__cta-buttons {
        justify-content: flex-start; /* Align buttons to left on desktop */
        padding: 0;
    }

    .page-about__responsible-gaming-content {
        flex-direction: row; /* Desktop: row layout */
        text-align: left;
    }

    .page-about__responsible-gaming-list {
        margin: 0; /* Remove auto margins for flex item */
    }
}

@media (max-width: 768px) {
    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__paragraph,
    .page-about__list-item,
    .page-about__faq-answer p {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-buttons,
    .page-about__responsible-gaming-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Mobile button responsiveness */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__hero-content {
        padding-right: 0;
    }

    .page-about__hero-image-wrapper {
        margin-left: 0;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr; /* Stack values */
    }

    .page-about__feature-list {
        grid-template-columns: 1fr; /* Stack features */
    }

    .page-about__responsible-gaming-content {
        flex-direction: column; /* Stack image and list */
    }

    .page-about__responsible-gaming-image {
        margin-bottom: 20px;
    }

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__section {
        padding: 40px 0;
    }
    
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }
}