/* style/about.css */

/* Custom Colors */
:root {
    --page-about-bg-color: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border-color: #2E7A4E;
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-glow-color: #57E38D;
    --page-about-gold-color: #F2C14E;
    --page-about-divider-color: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

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

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

.page-about__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--page-about-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-about__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--page-about-text-secondary);
    font-size: 1.1em;
}

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

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
    color: var(--page-about-glow-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-about__card-text {
    color: var(--page-about-text-secondary);
    font-size: 1em;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-glow-color);
    border: 2px solid var(--page-about-glow-color);
    box-shadow: 0 2px 5px rgba(87, 227, 141, 0.2);
}

.page-about__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(87, 227, 141, 0.1);
    box-shadow: 0 4px 8px rgba(87, 227, 141, 0.4);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles top padding */
    overflow: hidden;
    background-color: var(--page-about-deep-green);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of the image wrapper */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
    min-height: 400px; /* Minimum height for hero image */
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size with clamp */
    color: var(--page-about-gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

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

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

/* Mission Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--page-about-card-bg);
}

.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* History Section */
.page-about__history-section,
.page-about__products-section,
.page-about__security-support-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-color);
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__content-wrapper:nth-child(even) {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

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

.page-about__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

.page-about__text-block p {
    margin-bottom: 20px;
    color: var(--page-about-text-secondary);
}

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

.page-about__product-list li {
    background-color: var(--page-about-deep-green);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--page-about-text-main);
    font-size: 1.05em;
    border-left: 5px solid var(--page-about-glow-color);
}

.page-about__product-list li strong {
    color: var(--page-about-gold-color);
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: var(--page-about-deep-green);
}

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

.page-about__value-item {
    text-align: center;
}

/* Future Section */
.page-about__future-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-about-bg-color);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--page-about-card-bg);
}

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

.page-about__faq-item {
    background-color: var(--page-about-deep-green);
    border: 1px solid var(--page-about-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: var(--page-about-deep-green);
    border-bottom: 1px solid var(--page-about-divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--page-about-deep-green);
}

.page-about__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--page-about-text-main);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-about-glow-color);
    margin-left: 15px;
}

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

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

/* Dark sections for contrast */
.page-about__dark-section {
    color: var(--page-about-text-main);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-about__content-wrapper:nth-child(even) {
        flex-direction: column;
    }

    .page-about__image-block {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 30px;
    }

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

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

    .page-about__hero-content {
        margin-top: 30px;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
    }
}

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

    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, small decorative padding */
        padding-bottom: 40px;
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 250px; /* Adjust min-height for mobile */
    }

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__values-section,
    .page-about__products-section,
    .page-about__security-support-section,
    .page-about__future-section,
    .page-about__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-about__image-responsive {
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

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