/* style/about.css */

/* Custom Colors */
:root {
    --page-about-bg: #08160F; /* Background */
    --page-about-card-bg: #11271B; /* Card BG */
    --page-about-text-main: #F2FFF6; /* Text Main */
    --page-about-text-secondary: #A7D9B8; /* Text Secondary */
    --page-about-border: #2E7A4E; /* Border */
    --page-about-glow: #57E38D; /* Glow */
    --page-about-gold: #F2C14E; /* Gold */
    --page-about-divider: #1E3A2A; /* Divider */
    --page-about-deep-green: #0A4B2C; /* Deep Green */
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

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

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

/* Section titles */
.page-about__section-title {
    font-size: 2.5em;
    color: var(--page-about-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

/* Subtitles for cards/features */
.page-about__card-title {
    font-size: 1.5em;
    color: var(--page-about-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Strong/bold text */
.page-about strong {
    color: var(--page-about-text-main);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    max-width: 100%;
    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;
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-glow); /* Using Glow color for secondary button text */
    border: 2px solid var(--page-about-glow);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-glow);
    color: var(--page-about-bg); /* Dark text on light background for hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.3);
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

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

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

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__image-block {
    text-align: center;
}

.page-about__image-content {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.page-about__why-choose-us-section .page-about__section-title {
    color: var(--page-about-text-main);
}

.page-about__why-choose-us-section .page-about__card-title {
    color: var(--page-about-glow); /* Highlight titles in this section */
}

.page-about__why-choose-us-section p {
    color: var(--page-about-text-secondary);
}

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

.page-about__feature-card {
    background-color: var(--page-about-deep-green); /* Slightly different dark background for cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px 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.4);
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

.page-about__cta-bottom p {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: var(--page-about-text-main);
}

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

.page-about__intro-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
}

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

.page-about__icon-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--page-about-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-about__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

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

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

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

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

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an 'x' or just a minus */
}

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

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

.page-about__faq-answer .page-about__btn-primary {
    margin-top: 15px;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-about-bg);
}

.page-about__contact-cta-section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
}

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


/* Responsive Design */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-block {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__mission-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__contact-cta-section {
        padding: 50px 0;
    }

    .page-about__container {
        padding: 0 15px !important; /* Mobile padding */
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__icon-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .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; /* Make buttons full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .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;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* FAQ item padding */
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__hero-description {
        font-size: 0.95em;
    }
    .page-about p {
        font-size: 0.95em;
    }
}