/* style/about.css */

/* Common styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

.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 color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-about p {
    margin-bottom: 1em;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #017439; /* Brand primary color for hero background */
    min-height: 600px;
    overflow: hidden;
    gap: 40px;
}

.page-about__hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    color: #ffffff;
}

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

.page-about__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

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

.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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

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

.page-about__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 0;
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 80px 0;
    color: #f0f0f0;
}

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

.page-about__text-block {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__text-block p {
    color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: #121212; /* Dark background */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-about__feature-card {
    background-color: rgba(1, 116, 57, 0.1); /* Transparent brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #017439;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(1, 116, 57, 0.2);
}

.page-about__feature-icon {
    width: 100%; /* Ensure large image, not icon */
    height: auto;
    max-width: 250px; /* Adjust for card context */
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block;
}

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

.page-about__feature-card p {
    color: #e0e0e0;
}

/* Our Services Section */
.page-about__our-services {
    background-color: #1a1a1a;
    padding: 80px 0;
    color: #f0f0f0;
}

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

.page-about__service-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.page-about__service-item:hover {
    transform: translateY(-8px);
    border-color: #017439;
}

.page-about__service-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Recommended content image size */
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: block;
}

.page-about__service-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__service-item p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-about__btn-link {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-link:hover {
    background-color: #015f2d;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background-color: #121212;
    padding: 80px 0;
    color: #ffffff;
}

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

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

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

.page-about__faq-item.active {
    border-color: #017439;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__faq-title {
    font-size: 1.25em;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
}

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

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

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

.page-about__faq-answer p {
    color: #e0e0e0;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
    background-color: #017439; /* Brand primary color */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

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

.page-about__cta-bottom .page-about__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px);
    }

    .page-about__hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .page-about__hero-image-wrapper {
        justify-content: center;
    }

    .page-about__main-title {
        font-size: 3em;
    }

    .page-about__intro-text {
        font-size: 1.1em;
    }

    .page-about__cta-buttons {
        justify-content: center;
    }

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

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

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

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
        min-height: auto;
    }

    .page-about__main-title {
        font-size: 2.5em;
    }

    .page-about__intro-text {
        font-size: 1em;
    }

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

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

    .page-about__container,
    .page-about__hero-content,
    .page-about__text-block,
    .page-about__feature-card,
    .page-about__service-item,
    .page-about__faq-item,
    .page-about__cta-bottom {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .page-about__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-about__sub-title {
        font-size: 1.3em;
    }

    .page-about__hero-image,
    .page-about__feature-icon,
    .page-about__service-image,
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__mission-vision,
    .page-about__why-choose-us,
    .page-about__our-services,
    .page-about__responsible-gaming,
    .page-about__faq-section,
    .page-about__cta-bottom {
        padding: 50px 0;
    }

    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__services-grid {
        gap: 25px;
    }

    .page-about__faq-question {
        padding: 15px;
    }

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

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

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

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

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