/* style/about.css */

/* Custom color variables based on the provided palette */
:root {
    --go789-bg: #08160F; /* Background */
    --go789-card-bg: #11271B; /* Card BG */
    --go789-text-main: #F2FFF6; /* Text Main */
    --go789-text-secondary: #A7D9B8; /* Text Secondary */
    --go789-primary: #11A84E; /* Main color */
    --go789-secondary: #22C768; /* Auxiliary color */
    --go789-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --go789-border: #2E7A4E; /* Border */
    --go789-glow: #57E38D; /* Glow */
    --go789-gold: #F2C14E; /* Gold */
    --go789-divider: #1E3A2A; /* Divider */
    --go789-deep-green: #0A4B2C; /* Deep Green */
}

.page-about {
    background-color: var(--go789-bg);
    color: var(--go789-text-main); /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space before footer */
}

/* Base section and container styles */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%; /* Ensure it takes full width up to max-width */
}

.page-about__section-title {
    font-size: 2.8em;
    color: var(--go789-text-main);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--go789-text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Card styles */
.page-about__card {
    background-color: var(--go789-card-bg);
    border: 1px solid var(--go789-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--go789-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--go789-text-main);
    margin-top: 15px;
    margin-bottom: 10px;
}

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

/* Button styles */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure it doesn't exceed container */
}

.page-about__btn-primary {
    background: var(--go789-button-gradient);
    color: var(--go789-text-main); /* Light text on green gradient */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--go789-primary);
    border: 2px solid var(--go789-primary);
    margin-left: 15px; /* Spacing for multiple buttons */
}

.page-about__btn-secondary:hover {
    background-color: var(--go789-primary);
    color: var(--go789-text-main);
    transform: translateY(-2px);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Image specific styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
    margin: 0 auto; /* Center images */
    border-radius: 8px;
}

/* HERO Section */
.page-about__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    background-color: var(--go789-deep-green); /* Darker background for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Match hero image width */
    margin-bottom: 40px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive H1 font size */
    color: var(--go789-gold); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Why Choose Section */
.page-about__why-choose {
    background-color: var(--go789-bg);
}

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

.page-about__feature-icon {
    width: 200px; /* Enforce min size for display */
    height: 200px;
    margin-bottom: 15px;
    object-fit: contain; /* Use contain to prevent cropping if aspect ratio changes */
}

/* Commitment Section */
.page-about__commitment {
    background-color: var(--go789-card-bg); /* Darker background */
    padding-bottom: 80px;
}

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

.page-about__commitment-item {
    text-align: left;
    padding: 25px;
    background-color: var(--go789-deep-green); /* Slightly different dark bg for items */
    border-radius: 10px;
    border: 1px solid var(--go789-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__commitment-subtitle {
    font-size: 1.4em;
    color: var(--go789-gold);
    margin-bottom: 15px;
}

.page-about__commitment-image {
    margin-top: 40px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Team Section */
.page-about__team {
    background-color: var(--go789-bg);
}

.page-about__team-members {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-about__team-member {
    flex: 0 0 calc(50% - 15px); /* Two columns on desktop */
    max-width: calc(50% - 15px);
    text-align: center;
}

.page-about__team-avatar {
    width: 200px; /* Enforce min size for display */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--go789-primary);
}

.page-about__team-name {
    font-size: 1.3em;
    color: var(--go789-text-main);
    margin-bottom: 5px;
}

.page-about__team-role {
    font-size: 1em;
    color: var(--go789-text-secondary);
    margin-bottom: 15px;
}

.page-about__team-bio {
    font-size: 0.9em;
    color: var(--go789-text-secondary);
}

/* Future Section */
.page-about__future {
    background-color: var(--go789-card-bg);
}

.page-about__future-image {
    margin-top: 40px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-about__faq {
    background-color: var(--go789-bg);
}

.page-about__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    color: var(--go789-text-main);
    list-style: none; /* Remove default marker */
}

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

.page-about__faq-question {
    color: var(--go789-text-main);
    flex-grow: 1;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--go789-text-secondary);
}

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

.page-about__faq-answer .page-about__btn-secondary {
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 0; /* Override default margin-left for inline buttons */
}

/* Contact CTA Section */
.page-about__contact-cta {
    background-color: var(--go789-deep-green);
    padding: 80px 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-about__team-member {
        flex: 0 0 calc(100% - 15px); /* Single column on tablet */
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 10px;
    }
    .page-about__container {
        padding: 0 10px;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile hero */
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-about__text-block {
        font-size: 1em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove left margin for stacking */
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile as well */
        min-height: 200px !important; /* Ensure min size on mobile as well */
    }
    .page-about__container,
    .page-about__section,
    .page-about__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__hero-image-wrapper {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-about__feature-icon {
        width: 200px !important; /* Enforce min size on mobile */
        height: 200px !important;
        max-width: 100% !important; /* Allow it to shrink if container is smaller */
        object-fit: contain !important;
    }
    .page-about__team-avatar {
        width: 200px !important; /* Enforce min size on mobile */
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: cover !important;
    }

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