/* style/about.css */

/* --- General Page Styles --- */
.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body, explicitly set for clarity */
}

.page-about__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for main titles */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about p {
    margin-bottom: 1em;
    color: #f0f0f0; /* Light text for readability on dark background */
}

.page-about strong {
    color: #FFD700;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 128, 0.7)); /* Dark overlay with auxiliary color */
    z-index: -1;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.8em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #000080; /* Dark blue text on gold button for contrast */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    color: #000050;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #000080;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-about__btn-tertiary {
    background-color: #000080;
    color: #ffffff;
    border: 2px solid #000080;
}

.page-about__btn-tertiary:hover {
    background-color: #000050;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.4);
}

/* --- Grid Layouts --- */
.page-about__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-bottom: 40px;
}

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

.page-about__grid-two-cols--reverse .page-about__text-block {
    order: 2;
}

.page-about__grid-two-cols--reverse .page-about__image-block {
    order: 1;
}

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

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensures image does not have extra space below */
    margin: 0 auto;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
}

/* --- Core Values Section --- */
.page-about__dark-section {
    background-color: #000080; /* Auxiliary color as background */
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
    color: #FFD700;
}

.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-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark blue */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-about__value-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__value-card p {
    color: #f0f0f0;
}

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

.page-about__product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__product-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__product-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #FFD700;
}

.page-about__product-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-title a:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-about__product-card p {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px 20px;
}

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

/* --- FAQ Section --- */
.page-about__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-about__faq-item {
    background-color: rgba(255, 215, 0, 0.1); /* Light gold tint for FAQ items */
    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 25px;
    cursor: pointer;
    background-color: #000080; /* Dark blue for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    font-size: 1.2em;
    color: #FFD700; /* Gold for FAQ question text */
    margin: 0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    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-out, padding 0.3s ease-out;
    background-color: #1a1a1a; /* Dark background for answer content */
    color: #f0f0f0;
}

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

.page-about__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-about__cta-section {
    background-color: #000080;
    padding: 80px 20px;
}

.page-about__cta-content {
    max-width: 800px;
}

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

/* --- 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: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: auto; /* Adjust height for mobile */
        min-height: 70vh;
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary {
        width: 100%;
        max-width: 300px; /* Max width for buttons on mobile */
        margin-bottom: 10px;
        font-size: 1em;
        padding: 12px 20px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__container {
        padding: 0 10px;
    }

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

    .page-about__sub-title {
        font-size: 1.4em;
    }

    .page-about__grid-two-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__grid-two-cols--reverse .page-about__text-block,
    .page-about__grid-two-cols--reverse .page-about__image-block {
        order: unset; /* Reset order for mobile */
    }

    .page-about__values-grid,
    .page-about__products-grid {
        grid-template-columns: 1fr;
    }

    .page-about__product-image {
        height: 200px; /* Smaller height for product images on mobile */
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__core-values-section,
    .page-about__security-section,
    .page-about__products-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__hero-content,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__value-card,
    .page-about__product-card,
    .page-about__faq-item,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }
    /* Ensure no horizontal scroll */
    .page-about {
        overflow-x: hidden;
    }
    .page-about__faq-question,
    .page-about__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}