/* style/about.css */

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

/* Base styles for the about page */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Assuming body background is dark from shared.css or bg-main */
    background-color: var(--bg-main); /* Explicitly set main background for consistency */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 500px; /* Adjust as needed */
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: auto; /* Push content to the bottom */
}

.page-about__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-about__subtitle {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: var(--bg-card);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

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

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
}

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

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

.page-about__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-about__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.page-about__card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-about__card p,
.page-about__card li {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1em;
}

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

.page-about__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__value-list {
    list-style: none;
    padding-left: 0;
}

.page-about__value-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.page-about__value-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

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

.page-about__feature-item {
    text-align: center;
}

.page-about__feature-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-about__feature-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.page-about__link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

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

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

.page-about__team-member {
    text-align: center;
}

.page-about__team-avatar {
    width: 100%;
    height: auto;
    max-width: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--gold-color);
}

.page-about__member-name {
    font-size: 1.4em;
    color: var(--text-main);
    margin-bottom: 5px;
    font-weight: 600;
}

.page-about__member-role {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

.page-about__faq-item {
    margin-bottom: 20px;
    padding: 0;
    border: none;
    box-shadow: none;
}

.page-about__faq-item summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--primary-color);
    color: var(--text-main);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.15em;
    list-style: none; /* Hide default marker */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
    background-color: var(--secondary-color);
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--text-main);
}

.page-about__faq-answer {
    padding: 20px 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

.page-about__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: var(--gold-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        padding: 15px;
    }

    .page-about__main-title {
        font-size: 3em;
    }

    .page-about__subtitle {
        font-size: 1.1em;
    }

    .page-about__section-title {
        font-size: 2.2em;
    }

    .page-about__section-description {
        font-size: 1em;
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        max-width: 95%;
    }

    .page-about__main-title {
        font-size: 2em; /* clamp will handle this but for explicit control */
    }

    .page-about__subtitle {
        font-size: 0.95em;
    }

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

    .page-about__section-title {
        font-size: 1.8em;
    }

    .page-about__section-description {
        font-size: 0.95em;
    }

    .page-about__content-grid,
    .page-about__feature-list,
    .page-about__commitment-grid,
    .page-about__team-members,
    .page-about__contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-secondary {
        margin-left: 0;
    }

    .page-about__cta-button,
    .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;
        padding-right: 15px;
    }

    .page-about__cta-group,
    .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;
    }

    .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;
    }

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

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

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

/* Ensure images don't have filter property */
.page-about img {
    filter: none; /* Explicitly remove any filter that might be inherited or accidentally applied */
}