/* style/about.css */

/* Base Styles */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF;
}

.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: #017439; /* Brand green for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__image-content {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Color Contrast Classes */
.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-about__dark-bg {
    background-color: #017439; /* Brand green background */
    color: #FFFFFF; /* White text for contrast */
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__feature-title {
    color: #FFFFFF;
}

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

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

.page-about__btn-primary {
    background-color: #C30808; /* Custom red for login/register */
    color: #FFFFFF; /* White text for contrast (overriding #FFFF00 for WCAG AA) */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand green text */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Hero Section */
.page-about__hero-section {
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bolder;
}

.page-about__hero-description {
    font-size: 1.3em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-about__hero-image {
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
    display: block;
}

/* Intro Section */
.page-about__intro-section {
    padding: 60px 20px;
    text-align: center;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 60px 20px;
}

.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: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be auto on mobile */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    text-align: justify;
}

/* History Section */
.page-about__history-section {
    padding: 60px 20px;
    text-align: center;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 60px 20px;
    text-align: center;
}

/* Video Section */
.page-about__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f5f5f5;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 30px auto;
    max-width: 900px; /* Max width for video */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-about__video-caption {
    font-style: italic;
    color: #666666;
    margin-top: 15px;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* Final CTA Section */
.page-about__final-cta {
    padding: 80px 20px;
    text-align: center;
}

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

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

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

    /* Mobile Header Offset */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-about__hero-description {
        font-size: 1.1em;
    }

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

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

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

    .page-about__feature-image {
        height: auto; /* Allow height to adjust */
    }

    /* Images responsive */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Video responsive */
    .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: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .page-about__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        margin: 20px auto !important;
    }

    .page-about__faq-question h3 {
        font-size: 1.1em;
    }
}

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

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

    .page-about__hero-section,
    .page-about__intro-section,
    .page-about__why-choose-section,
    .page-about__history-section,
    .page-about__responsible-gaming-section,
    .page-about__video-section,
    .page-about__faq-section,
    .page-about__final-cta {
        padding: 40px 15px;
    }
}