/* General Styling for About Page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background: #F5F7FA; /* Background */
}

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

.page-about__section {
    padding: 60px 0;
}

.page-about__section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #E53935; /* Primary color for titles */
    line-height: 1.2;
}

.page-about__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #333333;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

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

.page-about__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-about__main-title {
    font-size: clamp(32px, 5vw, 52px); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 19px;
    margin-bottom: 30px;
    line-height: 1.7;
    color: #f0f0f0;
}

.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: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensures buttons adapt to container width */
    box-sizing: border-box;
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word; /* Ensures long words break */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #E53935;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Content Flex Layout */
.page-about__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-flex--reverse {
    flex-direction: row-reverse;
}

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

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

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* Why Choose Section */
.page-about__why-choose-section {
    background: #F5F7FA; /* Background */
    color: #333333;
}

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

.page-about__advantage-card {
    background: #FFFFFF; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E53935;
}

.page-about__card-text {
    font-size: 16px;
    color: #333333;
}

.page-about__cta-buttons--center {
    margin-top: 50px;
    text-align: center;
}

/* Security Section (Dark Background) */
.page-about__security-section {
    background: #E53935; /* Primary color for dark section */
    color: #ffffff;
}

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

.page-about__security-section .page-about__text-block {
    color: #f0f0f0;
}

/* CTA Section (Dark Background) */
.page-about__cta-section {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

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

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

.page-about__cta-section .page-about__section-description {
    color: #f0f0f0;
    font-size: 18px;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-section {
    background: #F5F7FA; /* Background */
    color: #333333;
}

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #E0E0E0; /* Border */
    overflow: hidden;
    background: #FFFFFF; /* Card BG */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

details.page-about__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Remove default marker */
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    color: #333333; /* Text Main */
    line-height: 1.4;
}

details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f9f9f9;
}

.page-about__faq-qtext {
    flex: 1;
    text-align: left;
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #E53935; /* Primary color */
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 20px;
    background: #fdfdfd;
    border-top: 1px solid #E0E0E0;
    font-size: 16px;
    color: #333333;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}

.page-about__faq-answer ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 10px;
}

.page-about__faq-answer li {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 34px;
    }
    .page-about__hero-content {
        padding: 30px 20px;
    }
    .page-about__main-title {
        font-size: clamp(30px, 4.5vw, 48px);
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-flex--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }
    .page-about__image-block {
        order: -1; /* Image appears first in column layout */
    }
    .page-about__why-choose-section .page-about__section-description {
        font-size: 17px;
    }
    .page-about__advantage-card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 22px;
    }
    details.page-about__faq-item summary.page-about__faq-question {
        font-size: 17px;
        padding: 15px 20px;
    }
    .page-about__faq-toggle {
        font-size: 26px;
        margin-left: 15px;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO Main Image Area */
    .page-about__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
    }
    .page-about__hero-section {
        padding-top: 10px;
        min-height: 450px;
        padding-bottom: 40px;
    }
    .page-about__hero-content {
        padding: 20px 15px;
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* General containers and images */
    .page-about__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Product Display Area (Why Choose Section) - adapted for general grid */
    .page-about__advantages-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 25px;
    }

    /* Article Body (General Text Blocks) */
    .page-about__text-block {
        font-size: 15px;
        padding: 0 10px;
        box-sizing: border-box;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Buttons and Button Containers */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        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__hero-cta-buttons,
    .page-about__cta-buttons,
    .page-about__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }
    .page-about__faq-answer ul {
        padding-left: 20px;
    }
}