/* style/about.css */

/* Custom Color Variables */
:root {
    --page-about-bg-color: #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-color: #2E7A4E;
    --page-about-glow-color: #57E38D;
    --page-about-gold-color: #F2C14E;
    --page-about-divider-color: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%; /* Ensure it takes full width before max-width constrains it */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--page-about-deep-green); /* Fallback background */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    width: 100%; /* Ensure it takes full width before max-width constrains it */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive 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); /* Subtle glow */
}

.page-about__description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
}

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

.page-about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    min-width: 180px; /* Ensure buttons have a minimum width */
}

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

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

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

.page-about__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1); /* Subtle background on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.2);
}

.page-about__cta-buttons--center {
    margin-top: 40px;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    background-color: var(--page-about-bg-color); /* Default section background */
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--page-about-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-about__section-title--light {
    color: var(--page-about-text-main);
}

.page-about__text-block {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--page-about-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

/* Image and Text Layout */
.page-about__image-and-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__image-and-text--reverse {
    flex-direction: row-reverse;
}

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

.page-about__image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure image wrapper has a min-width */
}

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

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

.page-about__advantage-card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(87, 227, 141, 0.3);
}

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

.page-about__card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-about-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-about__card-image {
    width: 100%;
    max-width: 400px; /* Limit card image size */
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

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

.page-about__faq-item {
    background-color: var(--page-about-deep-green); /* Slightly different background for FAQ item */
    border: 1px solid var(--page-about-border-color);
    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: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--page-about-deep-green);
    color: var(--page-about-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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


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

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--page-about-glow-color);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-about-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 15px;
}

/* Ensure text in FAQ answer is visible */
.page-about__faq-answer .page-about__text-block {
    margin-bottom: 0; /* Remove extra margin for last paragraph in answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__image-and-text {
        flex-direction: column;
        text-align: center;
    }
    .page-about__image-and-text--reverse {
        flex-direction: column; /* Keep consistent on smaller screens */
    }
    .page-about__image-wrapper {
        margin-bottom: 30px;
    }
    .page-about__image {
        max-width: 600px; /* Constrain image size on tablet */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px !important; /* Force padding for mobile */
    }

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

    .page-about__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
    }

    .page-about__btn {
        width: 100% !important; /* Buttons take full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

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

    .page-about__section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .page-about__advantages-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

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

    .page-about__card-text {
        font-size: 0.9rem;
    }

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

    .page-about__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px 20px;
    }

    /* 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-section,
    .page-about__hero-image-wrapper,
    .page-about__hero-content,
    .page-about__image-and-text,
    .page-about__image-wrapper,
    .page-about__text-content,
    .page-about__advantages-grid,
    .page-about__advantage-card,
    .page-about__faq-section,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* Specific padding for sections/containers */
    .page-about__section,
    .page-about__hero-section,
    .page-about__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Inner containers should have padding */
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Video section top padding (if any, it's not here but for general rule) */
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}