.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #121212; /* Ensure consistency with body background */
}

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

.page-about__section-title {
    font-size: 36px;
    color: #FFD700; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #000080, #1a1a1a); /* Dark blue to dark gray gradient */
    min-height: 600px;
    color: #ffffff;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-about__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Primary color for H1 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__cta-button--primary {
    background-color: #FFD700; /* Primary brand color */
    color: #000000; /* Black text for contrast */
}

.page-about__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
    background-color: #000080; /* Secondary brand color */
    color: #ffffff;
    border: 2px solid #FFD700;
}

.page-about__cta-button--secondary:hover {
    background-color: #000060;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15; /* Subtle background image */
    overflow: hidden;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Desaturate for background */
}

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

.page-about__introduction-text {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #cccccc;
}

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

.page-about__value-item {
    background-color: #222222; /* Slightly lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__value-icon {
    width: 200px; /* Ensure minimum size */
    height: 150px; /* Ensure minimum size */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #FFD700; /* Accent border */
}

.page-about__value-title {
    font-size: 24px;
    color: #FFD700; /* Primary color for sub-titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-description {
    font-size: 16px;
    color: #cccccc;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 20px;
    background-color: #0d0d0d; /* Even darker background for contrast */
    color: #f0f0f0;
}

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

.page-about__feature-card {
    background-color: #222222;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__feature-image {
    width: 100%;
    height: 250px; /* Consistent height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #000080; /* Secondary color border */
}

.page-about__feature-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 16px;
    color: #cccccc;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2c2c2c; /* Slightly lighter for question background */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-question:hover {
    background: #3a3a3a;
    color: #FFD700;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' in JS */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: #222222; /* Darker background for answer */
    color: #cccccc;
    font-size: 16px;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to show content */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #333333;
    border-radius: 0 0 8px 8px;
}

/* Blog Section */
.page-about__blog-section {
    padding: 80px 20px;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-about__blog-item {
    background-color: #222222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.page-about__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px; /* Padding for content below image */
}

.page-about__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 2px solid #000080; /* Accent border */
}

.page-about__blog-item-title {
    font-size: 20px;
    color: #FFD700;
    margin: 0 20px 10px 20px;
    font-weight: bold;
}

.page-about__blog-item-excerpt {
    font-size: 15px;
    color: #cccccc;
    margin: 0 20px 15px 20px;
}

.page-about__blog-item-date {
    font-size: 14px;
    color: #999999;
    display: block;
    margin: 0 20px;
}

.page-about__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-about__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000080;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #FFD700;
}

.page-about__view-all-button:hover {
    background-color: #000060;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 42px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__value-title {
        font-size: 22px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__blog-item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Fixed header spacing for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure buttons take full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .page-about__cta-button {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box; /* Include padding in width calculation */
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__section-title::after {
        width: 60px;
    }

    .page-about__introduction-section,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__blog-section {
        padding: 40px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-about__introduction-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__blog-list {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 25px;
    }

    .page-about__value-icon {
        width: 180px;
        height: 130px;
    }
    .page-about__value-title {
        font-size: 20px;
    }

    .page-about__feature-image {
        height: 200px;
    }
    .page-about__feature-title {
        font-size: 18px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }

    .page-about__blog-image {
        height: 180px;
    }
    .page-about__blog-item-title {
        font-size: 17px;
        margin: 0 15px 8px 15px;
    }
    .page-about__blog-item-excerpt {
        font-size: 14px;
        margin: 0 15px 12px 15px;
    }
    .page-about__blog-item-date {
        margin: 0 15px;
    }
    
    /* Ensure all images are responsive and don't overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* Ensure all content containers prevent overflow */
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__blog-section,
    .page-about__container,
    .page-about__value-item,
    .page-about__feature-card,
    .page-about__faq-item,
    .page-about__blog-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Ensure no horizontal scroll */
    }
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 28px;
    }
    .page-about__hero-description {
        font-size: 15px;
    }
    .page-about__cta-button {
        padding: 10px 15px;
        font-size: 15px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__value-icon {
        width: 150px;
        height: 100px;
    }
    .page-about__value-title {
        font-size: 18px;
    }
    .page-about__feature-image {
        height: 180px;
    }
    .page-about__feature-title {
        font-size: 16px;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
    }
    .page-about__blog-item-title {
        font-size: 16px;
    }
    .page-about__blog-item-excerpt {
        font-size: 13px;
    }
}