/* style/about.css */

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Renamed to avoid conflict with shared --bg-color */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    line-height: 1.6;
}

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

.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__section-title {
    font-size: 2.8em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__text-block p {
    margin-bottom: 1em;
    color: var(--text-main);
}

.page-about__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1; 
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image to make text pop */
}

.page-about__hero-content {
    position: relative; /* Relative for normal flow */
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image, but not *on* it */
    background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-about__main-title {
    font-weight: 700;
    color: var(--gold-color);
    line-height: 1.2;
    margin-bottom: 20px;
    font-size: clamp(2em, 5vw, 3.5em); /* Example clamp for responsive H1 */
}

.page-about__description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on dark gradient */
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--glow-color);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-about__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-color-page); /* Dark text on gold hover */
    transform: translateY(-3px);
}

/* Core Values Section */
.page-about__core-values {
    background-color: var(--deep-green);
    padding: 80px 0;
}

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

.page-about__value-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-about__card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
    object-fit: cover;
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__value-card p {
    color: var(--text-secondary);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--background-color-page);
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-about__feature-list li {
    background: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-main);
}

.page-about__list-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__feature-list p {
    color: var(--text-secondary);
}

/* Team & Culture Section */
.page-about__team-culture {
    background-color: var(--deep-green);
}

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

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

.page-about__content-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
    object-fit: cover;
}

/* Commitment Section */
.page-about__commitment {
    background-color: var(--background-color-page);
}

/* Contact & Future Section */
.page-about__contact-future {
    background-color: var(--deep-green); /* Use the specific custom color */
}

.page-about__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__contact-list li {
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-about__contact-list strong {
    color: var(--gold-color);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--background-color-page);
}

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

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    list-style: none; /* Hide default marker */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
}

.page-about__faq-answer p {
    margin-bottom: 1em;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }
    .page-about__grid-two-cols {
        grid-template-columns: 1fr;
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on mobile */
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-content {
        padding: 30px 15px;
        margin-top: -80px;
    }
    .page-about__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
    }
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-list li {
        padding: 20px;
    }
    .page-about__list-title {
        font-size: 1.2em;
    }
    .page-about__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-about__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__hero-content,
    .page-about__values-grid,
    .page-about__grid-two-cols,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific padding for sections if needed, overriding container padding */
    .page-about__hero-section,
    .page-about__core-values,
    .page-about__why-choose-us,
    .page-about__team-culture,
    .page-about__commitment,
    .page-about__contact-future,
    .page-about__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}