/* style/about.css */

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

/* General Page Styles */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--pp777x-text-main); /* Default text color for dark background */
    background-color: var(--pp777x-background);
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--pp777x-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--pp777x-text-main);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body already handles header-offset */
    background: var(--pp777x-background);
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
}

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

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--pp777x-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-about__subtitle {
    font-size: 1.3rem;
    color: var(--pp777x-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--pp777x-primary);
    border: 2px solid var(--pp777x-primary);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

.page-about__center-cta {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
    background: var(--pp777x-background);
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: var(--pp777x-card-bg); /* Darker green for contrast */
    color: var(--pp777x-text-main);
}

.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: var(--pp777x-deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pp777x-border);
    box-sizing: border-box;
}

.page-about__value-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px; /* Minimum size requirement */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__card-text {
    font-size: 1rem;
    color: var(--pp777x-text-secondary);
    line-height: 1.6;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background: var(--pp777x-background);
}

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

.page-about__why-item {
    background: var(--pp777x-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pp777x-border);
    box-sizing: border-box;
}

.page-about__why-title {
    font-size: 2rem;
    color: var(--pp777x-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__why-text {
    font-size: 1.1rem;
    color: var(--pp777x-text-secondary);
    line-height: 1.7;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 80px 0;
    background: var(--pp777x-deep-green);
}

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

.page-about__commitment-item {
    text-align: center;
    background: var(--pp777x-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pp777x-border);
    box-sizing: border-box;
}

.page-about__commitment-image {
    width: 400px; 
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__commitment-title {
    font-size: 2rem;
    color: var(--pp777x-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__commitment-text {
    font-size: 1.1rem;
    color: var(--pp777x-text-secondary);
    line-height: 1.7;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: var(--pp777x-card-bg);
}

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

.page-about__team-member {
    background: var(--pp777x-deep-green);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pp777x-border);
    box-sizing: border-box;
}

.page-about__member-photo {
    width: 250px; /* Minimum size requirement */
    height: 250px; /* Minimum size requirement */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--pp777x-primary);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__member-name {
    font-size: 1.8rem;
    color: var(--pp777x-gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-about__member-role {
    font-size: 1.1rem;
    color: var(--pp777x-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__member-bio {
    font-size: 1rem;
    color: var(--pp777x-text-secondary);
    line-height: 1.6;
}

/* Future Section */
.page-about__future-section {
    padding: 80px 0;
    background: var(--pp777x-background);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background: var(--pp777x-deep-green);
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pp777x-gold);
    background: var(--pp777x-card-bg);
    user-select: none;
    list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-about__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--pp777x-primary);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--pp777x-text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 1000px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

/* Color Contrast Adjustments for light-bg sections */
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__text-block,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg .page-about__card-text {
    color: var(--pp777x-text-main);
}

.page-about__text-contrast-fix {
    color: var(--pp777x-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px;
    }

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

    .page-about__hero-image {
        height: 300px;
        margin-bottom: 20px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-about__subtitle {
        font-size: 1rem;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        margin: 0 auto; /* Center buttons if flex-direction column */
    }
    
    .page-about__center-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 1rem;
    }

    .page-about__values-grid,
    .page-about__why-grid,
    .page-about__commitment-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-about__value-icon,
    .page-about__commitment-image,
    .page-about__member-photo {
        width: 200px;
        height: 200px;
    }

    .page-about__card-title,
    .page-about__why-title,
    .page-about__commitment-title,
    .page-about__member-name {
        font-size: 1.5rem;
    }

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

    .page-about__faq-toggle {
        font-size: 1.5rem;
    }

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

    /* Mobile image and container responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__values-section,
    .page-about__why-choose-us,
    .page-about__commitment-section,
    .page-about__team-section,
    .page-about__future-section,
    .page-about__faq-section,
    .page-about__cta-buttons,
    .page-about__center-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Specific override for hero-image-wrapper to allow image to span full width of its parent, which itself has padding */
    .page-about__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-image {
        border-radius: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        padding-top: 10px;
    }

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 0.95rem;
        padding: 10px 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}