/* style/about.css */

/* Variables for colors */
:root {
    --page-about-primary-color: #0A2463;
    --page-about-secondary-color: #FFD700;
    --page-about-text-light: #ffffff;
    --page-about-text-dark: #333333;
    --page-about-bg-dark: var(--dark-bg-1, #0d0d0d); /* Assuming dark-bg-1 from shared.css is dark */
    --page-about-bg-light: #ffffff;
    --page-about-border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-light); /* Default text color for dark body background */
    background-color: var(--page-about-bg-dark);
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--page-about-secondary-color);
    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-primary-color);
    border-radius: 2px;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--page-about-text-light);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    color: var(--page-about-text-light);
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-about-secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-about__hero-button {
    display: inline-block;
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--page-about-primary-color);
}

.page-about__hero-button:hover {
    background-color: var(--page-about-secondary-color);
    border-color: var(--page-about-secondary-color);
    transform: translateY(-3px);
    color: var(--page-about-primary-color);
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-dark);
    color: var(--page-about-text-light);
}

/* Mission Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-light);
    color: var(--page-about-text-dark);
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__mission-vision-section .page-about__text-block {
    color: var(--page-about-text-dark);
}

.page-about__mission-vision-section .page-about__section-title::after {
    background-color: var(--page-about-secondary-color);
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}

.page-about__values-section .page-about__section-title {
    color: var(--page-about-secondary-color);
}

.page-about__values-section .page-about__section-title::after {
    background-color: var(--page-about-secondary-color);
}

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

.page-about__value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-about__value-title {
    font-size: 1.8em;
    color: var(--page-about-secondary-color);
    margin-bottom: 15px;
}

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

/* Products Section */
.page-about__products-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-light);
    color: var(--page-about-text-dark);
}

.page-about__products-section .page-about__section-title,
.page-about__products-section .page-about__text-block {
    color: var(--page-about-text-dark);
}

.page-about__products-section .page-about__section-title::after {
    background-color: var(--page-about-secondary-color);
}

.page-about__product-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--page-about-text-dark);
    position: relative;
    padding-left: 25px;
}

.page-about__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-dark);
    color: var(--page-about-text-light);
}

.page-about__why-choose-section .page-about__section-title {
    color: var(--page-about-secondary-color);
}

.page-about__why-choose-section .page-about__section-title::after {
    background-color: var(--page-about-secondary-color);
}

.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: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.page-about__feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-about__feature-title {
    font-size: 1.6em;
    color: var(--page-about-secondary-color);
    margin-bottom: 10px;
}

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

/* Responsibility Section */
.page-about__responsibility-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-light);
    color: var(--page-about-text-dark);
}

.page-about__responsibility-section .page-about__section-title,
.page-about__responsibility-section .page-about__text-block,
.page-about__responsibility-section .page-about__list-item {
    color: var(--page-about-text-dark);
}

.page-about__responsibility-section .page-about__section-title::after {
    background-color: var(--page-about-primary-color);
}

.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* Team Tech Section */
.page-about__team-tech-section {
    padding: 80px 0;
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}

.page-about__team-tech-section .page-about__section-title {
    color: var(--page-about-secondary-color);
}

.page-about__team-tech-section .page-about__section-title::after {
    background-color: var(--page-about-secondary-color);
}

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

.page-about__tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__tech-title {
    font-size: 1.6em;
    color: var(--page-about-secondary-color);
    margin-bottom: 10px;
}

.page-about__tech-description {
    font-size: 1em;
    color: var(--page-about-text-light);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--page-about-bg-light);
    color: var(--page-about-text-dark);
}

.page-about__faq-section .page-about__section-title {
    color: var(--page-about-primary-color);
}

.page-about__faq-section .page-about__section-title::after {
    background-color: var(--page-about-primary-color);
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-about-primary-color);
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #e5e5e5;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-about-text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: var(--page-about-text-dark);
}

/* Conclusion Section */
.page-about__conclusion-section {
    padding: 80px 0;
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}

.page-about__conclusion-section .page-about__section-title {
    color: var(--page-about-secondary-color);
}

.page-about__conclusion-section .page-about__section-title::after {
    background-color: var(--page-about-secondary-color);
}

/* General Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
    background-color: var(--page-about-secondary-color);
    border-color: var(--page-about-secondary-color);
    color: var(--page-about-primary-color);
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
    transform: translateY(-2px);
}

.page-about__btn-large {
    padding: 18px 35px;
    font-size: 1.3em;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Grid Layouts */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-about__grid-layout--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__content-column {
    padding-right: 20px;
}

.page-about__image-column {
    text-align: center;
}

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

.page-about__image-small {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 20px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__grid-layout--reverse {
        grid-template-columns: 1fr;
    }
    .page-about__content-column {
        padding-right: 0;
    }
    .page-about__image-column {
        order: -1; /* Move image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 0.95em;
    }
    .page-about__value-title, .page-about__feature-title, .page-about__tech-title {
        font-size: 1.4em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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;
    }
    .page-about__container,
    .page-about__introduction-section,
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__products-section,
    .page-about__why-choose-section,
    .page-about__responsibility-section,
    .page-about__team-tech-section,
    .page-about__faq-section,
    .page-about__conclusion-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__hero-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__value-title, .page-about__feature-title, .page-about__tech-title {
        font-size: 1.2em;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 8px 15px;
    }
}

/* Ensure contrast for specific elements on potentially dark backgrounds */
.page-about__dark-section {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}

.page-about__dark-section .page-about__text-block {
    color: var(--page-about-text-light);
}

.page-about__dark-section .page-about__list-item {
    color: var(--page-about-text-light);
}

.page-about__dark-section .page-about__list-item::before {
    filter: invert(1);
}

.page-about__dark-section .page-about__value-card,
.page-about__dark-section .page-about__feature-card,
.page-about__dark-section .page-about__tech-item {
    background: rgba(255, 255, 255, 0.1);
}

.page-about__dark-section .page-about__value-card:hover,
.page-about__dark-section .page-about__feature-card:hover,
.page-about__dark-section .page-about__tech-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Ensure light text on primary colored buttons */
.page-about__btn-primary {
    color: var(--page-about-text-light);
}

/* Ensure dark text on light elements for contrast */
.page-about__mission-vision-section,
.page-about__products-section,
.page-about__responsibility-section,
.page-about__faq-section {
    background-color: var(--page-about-bg-light);
    color: var(--page-about-text-dark);
}

.page-about__mission-vision-section .page-about__text-block,
.page-about__products-section .page-about__text-block,
.page-about__responsibility-section .page-about__text-block,
.page-about__faq-section .page-about__text-block {
    color: var(--page-about-text-dark);
}

.page-about__mission-vision-section .page-about__list-item,
.page-about__products-section .page-about__list-item,
.page-about__responsibility-section .page-about__list-item {
    color: var(--page-about-text-dark);
}

.page-about__faq-item {
    background: #f9f9f9;
    border: 1px solid var(--page-about-border-color);
}

.page-about__faq-question {
    color: var(--page-about-primary-color);
    background-color: #f0f0f0;
}

.page-about__faq-question:hover {
    background-color: #e5e5e5;
}

.page-about__faq-answer p {
    color: var(--page-about-text-dark);
}

.page-about__btn-secondary {
    color: var(--page-about-primary-color);
    border-color: var(--page-about-primary-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-primary-color);
    color: var(--page-about-text-light);
}