/* =========================================
   SUBPAGE HERO COMPONENT
   ========================================= */

.subpage-hero {
    display: flex;
    align-items: center; /* This perfectly centers the text block vertically relative to the image! */
    padding-top: var(--header-height-dt); /* Perfectly touch navbar */
    padding-bottom: 30px;
    width: 100%;
}

.subpage-hero-left {
    flex: 0 0 42.5%; /* Made the image less wide as requested */
    max-width: 42.5%;
}

.subpage-hero-image {
    width: 100%;
    height: 465px; /* Explicit height of 465px as requested */
    background-image: url('../../images/about-office.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0 40px 40px 0;
}

.subpage-hero-right {
    flex: 0 0 57.5%; /* Take up the remaining space */
    max-width: 57.5%;
    position: relative;
    z-index: 1;
}

.subpage-hero-en {
    text-align: left;
    color: var(--primary-color);
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    padding-left: 10%;
}

.subpage-hero-bg {
    position: relative;
    padding: 30px 0;
    margin-bottom: 20px;
}

.subpage-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0; /* Touches image exactly */
    width: 100vw;
    background-color: var(--primary-light);
    z-index: -1;
}

.subpage-hero-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: left;
    padding-left: 10%;
}

.subpage-breadcrumb {
    font-size: var(--font-xs);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin: 0;
    padding-left: 10%;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-light);
}

@media (max-width: 991px) {
    .subpage-hero {
        flex-direction: column;
        align-items: stretch; /* Fix horizontal shrinking */
        padding-top: var(--header-height-sp);
        padding-bottom: 10px;
    }

    .subpage-hero-left,
    .subpage-hero-right {
        flex: none; /* Reset flex-basis which affects height in column mode */
        width: 100%; /* Force full width */
        max-width: 100%;
    }

    .subpage-hero-image {
        border-radius: 0 30px 30px 0;
        height: 300px;
        width: 90%; /* Increased inset to clearly show the curve */
    }

    .subpage-hero-right {
        padding-top: 30px;
        overflow: hidden; /* Prevent horizontal scroll from 100vw */
    }
    
    .subpage-hero-en {
        padding-left: 25px; /* Align with left edge of the pill */
        font-size: 1rem;
    }

    .subpage-hero-bg {
        padding: 12px 0; /* Make pill less tall */
        margin-bottom: 20px;
    }

    .subpage-hero-bg::before {
        left: 25px; /* Align pill start */
        width: calc(100vw - 25px);
        border-radius: 30px 0 0 30px / 60px 0 0 60px; /* Vertically elongated elliptical curve */
    }

    .subpage-hero-title {
        padding-left: 55px; /* Text aligned inside the pill */
        font-size: 1.8rem;
    }

    .subpage-breadcrumb {
        padding-left: 25px; /* Align with left edge of the pill */
    }
}

@media (max-width: 768px) {
    .subpage-hero-image {
        border-radius: 0 24px 24px 0;
        height: 220px;
        width: 92%;
    }

    .subpage-hero-title {
        font-size: 1.5rem;
    }
}
