/* style/about.css */

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

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background body */
    background-color: transparent; /* Body handles the actual background */
}

/* Sections with dark background from custom palette */
.page-about__dark-bg {
    background-color: var(--page-about-background);
    color: var(--page-about-text-main); /* Light text on dark background */
    padding: 60px 0;
}

/* Sections with light background (default body background is light) */
.page-about__light-bg {
    background-color: #ffffff; /* Explicitly white for contrast */
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__paragraph,
.page-about__light-bg .page-about__list,
.page-about__light-bg .page-about__dark-text {
    color: #333333; /* Ensure dark text on light background */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: var(--page-about-deep-green); /* Dark background for hero content */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit image height */
    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 {
    padding: 40px 20px;
    color: var(--page-about-text-main);
    background-color: var(--page-about-background); /* Dark background for text block below image */
    width: 100%;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-about-gold); /* Using gold for main title */
}

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

/* General Titles */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--page-about-gold); /* Using gold for section titles */
}

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

.page-about__light-bg .page-about__section-title {
    color: #333333; /* Dark text for section title on light background */
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--page-about-primary-color);
}

.page-about__dark-bg .page-about__sub-title {
    color: var(--page-about-text-main);
}

.page-about__light-bg .page-about__sub-title {
    color: #333333;
}

/* Paragraphs and Lists */
.page-about__paragraph {
    margin-bottom: 15px;
    color: inherit; /* Inherit from parent section */
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: inherit;
}

.page-about__list li {
    margin-bottom: 5px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-about__btn-secondary:hover {
    background: var(--page-about-gold);
    color: var(--page-about-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Image blocks */
.page-about__image-block {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
    margin: 0 auto;
}

/* Grid Layouts */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .page-about__grid-layout {
        grid-template-columns: 1fr;
    }
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--page-about-text-main);
}

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

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Example style */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Team Section */
.page-about__team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__team-member {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-about-text-main);
}

.page-about__team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 3px solid var(--page-about-gold);
    display: block;
}

.page-about__member-name {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--page-about-gold);
}

.page-about__member-role {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--page-about-primary-color);
}

.page-about__member-bio {
    font-size: 0.9em;
    color: var(--page-about-text-secondary);
}

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

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: #f9f9f9; /* Light background for FAQ items on light section */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text */
}

.page-about__faq-item[open] {
    background-color: #f0f0f0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    list-style: none; /* Hide default marker for summary */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: var(--page-about-primary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
    color: #555555;
}

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

/* Contact Section */
.page-about__contact-info {
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--page-about-text-main);
}

.page-about__contact-item {
    margin-bottom: 10px;
}

.page-about__link {
    color: var(--page-about-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: var(--page-about-glow);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 400px;
    }

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

    .page-about__lead-text {
        font-size: 1em;
    }

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

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__container {
        padding: 0 15px !important; /* Mobile padding */
    }

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

    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__feature-card,
    .page-about__team-member {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* 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-left: 15px; /* Add padding to button content itself */
        padding-right: 15px;
        margin-bottom: 10px; /* Spacing for stacked buttons */
    }
    
    .page-about__cta-section,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

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

    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for hero on mobile */
    }
}