/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Matches shared.css body background for consistency */
}

/* Header offset to prevent content from being hidden by fixed header */
/* This is applied to the first main content section or the page-content itself if no hero */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
    padding-bottom: 40px;
}

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

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for login/register */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.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.3; /* Subtle background image */
}

/* General section styling */
.page-about__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Custom font color for login/register */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

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

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

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

/* Story section */
.page-about__story-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* Mission section */
.page-about__mission-section {
    padding: 60px 0;
    background-color: #222222; /* Another dark background shade */
}

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

.page-about__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-about__grid-item {
    background-color: #2a2a2a; /* Card background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
}

.page-about__grid-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
}

.page-about__grid-text {
    font-size: 1em;
    color: #cccccc;
}

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

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.page-about__video-caption {
    margin-top: 20px;
    font-size: 1.1em;
    color: #cccccc;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 60px 0;
    background-color: #017439; /* Brand color for this section */
    color: #ffffff;
}

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

.page-about__why-choose-section .page-about__grid-item {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-about__why-choose-section .page-about__grid-title {
    color: #FFFF00;
}

.page-about__why-choose-section .page-about__grid-text {
    color: #e0e0e0;
}

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

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

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

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

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

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

.page-about__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    background-color: #333333;
    color: #cccccc;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    color: #cccccc;
}

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

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

.page-about__cta-section .page-about__text-block {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #ffffff;
}

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

/* Button styles */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid--two-columns {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 50vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__text-block,
    .page-about__grid-text,
    .page-about__faq-answer p,
    .page-about__video-caption {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__container,
    .page-about__grid-item,
    .page-about__video-wrapper,
    .page-about__faq-list,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-wrapper {
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }
    .page-about__video {
        width: 100% !important;
        height: 100% !important;
    }

    /* Buttons responsiveness */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* FAQ adjustments */
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__grid {
        grid-template-columns: 1fr;
    }
    .page-about__grid--two-columns {
        grid-template-columns: 1fr;
    }
}

/* Color Contrast Enforcement for specific sections not covered by default dark background */
.page-about__story-section,
.page-about__mission-section,
.page-about__responsible-gaming-section,
.page-about__faq-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-about__story-section .page-about__section-title,
.page-about__mission-section .page-about__section-title,
.page-about__responsible-gaming-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
    color: #FFFF00;
}

.page-about__story-section .page-about__text-block,
.page-about__mission-section .page-about__text-block,
.page-about__responsible-gaming-section .page-about__text-block,
.page-about__faq-section .page-about__text-block {
    color: #f0f0f0;
}

.page-about__story-section .page-about__grid-item,
.page-about__mission-section .page-about__grid-item,
.page-about__faq-section .page-about__grid-item {
    background-color: #2a2a2a;
    color: #f0f0f0;
}

.page-about__story-section .page-about__grid-title,
.page-about__mission-section .page-about__grid-title,
.page-about__faq-section .page-about__grid-title {
    color: #017439;
}

.page-about__story-section .page-about__grid-text,
.page-about__mission-section .page-about__grid-text,
.page-about__faq-section .page-about__grid-text {
    color: #cccccc;
}