/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main Color */
    --color-secondary: #22C768; /* Auxiliary Color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-deep-green: #0A4B2C;
}

/* General page styling */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--color-background); /* Default background for main content */
    padding-bottom: 40px; /* Space above footer */
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__text-block {
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-about__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
}

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

.page-about__card-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-about__text-secondary {
    color: var(--color-text-secondary);
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    overflow: hidden;
    position: relative;
}

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

.page-about__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8), var(--color-background));
    border-radius: 15px;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.page-about__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Button Styles */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: none;
}

.page-about__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* Section Backgrounds */
.page-about__light-bg {
    background-color: var(--color-background); /* Using the main background color as the "light" one in this dark theme */
    color: var(--color-text-main);
}

.page-about__dark-bg {
    background-color: var(--color-deep-green); /* Deeper green for dark sections */
    color: var(--color-text-main);
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 60px 0;
}

/* Mission Section */
.page-about__mission-section {
    padding: 60px 0;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Reverse order for content and image */
}

.page-about__content-grid--reverse > *:nth-child(odd) {
    direction: ltr; /* Content block should be ltr */
}
.page-about__content-grid--reverse > *:nth-child(even) {
    direction: ltr; /* Image block should be ltr */
}

.page-about__image-wrapper {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block for max-width */
    margin: 0 auto; /* Center image */
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
}

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

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 60px 0;
}

.page-about__cta-button {
    margin-top: 40px;
    display: block; /* Make it a block for full width on mobile */
    max-width: 400px; /* Limit max width on desktop */
    margin-left: auto;
    margin-right: auto;
}

/* Products Section */
.page-about__products-section {
    padding: 60px 0;
}

.page-about__product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 250px; /* Ensure cards have some height */
}

.page-about__product-item .page-about__card-title {
    margin-top: 10px;
}

.page-about__product-item p {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 60px 0;
}

.page-about__commitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Responsibility Section */
.page-about__responsibility-section {
    padding: 60px 0;
}

.page-about__responsibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Team Section */
.page-about__team-section {
    padding: 60px 0;
}

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

.page-about__team-member {
    padding: 20px;
}

.page-about__team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(var(--color-primary), 0.5);
}

/* Vision Section */
.page-about__vision-section {
    padding: 60px 0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
}

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

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

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

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

.page-about__faq-item[open] > .page-about__faq-question {
    background-color: var(--color-deep-green);
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

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

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

.page-about__faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__content-grid,
    .page-about__commitment-grid,
    .page-about__responsibility-grid {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset direction for smaller screens */
    }

    .page-about__content-grid--reverse > *:nth-child(odd),
    .page-about__content-grid--reverse > *:nth-child(even) {
        direction: ltr;
    }

    .page-about__hero-content {
        margin-top: -40px;
    }
}

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

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

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

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

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__image-wrapper,
    .page-about__team-avatar {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__hero-content {
        padding: 20px 15px;
        margin-top: -20px;
    }

    .page-about__main-title {
        font-size: 2.2rem;
    }

    .page-about__hero-description {
        font-size: 1rem;
    }

    /* Buttons responsiveness */
    .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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }
    .page-about__cta-button {
        max-width: 100% !important; /* Override max-width for block button */
        margin-left: 0;
        margin-right: 0;
    }

    .page-about__values-grid,
    .page-about__product-list,
    .page-about__team-grid {
        grid-template-columns: 1fr;
    }

    .page-about__product-item,
    .page-about__value-card,
    .page-about__team-member {
        padding: 20px;
    }

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

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