/* style/about.css */

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

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439; /* Primary color for titles */
    font-weight: bold;
}

/* Color schemes based on background */
.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-about__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 0; /* No padding here, video covers full width */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
    text-align: center;
    overflow: hidden; /* Ensure video doesn't overflow */
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

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

.page-about__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate video is clickable */
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Use specific font color for login/register related titles if applicable, otherwise white */
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    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;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.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: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-about__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Content Grid for text and image */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__content-grid:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text on even sections */
}

.page-about__text-block {
    flex: 1;
}

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

.page-about__image-block--center {
    justify-content: center;
    text-align: center;
}

.page-about__image-block--left {
    justify-content: flex-start;
}

.page-about__image-block--right {
    justify-content: flex-end;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* No filter allowed */
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #FFFFFF;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-about__value-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight title with accent color */
}

/* Journey and Security Sections */
.page-about__journey-content,
.page-about__security-content,
.page-about__experience-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__journey-content p,
.page-about__security-content p,
.page-about__experience-content p {
    margin-bottom: 20px;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent on dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for question */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

/* For details tag */
.page-about__faq-item summary {
    list-style: none;
    /* Hide default marker for Chrome/Safari */
    -webkit-details-marker: none;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    transition: max-height 0.5s ease-in;
}

/* CTA Section */
.page-about__cta-section {
    background-color: #FFFFFF;
    color: #333333;
    padding: 80px 0;
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__cta-title {
        font-size: 2.2em;
    }
}

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

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
    }

    .page-about__hero-content {
        padding: 20px 15px;
    }

    .page-about__hero-title {
        font-size: 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 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-grid:nth-child(even) {
        flex-direction: column; /* Keep consistent column order on mobile */
    }

    .page-about__image-block,
    .page-about__image-block--center,
    .page-about__image-block--left,
    .page-about__image-block--right {
        order: -1; /* Image appears before text on mobile by default */
        margin-bottom: 20px;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-about__hero-video-wrapper,
    .page-about__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__value-card {
        padding: 20px;
    }

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

    .page-about__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-about__faq-answer {
        padding: 0 15px 15px;
    }

    .page-about__cta-section {
        padding: 60px 0;
    }

    .page-about__cta-title {
        font-size: 1.8em;
    }

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

    /* Ensure all containers with images/videos/buttons are constrained */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-content,
    .page-about__hero-cta-buttons,
    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__faq-list,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

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