/* style/about.css */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color 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 {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

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

.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: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

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

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

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    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;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

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

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

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

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

/* Section Styling - Dark/Light Backgrounds */
.page-about__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__card-title,
.page-about__light-bg .page-about__value-heading,
.page-about__light-bg .page-about__product-heading,
.page-about__light-bg .page-about__faq-title {
    color: #017439;
}

.page-about__light-bg p,
.page-about__light-bg li {
    color: #333333;
}

.page-about__light-bg a {
    color: #017439;
    text-decoration: underline;
}

.page-about__dark-bg a {
    color: #FFFF00;
    text-decoration: underline;
}

/* General Introduction Section */
.page-about__general-introduction .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__general-introduction .page-about__image {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
}

.page-about__general-introduction .page-about__text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-about__mission-vision .page-about__card {
    background-color: 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);
}

.page-about__mission-vision .page-about__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-about__mission-vision .page-about__card p {
    line-height: 1.6;
}

/* Core Values Section */
.page-about__core-values .page-about__value-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__core-values .page-about__value-item {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__core-values .page-about__value-heading {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-about__core-values .page-about__value-item p {
    line-height: 1.6;
}

/* Safety & Fairness Section */
.page-about__safety-fairness .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__safety-fairness .page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__safety-fairness .page-about__image {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
}

.page-about__safety-fairness .page-about__text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Team & Customer Experience Section */
.page-about__team-customer .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.page-about__team-customer .page-about__card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__team-customer .page-about__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__team-customer .page-about__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439;
}

.page-about__team-customer .page-about__card p {
    line-height: 1.6;
}

/* Products & Services Section */
.page-about__products-services .page-about__product-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-about__products-services .page-about__product-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.page-about__products-services .page-about__product-heading {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-about__products-services .page-about__product-item p {
    line-height: 1.5;
}

/* Video Section */
.page-about__video-section {
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for the video */
    margin: 0 auto 30px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-about__video-caption {
    font-size: 1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

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

.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;
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-about__faq-answer p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-about__cta-final {
    padding: 80px 0;
    text-align: center;
}

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

.page-about__cta-final .page-about__section-description {
    color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }

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

    .page-about__general-introduction .page-about__content-grid,
    .page-about__safety-fairness .page-about__content-grid,
    .page-about__mission-vision .page-about__grid,
    .page-about__team-customer .page-about__grid {
        grid-template-columns: 1fr;
    }

    .page-about__safety-fairness .page-about__content-grid--reverse {
        grid-template-columns: 1fr;
    }

    .page-about__general-introduction .page-about__image-block,
    .page-about__safety-fairness .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }

    .page-about__core-values .page-about__value-list,
    .page-about__products-services .page-about__product-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 60px 0;
    }

    .page-about__hero-section {
        height: auto;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__hero-cta-buttons,
    .page-about__cta-final .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

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

    /* Image responsive for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__video-section,
    .page-about__video-wrapper,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive for mobile */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .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 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }

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