/* style/about.css */

/* Base styles for the About Us page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* body handles background */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height for better visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

.page-about__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #8B0000; /* Darker text for contrast on gold */
    border: 2px solid #FFD700;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: #1a1a1a; /* Dark background from body */
    color: #f0f0f0;
    padding: 60px 0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: #8B0000; /* Auxiliary color background */
    color: #ffffff;
    padding: 60px 0;
}

.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(0, 0, 0, 0.4); /* Slightly transparent dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #f0f0f0;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
}

.page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-about__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

/* Game Categories Section */
.page-about__game-categories {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0;
}

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

.page-about__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Lighter transparent background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #f0f0f0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px; /* Ensure cards have some height */
}

.page-about__game-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.page-about__game-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-about__game-description {
    font-size: 0.95em;
    color: #cccccc;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background-color: #8B0000;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-about__responsible-gaming .page-about__btn-secondary {
    margin-top: 20px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0;
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    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-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
}

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

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

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

.page-about__faq-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: underline;
    font-weight: bold;
    margin-top: 10px;
}

.page-about__faq-link:hover {
    color: #e6c200;
}

/* CTA Section */
.page-about__cta-section {
    background-color: #FFD700; /* Main brand color background */
    color: #8B0000; /* Dark text for contrast */
    padding: 80px 0;
    text-align: center;
}

.page-about__cta-content .page-about__section-title {
    color: #8B0000; /* Dark title on gold background */
}

.page-about__cta-content .page-about__text-block {
    color: #8B0000;
    font-size: 1.2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-lg {
    padding: 18px 40px;
    font-size: 1.2em;
    margin-top: 30px;
    background-color: #8B0000; /* Dark button on gold background */
    color: #FFD700; /* Gold text on dark button */
    border-color: #8B0000;
}

.page-about__btn-lg:hover {
    background-color: #6a0000;
    border-color: #6a0000;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile responsive images */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile responsive videos (if any) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile responsive containers for images/videos/buttons */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .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 !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Adjust padding for hero section on mobile */
    .page-about__hero-section {
        height: 500px; /* Adjust height for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
    }

    .page-about__main-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__text-block {
        font-size: 0.95em;
    }

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

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

    .page-about__feature-card {
        padding: 20px;
    }

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

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

    .page-about__faq-answer {
        padding: 0 15px; /* Adjust padding for mobile */
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important; /* Adjusted for mobile */
    }

    /* Content area images must be at least 200px wide */
    .page-about__content-area img,
    .page-about__feature-card img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

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