/* style/about.css */

/* Variables and general styles for page-about */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Assuming body background is light/white */
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Main brand color for titles */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__text-block p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-about__text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #f0f8ff; /* Light background for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper does not overflow */
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__card-btn,
.page-about__btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

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

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__btn-text-link {
    background: none;
    color: #26A9E0;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
    margin-top: 20px;
}

.page-about__btn-text-link:hover {
    color: #1e87c2;
}

/* Content Sections (Introduction, Security, Experience, etc.) */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

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

.page-about__text-block,
.page-about__image-block {
    flex: 1;
    min-width: 300px; /* Ensure blocks don't get too small */
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Product Cards */
.page-about__grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-about__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-about__card-btn {
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    display: block; /* Make button full width of card */
    margin-top: auto; /* Push to bottom */
}

.page-about__card-btn:hover {
    background-color: #1e87c2;
}

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

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

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

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

.page-about__faq-item summary:hover {
    background-color: #f0f0f0;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #555555;
    line-height: 1.7;
    border-top: 1px solid #e0e0e0; /* Separator for answer */
    margin-top: -1px; /* Overlap border */
}

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

.page-about__faq-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

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

.page-about__cta-bottom .page-about__text-center {
    color: #f0f0f0;
}

/* Specific color for login button if needed, as per custom colors */
.page-about__btn-primary[href*="redirect"] { /* Targeting the specific promo link */
    background-color: #EA7C07; /* Login color */
    border-color: #EA7C07;
}
.page-about__btn-primary[href*="redirect"]:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}


/* Responsive styles */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep consistent on mobile */
    }
    .page-about__text-block,
    .page-about__image-block {
        width: 100%;
    }
    .page-about__grid-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding-bottom: 40px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta,
    .page-about__cta-buttons,
    .page-about__faq-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__card-btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__container,
    .page-about__product-card,
    .page-about__faq-item,
    .page-about__hero-image-wrapper,
    .page-about__content-wrapper,
    .page-about__grid-wrapper,
    .page-about__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    /* Mobile button responsiveness */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
    }
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .page-about__faq-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for buttons */
    }
}

/* Color contrast adjustments for dark background sections if any (not in this design, but for safety) */
.page-about__dark-section { /* Example if a section had a dark background */
    background-color: #26A9E0;
    color: #ffffff;
}
.page-about__dark-section .page-about__section-title {
    color: #ffffff;
}
.page-about__dark-section p {
    color: #f0f0f0;
}