/* style/about.css */

:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #121212; /* Body background from shared.css */
    --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark body */
    --border-color-dark: rgba(255, 255, 255, 0.15);
    --hover-bg-dark: rgba(255, 255, 255, 0.15);
}

.page-about {
    color: var(--text-color-light); /* Default text color for the page, adapting to dark body background */
    background-color: var(--background-dark);
}

/* Ensure page content is not hidden by fixed header */
.page-about__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on actual header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: var(--text-color-light);
    text-align: center;
}

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

.page-about__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-about__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

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

.page-about__cta-button--secondary {
    background-color: transparent;
    border: 2px solid var(--text-color-light);
    color: var(--text-color-light);
}

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

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color-light);
    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: var(--secondary-color);
    border-radius: 2px;
}

.page-about__intro-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-block {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__content-block .page-about__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__sub-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__paragraph {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-about__why-choose-section .page-about__section-title {
    color: var(--text-color-light);
}

.page-about__why-choose-section .page-about__section-title::after {
    background-color: var(--secondary-color);
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.15); /* Lighter card on primary background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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.2);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 150px; /* Adjusted to be larger than 100px */
    height: auto;
    margin-bottom: 20px;
    filter: brightness(1.1); /* Slight brightness adjustment for visibility, not color change */
}

.page-about__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-about__feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__commitment-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

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

.page-about__commitment-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__commitment-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__commitment-item p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.page-about__cta-bottom-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #0056b3 0%, var(--primary-color) 100%);
    color: var(--text-color-light);
    text-align: center;
}

.page-about__cta-bottom-section .page-about__section-title {
    color: var(--text-color-light);
}

.page-about__cta-bottom-section .page-about__section-title::after {
    background-color: var(--secondary-color);
}

.page-about__cta-bottom-section .page-about__paragraph {
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background-color: var(--hover-bg-dark);
    border-color: rgba(255, 255, 255, 0.25);
}

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

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

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

.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: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure content expands fully */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color-dark);
    border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
}

/* Global responsive styles for images and buttons */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 42px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card {
        padding: 25px;
    }
    .page-about__commitment-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on mobile header height */
        padding-bottom: 40px;
    }
    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__cta-button {
        font-size: 16px;
        padding: 12px 25px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .page-about__intro-section,
    .page-about__why-choose-section,
    .page-about__commitment-section,
    .page-about__cta-bottom-section,
    .page-about__faq-section {
        padding: 50px 0;
    }
    .page-about__content-block,
    .page-about__feature-card,
    .page-about__commitment-item {
        padding: 20px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__paragraph {
        font-size: 15px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__feature-card p {
        font-size: 14px;
    }
    .page-about__commitment-title {
        font-size: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__container,
    .page-about__content-block,
    .page-about__feature-card,
    .page-about__commitment-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-list {
        padding: 0 15px;
        box-sizing: border-box !important;
    }
    .page-about__content-grid {
        gap: 20px;
    }
    .page-about__features-grid {
        gap: 20px;
    }
    .page-about__commitment-grid {
        gap: 20px;
    }
}