.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    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-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for sub-titles on light background */
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

.page-about__text-contrast-fix {
    color: #333333; /* For text on light backgrounds */
}

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

.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.7); /* Dark overlay for text readability */
    z-index: -1;
}

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

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

.page-about__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-about__hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Buttons */
.page-about__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-left: 20px;
}

.page-about__btn-secondary:hover {
    background-color: #005f2f;
    transform: translateY(-2px);
}

/* Section Styles */
.page-about__about-section,
.page-about__values-section,
.page-about__awards-section,
.page-about__team-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
}

.page-about__mission-vision-section,
.page-about__why-choose-section,
.page-about__responsibility-section,
.page-about__video-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

/* Dark/Light Background variations */
.page-about__dark-bg {
    background-color: #0d0d0d; /* Matching body background */
    color: #ffffff;
}

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

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

.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);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-about__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Feature List */
.page-about__feature-list {
    list-style: none;
    padding: 0;
}

.page-about__feature-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Text on light background */
}

.page-about__feature-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Images and Video */
.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* For JS click-to-redirect */
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for FAQ questions */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none; /* For <summary> tag */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details summary */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

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

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

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

.page-about__cta-section .page-about__paragraph {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

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

/* Responsive Styles */
@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-two-cols {
        grid-template-columns: 1fr;
    }
    .page-about__btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__paragraph,
    .page-about__card-description,
    .page-about__feature-description,
    .page-about__faq-answer p {
        font-size: 1em;
    }
    .page-about__value-card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__feature-title {
        font-size: 1.2em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 15px;
    }

    /* All images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image containers responsive */
    .page-about__image-wrapper,
    .page-about__about-section .page-about__container,
    .page-about__mission-vision-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__why-choose-section .page-about__container,
    .page-about__team-section .page-about__container,
    .page-about__responsibility-section .page-about__container,
    .page-about__awards-section .page-about__container,
    .page-about__video-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__cta-section .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Reset if container adds padding */
        padding-right: 0 !important; /* Reset if container adds padding */
        overflow: hidden !important;
    }
    /* Specific padding for video section on mobile */
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons responsive */
    .page-about__hero-cta-button,
    .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;
      margin-left: 0 !important; /* Reset margin for single column */
    }
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-about__cta-buttons .page-about__btn-secondary {
        margin-top: 0 !important; /* Remove extra top margin when stacked */
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__hero-section {
        height: 50vh;
    }
}