/* style/about.css */
/* 
  Body background color: #08160F (from shared.css var(--background))
  Main text color: #F2FFF6 (Text Main)
  Secondary text color: #A7D9B8 (Text Secondary)
  Card Background: #11271B
  Button Gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
  Border: #2E7A4E
  Glow: #57E38D
  Gold: #F2C14E
  Divider: #1E3A2A
  Deep Green: #0A4B2C
*/

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--background, #08160F); /* Ensure consistent background */
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--background, #08160F);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-about__hero-content {
    position: relative; /* Not absolute, to flow below image */
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-about__description {
    font-size: 1.15rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 500px;
    margin: 0 auto;
}

.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: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main, #F2FFF6);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border, #2E7A4E);
}

.page-about__btn-secondary:hover {
    background-color: var(--border, #2E7A4E);
    color: var(--text-main, #F2FFF6);
    box-shadow: 0 0 15px rgba(46, 122, 78, 0.5);
}

/* General Section Styling */
.page-about__section {
    padding: 80px 0;
    background-color: var(--background, #08160F);
}

.page-about__dark-section {
    background-color: var(--card-bg, #11271B); /* Using Card BG for darker sections */
    color: var(--text-main, #F2FFF6);
}

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

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold, #F2C14E); /* Use gold for main section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-about__section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-about__text-block--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__image-block {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

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

.page-about__value-card {
    background-color: var(--deep-green, #0A4B2C); /* Darker green for card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E);
}

.page-about__value-title {
    font-size: 1.6rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__value-description {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
}

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

.page-about__feature-card {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-icon {
    width: 100px; /* Example size, will be larger based on actual image */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded icons */
}

.page-about__feature-title {
    font-size: 1.5rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-description {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes link to bottom */
}

.page-about__link-text {
    color: var(--gold, #F2C14E);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-about__link-text:hover {
    color: var(--glow, #57E38D);
    text-decoration: underline;
}

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

.page-about__commitment-item {
    background-color: var(--deep-green, #0A4B2C);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E);
    text-align: center;
}

.page-about__commitment-title {
    font-size: 1.8rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-about__commitment-description {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 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-card {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E);
}

.page-about__team-member-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--gold, #F2C14E);
}

.page-about__team-member-name {
    font-size: 1.6rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__team-member-role {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
}

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

.page-about__faq-item {
    background-color: var(--deep-green, #0A4B2C);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border, #2E7A4E);
    overflow: hidden; /* For transition on details */
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--deep-green, #0A4B2C);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--border, #2E7A4E);
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--gold, #F2C14E);
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
    max-height: 0; /* Initial hidden state for details fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Sufficiently large for content, adjust if needed */
    padding-top: 10px;
}

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

.page-about__faq-answer a {
    color: var(--gold, #F2C14E);
    text-decoration: underline;
}

/* Contact CTA Section */
.page-about__section--contact-cta {
    padding: 60px 0;
    background-color: var(--deep-green, #0A4B2C);
    text-align: center;
}

.page-about__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-about__contact-text {
    max-width: 700px;
}

.page-about__contact-text .page-about__section-title {
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
}

.page-about__contact-text .page-about__description {
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__section {
        padding: 60px 0;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-about__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .page-about__section-subtitle {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 30px;
    }
    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 15px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-about__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain width for column layout */
        padding: 0 15px; /* Add padding to buttons container */
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        min-width: unset; /* Remove min-width for full flexibility */
    }

    .page-about__section {
        padding: 40px 0;
    }
    .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.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }
    .page-about__section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
    .page-about__text-block,
    .page-about__value-description,
    .page-about__feature-description,
    .page-about__commitment-description,
    .page-about__team-member-role,
    .page-about__faq-answer {
        font-size: 1rem;
    }

    .page-about__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100px !important; /* Keep icon size */
        height: 100px !important; /* Keep icon size */
        object-fit: contain !important;
    }

    /* FAQ specific for mobile */
    .page-about__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-about__faq-toggle {
        font-size: 1.5rem;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure all images and video containers are responsive */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__section,
.page-about__card,
.page-about__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

/* Additional responsive for images and videos in mobile */
@media (max-width: 768px) {
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video containers for mobile */
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}