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

/* Base styles for the page content, assuming body has a dark background (--page-bg) */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--page-bg); /* Ensure consistency if body background is not fully propagated */
    line-height: 1.6;
    font-size: 16px;
}

/* Ensure padding-top for the first section, but not the full header offset */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 20px 0 60px 0; /* Adjust padding-top for first section, small top padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--deep-green); /* Example background for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper is full width */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
    max-width: 960px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__hero-description {
    font-size: 1.1em;
    color: var(--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;
    margin-top: 30px;
}

.page-about__cta-buttons--center {
    margin-top: 40px;
}

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

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

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color); /* Primary color text on transparent button */
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

/* General Section Styles */
.page-about__section {
    padding: 60px 0;
    box-sizing: border-box;
    background-color: var(--page-bg); /* Default background for sections */
}

.page-about__dark-section {
    background-color: var(--deep-green); /* Darker background for specific sections */
    color: var(--text-main);
}

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

.page-about__text-center {
    text-align: center;
}

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

.page-about__sub-heading {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

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

.page-about__paragraph a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-about__paragraph a:hover {
    text-decoration: underline;
}

.page-about__note {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 20px;
}

.page-about__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__flex-container--reverse {
    flex-direction: row-reverse;
}

.page-about__content-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* Allow flex item to shrink */
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

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

.page-about__card {
    background-color: var(--card-bg); /* Card background */
    color: var(--text-main); /* Light text on dark card */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-about__card-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

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

.page-about__list-item::before {
    content: '✅'; /* Green checkmark */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.1em;
    top: 0;
}

/* FAQ Section */
.page-about__faq-section {
    padding-bottom: 80px;
}

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

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

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

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

.page-about__faq-item summary:hover {
    background-color: rgba(var(--primary-color), 0.1); /* Use rgba for hover effect */
}

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

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

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

/* Responsive styles */
@media (max-width: 992px) {
    .page-about__flex-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__flex-container--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

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

    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

    .page-about__heading {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }

    .page-about__sub-heading {
        font-size: clamp(1.2em, 3.5vw, 1.6em);
    }
}

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

    .page-about__hero-section {
        padding: 10px 0 40px 0; /* Smaller top padding for mobile */
    }

    .page-about__hero-image {
        min-height: 200px; /* Adjust min height for mobile hero */
    }

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

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__card {
        padding: 25px;
    }

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

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