.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 handled by shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: #f0f0f0; /* Light grey for better readability on dark background */
}

.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom font color for register/login, applying to hero title for emphasis */
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f8f8f8;
}

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

.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: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login font color */
    border-color: #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e02020;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.page-about__btn-secondary {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    border-color: #017439;
}

.page-about__btn-secondary:hover {
    background-color: #005a2d;
    color: #FFFF00;
    transform: translateY(-3px);
}

.page-about__dark-section {
    background-color: #2a2a2a; /* Slightly lighter dark background for contrast with body */
    padding: 60px 0;
    color: #f0f0f0;
}

.page-about__vision-mission-grid,
.page-about__tech-security-grid,
.page-about__social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__image-right,
.page-about__image-left {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-about__team-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.page-about__history-section {
    padding: 60px 0;
    color: #f0f0f0;
}

.page-about__timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #017439;
    transform: translateX(-50%);
}

.page-about__timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

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

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

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #017439;
    border-radius: 50%;
    top: 28px;
    z-index: 1;
    border: 2px solid #ffffff;
}

.page-about__timeline-item:nth-child(odd)::before {
    right: -6px;
}

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

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

.page-about__tech-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-about__tech-features li {
    background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent primary color */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    color: #f0f0f0;
}

.page-about__tech-features li strong {
    color: #FFFF00;
    margin-right: 8px;
}

.page-about__responsible-gaming-tips {
    list-style: disc;
    padding-left: 25px;
    margin: 20px 0;
    color: #f0f0f0;
}

.page-about__responsible-gaming-tips li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* Video Section */
.page-about__video-section {
    background-color: #1a1a1a; /* Dark background to match body */
    padding: 60px 0;
    text-align: center;
    color: #f0f0f0;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for video */
    margin: 30px auto;
    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%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.page-about__video-cta {
    margin-top: 30px;
}

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

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

.page-about__faq-item {
    background-color: #2a2a2a; /* Slightly lighter dark for card */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* FAQ question color */
    cursor: pointer;
    background-color: #017439; /* Primary brand color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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); /* Change + to X or - */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-about__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.6;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
    position: relative;
    text-align: center;
    padding: 80px 0;
    color: #FFFFFF;
    overflow: hidden;
}

.page-about__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00;
}

.page-about__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f8f8f8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__vision-mission-grid,
    .page-about__tech-security-grid,
    .page-about__social-grid,
    .page-about__team-content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-right,
    .page-about__image-left {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
    .page-about__timeline-item {
        width: 100%;
        left: 0;
        padding-left: 40px;
        padding-right: 20px;
        text-align: left;
    }
    .page-about__timeline-item:nth-child(odd)::before {
        right: auto;
        left: -6px;
    }
    .page-about__timeline::before {
        left: 17px; /* Adjust timeline line position */
    }
    .page-about__timeline-item::before {
        left: 12px; /* Adjust dot position */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__text-block {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size for content images */
        min-height: 200px !important; /* Ensure min size for content images */
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-bottom {
        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: 40px !important; /* Adjust if needed, but var(--header-offset) is better */
    }
}