/* style/about.css */

/* --- General Page Styling --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--background, #FFFFFF); /* Inherit from shared, default white */
}

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

.page-about__container--reversed {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

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

.page-about__content-block {
    flex: 1;
    padding: 20px;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    background-color: #017439; /* Dark brand color for hero background */
    overflow: hidden; /* Prevent image overflow */
}

.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.3; /* Subtle overlay for text readability */
    filter: none; /* Ensure no color filters */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

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

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

/* --- Buttons --- */
.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;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* Important for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
    margin: 10px;
}

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

.page-about__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
    margin: 10px;
}

.page-about__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

/* --- Section Specific Styling --- */
.page-about__intro-section,
.page-about__history-section,
.page-about__responsible-gaming-section,
.page-about__cta-section {
    background-color: #ffffff; /* Light background for these sections */
    color: #333333;
    padding: 60px 0;
}

.page-about__mission-values-section,
.page-about__security-section,
.page-about__customer-support-section,
.page-about__faq-section {
    background-color: #017439; /* Dark background for these sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-about__mission-values-section .page-about__section-title,
.page-about__mission-values-section .page-about__sub-title,
.page-about__security-section .page-about__section-title,
.page-about__customer-support-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
    color: #ffffff; /* White titles on dark background */
}

.page-about__values-list,
.page-about__security-features,
.page-about__responsible-gaming-tools {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__values-item,
.page-about__security-item,
.page-about__responsible-gaming-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-about__values-item::before,
.page-about__security-item::before,
.page-about__responsible-gaming-item::before {
    content: "✅"; /* Checkmark icon */
    font-size: 1.2em;
    line-height: 1;
    color: #FFFF00; /* Yellow for visibility */
}

/* --- Timeline Styling --- */
.page-about__timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-about__timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #017439;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}

.page-about__timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #C30808;
    border: 4px solid #ffffff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.page-about__timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.page-about__timeline-item:nth-child(even)::after {
    left: -10px;
}

.page-about__timeline-year {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__timeline-description {
    font-size: 1em;
    color: #555555;
}

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

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no color filters */
    position: relative;
    z-index: 1;
}

.page-about__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Higher than video controls */
    cursor: pointer;
}

/* --- FAQ Section --- */
.page-about__faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    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;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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 */
    padding: 20px;
    padding-top: 0;
}

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


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__container--reversed {
        flex-direction: column;
    }
    .page-about__content-block,
    .page-about__image-block {
        padding: 10px;
    }
}

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

    /* Fixed header spacing for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no color filters */
    }

    /* Video responsive */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no color filters */
    }

    /* Container responsive for images/videos */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsive */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Timeline responsive */
    .page-about__timeline::after {
        left: 30px;
    }
    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .page-about__timeline-item::after {
        left: 20px;
    }
    .page-about__timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    .page-about__timeline-item:nth-child(even) {
        left: 0;
    }
}