/* style/about.css */

/* Base styles for the About page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Assuming dark body background, use light text */
    background-color: var(--dark-bg-1, #1a1a1a); /* Fallback if var not defined */
}

/* Section styling */
.page-about__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background-color: #017439; /* Brand color for hero background */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle behind text */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted text for title */
}

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

/* CTA Buttons in Hero */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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: #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;
}

/* Mission Section */
.page-about__mission-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1, #1a1a1a);
}

.page-about__dark-section {
    background-color: #017439; /* Brand color for dark sections */
    color: #ffffff;
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text on light background */
}

.page-about__story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__story-text {
    max-width: 800px;
    text-align: justify;
}

.page-about__story-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__story-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__feature-icon {
    width: 250px; /* Ensure minimum display size > 200px */
    height: 250px; /* Ensure minimum display size > 200px */
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center the icon */
    display: block; /* Ensure block for margin auto */
}

.page-about__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
    text-align: center;
}

.page-about__responsible-content {
    max-width: 900px;
}

.page-about__responsible-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-about__responsible-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

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

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

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

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

.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); /* Change + to X or similar */
}

.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 to show content */
    padding: 20px !important;
}

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

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

.page-about__cta-content {
    max-width: 800px;
}

.page-about__contact-cta .page-about__btn-primary {
    background-color: #C30808; /* Use register/login button color */
    color: #FFFF00;
    border-color: #C30808;
}

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

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

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

    .page-about__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }

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

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

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

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

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

    .page-about__feature-icon {
        width: 200px !important; /* Min 200px on mobile */
        height: 200px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .page-about__story-image,
    .page-about__responsible-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    /* 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__story-section,
    .page-about__responsible-gambling,
    .page-about__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

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

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}

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