/* style/about.css */

/* Custom Variables (from provided color scheme) */
:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;

    /* Button gradient */
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure content area text is readable on dark background */
.page-about p,
.page-about li {
    color: var(--page-about-text-secondary);
}

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

/* Section Styling */
.page-about__section {
    padding: 60px 0;
    position: relative;
    z-index: 1; /* Ensure sections are above any potential background elements */
}

.page-about__section:nth-of-type(even) {
    background-color: var(--page-about-card-bg); /* Alternate section background */
}

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

.page-about__section-description {
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px auto;
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: var(--page-about-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--page-about-deep-green); /* Fallback/base for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px; /* Space below image */
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 font-size */
    color: var(--page-about-text-main);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main); /* White text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-glow); /* Green-gold glow text */
    border: 2px solid var(--page-about-glow);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow);
    color: var(--page-about-bg); /* Dark text on glow background */
    transform: translateY(-2px);
}

.page-about__btn-text-link {
    color: var(--page-about-glow);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-about__btn-text-link:hover {
    color: var(--page-about-gold);
}

/* Grid Layouts */
.page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default for desktop */
}

.page-about__grid--reverse .page-about__text-block {
    order: 2;
}

.page-about__grid--reverse .page-about__image-wrapper {
    order: 1;
}

.page-about__image-wrapper {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

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

.page-about__value-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-divider);
    text-align: center;
}

.page-about__value-card p {
    color: var(--page-about-text-secondary);
}

/* Why Choose Section */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__feature-list li {
    background-color: var(--page-about-card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--page-about-glow);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-about__list-item-title {
    color: var(--page-about-text-main);
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Technology Section */
.page-about__tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__tech-card {
    background-color: var(--page-about-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--page-about-divider);
}

.page-about__image-wrapper--full-width {
    max-width: 100%;
    margin: 0 auto;
}

/* Social Responsibility Section */
.page-about__responsibility-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__responsibility-item {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-divider);
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: var(--page-about-card-bg);
    transition: background-color 0.3s ease;
}

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

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-about-glow);
    margin-left: 15px;
}

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

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

/* Bottom CTA Section */
.page-about__cta-bottom {
    text-align: center;
    background-color: var(--page-about-deep-green);
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__grid {
        grid-template-columns: 1fr;
    }

    .page-about__grid--reverse .page-about__text-block,
    .page-about__grid--reverse .page-about__image-wrapper {
        order: unset; /* Reset order for smaller screens */
    }

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

    .page-about__section-title {
        font-size: 2.2em;
    }

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

    .page-about__card-title {
        font-size: 1.3em;
    }
}

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

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

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

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

    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust clamp for smaller screens */
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to buttons container */
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Ensure min size is maintained */
    }

    .page-about__image-wrapper,
    .page-about__hero-image-wrapper,
    .page-about__container,
    .page-about__grid,
    .page-about__values-grid,
    .page-about__tech-features,
    .page-about__responsibility-points,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-about__hero-image-wrapper {
        max-height: 300px; /* Adjust hero image height for mobile */
    }

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

    .page-about__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px 20px;
    }
    
    /* Ensure no video-section related padding-top here, body handles it */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for hero on mobile */
    }
}