.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Assuming body background is black from 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: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #26A9E0;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 60px;
}

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

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

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

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for this section */
    color: #ffffff;
}

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

.page-about__image-content {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
    object-fit: cover;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly different dark background */
    color: #ffffff;
}

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

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.08);
    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(-10px);
}

.page-about__value-icon {
    width: 250px; /* Ensure minimum 200x200 */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__value-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-about__why-choose-us-section .page-about__section-title {
    color: #ffffff;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-10px);
}

.page-about__feature-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency, will be responsive */
    object-fit: cover;
    display: block;
}

.page-about__feature-item h3 {
    font-size: 1.8em;
    color: #26A9E0;
    padding: 20px 25px 10px;
}

.page-about__feature-description {
    font-size: 1em;
    color: #f0f0f0;
    padding: 0 25px 25px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background */
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question */
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-about__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some padding to the paragraph inside */
    color: #f0f0f0;
}

/* Call to Action Section */
.page-about__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-about__cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-about__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__feature-item h3 {
        font-size: 1.5em;
    }
}

@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-bottom: 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied to the first visible section */
    }
    .page-about__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__introduction-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 0;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 1em;
    }
    .page-about__value-card {
        padding: 20px;
    }
    .page-about__value-icon {
        width: 200px; /* Minimum size */
    }
    .page-about__value-title {
        font-size: 1.5em;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-image {
        height: 250px;
    }
    .page-about__feature-item h3 {
        font-size: 1.5em;
    }
    .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;
    }

    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__cta-description {
        font-size: 1.1em;
    }

    /* Images responsiveness */
    .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__introduction-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    /* Specific padding for sections that might not have it */
    .page-about__introduction-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__why-choose-us-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__cta-section .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
}

/* Color Contrast Safeguards */
.page-about__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body for sections */
  color: #ffffff; /* Light text */
}
.page-about__light-bg {
  background-color: #1a1a1a; /* Another dark background for contrast */
  color: #ffffff; /* Light text */
}
/* Ensure text in card-like elements has sufficient contrast */
.page-about__value-card,
.page-about__feature-item,
.page-about__faq-item {
    color: #f0f0f0; /* Light text for readability on dark card backgrounds */
}
.page-about__faq-question {
    background-color: #26A9E0; /* Brand color background for question */
    color: #ffffff; /* White text for contrast */
}

/* Image color filter restriction */
.page-about img {
    filter: none !important; /* Ensure no CSS filter changes image colors */
}