/* style/about.css */

/* Custom Color Variables */
:root {
    --page-about-primary-color: #11A84E; /* Main */
    --page-about-secondary-color: #22C768; /* Aux */
    --page-about-card-bg: #11271B; /* Card BG */
    --page-about-background: #08160F; /* Background */
    --page-about-text-main: #F2FFF6; /* Text Main */
    --page-about-text-secondary: #A7D9B8; /* Text Secondary */
    --page-about-border-color: #2E7A4E; /* Border */
    --page-about-glow-color: #57E38D; /* Glow */
    --page-about-gold-color: #F2C14E; /* Gold */
    --page-about-divider-color: #1E3A2A; /* Divider */
    --page-about-deep-green: #0A4B2C; /* Deep Green */
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--page-about-text-main); /* Default text color for the page */
    background-color: var(--page-about-background); /* Page background */
    line-height: 1.6;
}

/* Section styling */
.page-about__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no horizontal overflow */
}

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

.page-about__dark-section {
    background-color: var(--page-about-card-bg); /* Darker background for contrast */
    color: var(--page-about-text-main);
}

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

.page-about__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Clamp for responsive H2 */
    color: var(--page-about-gold-color);
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__sub-title {
    font-size: clamp(1.4em, 3vw, 2em); /* Clamp for responsive H3 */
    color: var(--page-about-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--page-about-text-secondary);
}

.page-about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--page-about-gold-color);
    font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--page-about-background); /* Default background */
}

.page-about__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 500px; /* Limit image height to ensure content below */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image slightly */
    background: var(--page-about-card-bg); /* Solid background for text visibility */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-about-border-color);
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 */
    color: var(--page-about-gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: #ffffff; /* White text for contrast */
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-gold-color);
    border: 2px solid var(--page-about-gold-color);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-about__link-button {
    background-color: var(--page-about-primary-color);
    color: #ffffff;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.95em;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.page-about__link-button:hover {
    background-color: var(--page-about-secondary-color);
    transform: translateY(-2px);
}

/* Content Image */
.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-about-border-color);
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Min size for content images */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--page-about-border-color);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--page-about-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.page-about__nested-list {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
    margin-top: 15px;
    color: var(--page-about-text-secondary);
}

.page-about__nested-list li {
    padding-left: 0;
    margin-bottom: 5px;
    list-style-position: inside;
}

.page-about__nested-list li::before {
    content: ''; /* Remove custom checkmark */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

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

.page-about__faq-item summary:hover {
    background-color: var(--page-about-primary-color);
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

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

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

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


/* Call to Action Bottom Section */
.page-about__cta-bottom-section {
    background-color: var(--page-about-primary-color);
    color: #ffffff;
    padding: 80px 0;
}

.page-about__cta-bottom-section .page-about__section-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.page-about__cta-bottom-section .page-about__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__cta-bottom-section .page-about__btn-primary {
    background: #ffffff;
    color: var(--page-about-primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.page-about__cta-bottom-section .page-about__btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

.page-about__cta-bottom-section .page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-about__cta-bottom-section .page-about__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        min-height: 500px;
    }
    .page-about__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-about__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }
    .page-about__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }
    .page-about__sub-title {
        font-size: clamp(1.2em, 2.5vw, 1.8em);
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }
    .page-about__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        max-width: 95%;
    }
    .page-about__main-title {
        font-size: clamp(2em, 7vw, 2.8em) !important; /* Mobile H1 */
    }
    .page-about__description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em) !important; /* Mobile H2 */
    }
    .page-about__sub-title {
        font-size: clamp(1.1em, 5vw, 1.6em) !important; /* Mobile H3 */
    }

    /* Images responsiveness */
    .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,
    .page-about__hero-content,
    .page-about__cta-group,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-about__cta-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__link-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
    }

    .page-about__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__card-image {
        min-height: 200px; /* Ensure min height */
    }
    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        min-height: 350px;
    }
    .page-about__hero-content {
        margin-top: -40px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
    }
    .page-about__section-title {
        font-size: clamp(1.4em, 7vw, 2em) !important;
    }
    .page-about__sub-title {
        font-size: clamp(1em, 6vw, 1.4em) !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 0.95em !important;
    }
}