/* style/about.css */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming shared.css sets body background */
}

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

.page-about__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #8B0000; /* Dark red background for hero */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden;
}

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

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

.page-about__main-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    width: auto; /* Default to auto, will be 100% on mobile */
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    color: #6a0000;
    border-color: #e6c200;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    margin-left: 15px;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

.page-about__mission-vision-section,
.page-about__why-choose-section,
.page-about__dark-section {
    background-color: #1a1a1a; /* Dark background for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-about__text-block {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

.page-about__values-section {
    background-color: #f8f8f8;
    color: #333333;
    padding: 60px 0;
}

.page-about__values-section .page-about__section-title {
    color: #8B0000; /* Dark red for section title on light background */
}

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

.page-about__value-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__value-icon {
    width: 100%; /* Ensure images take full width of card */
    max-width: 300px; /* Max width for consistency */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__card-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-about__value-card p {
    color: #555555;
    font-size: 1em;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__feature-item p {
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-about__cta-section {
    background-color: #FFD700;
    color: #8B0000;
    text-align: center;
    padding: 80px 0;
}

.page-about__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #8B0000;
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__faq-section {
    background-color: #f0f0f0;
    color: #333333;
    padding: 60px 0;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #8B0000;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #fdfdfd;
}

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

.page-about__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-about__text-link {
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    display: block; /* Make links block to prevent overflow on small screens */
    margin-bottom: 5px;
}

.page-about__text-link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-about__main-title {
        font-size: 2.2em;
    }
    .page-about__description {
        font-size: 1em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Buttons full width on mobile */
        margin-left: 0 !important;
        margin-bottom: 15px;
        max-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 {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0; /* Remove gap when stacked */
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title,
    .page-about__card-title,
    .page-about__feature-title {
        font-size: 1.4em;
    }
    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__value-card,
    .page-about__text-block,
    .page-about__feature-item {
        padding: 20px;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__faq-question h3 {
        font-size: 1.1em;
    }

    /* Image 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure content area images are not too small */
    .page-about__value-icon {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__cta-title {
        font-size: 1.6em;
    }
}