/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: bold;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-about__list-item {
    margin-bottom: 10px;
    color: #e0e0e0;
    list-style: disc;
    margin-left: 20px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 100px 20px 60px;
    padding-top: var(--header-offset, 120px); /* Desktop and mobile */
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Ensure a dark background for hero */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: bold;
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

.page-about__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e01e1e;
    border-color: #e01e1e;
    color: #ffffff;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

/* Introduction Section */
.page-about__introduction {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark bg for contrast */
    color: #e0e0e0;
}

.page-about__introduction .page-about__section-title {
    color: #ffffff;
}

/* History Section */
.page-about__history {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark bg */
    color: #e0e0e0;
}

.page-about__history .page-about__section-title {
    color: #ffffff;
}

.page-about__history-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__history-content {
    flex: 1;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Mission & Values Section */
.page-about__mission-values {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark bg for contrast */
    color: #e0e0e0;
}

.page-about__mission-values .page-about__section-title {
    color: #ffffff;
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__values-list .page-about__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1.05em;
}

.page-about__values-list .page-about__list-item strong {
    color: #ffffff;
}

/* Security Section */
.page-about__security {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark bg */
    color: #e0e0e0;
}

.page-about__security .page-about__section-title {
    color: #ffffff;
}

.page-about__security-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__security-content {
    flex: 1;
}

.page-about__security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__security-features .page-about__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1.05em;
}

/* Products & Services Section */
.page-about__products-services {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark bg for contrast */
    color: #e0e0e0;
}

.page-about__products-services .page-about__section-title {
    color: #ffffff;
}

.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: #1a1a1a; /* Dark background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #e0e0e0;
}

.page-about__product-card:hover {
    transform: translateY(-5px);
}

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-about__card-title {
    font-size: 1.5em;
    padding: 15px 20px 5px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-about__card-title a:hover {
    color: #017439;
}

.page-about__card-description {
    font-size: 0.95em;
    padding: 0 20px 20px;
    color: #c0c0c0;
}

.page-about__cta-section {
    text-align: center;
    margin-top: 60px;
}

/* Commitment Section */
.page-about__commitment {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark bg */
    color: #e0e0e0;
}

.page-about__commitment .page-about__section-title {
    color: #ffffff;
}

.page-about__commitment-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__commitment-content {
    flex: 1;
}

.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__commitment-list .page-about__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 1.05em;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark bg for contrast */
    color: #e0e0e0;
}

.page-about__faq-section .page-about__section-title {
    color: #ffffff;
}

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

.page-about__faq-item {
    background-color: #1a1a1a; /* Dark background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #e0e0e0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-heading {
    margin: 0;
    color: #ffffff;
}

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

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding, will expand */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #c0c0c0;
}

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

.page-about__faq-answer .page-about__text-block {
    margin: 0;
}

/* Final CTA Section */
.page-about__cta-final {
    padding: 80px 0;
    background-color: #017439; /* Brand color for final CTA */
    text-align: center;
    color: #ffffff;
}

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

.page-about__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
}

.page-about__cta-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

/* Global Image Styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
    filter: none; /* No CSS filter on images */
}

/* 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__cta-title {
        font-size: 2.2em;
    }
    .page-about__history-grid,
    .page-about__security-grid,
    .page-about__commitment-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-about__history-grid .page-about__image,
    .page-about__security-grid .page-about__image,
    .page-about__commitment-grid .page-about__image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
    .page-about__history-grid .page-about__history-content,
    .page-about__security-grid .page-about__security-content,
    .page-about__commitment-grid .page-about__commitment-content {
        padding: 0 15px;
    }
    .page-about__products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* All images must be responsive */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no CSS filter on images */
    }
    .page-about__product-card .page-about__card-image {
        height: 180px;
    }

    /* All containers with images/videos/buttons */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction,
    .page-about__history,
    .page-about__mission-values,
    .page-about__security,
    .page-about__products-services,
    .page-about__commitment,
    .page-about__faq-section,
    .page-about__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__products-services .page-about__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__products-grid {
        padding: 0 15px;
        gap: 20px;
    }
    .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: 15px 20px 20px;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__hero-section,
    .page-about__introduction,
    .page-about__history,
    .page-about__mission-values,
    .page-about__security,
    .page-about__products-services,
    .page-about__commitment,
    .page-about__faq-section,
    .page-about__cta-final {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}