/* style/about.css */

/* Custom properties for colors */
:root {
    --page-about-bg: #08160F; /* Background */
    --page-about-card-bg: #11271B; /* Card BG */
    --page-about-text-main: #F2FFF6; /* Text Main */
    --page-about-text-secondary: #A7D9B8; /* Text Secondary */
    --page-about-border: #2E7A4E; /* Border */
    --page-about-glow: #57E38D; /* Glow */
    --page-about-gold: #F2C14E; /* Gold */
    --page-about-divider: #1E3A2A; /* Divider */
    --page-about-deep-green: #0A4B2C; /* Deep Green */
    --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

/* Headings */
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
    color: var(--page-about-text-main);
    margin-bottom: 0.5em;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    color: var(--page-about-gold); /* Using gold for main title for prominence */
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--page-about-text-main);
}

.page-about__card-title,
.page-about__feature-title,
.page-about__value-title,
.page-about__faq-qtext {
    font-size: clamp(1.2em, 2vw, 1.8em);
    font-weight: 600;
    color: var(--page-about-text-main);
}

/* Text elements */
.page-about p {
    margin-bottom: 1em;
    color: var(--page-about-text-main);
}

.page-about__description,
.page-about__text-block {
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-about__text-block--center {
    text-align: center;
}

/* Links */
.page-about a {
    color: var(--page-about-glow); /* Using glow for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: var(--page-about-gold); /* Gold on hover */
    text-decoration: underline;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Default transparent border */
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    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-color: var(--page-about-glow);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow);
    color: var(--page-about-bg);
    border-color: var(--page-about-glow);
}

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

.page-about__cta-buttons--center {
    justify-content: center;
}

/* Layout containers */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent horizontal padding */
    box-sizing: border-box;
}

.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-about-divider);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is behind text if any accidental overlap */
}

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

.page-about__hero-content {
    position: relative; /* Relative positioning for content */
    z-index: 2; /* Ensure content is above image */
    padding: 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image slightly for better visual flow */
    background: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
    border-radius: 10px;
    padding-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Introduction Section */
.page-about__introduction-section {
    background-color: var(--page-about-bg);
}

.page-about__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 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: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__card-text {
    color: var(--page-about-text-secondary);
    font-size: 0.95em;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: var(--page-about-deep-green); /* Use deep green for this section */
}

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

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

.page-about__feature-icon {
    width: 200px; /* Enforce min size */
    height: 200px; /* Enforce min size */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-about__feature-description {
    color: var(--page-about-text-secondary);
    font-size: 0.95em;
}

/* Core Values Section */
.page-about__core-values-section {
    background-color: var(--page-about-bg);
}

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

.page-about__value-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-about__value-description {
    color: var(--page-about-text-secondary);
    font-size: 0.95em;
}

/* Licenses Section */
.page-about__licenses-section {
    background-color: var(--page-about-deep-green);
}

/* Video Section */
.page-about__video-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--page-about-bg);
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    width: 100%; /* Desktop width */
    max-width: 900px; /* Max width for desktop */
}

.page-about__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    z-index: 2; /* Ensure overlay is clickable */
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 1; /* Video behind overlay */
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--page-about-deep-green);
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--page-about-text-main);
    background-color: var(--page-about-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-about__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

/* Contact Section */
.page-about__contact-section {
    background-color: var(--page-about-bg);
    text-align: center;
}

.page-about__contact-info {
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
}

.page-about__contact-info p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -80px;
        padding-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        margin-top: -60px;
        padding: 15px;
        padding-bottom: 25px;
    }

    .page-about__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
    }

    .page-about__section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-about__description,
    .page-about__text-block {
        font-size: 1em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important; /* Allow text wrap */
        word-wrap: break-word !important;
    }

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

    .page-about__card,
    .page-about__feature-item,
    .page-about__value-item,
    .page-about__faq-item {
        padding: 20px;
    }

    .page-about__card-grid,
    .page-about__feature-grid,
    .page-about__values-grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness */
    .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,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-about__video-section {
        padding-top: 10px !important; /* Small padding top, body handles header offset */
    }

    .page-about__faq-question {
        padding: 15px;
    }
}