/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__dark-section {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333;
    padding: 60px 0;
}

.page-about__main-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__subtitle {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 500px; /* Adjust as needed */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 1;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: #017439;
    color: #ffffff; /* Ensure high contrast */
    border: 2px solid #017439;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* Ensure high contrast */
    border: 2px solid #ffffff;
}

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

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

.page-about__value-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-about__value-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439;
}

.page-about__value-description {
    font-size: 1em;
    text-align: justify;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.page-about__value-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1em;
}

.page-about__value-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

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

.page-about__feature-card {
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-about__feature-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-about__feature-description {
    font-size: 1em;
    text-align: justify;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section a {
    color: #ffffff;
    text-decoration: underline;
}

.page-about__responsible-gaming-section a:hover {
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

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

.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: #ffffff;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    color: #017439; /* Brand color for FAQ question */
}

.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 20px;
    background-color: #fefefe;
    color: #555555;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: justify;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-about__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    text-align: center;
}

.page-about__contact-cta-section .page-about__btn-primary {
    margin-top: 30px;
}

/* Floating CTA Buttons */
.page-about__floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-about__floating-btn {
    background-color: #C30808; /* Specific color for Register/Login */
    color: #FFFFFF; /* Ensure high contrast */
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Keep text on one line for floating buttons */
}

.page-about__floating-btn:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-section {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__main-title {
        font-size: 2em;
        padding: 0 10px;
    }
    .page-about__subtitle {
        font-size: 1.1em;
        padding: 0 10px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        padding: 0 10px;
    }
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-about__value-card,
    .page-about__feature-card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-about__intro-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__why-choose-us-section .page-about__container,
    .page-about__responsible-gaming-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__contact-cta-section .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image {
        width: 100% !important;
        height: 100% !important; /* Maintain full height for hero */
        object-fit: cover !important;
    }
    .page-about__floating-cta {
        flex-direction: row;
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 15px;
        gap: 10px;
    }
    .page-about__floating-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
        white-space: normal; /* Allow text to wrap on small buttons */
    }
    .page-about__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__floating-btn {
        padding: 8px 10px;
        font-size: 0.85em;
    }
}