/* style/about.css */

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

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page, on dark body background */
    line-height: 1.6;
    background-color: var(--color-background); /* Ensure consistency if body background is not set by shared */
}

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    box-sizing: border-box;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is below any potential overlay, though no overlay is allowed for text */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    max-width: 1200px; /* Max width for the image */
    margin: 0 auto;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

.page-about__hero-description {
    font-size: 1.15em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

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

.page-about__cta-button--secondary {
    background: var(--color-deep-green);
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
    box-shadow: none;
}

.page-about__cta-button--secondary:hover {
    background: var(--color-border);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(46, 122, 78, 0.4);
}

.page-about__section {
    padding: 60px 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

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

.page-about__container--centered {
    text-align: center;
}

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

.page-about__section-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__sub-title {
    font-size: clamp(1.5em, 2.8vw, 2.2em);
    color: var(--color-text-main);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-about__content-grid--reverse .page-about__text-block {
    order: 2;
}

.page-about__content-grid--reverse .page-about__image-block {
    order: 1;
}

.page-about__image-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
    object-fit: cover;
}

.page-about__image-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

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

.page-about__feature-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

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

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: var(--color-text-secondary);
    font-size: 1em;
}

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

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

.page-about__team-member-photo {
    width: 100%; /* Make photo take full width of card */
    max-width: 300px; /* Max width for individual photo */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure it's a block element for margin auto to work */
}

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

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

.page-about__team-commitment {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__faq-question::-webkit-details-marker {
    display: none; /* For summary tag */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
}

.page-about__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
    /* The following are for JS-driven accordion. For <details> native, browser handles. */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed for content, for details tag it will be handled by browser */
    padding: 0 25px 20px;
}

/* For JS-driven accordion if not using <details> */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 500px !important; /* Sufficiently large to show content */
    padding: 0 25px 20px !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid--reverse .page-about__text-block,
    .page-about__content-grid--reverse .page-about__image-block {
        order: unset; /* Reset order for smaller screens */
    }
}

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

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

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

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-about__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
    }

    .page-about__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(1.2em, 5vw, 1.8em);
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    .page-about__content-image,
    .page-about__hero-image,
    .page-about__team-member-photo {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-about__image-block,
    .page-about__image-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__features-grid,
    .page-about__team-members {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-card,
    .page-about__team-member-card {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 1.2em;
    }

    .page-about__feature-card p {
        font-size: 0.9em;
    }

    .page-about__member-name {
        font-size: 1.1em;
    }

    .page-about__member-role {
        font-size: 0.85em;
    }

    .page-about__team-commitment {
        font-size: 0.95em;
        margin-top: 30px;
    }

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

    .page-about__faq-answer {
        font-size: 0.9em;
        padding: 0 20px 15px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 0 20px 15px !important;
    }
}

/* Ensure content area images are at least 200px wide */
.page-about__text-block img,
.page-about__content-grid img,
.page-about__features-grid img,
.page-about__team-members img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* No CSS filters for images */
.page-about img {
    filter: none;
}