/* style/about.css */

/* --- Base Styles & Variables (Scoped to .page-about) --- */
.page-about {
    /* Body background is #0a0a0a (dark), so default text color is light */
    color: #ffffff; /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content background will be transparent, inheriting body's dark bg */
}

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

.page-about__section {
    padding: 60px 0;
    position: relative;
}

.page-about__dark-section {
    background-color: #0a0a0a; /* Ensure dark background for sections explicitly designed as dark */
    color: #ffffff;
}

.page-about__section-title {
    font-size: clamp(2em, 3.5vw, 3em); /* H1 rules applied to H2 for general section titles */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand primary color for titles */
    line-height: 1.2;
}

.page-about__paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

.page-about a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: #EA7C07; /* Login orange for hover, as an accent */
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%; /* Ensure button doesn't overflow container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1e87b6;
    border-color: #1e87b6;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Specific color for login/register if needed, overriding brand colors for specific buttons */
.page-about__hero-content .page-about__btn-primary,
.page-about__cta-bottom-section .page-about__btn-primary {
    background-color: #EA7C07; /* Login orange */
    border-color: #EA7C07;
}
.page-about__hero-content .page-about__btn-primary:hover,
.page-about__cta-bottom-section .page-about__btn-primary:hover {
    background-color: #c96806;
    border-color: #c96806;
}
.page-about__hero-content .page-about__btn-secondary {
    color: #EA7C07;
    border-color: #EA7C07;
}
.page-about__hero-content .page-about__btn-secondary:hover {
    background-color: #EA7C07;
    color: #ffffff;
}


/* --- Image Styles --- */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
    margin: 30px auto; /* Center images and provide spacing */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    box-sizing: border-box;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Hero image usually full width, no border-radius at top */
    margin: 0;
    box-shadow: none;
}

.page-about__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 1;
    background-color: rgba(10, 10, 10, 0.9); /* Dark background from body with slight opacity */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #26A9E0;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Max 3.8em for H1 */
    font-weight: 900;
    color: #FFFFFF; /* White for H1 on dark background */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-about__lead-text {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Introduction Section --- */
.page-about__introduction-section {
    background-color: #0a0a0a; /* Explicitly set for consistency */
    color: #ffffff;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff;
}

.page-about__mission-vision-section .page-about__section-title {
    color: #ffffff; /* White title on brand primary background */
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on colored background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff; /* White text on card */
}

.page-about__card-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.05); /* Lighter dark background for feature cards */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #26A9E0; /* Accent border */
    color: #ffffff;
}

.page-about__feature-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-about__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-about__list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    color: #f0f0f0;
}

.page-about__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* --- Team Section --- */
.page-about__team-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

/* --- Future Outlook Section --- */
.page-about__future-outlook-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__future-outlook-section .page-about__section-title {
    color: #ffffff;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
    font-weight: normal;
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
    max-height: 0; /* For JS-controlled collapse */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px; /* Sufficiently large for expansion */
    padding-top: 15px;
}

/* For <details> native behavior */
.page-about__faq-item[open] .page-about__faq-answer {
    max-height: none;
    padding-top: 15px;
    overflow: visible;
}


/* --- Call to Action Bottom Section --- */
.page-about__cta-bottom-section {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-about__main-title {
        font-size: clamp(2em, 4.5vw, 3.2em);
    }
    .page-about__section-title {
        font-size: clamp(1.8em, 3.8vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Mobile specific padding for sections and containers */
    .page-about__section,
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 40px !important;
    }

    .page-about__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        border-radius: 8px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller on mobile */
        margin-bottom: 15px;
    }

    .page-about__lead-text {
        font-size: 1.05em;
        margin-bottom: 25px;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__cards-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-about__card,
    .page-about__feature-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2em) !important;
        margin-bottom: 30px;
    }

    .page-about__paragraph {
        font-size: 1em;
    }

    .page-about__list {
        padding-left: 20px;
        font-size: 1em;
    }

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

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

    /* Image responsiveness */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    
    /* Ensure containers with images also adapt */
    .page-about__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-content {
        margin-top: -30px;
    }
    .page-about__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em) !important;
    }
    .page-about__lead-text {
        font-size: 0.95em;
    }
    .page-about__section-title {
        font-size: clamp(1.3em, 7vw, 1.8em) !important;
    }
}