/* style/about.css */

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

/* Body background is handled by shared.css var(--background-color), which is #08160F (dark).
   So, text colors should be light. */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Ensure consistent background */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-background);
}

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

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

.page-about__hero-content {
    background: var(--color-card-bg); /* Use card background for hero content box */
    padding: 40px;
    border-radius: 12px;
    margin-top: -80px; /* Overlap slightly with image for visual effect */
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

.page-about__heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__sub-heading {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-about__highlight {
    color: var(--color-gold);
    font-weight: 600;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-about__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.1em;
    line-height: 1;
}

.page-about__introduction-section,
.page-about__products-section,
.page-about__social-responsibility-section,
.page-about__why-choose-section,
.page-about__conclusion-section {
    background-color: var(--color-background); /* Light background for these sections */
    padding: 60px 0;
}

.page-about__history-section,
.page-about__security-section,
.page-about__team-support-section,
.page-about__faq-section {
    background-color: var(--color-card-bg); /* Darker background for these sections */
    padding: 60px 0;
}

.page-about__dark-bg {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

.page-about__light-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-about__text-main {
    color: var(--color-text-main);
}

.page-about__text-secondary {
    color: var(--color-text-secondary);
}

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

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

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

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

.page-about__card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

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

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

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

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

.page-about__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

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

.page-about__product-card {
    text-align: center;
}

.page-about__product-image {
    width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.page-about__product-card .page-about__btn-secondary {
    margin-top: 20px;
}

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

.page-about__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text-main);
    list-style: none; /* Remove default marker */
    background-color: var(--color-deep-green); /* Slightly different background for summary */
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
}

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-about__hero-content {
        margin-top: -60px;
        padding: 30px;
    }
    .page-about__content-flex {
        flex-direction: column;
    }
    .page-about__content-flex--reverse {
        flex-direction: column; /* Consistent stacking for reverse order */
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens for default order */
        margin-bottom: 30px;
    }
    .page-about__content-flex--reverse .page-about__image-block {
        order: 0; /* Image appears below text for reverse order */
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile container padding and width */
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__history-section,
    .page-about__products-section,
    .page-about__security-section,
    .page-about__social-responsibility-section,
    .page-about__team-support-section,
    .page-about__why-choose-section,
    .page-about__faq-section,
    .page-about__conclusion-section,
    .page-about__card,
    .page-about__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Mobile button responsiveness */
    .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: 12px 15px !important; /* Adjust padding for smaller screens */
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    /* For button groups, stack them vertically */
    .page-about__hero-content a {
        display: block !important;
    }

    .page-about__hero-content {
        margin-top: -40px;
        padding: 20px;
    }
    .page-about__main-title {
        font-size: 2rem;
    }
    .page-about__heading {
        font-size: 1.8rem;
    }
    .page-about__sub-heading {
        font-size: 1.3rem;
    }
    .page-about__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-about__product-image {
        height: 150px; /* Smaller fixed height for mobile product images */
    }
    .page-about__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
}