/* style/about.css */

/* --- General Styles for Page About --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color); /* #FFFFFF */
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    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: #26A9E0;
    border-radius: 2px;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #5ac3f7); /* Brand color gradient */
    color: #ffffff; /* White text for dark/brand background */
    min-height: 400px;
}

.page-about__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Intro Section --- */
.page-about__intro-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-about__text-block {
    flex: 2;
    font-size: 17px;
    color: #333333;
}

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Values Section --- */
.page-about__values-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text for brand color background */
}

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

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

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
}

.page-about__value-card img {
    width: 200px; /* Minimum width */
    height: 200px; /* Minimum height */
    max-width: 100%; /* Ensure responsiveness */
    object-fit: contain; /* Use contain to fit the image without cropping */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-about__value-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__value-card p {
    font-size: 16px;
    opacity: 0.9;
}

/* --- Services Section --- */
.page-about__services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-about__service-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.page-about__service-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency, > 200px */
    object-fit: cover;
    display: block;
}

.page-about__service-card .page-about__service-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: #26A9E0; /* Brand color for service titles */
}

.page-about__service-card .page-about__service-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__service-card .page-about__service-title a:hover {
    color: #1a7fb4;
    text-decoration: underline;
}

.page-about__service-card p {
    font-size: 16px;
    color: #555555;
    padding: 0 20px 15px 20px;
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    margin: 0 20px 20px 20px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border: 2px solid #26A9E0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-about__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Security & Support Section --- */
.page-about__security-support-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
}

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

.page-about__security-support-section .page-about__section-title::after {
    background-color: #ffffff;
}

.page-about__security-support-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.page-about__security-card,
.page-about__support-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__security-card img,
.page-about__support-card img {
    width: 250px; /* Ensure images are large enough */
    height: 200px; /* Ensure images are large enough */
    max-width: 100%;
    object-fit: contain; /* Use contain to fit the image without cropping */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-about__card-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__security-card p,
.page-about__support-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.page-about__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #EA7C07; /* Login color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-about__btn-primary:hover {
    background: #d46f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-section .page-about__section-title {
    margin-bottom: 20px;
}

.page-about__cta-section p {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

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

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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 15px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* 🚨 Using !important */
    padding: 20px 15px !important; /* 🚨 Using !important */
    opacity: 1;
    background: #f0f8ff; /* Light blue background for answer */
    border-radius: 0 0 5px 5px;
    color: #333333;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #26A9E0; /* Brand color for FAQ questions */
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #26A9E0; /* Brand color for active toggle */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-about__security-support-grid {
        flex-direction: column;
    }
    .page-about__security-card,
    .page-about__support-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Fixed header padding for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-about__intro-section,
    .page-about__values-section,
    .page-about__services-section,
    .page-about__security-support-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    .page-about__text-block {
        font-size: 16px;
    }
    
    /* Ensure all images are responsive and don't overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    /* Specific overrides for value card images to ensure min size but responsive */
    .page-about__value-card img {
        width: 200px !important; /* Minimum width */
        height: 200px !important; /* Minimum height */
        max-width: 100% !important; /* Ensure responsiveness */
        object-fit: contain !important;
    }
    .page-about__service-card img {
        height: 200px !important; /* Adjust fixed height for mobile */
    }
    .page-about__security-card img,
    .page-about__support-card img {
        width: 250px !important;
        height: 200px !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .page-about__value-title {
        font-size: 20px;
    }
    .page-about__service-title {
        font-size: 20px;
    }
    .page-about__card-title {
        font-size: 22px;
    }

    /* FAQ mobile specific styles */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Buttons responsive */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }
    .page-about__service-card .page-about__btn-secondary {
        margin-left: 20px; /* Keep left margin for alignment */
        margin-right: 20px;
    }
    .page-about__security-support-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 28px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
}