/* style/about.css */

/* Variables for custom colors */
:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-btn-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);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-about-deep-green); /* A slightly different background for the hero section */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Ensure image wrapper respects container width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

.page-about__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--page-about-gold); /* Use gold for section titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-about-glow);
    border-radius: 2px;
}

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

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

.page-about__text-block {
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

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

.page-about__image-block {
    flex: 1;
    min-width: 250px; /* Minimum width for image block to prevent shrinking too much */
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure image itself is not smaller than 200px */
    min-height: 200px;
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

.page-about__feature-card img {
    width: 100%;
    max-width: 400px; /* Max width for images inside cards */
    height: auto;
    min-height: 200px; /* Minimum height for card images */
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-about__feature-card p {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    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: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box;
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow);
    color: var(--page-about-deep-green); /* Darker text on hover for contrast */
}

/* FAQ Section */
.page-about__faq-section {
    padding-top: 40px;
}

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

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

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: rgba(17, 40, 27, 0.7); /* Slightly darker card background for question */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(17, 40, 27, 0.9);
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

.page-about__faq-answer a {
    color: var(--page-about-glow); /* Link color in FAQ answer */
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on mobile */
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-about__lead-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding */
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min image size */
        min-height: 200px !important;
    }
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__feature-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }

    /* Videos (if any, though not in this specific page's HTML, include for robustness) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important;
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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;
    }

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px;
    }
    .page-about__card {
        padding: 20px;
    }
    .page-about__section-title {
        margin-bottom: 30px;
    }
    .page-about__text-block p {
        font-size: 0.95rem;
    }
}

/* Ensure no filter is used for images */
.page-about img {
    filter: none;
}