/* ==========================================================================
   SPARC GEOMETRIC INTERLOCKING HERO MODULE (GAP RECTIFIED)
   ========================================================================== */
.sparc-geo-hero-section {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    height: 85vh;
}

.sparc-geo-hero-wrapper {
    width: 100%;
    display: flex;
    min-height: 600px;
    height: 85vh; 
    max-height: 750px;
    background-color: #ffffff;
    position: relative;
}

/* --- Left Side Panel: Slanted Content Area + Purple Overlay --- */
.sparc-geo-hero-left-pane {
    flex: 0 0 50%; /* Fixed baseline sizing */
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    
    background: #004d4d;
    /* THE CLOSURE FIX: Slices the right side edge cleanly at a matching parallel slant angle */
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
}

/* Internal text alignment frame */
.sparc-geo-hero-text-container {
    width: 100%;
    max-width: 720px;
    padding: 40px 100px 40px 65px;
    display: flex;
    flex-direction: column;
}

/* --- Right Side Panel: Complementary Image Polygon --- */
.sparc-geo-hero-right-pane {
    position: absolute;
    top: 0;
    right: 0;
    
    /* THE BRIDGING FIX: Widened to 50% and pulled slightly leftward to close the massive white space gap */
    width: 65%; 
    height: 100%;
    z-index: 1;
    
    /* THE MATCHING SLANT: Left edge starts exactly 2% wider than the left panel's cut-off points */
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    background-color: #004d4d;
    
    margin-left: -5%; /* Seamless overlay boundary lock */
}

.sparc-geo-hero-fitted-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center;
}

.sparc-geo-hero-tagline {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.sparc-geo-hero-main-title {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.sparc-geo-hero-text-highlight {
    font-style: italic;
    color: #fff;
}

.sparc-geo-hero-description {
    font-size: 15.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 460px;
}

/* Actions Button Group */
.sparc-geo-hero-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.sparc-geo-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 6px;
}

.sparc-geo-hero-btn-primary {
    background-color: #ffffff;
    color: var(--primary-blue);
    border: 1px solid #ffffff;
}

.sparc-geo-hero-btn-primary:hover {
    background-color: #004d4d;
    transform: translateY(-1px);
    color:#fff;
}

.sparc-geo-hero-btn-secondary {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

.sparc-geo-hero-btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
}

/* FORCE HERO RATING TEXT WHITE */
.sparc-hero-patient-count,
.sparc-geo-hero-rating-block,
.sparc-geo-hero-rating-block span,
.sparc-geo-hero-rating-block p,
.sparc-geo-hero-rating-block div {
    color: #ffffff !important;
}

.sparc-geo-hero-arrow {
    margin-left: 8px;
    font-weight: bold;
}

/* Trust Metrics Badges */
.sparc-geo-hero-trust-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sparc-geo-hero-avatar-stack {
    display: flex;
}

.sparc-geo-hero-avatar-stack img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -10px;
}

.sparc-geo-hero-avatar-stack img:first-child {
    margin-left: 0;
}

.sparc-geo-hero-rating-block .sparc-hero-patient-count {
    font-size: 13px;
    font-weight: 600;
    display: block;
    color: #ffffff !important;
}

.sparc-geo-hero-stars-row {
    color: #ffb400;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.sparc-geo-hero-score-num {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    margin-left: 4px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1300px) {
    .sparc-geo-hero-main-title {
        font-size: 42px;
    }
    .sparc-geo-hero-text-container {
        padding: 40px 120px 40px 45px;
    }
}

@media (max-width: 1024px) and (min-width: 651px) {
    .sparc-geo-hero-main-title {
        font-size: 38px;
    }
    .sparc-geo-hero-text-container {
        padding: 40px 90px 40px 30px;
    }
    .sparc-geo-hero-description {
        font-size: 14px;
    }
}

/* Mobile Screens Target Breakpoint */
@media (max-width: 650px) {
    /* THE VERTICAL GAP FIX: Enforces container modules to hug textual layouts perfectly */
    .sparc-geo-hero-section {
        height: auto !important; /* FIXED: Overrides 85vh height restriction from dragging empty space */
    }

    .sparc-geo-hero-wrapper {
        height: auto !important; /* FIXED: Drops 85vh layout baseline constraint entirely on mobile */
        min-height: auto; /* Drops minimum bounds constraint block preventing neat contraction */
        display: block; 
    }

    /* THE MOBILE BG OVERLAY FIX */
    .sparc-geo-hero-left-pane {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        clip-path: none; 
        background: #004d4d;
        z-index: 2;
    }

    .sparc-geo-hero-right-pane {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        margin-left: 0;
        clip-path: none; 
        z-index: 1; 
    }

    .sparc-geo-hero-text-container {
        max-width: 100%;
        padding: 50px 24px; /* Slightly compacted padding parameters keep focus tight inside mobile viewports */
        align-items: center;
        text-align: center;
    }

    .sparc-geo-hero-description {
        max-width: 600px;
    }

    .sparc-geo-hero-button-group {
        justify-content: center;
    }

    .sparc-geo-hero-trust-rating {
        justify-content: center;
    }
}

@media (max-width: 550px) {
    .sparc-geo-hero-main-title {
        font-size: 32px;
    }
}