/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Light text on dark body background */
    background-color: var(--color-background); /* Ensure consistency if body bg is overridden */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--color-deep-green); /* Example: a darker green for hero section */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper does not overflow */
    margin-bottom: 30px; /* Space between image and text content */
    overflow: hidden; /* Prevent image overflow if aspect ratio is off */
}

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

.page-about__hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    min-width: 180px; /* Minimum width for buttons */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White text on green button */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--color-button-gradient-start); /* Green text */
    border: 2px solid var(--color-button-gradient-start); /* Green border */
}

.page-about__btn-secondary:hover {
    background: var(--color-button-gradient-start);
    color: var(--color-text-main); /* White text on hover */
    transform: translateY(-3px);
}

/* General Section Styles */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

.page-about__subsection-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left; /* Reset text alignment for content */
}

.page-about__text-block {
    margin-bottom: 30px;
    font-size: 1.05em;
    color: var(--color-text-secondary);
}

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

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
}

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

.page-about__list li {
    background-color: var(--color-deep-green); /* Darker background for list items */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid var(--color-primary);
    border-radius: 5px;
    color: var(--color-text-main);
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

.page-about__list li strong {
    color: var(--color-gold);
    margin-right: 8px;
}

/* Dark Section Specific Styles */
.page-about__dark-section {
    background-color: var(--color-card-bg); /* Darker background for these sections */
    color: var(--color-text-main);
}

.page-about__dark-section .page-about__section-title {
    color: var(--color-gold);
}

.page-about__dark-section .page-about__subsection-title {
    color: var(--color-glow);
}

.page-about__dark-section .page-about__text-block p {
    color: var(--color-text-secondary);
}

/* Why Choose Us Grid */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: var(--color-deep-green); /* Card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have a minimum height */
    color: var(--color-text-main);
}

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

.page-about__card p {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__image-card {
    width: 100%;
    height: auto;
    max-height: 200px; /* Limit height of images in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__btn-text {
    color: var(--color-glow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: auto; /* Push button to the bottom of the card */
}

.page-about__btn-text:hover {
    color: var(--color-gold);
}

/* Products and Services Grid */
.page-about__product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 30px;
}

.page-about__product-item {
    background-color: var(--color-deep-green);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__product-title {
    font-size: 1.3em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__product-item p {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Social Responsibility */
.page-about__social-responsibility .page-about__btn-primary {
    margin-top: 20px;
}

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

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

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

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

.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;
    margin-right: 15px;
    color: var(--color-gold);
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar on open */
}

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

.page-about__faq-answer p {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

/* Ensure FAQ buttons are styled correctly */
.page-about__faq-answer .page-about__btn-text {
    display: inline-block;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-about__description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: clamp(1.6em, 4vw, 2.4em);
    }
    .page-about__subsection-title {
        font-size: clamp(1.3em, 3vw, 1.8em);
    }
}

@media (max-width: 768px) {
    /* General mobile padding for main content sections */
    .page-about__section,
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em) !important;
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* Buttons responsive */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
    }

    .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 20px; /* Adjust padding for mobile */
        font-size: 1em;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile if possible */
        min-height: 200px !important;
    }

    /* Card images */
    .page-about__image-card {
        max-height: none !important; /* Allow card images to take more height if needed */
        min-height: 200px !important;
    }

    /* Ensure content area images maintain minimum size */
    .page-about__image-content {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Grid layout for mobile */
    .page-about__grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-about__card {
        min-height: auto; /* Allow cards to adjust height */
        padding: 25px;
    }

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

    .page-about__card p {
        font-size: 0.95em;
    }

    .page-about__list li {
        font-size: 0.95em;
        padding: 12px 15px;
    }

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

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

/* Ensure no filter is used for images */
.page-about img {
    filter: none !important;
}

/* Content area image CSS dimensions lower bound enforcement */
.page-about__image-content,
.page-about__image-card,
.page-about__hero-image {
    /* These rules ensure images are not styled smaller than 200px. */
    /* If width/height attributes are set, CSS should respect them or use responsive scaling. */
    /* max-width: 100%; height: auto; will generally handle this. */
    /* Specific rules like width: 80px; height: 80px; are explicitly forbidden. */
}