/* style/about.css */

/* Custom Color Variables */
:root {
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F; /* This is body background, so main text should be light */
    --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;
}

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

.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
    color: var(--page-about-text-main);
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-about h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 900px; /* Constraint H1 size without fixed font-size */
    margin-left: auto;
    margin-right: auto;
}

.page-about h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Use clamp for H2 */
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5em;
}

.page-about h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
}

.page-about p {
    margin-bottom: 1em;
}

.page-about a {
    color: var(--page-about-glow);
    text-decoration: none;
}

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

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    background-color: var(--page-about-deep-green);
    padding-bottom: 60px; /* Space below image before content */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height */
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-about__main-title {
    color: var(--page-about-text-main);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5em;
}

.page-about__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--page-about-text-secondary);
    margin-bottom: 2em;
}

.page-about__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__cta-group--bottom {
    margin-top: 60px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main); /* White text for dark button */
    border: none;
    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: transparent;
    color: var(--page-about-glow); /* Green text for light button */
    border: 2px solid var(--page-about-glow);
}

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

/* Section Styles */
.page-about__section-title {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__dark-section {
    background-color: var(--page-about-deep-green);
    padding: 60px 0;
}

.page-about__introduction-section {
    padding-top: 60px;
}

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

.page-about__content-wrapper:last-of-type {
    margin-bottom: 0;
}

.page-about__text-block {
    flex: 1;
}

.page-about__content-image {
    flex-shrink: 0;
    width: 45%; /* Adjust as needed */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size */
    min-height: 200px;
}

.page-about__center-image {
    display: block;
    margin: 40px auto;
    width: 80%;
    max-width: 800px;
}

.page-about__center-button {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

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

.page-about__card {
    background-color: var(--page-about-card-bg); /* Dark card background */
    color: var(--page-about-text-main); /* Light text for dark card */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    color: var(--page-about-glow);
    margin-bottom: 0.8em;
}

.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__feature-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%232AD16F"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--page-about-text-secondary);
}

.page-about__feature-highlight {
    color: var(--page-about-text-main);
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--page-about-text-main);
    user-select: none;
    list-style: none; /* For <summary> */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-about-glow);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__content-image {
        width: 40%;
    }
}

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

    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is small decoration */
        padding-bottom: 40px;
    }

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

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

    .page-about__subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

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

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

    .page-about__content-wrapper.page-about__reverse-order-mobile {
        flex-direction: column-reverse; /* Reverse order for some sections */
    }

    .page-about__content-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__center-image {
        width: 100%;
        max-width: 100%;
    }

    .page-about__center-button {
        width: 100%;
        max-width: 100%;
    }

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

    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Global image styles - applied to all images in .page-about */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Ensure content area images are not too small */
.page-about__introduction-section img,
.page-about__values-section img,
.page-about__ecosystem-section img,
.page-about__tech-security-section img,
.page-about__team-support-section img,
.page-about__vision-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no CSS filter is used for images */
.page-about img {
    filter: none; /* Explicitly remove any filters */
}