/* style/about.css */

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

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
    margin-bottom: 40px;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px 60px;
    position: relative; /* Ensure content is above image filter but not overlaying */
    z-index: 10;
    margin-top: -80px; /* Pull content up slightly, but not over image */
}

.page-about__main-title {
    font-weight: bold;
    color: var(--gold-color);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-about__intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--btn-gradient);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

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

/* --- General Section Styles --- */
.page-about__section {
    padding: 60px 0;
    background-color: var(--bg-primary);
}

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

.page-about__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    position: relative;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    color: var(--text-main);
    line-height: 1.7;
}

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__sub-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__image-block {
    flex: 1;
    text-align: center;
}

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

.page-about__full-width-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

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

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

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

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Join Community Section --- */
.page-about__join-community-section {
    text-align: center;
    padding: 80px 0;
}

.page-about__text-center {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-about__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

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

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

.page-about__faq-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

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

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* For details tag, the answer is shown/hidden by default */
.page-about__faq-item[open] .page-about__faq-question .page-about__faq-toggle {
    content: '−';
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-about__section-title {
        font-size: 2rem;
    }

    .page-about__sub-title {
        font-size: 1.6rem;
    }

    .page-about__intro-text, .page-about__text-center {
        font-size: 1.05rem;
    }
}

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

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        padding: 0 15px 40px;
        margin-top: -60px;
    }

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

    .page-about__intro-text {
        font-size: 1rem;
    }

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

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

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

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

    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-grid--reverse {
        flex-direction: column;
    }

    .page-about__image-block {
        order: -1; /* Image appears above text on mobile for non-reversed grid */
    }

    .page-about__content-grid--reverse .page-about__image-block {
        order: -1; /* Image appears above text on mobile for reversed grid too */
    }

    .page-about__text-block, .page-about__image-block {
        flex: none;
        width: 100%;
    }

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

    .page-about__image-wrapper,
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .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__feature-card {
        padding: 20px;
    }

    .page-about__card-image {
        height: 180px;
    }

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

    .page-about__faq-answer {
        font-size: 0.95rem;
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .page-about__section-title {
        font-size: 1.6rem;
    }

    .page-about__sub-title {
        font-size: 1.4rem;
    }

    .page-about__cta-button {
        font-size: 0.95rem;
    }
}