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

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

.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);
    z-index: 2;
}

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

.page-about__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-about__section {
    padding: 80px 20px;
    color: #ffffff; /* Default for dark body */
}

.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

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

.page-about__story-section .page-about__section-title,
.page-about__why-choose-us .page-about__section-title,
.page-about__cta-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
    color: #017439;
}

.page-about__story-section .page-about__section-description,
.page-about__why-choose-us .page-about__section-description,
.page-about__cta-section .page-about__section-description,
.page-about__faq-section .page-about__section-description {
    color: #333333;
}

.page-about__story-section .page-about__text-block p {
    color: #333333;
}

.page-about__story-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-about__story-section .page-about__text-block p {
    color: #333333;
}

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

.page-about__image--rounded {
    border-radius: 15px;
}

.page-about__mission-section {
    background-color: #017439;
    color: #ffffff;
}

.page-about__mission-section .page-about__section-title {
    color: #ffffff;
}

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

.page-about__card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-about__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-about__card p {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-about__values-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #f0f0f0;
}

.page-about__values-list li::before {
    content: '✓';
    color: #FFFF00; /* Highlight color */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-about__why-choose-us {
    background-color: #ffffff;
    color: #333333;
}

.page-about__why-choose-us .page-about__section-title,
.page-about__why-choose-us .page-about__feature-title {
    color: #017439;
}

.page-about__why-choose-us .page-about__section-description,
.page-about__why-choose-us .page-about__feature-item p {
    color: #333333;
}

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

.page-about__feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-about__feature-item p {
    font-size: 0.95em;
    color: #555555;
}

.page-about__responsible-gaming-section {
    background-color: #017439;
    color: #ffffff;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: #ffffff;
}

.page-about__responsible-gaming-section .page-about__text-block p {
    color: #f0f0f0;
}

.page-about__cta-section {
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

.page-about__cta-section .page-about__section-title {
    color: #017439;
}

.page-about__cta-section .page-about__section-description {
    color: #333333;
}

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

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

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

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

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

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

.page-about__faq-section {
    background-color: #f8f8f8;
    color: #333333;
}

.page-about__faq-section .page-about__section-title {
    color: #017439;
}

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    color: #017439;
    font-weight: bold;
    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;
    color: #555555;
}

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

.page-about__faq-answer p {
    margin: 0;
    color: #555555;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__section {
        padding: 50px 15px;
    }

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

    .page-about__section-description {
        margin-bottom: 30px;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-about__image-block {
        order: -1; /* Image first on mobile */
    }

    .page-about__grid-3-columns,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card,
    .page-about__feature-item {
        padding: 25px;
    }

    .page-about__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
    }

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

    /* Mobile image and video responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__feature-item,
    .page-about__faq-item,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .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__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-about__cta-buttons > * {
        width: 100% !important;
    }

    .page-about__text-center {
        padding-left: 15px;
        padding-right: 15px;
    }
}