/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

.page-about__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for main title */
    line-height: 1.2;
}

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

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

.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: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

/* Custom button colors based on prompt */
.page-about__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: #017439; /* Other CTA button color */
    color: #ffffff; /* Other CTA font color */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #02944b;
    border-color: #02944b;
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

/* Section titles and descriptions */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00; /* Consistent title color */
}

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

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background as per body */
    color: #ffffff;
}

.page-about__content-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 for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text for cards on dark background */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Consistent card title color */
}

.page-about__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 60px;
    border-radius: 10px;
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly different dark background */
    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-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.08); /* Another semi-transparent white for features */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-about__feature-icon {
    width: 200px; /* Min image size 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Consistent feature title color */
}

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

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    font-size: 1.3em;
    color: #ffffff;
    margin: 0;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* For '+' to 'x' effect, or just change text content */
}

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

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

.page-about__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Contact CTA Section */
.page-about__contact-cta {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

/* General Dark Section */
.page-about__dark-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__card-title {
        font-size: 1.6em;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
}

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

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

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

    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .page-about__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-about__mission-vision,
    .page-about__why-choose-us,
    .page-about__responsible-gaming,
    .page-about__faq-section,
    .page-about__contact-cta {
        padding: 50px 0;
    }

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

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

    .page-about__card,
    .page-about__feature-item {
        padding: 25px;
    }

    .page-about__feature-icon {
        width: 200px; /* Still maintain min 200px */
        height: auto;
    }

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

    .page-about__faq-title {
        font-size: 1em;
    }

    .page-about__faq-toggle {
        font-size: 1.5em;
    }

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

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

    /* Mobile image and video responsive rules */
    .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__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .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: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}