/* style/about.css */

/* General styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Default body background */
}

.page-about__section--padded {
    padding: 40px 0;
}

.page-about__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about h3 {
    font-size: 1.8em;
    color: #333333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about p {
    margin-bottom: 1em;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__hero-image-wrap {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not over image content */
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95); /* Slightly less transparent */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-about__description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff; /* White text for contrast */\    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a7fb3; /* Darker shade on hover */
    border-color: #1a7fb3;
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f8ff; /* Light background on hover */
    color: #1a7fb3;
    border-color: #1a7fb3;
}

/* Image and Figure styles */
.page-about__figure {
    margin: 30px auto;
    max-width: 680px; /* Recommended width for blog images */
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.page-about__figcaption {
    font-size: 0.95em;
    color: #666666;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eeeeee;
}

/* List styles */
.page-about__value-list,
.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-about__value-item,
.page-about__commitment-item {
    background-color: #f0f8ff; /* Light blue background for list items */
    border-left: 5px solid #26A9E0;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.05em;
}

.page-about__value-item strong,
.page-about__commitment-item strong {
    color: #26A9E0;
}

/* Advantage Grid */
.page-about__advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__advantage-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__advantage-card .page-about__card-title {
    color: #26A9E0;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-about__advantage-card p {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-about__card-link {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 5px;
    align-self: flex-start;
}

.page-about__card-link:hover {
    background-color: #1a7fb3;
    border-color: #1a7fb3;
}

/* Final CTA */
.page-about__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    /* Top section title + dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 20px;
    }

    .page-about__hero-content {
        margin-top: -50px; /* Less overlap on mobile */
        padding: 20px;
    }

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1em;
    }

    /* Single column long text container */
    .page-about__article-wrap {
        padding: 0 15px !important; /* Adjust padding for mobile */
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-about h3 {
        font-size: 1.4em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-about p {
        font-size: 1em;
        line-height: 1.6;
    }

    /* General images and figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-about__figure {
        margin: 20px auto;
        border-radius: 5px;
    }

    .page-about__figcaption {
        font-size: 0.85em;
        padding: 10px;
    }

    /* Buttons and button containers */
    .page-about__final-cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .page-about__final-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Advantage Grid */
    .page-about__advantage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__advantage-card {
        padding: 20px;
    }

    .page-about__advantage-card .page-about__card-title {
        font-size: 1.3em;
    }

    .page-about__advantage-card p {
        font-size: 0.95em;
    }

    .page-about__card-link {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* List items */
    .page-about__value-item,
    .page-about__commitment-item {
        padding: 12px 15px;
        font-size: 1em;
    }
}