/* style/about.css */

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

.page-about {
    font-family: Arial, sans-serif;
    color: var(--page-about-text-main); /* Main text color for the page */
    background-color: var(--page-about-bg); /* Page background from custom colors */
    line-height: 1.6;
}

/* Ensure all images are responsive by default */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

/* Sections */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
    box-sizing: border-box;
    background-color: var(--page-about-bg);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

.page-about__hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 40px; /* Space between image and text */
}

.page-about__hero-content-inner {
    padding: 20px;
    border-radius: 10px;
    background: rgba(17, 40, 27, 0.7); /* Slightly transparent card background */
    backdrop-filter: blur(5px);
    border: 1px solid var(--page-about-border);
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--page-about-gold); /* Using gold for H1 for emphasis */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Soft glow for gold text */
}

.page-about__description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    min-width: 200px;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    border: 2px solid var(--page-about-glow);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.7);
    transform: translateY(-2px);
}

.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: rgba(87, 227, 141, 0.1);
    color: var(--page-about-text-main);
    transform: translateY(-2px);
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--page-about-gold); /* Section titles in gold */
    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-color: var(--page-about-glow);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 600;
    color: var(--page-about-gold);
    margin-top: 30px;
    margin-bottom: 20px;
}

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

/* Section Specific Styles */
.page-about__dark-section {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main);
}

.page-about__light-bg {
    background-color: var(--page-about-card-bg); /* Use card background for light sections */
    color: var(--page-about-text-main);
}

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

.page-about__feature-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 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-about-text-secondary);
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 150px; /* Icons can be smaller, but min 200px overall image size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded images */
    object-fit: cover;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

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

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

/* Responsibility Section */
.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__responsibility-list li {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-about-text-secondary);
    font-size: 1rem;
    text-align: justify;
}

.page-about__list-item-title {
    color: var(--page-about-text-main);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

/* Team & Technology Section */
.page-about__team-tech-section .page-about__container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.page-about__team-content,
.page-about__tech-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__team-image,
.page-about__tech-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

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

.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);
    transition: all 0.3s ease;
    color: var(--page-about-text-secondary);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: var(--page-about-deep-green); /* Darker green for question */
    border-bottom: 1px solid var(--page-about-divider);
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-about__faq-item[open] .page-about__faq-answer {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Remove default details marker */
.page-about__faq-item > summary {
    list-style: none;
}
.page-about__faq-item > summary::-webkit-details-marker {
    display: none;
}

/* CTA Section */
.page-about__cta-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__hero-content-wrapper {
        margin-top: 20px;
    }
    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-about__team-tech-section .page-about__container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-about__container {
        padding: 20px 15px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Image containers responsiveness */
    .page-about__hero-image-wrapper,
    .page-about__feature-icon,
    .page-about__team-image,
    .page-about__tech-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Video section top padding (no video on this page, but keeping the rule for consistency) */
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Content containers responsiveness */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content-inner,
    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__responsibility-section,
    .page-about__team-tech-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .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 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important; /* Allow buttons to shrink */
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__main-title {
        font-size: 2rem;
    }

    .page-about__description {
        font-size: 1rem;
    }

    .page-about__section-title {
        font-size: 1.8rem;
    }

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

    .page-about__features-grid {
        grid-template-columns: 1fr;
    }

    .page-about__team-content,
    .page-about__tech-content {
        flex-direction: column;
    }
}