/* style/about.css */

/* Base Styles */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-about a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    text-align: center;
    overflow: hidden;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-about__main-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__intro-text {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay for text readability */
}

/* Mission Section */
.page-about__mission-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-about__mission-section .page-about__text-block {
    color: #333333;
}

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

.page-about__mission-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__mission-heading {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__mission-description {
    font-size: 1em;
    color: #555555;
}

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

.page-about__why-choose-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__why-choose-section .page-about__text-block {
    color: #f0f0f0;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-about__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__feature-heading {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-about__video-section .page-about__text-block {
    color: #333333;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-about__video-overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background-color: rgba(38, 169, 224, 0.85); /* Slightly transparent */
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.page-about__video-wrapper:hover .page-about__video-overlay-button {
    opacity: 1;
    background-color: #26A9E0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__responsible-gaming-section .page-about__text-block {
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-about__faq-section .page-about__text-block {
    color: #333333;
}

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

.page-about__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #eef;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #e0e0f0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

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

.page-about__cta-section .page-about__text-block {
    color: #f0f0f0;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 3em;
    }

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

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

    .page-about__hero-section {
        min-height: 600px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__main-title {
        font-size: 2.2em;
    }

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

    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

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

    .page-about__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-about__mission-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Videos responsive for mobile */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        overflow: hidden !important;
    }

    .page-about__video-overlay-button {
        font-size: 1em;
        padding: 10px 20px;
    }

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

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

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }

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

    .page-about__section-title {
        font-size: 1.8em;
    }
}

/* Color Contrast Fixes (if needed, based on analysis) */
.page-about__dark-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__dark-section a {
    color: #26A9E0;
}

.page-about__light-bg a {
    color: #26A9E0;
}

.page-about__cta-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__cta-section a {
    color: #ffffff;
}