/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherit from shared.css body, but explicitly set for clarity */
}

/* Fixed header offset for the first content section */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    background-color: #1A2B5B; /* Primary color */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* For hero image */
}

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

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Overlay effect */
    filter: none; /* Ensure no filter changes color */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-about__btn-primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #1A2B5B; /* Primary color for text */
    border: 2px solid #FFD700;
    margin: 10px;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2B5B;
}

.page-about__btn-link {
    background-color: transparent;
    color: #FFD700;
    border: none;
    padding: 10px 0;
    margin: 10px 0;
    text-align: center;
    display: block;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-link:hover {
    text-decoration: underline;
}

/* Section specific styles */
.page-about__introduction-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__future-section {
    background-color: #1e1e1e; /* Slightly lighter dark background for contrast */
    color: #f0f0f0;
    padding: 60px 0;
}

.page-about__dark-bg {
    background-color: #1A2B5B; /* Primary color */
    color: #ffffff;
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #1e1e1e; /* Slightly lighter dark background for contrast */
    color: #f0f0f0;
    padding: 60px 0;
}

.page-about__values-grid,
.page-about__milestones-grid,
.page-about__features-grid,
.page-about__responsible-measures,
.page-about__team-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-about__value-item,
.page-about__milestone-item,
.page-about__feature-card,
.page-about__measure-item,
.page-about__team-member {
    background-color: rgba(255, 255, 255, 0.08); /* Subtle card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__value-item:hover,
.page-about__feature-card:hover,
.page-about__team-member:hover {
    transform: translateY(-5px);
}

.page-about__value-title,
.page-about__milestone-year,
.page-about__feature-title,
.page-about__measure-title,
.page-about__member-name {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

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

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

.page-about__milestones-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-about__feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    filter: none; /* Ensure no filter changes color */
}

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

/* Video Section */
.page-about__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

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

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* Ensure no filter changes color */
}

/* Responsible Gaming */
.page-about__responsible-measures {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__measure-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

/* Team Section */
.page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #FFD700;
    filter: none; /* Ensure no filter changes color */
}

.page-about__member-role {
    color: #ccc;
    font-style: italic;
}

/* Future Section */
.page-about__future-section .page-about__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
    filter: none; /* Ensure no filter changes color */
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1A2B5B;
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

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

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

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

.page-about__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-about__faq-answer .page-about__btn-link {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

/* General image styling for content images */
.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    filter: none; /* Ensure no filter changes color */
}

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

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

    .page-about__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px);
    }

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

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

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

    .page-about__text-block {
        font-size: 1em;
        padding: 0 10px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        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;
        margin: 10px 0; /* Stack buttons vertically */
    }

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

    .page-about__values-grid,
    .page-about__milestones-grid,
    .page-about__features-grid,
    .page-about__responsible-measures,
    .page-about__team-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-about__value-item,
    .page-about__milestone-item,
.page-about__feature-card,
    .page-about__measure-item,
    .page-about__team-member {
        padding: 25px;
    }

    .page-about__value-title,
    .page-about__milestone-year,
    .page-about__feature-title,
    .page-about__measure-title,
    .page-about__member-name {
        font-size: 1.5em;
    }

    /* Images responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none; /* Ensure no filter changes color */
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive adaptation */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none; /* Ensure no filter changes color */
    }
    .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-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}

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