/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-about__section-title {
    font-size: 3em;
    color: #017439; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-about__text-block p {
    margin-bottom: 1em;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    min-height: 600px;
}

.page-about__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333;
}

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

.page-about__hero-title {
    font-size: 3.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

.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.2; /* Slightly dim the image to make text readable */
}

/* Buttons */
.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;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    transform: translateY(-2px);
}

/* Sections */
.page-about__vision-mission-section,
.page-about__why-choose-us-section,
.page-about__team-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
}

/* Grid Layouts */
.page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__image-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: block;
}

/* Why Choose Us Features */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for feature titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-card p {
    font-size: 1em;
    line-height: 1.7;
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

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

.page-about__faq-answer p {
    margin-top: 15px;
    margin-bottom: 15px;
}

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

.page-about__faq-item.active .page-about__faq-question {
    background-color: #e6f7ed;
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 100px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 60px 15px;
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .page-about__grid,
    .page-about__grid--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-about__grid--reverse .page-about__image-block {
        order: 1; /* Image first on mobile for reversed grid */
    }
    .page-about__grid--reverse .page-about__text-block {
        order: 2;
    }
    .page-about__vision-mission-section,
    .page-about__why-choose-us-section,
    .page-about__team-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 60px 0;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-block,
    .page-about__text-block,
    .page-about__feature-card,
    .page-about__faq-item,
    .page-about__faq-question,
    .page-about__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Video section padding on mobile */
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}