/* style/about.css */

/* Custom Colors */
:root {
    --ve888-primary: #11A84E;
    --ve888-secondary: #22C768;
    --ve888-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --ve888-card-bg: #11271B;
    --ve888-background: #08160F;
    --ve888-text-main: #F2FFF6;
    --ve888-text-secondary: #A7D9B8;
    --ve888-border: #2E7A4E;
    --ve888-glow: #57E38D;
    --ve888-gold: #F2C14E;
    --ve888-divider: #1E3A2A;
    --ve888-deep-green: #0A4B2C;
}

/* Base styles for the page-about content */
.page-about {
    background-color: var(--ve888-background);
    color: var(--ve888-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Sections */
.page-about__section {
    padding: 60px 0;
    position: relative;
}

.page-about__dark-section {
    background-color: var(--ve888-deep-green); /* Use deep green for contrast */
    color: var(--ve888-text-main);
}

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

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

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

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

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--ve888-gold); /* Gold for main title */
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-about__intro-text {
    font-size: 1.2rem;
    color: var(--ve888-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--ve888-button-gradient);
    color: #ffffff; /* White text on green gradient */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
    background-color: var(--ve888-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* General Content Styling */
.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: var(--ve888-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-about__section-description {
    font-size: 1.1rem;
    color: var(--ve888-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-about__subsection-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--ve888-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--ve888-text-secondary);
}

.page-about__list li {
    margin-bottom: 8px;
    color: var(--ve888-text-secondary);
}

.page-about__list strong {
    color: var(--ve888-text-main);
}

/* Image content */
.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for content images */
    min-height: 200px;
}

/* Grid Layout for sections */
.page-about__grid-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about__grid-item--reverse .page-about__image-content {
    order: 2; /* Image on right */
}
.page-about__grid-item--reverse .page-about__text-block {
    order: 1; /* Text on left */
}


/* 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(--ve888-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--ve888-border);
}

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

.page-about__feature-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__feature-list {
    list-style: none;
    padding-left: 0;
}

.page-about__feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--ve888-text-secondary);
}

.page-about__feature-list li::before {
    content: '✓';
    color: var(--ve888-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

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

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ve888-text-main);
    background-color: var(--ve888-card-bg);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--ve888-deep-green);
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--ve888-primary);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−';
}

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

/* Details element specific styling */
.page-about__faq-item[open] > summary {
    background-color: var(--ve888-deep-green);
}
.page-about__faq-item > summary {
    list-style: none; /* Remove default marker */
}
.page-about__faq-item > summary::-webkit-details-marker {
    display: none; /* Hide for Webkit browsers */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid-item {
        grid-template-columns: 1fr;
    }
    .page-about__grid-item--reverse .page-about__image-content,
    .page-about__grid-item--reverse .page-about__text-block {
        order: unset; /* Reset order for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

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

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

    .page-about__intro-text {
        font-size: 1rem;
    }

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

    /* Enforce responsiveness for all images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__why-choose-us-section,
    .page-about__commitment-section,
    .page-about__faq-section,
    .page-about__features-grid,
    .page-about__feature-card,
    .page-about__cta-buttons,
    .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 */
    }

    /* Specific padding adjustments for sections that already have padding-left/right */
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 0 !important; /* Hero image is full width, content padding is handled by __hero-content */
        padding-right: 0 !important;
    }

    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Buttons responsive */
    .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; /* Add padding to button text if needed */
        padding-right: 15px;
    }

    /* Ensure multiple buttons in a flex container wrap */
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px !important;
    }

    .page-about__feature-list li {
        padding-left: 20px;
    }
}

/* Ensure content area images meet min size requirement on larger screens */
@media (min-width: 769px) {
    .page-about__image-content,
    .page-about__feature-image {
        min-width: 200px;
        min-height: 200px;
    }
}