/* style/about.css */

/* Custom colors from prompt */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Auxiliary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Page background */
    --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 dark background */
    background-color: var(--background-color-page);
    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: 32px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--glow-color);
    border-radius: 2px;
}

.page-about__section-title--white {
    color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden;
    background-color: var(--deep-green); /* Fallback background for hero */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-bottom: 40px;
}

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

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

.page-about__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    box-sizing: border-box;
    z-index: 1; /* Ensure text is above any potential background layers */
    color: var(--text-main);
}

.page-about__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color); /* Highlight H1 */
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

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

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

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

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

.page-about__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--background-color-page);
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-about__grid-item {
    background-color: var(--deep-green);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__grid-image {
    width: 100%;
    max-width: 400px; /* Recommended size for content images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
}

.page-about__grid-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__grid-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-about__values-item {
    background-color: var(--deep-green);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-about__values-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 8px;
}

.page-about__values-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--deep-green);
    color: var(--text-main);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: var(--border-color);
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--glow-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: var(--card-bg); /* Slightly different background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-secondary);
    font-size: 15px;
}
.page-about__faq-answer p {
    margin: 0;
}
.page-about__faq-answer a {
    color: var(--glow-color);
    text-decoration: underline;
}

/* CTA Section */
.page-about__cta-section {
    padding: 60px 0;
    background: var(--deep-green);
    text-align: center;
}

.page-about__cta-container {
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-about__cta-buttons--center {
    justify-content: center;
}

/* General image styling to ensure responsiveness and minimum size */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 20px 30px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }
    .page-about__intro-text,
    .page-about__cta-description {
        font-size: 17px;
    }
    .page-about__grid {
        grid-template-columns: 1fr; /* Stack grid items on tablets */
    }
    .page-about__values-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-about__values-heading {
        font-size: 20px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
}


@media (max-width: 768px) {
    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-about__hero-content {
        padding: 30px 15px;
    }
    .page-about__main-title {
        font-size: clamp(22px, 7vw, 36px); /* Even smaller H1 for mobile */
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General containers and sections */
    .page-about__container,
    .page-about__values-section,
    .page-about__commitment-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__cta-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__grid-image {
        max-width: 100% !important; /* Ensure grid images are fully responsive */
    }

    /* Values Section */
    .page-about__grid-item {
        padding: 20px;
    }
    .page-about__grid-title {
        font-size: 20px;
    }

    /* Commitment Section */
    .page-about__values-list {
        grid-template-columns: 1fr; /* Stack list items */
    }
    .page-about__values-heading {
        font-size: 18px;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 15px;
    }
    .page-about__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
        font-size: 14px;
    }

    /* CTA Section */
    .page-about__cta-container {
        padding: 30px 15px;
    }
    .page-about__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
}