/* style/about.css */

/* Custom color variables from prompt */
:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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-bg);
    color: var(--page-about-text-main); /* Default text color for dark background */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

/* Fixed header spacing - body padding-top is handled by shared.css */
/* Main content sections should have minimal top padding */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* No filter property to change color */
}

.page-about__hero-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
    margin-top: 40px; /* Positive margin to ensure separation */
    color: var(--page-about-text-main);
}

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

.page-about__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--page-about-text-secondary);
}

.page-about__section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-about-text-main);
    padding-top: 40px;
}

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

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main); /* White text for dark button */
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-text-main);
    border: 2px solid var(--page-about-border);
}

.page-about__btn-secondary:hover {
    background: var(--page-about-border);
    color: var(--page-about-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.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);
    border: 1px solid var(--page-about-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-about-text-main);
}

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

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

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__content-wrapper.page-about__reverse-order {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    color: var(--page-about-text-secondary);
}

.page-about__image-left,
.page-about__image-right {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Max width for images in a flex row */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
    /* No filter property to change color */
}

.page-about__faq-section {
    padding: 60px 0;
}

.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: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter version of border color */
}

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

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Changed by JS */
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__hero-content {
        margin-top: 20px;
    }
    .page-about__image-left,
    .page-about__image-right {
        max-width: 100%; /* Images take full width on smaller screens */
    }
    .page-about__content-wrapper {
        flex-direction: column; /* Stack content and image vertically */
    }
    .page-about__content-wrapper.page-about__reverse-order {
        flex-direction: column; /* Keep vertical stacking */
    }
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.5rem;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        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;
    }
    .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;
    }
    .page-about__grid,
    .page-about__values-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Image responsive adaptions */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}