.insurance-hero-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
    font-family: 'Raleway', 'Helvetica Neue', sans-serif;
}

.hero-layout-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Ambient soft blue backdrop blur spotlight behind glass layout card */
.hero-layout-container::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(135, 206, 250, 0.25) 0%, rgba(135, 206, 250, 0) 70%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

/* Back arrow style layer for mobile screen viewports */
.hero-back-btn {
    position: absolute;
    top: 20px;
    left: 25px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

/* Main image panel matching crop boundaries */
.hero-image-pane {
    width: 100%;
    height: 250px; /* Locked height to prevent image collapsing on mobile */
    position: relative;
    z-index: 1;
}

.hero-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    color: #00a959;
    text-transform: none;
}

.hero-card-meta > span {
    display: inline;
}

.hero-meta-divider {
    color: #777;
    flex-shrink: 0;
}

.hero-meta-author {
    flex-basis: 100%;
}

/* Desktop */
@media (min-width: 768px) {
    .hero-card-meta {
        font-size: 18px;
        column-gap: 12px;
        row-gap: 8px;
        margin-top: 18px;
        color: #00a959;
    }

    .hero-meta-author {
        flex-basis: auto;
    }
}

/* FIX 1: cover eliminates white space; right center preserves tops and bottoms */
.hero-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

/* ================= MOBILE VIEW CAPSULE INTERFACE ================= */
.hero-floating-card {
    background: rgba(255, 255, 255, 0.88); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px; 
    padding: 14px 35px;
    width: 92%;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.hero-card-title {
    font-size: 16px;
    line-height: 1.25;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.hero-card-meta {
    font-size: 10px;
    color: #00a959;
    font-weight: 600;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    text-transform: none;
}

.hero-meta-divider {
    color: #cbd5e1;
}

.hero-card-desc {
    display: none !important;
}

/* ================= DESKTOP BREAK ADJUSTMENTS (Min Width 768px) ================= */
@media (min-width: 768px) {
    .insurance-hero-section {
        padding: 0 20px;
        margin: 40px auto;
    }

    .hero-layout-container {
        flex-direction: row;
        align-items: center;
        min-height: 450px;
        overflow: visible;
    }

    .hero-back-btn {
        display: none !important;
    }

    /* FIX 2: Set width to 62% to eliminate vertical cropping */
    .hero-image-pane {
        width: 62%;
        height: 430px;
        position: absolute;
        top: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    }

    .hero-floating-card {
        width: 44%;
        border-radius: 16px; 
        padding: 40px;
        position: absolute;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    }

    .hero-card-title {
        font-size: 32px;
    }

    .hero-card-meta {
        font-size: 12px;
        margin-top: 18px;
    }

    .hero-card-desc {
        display: block !important;
        font-size: 14px;
        line-height: 1.6;
        color: #475569;
        margin-top: 18px;
        text-align: left;
    }

    /* Layout Track Alignment A: Card Left, Glow Left, Image Right */
    .layout-align-left .hero-image-pane {
        right: 0;
        left: auto;
    }
    .layout-align-left .hero-floating-card {
        left: 0;
        right: auto;
        transform: translateY(-50%);
    }
    .layout-align-left::before {
        left: -120px;
        right: auto;
    }

    /* Layout Track Alignment B: Card Right, Glow Right, Image Left */
    .layout-align-right .hero-image-pane {
        left: 0;
        right: auto;
    }
    .layout-align-right .hero-image-pane img {
        object-position: left center;
    }
    .layout-align-right .hero-floating-card {
        right: 0;
        left: auto;
        transform: translateY(-50%);
    }
    .layout-align-right::before {
        right: -120px;
        left: auto;
    }
}