/* style/about.css */

/* --- General Page Styles --- */
.page-about {
    background-color: var(--background-color, #08160F); /* Fallback to Deep Green if var not defined */
    color: var(--text-main, #F2FFF6); /* Main text color on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-about__text-block strong {
    color: var(--text-main, #F2FFF6);
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Ensure image wrapper does not exceed max-width */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for H1 as per instructions */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -1px;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button does not exceed container width */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

.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: rgba(46, 122, 78, 0.2); /* Semi-transparent border color */
    border-color: var(--glow, #57E38D);
    transform: translateY(-2px);
}

/* --- Introduction Section --- */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
}

.page-about__dark-section {
    background-color: var(--background-color, #08160F);
}

.page-about__image-text-group {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.page-about__image-text-group--reverse {
    flex-direction: row-reverse;
}

.page-about__image-text-group .page-about__content-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__image-text-group .page-about__text-content {
    flex: 1;
    min-width: 300px;
}

/* --- Core Values Section --- */
.page-about__core-values-section {
    padding: 80px 0;
    background-color: var(--card-bg, #11271B); /* Use card background for this section */
}

.page-about__value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__card {
    background-color: var(--background-color, #08160F); /* Inner card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    transition: transform 0.3s ease;
}

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

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

.page-about__card p {
    color: var(--text-secondary, #A7D9B8);
}

/* --- Why Choose Section --- */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-about__reason-item {
    text-align: center;
    padding: 30px;
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--divider, #1E3A2A);
}

.page-about__reason-icon {
    width: 100%;
    max-width: 200px; /* Smallest allowed image size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__reason-title {
    font-size: 1.4em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__reason-item p {
    color: var(--text-secondary, #A7D9B8);
}

.page-about__cta-buttons--center {
    margin-top: 40px;
}

/* --- Future Vision Section --- */
.page-about__future-vision-section {
    padding: 80px 0;
    background-color: var(--card-bg, #11271B);
}

.page-about__vision-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.page-about__vision-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__vision-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__vision-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary, #A7D9B8);
}

.page-about__vision-list li::before {
    content: '★'; /* Star icon */
    color: var(--gold, #F2C14E);
    position: absolute;
    left: 0;
    top: 0;
}

.page-about__vision-list li strong {
    color: var(--text-main, #F2FFF6);
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-about__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg, #11271B);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--divider, #1E3A2A);
    background-color: var(--deep-green, #0A4B2C); /* Slightly darker when open */
}

.page-about__faq-question:hover {
    background-color: var(--deep-green, #0A4B2C);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

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

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-about__btn-link {
    color: var(--glow, #57E38D); /* Use glow color for links */
    text-decoration: underline;
    font-weight: bold;
}

.page-about__btn-link:hover {
    color: var(--text-main, #F2FFF6);
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }

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

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-about__introduction-section,
    .page-about__core-values-section,
    .page-about__why-choose-section,
    .page-about__future-vision-section,
    .page-about__faq-section {
        padding: 60px 0;
    }

    .page-about__image-text-group,
    .page-about__image-text-group--reverse,
    .page-about__vision-content {
        flex-direction: column;
        align-items: center;
    }

    .page-about__image-text-group .page-about__content-image,
    .page-about__vision-image {
        max-width: 100%;
    }
}

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

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-about__description {
        font-size: 1em;
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    /* Mobile image and video responsiveness */
    .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;
    }

    .page-about__image-text-group .page-about__content-image,
    .page-about__vision-image,
    .page-about__reason-icon {
        max-width: 100% !important; /* Ensure content images are also responsive */
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-about__introduction-section,
    .page-about__core-values-section,
    .page-about__why-choose-section,
    .page-about__future-vision-section,
    .page-about__faq-section,
    .page-about__card,
    .page-about__reason-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-about__image-text-group,
    .page-about__image-text-group--reverse,
    .page-about__vision-content {
        gap: 30px;
    }

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

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