/* style/about.css */

/* General page styles for .page-about */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Ensuring content area also respects dark background */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__section-title--dark {
    color: #000000;
}

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

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__paragraph--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__paragraph--dark {
    color: #333333;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-inline,
.page-about__btn-register,
.page-about__btn-login {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    min-width: 200px; /* Ensure buttons are not too small */
}

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

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

.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__btn-inline {
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    min-width: unset; /* Override min-width for inline buttons */
}

.page-about__btn-inline:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Specific colors for Register/Login buttons */
.page-about__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Fallback */
}

.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.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

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

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

/* Vision & Mission Section */
.page-about__vision-mission {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color for dark background */
}

.page-about__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

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

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

.page-about__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-about__card:hover {
    transform: translateY(-5px);
}

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

.page-about__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 5px;
    min-width: 200px; /* Ensure card images meet minimum size */
    min-height: 200px;
}

.page-about__card-text {
    font-size: 1em;
    color: #555555;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    background-color: #000000;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

/* Our Values Section */
.page-about__our-values {
    padding: 80px 0;
    background-color: #017439;
}

.page-about__values-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-about__value-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #ffffff;
}

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

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

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

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

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

.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.15);
}

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

.page-about__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    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 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 accommodate content */
    padding: 15px 20px 20px 20px;
}

.page-about__faq-answer .page-about__paragraph {
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Final CTA Section */
.page-about__cta-final {
    padding: 80px 0;
    background-color: #017439;
    text-align: center;
}

.page-about__cta-final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

/* Responsive Styles */
@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.2em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
    .page-about__grid-two-columns {
        grid-template-columns: 1fr;
    }
    .page-about__image-wrapper {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-register,
    .page-about__btn-login,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        min-width: unset; /* Allow buttons to shrink on mobile if needed, but max-width 100% */
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__grid-three-columns {
        grid-template-columns: 1fr;
    }
    .page-about__card {
        padding: 25px;
    }

    /* Mobile image responsive adaptations */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-wrapper,
    .page-about__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Mobile video responsive adaptations */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    }

    /* Sections padding */
    .page-about__vision-mission,
    .page-about__why-choose-us,
    .page-about__video-section,
    .page-about__our-values,
    .page-about__responsible-gambling,
    .page-about__faq-section,
    .page-about__cta-final {
        padding: 40px 0 !important;
    }
    .page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 15px 15px 15px;
    }
}

/* Color contrast enforcement - Dark body background means light text by default */
.page-about {
    color: #ffffff;
}

.page-about__dark-bg {
    color: #ffffff; /* Deep green or black background, white text */
}

.page-about__light-bg {
    background-color: #ffffff; /* White background, dark text */
    color: #333333;
}

.page-about__card--light {
    background-color: #f8f8f8; /* Light card background, dark text */
    color: #333333;
}

.page-about__faq-item {
    color: #ffffff; /* FAQ item on dark background */
}

.page-about__faq-question,
.page-about__faq-title,
.page-about__faq-toggle {
    color: #ffffff;
}
.page-about__faq-answer .page-about__paragraph {
    color: #f0f0f0;
}