/* style/about.css */

/* Base styles for the page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333); /* Default text color, assuming light body bg */
    background-color: var(--bg-color, #F5F7FA); /* Default background color */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    background-color: #E53935; /* Primary brand color for hero background */
    padding-bottom: 40px; /* Space below content */
}

.page-about__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 20px 20px 0;
    color: #ffffff; /* White text on primary brand color background */
    z-index: 1; /* Ensure content is above image if there's any layering, though we follow strict above/below rule */
}

.page-about__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.page-about__description {
    font-size: clamp(1em, 2vw, 1.2em);
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-about__cta-button:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
}

.page-about__section--mission {
    background-color: var(--card-bg, #FFFFFF); /* Example: white background */
}

.page-about__section--values {
    background-color: #E53935; /* Primary brand color */
    color: #ffffff;
}

.page-about__section--experience {
    background-color: var(--bg-color, #F5F7FA); /* Light background */
}

.page-about__section--security {
    background-color: var(--card-bg, #FFFFFF); /* White background */
}

.page-about__section--team {
    background-color: var(--bg-color, #F5F7FA); /* Light background */
}

.page-about__section--join {
    background-color: #E53935; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

.page-about__section--faq {
    background-color: var(--card-bg, #FFFFFF); /* White background */
}

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

.page-about__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main, #333333);
}

.page-about__section--values .page-about__section-title,
.page-about__section--join .page-about__section-title {
    color: #ffffff;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main, #333333);
}

.page-about__section--values .page-about__text-block,
.page-about__section--join .page-about__text-block {
    color: #f0f0f0;
}

/* Image Specifics */
.page-about__image-container {
    margin: 40px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__value-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on red */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

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

.page-about__card-text {
    font-size: 1em;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-about__cta-button--secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    margin-top: 30px;
}

.page-about__cta-button--secondary:hover {
    background: #FF5A4F;
    color: #ffffff;
    border-color: #FF5A4F;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #333333);
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    list-style: none; /* Remove default marker */
    color: var(--text-main, #333333);
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935; /* Primary brand color for toggle */
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-main, #333333);
}

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

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

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

    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-about__description {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
        display: block !important; /* Ensure full width on mobile */
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 20px;
    }

    .page-about__text-block {
        font-size: 1em;
    }

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

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

    .page-about__card-title {
        font-size: 1.3em;
    }

    /* Image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__image-container,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* FAQ responsiveness */
    .page-about__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }

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

    /* Fixed header spacing for first section */
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6em, 9vw, 2.2em);
    }
    .page-about__description {
        font-size: clamp(0.85em, 4vw, 1em);
    }
}