/* Hero Section Styling - Scoped to .hero-editorial */
/* Medenin-style Expanding Circle Bubble & Bottom-to-Top Doctor Rise Animation */

.hero-editorial {
    position: relative;
    padding-top: 115px;
    padding-bottom: 50px;
    background: linear-gradient(160deg, #D6EEF9 0%, #B2E0F4 32%, #C4E7F7 68%, #D8F0FA 100%);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
}

/* Subtle Topographic Background Texture */
.hero-editorial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 85%, rgba(160, 215, 245, 0.25) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 18%, rgba(140, 205, 240, 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(190, 230, 250, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-editorial .hero-editorial__container {
    position: relative;
    z-index: 2;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* 2-Column Grid: Left Content & Dots, Right Expanding Bubble Stage */
.hero-editorial .hero-editorial__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

/* Left Content Column */
.hero-editorial .hero-editorial__content-col {
    text-align: left;
    position: relative;
    z-index: 3;
}

/* Elegant Subtitle / Badge */
.hero-editorial .hero-editorial__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(53, 214, 197, 0.5);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #10364C;
    box-shadow: 0 4px 14px rgba(77, 168, 255, 0.12);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-editorial .hero-editorial__badge:hover {
    transform: translateY(-2px);
    border-color: #35D6C5;
    box-shadow: 0 6px 20px rgba(53, 214, 197, 0.25);
}

.hero-editorial .hero-editorial__badge-icon {
    color: #35D6C5;
    font-size: 0.95rem;
}

/* Expressive Headline */
.hero-editorial .hero-editorial__headline {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #10364C;
    margin: 0 0 18px 0;
}

.hero-editorial .hero-editorial__headline-gradient {
    background: linear-gradient(135deg, #026AA7 0%, #087F75 60%, #0C9184 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: heroTextGradient 6s ease infinite alternate;
}

@keyframes heroTextGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Supporting Description */
.hero-editorial .hero-editorial__description {
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.65;
    color: #143F57;
    max-width: 530px;
    margin: 0 0 26px 0;
}

/* Action Buttons */
.hero-editorial .hero-editorial__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.hero-editorial .hero-editorial__btn-primary {
    position: relative;
    background: linear-gradient(135deg, #4DA8FF 0%, #35D6C5 100%);
    color: #FFFFFF;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(77, 168, 255, 0.32), 0 3px 8px rgba(53, 214, 197, 0.22);
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    z-index: 1;
}

.hero-editorial .hero-editorial__btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.65s ease;
    z-index: 2;
    pointer-events: none;
}

.hero-editorial .hero-editorial__btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 34px rgba(77, 168, 255, 0.45), 0 6px 14px rgba(53, 214, 197, 0.32);
}

.hero-editorial .hero-editorial__btn-primary:hover::before {
    left: 140%;
}

.hero-editorial .hero-editorial__btn-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: #10364C;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid rgba(16, 54, 76, 0.14);
    box-shadow: 0 4px 14px rgba(16, 54, 76, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-editorial .hero-editorial__btn-secondary:hover {
    color: #144863;
    background: rgba(235, 248, 255, 0.98);
    border-color: #35D6C5;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(77, 168, 255, 0.2);
}


/* ==========================================================================
   RIGHT COLUMN: MEDENIN-STYLE ANIMATED BUBBLE & RISING DOCTOR STAGE
   ========================================================================== */
.hero-editorial .hero-editorial__stage-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 520px;
}

.hero-editorial .hero-editorial__anim-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Expanding Circular Bubble SVG */
.hero-editorial .hero-editorial__circle-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 530px;
    height: 530px;
    pointer-events: none;
    z-index: 1;
}

/* SVG Circles with Expansion Keyframes */
.hero-editorial .hero-editorial__big-circle {
    transform: scale(0);
    transform-origin: center;
    will-change: transform, opacity;
}

.hero-editorial .hero-editorial__small-circle {
    transform: scale(0);
    transform-origin: center;
    will-change: transform, opacity;
}

.hero-editorial .hero-editorial__outer-aura {
    transform: scale(0);
    transform-origin: center;
    will-change: transform, opacity;
}

/* Active Expansion Animation (Triggered by JS on slide start) */
.hero-editorial.hero-editorial--animate .hero-editorial__big-circle {
    animation: heroCircleExpands 1s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal forwards;
}

.hero-editorial.hero-editorial--animate .hero-editorial__small-circle {
    animation: heroCircleExpands 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s 1 normal forwards;
}

.hero-editorial.hero-editorial--animate .hero-editorial__outer-aura {
    animation: heroCircleExpands 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s 1 normal forwards;
}

@keyframes heroCircleExpands {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Doctor Portrait rising from Bottom to Up onto the Front */
.hero-editorial .hero-editorial__doctor-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
}

.hero-editorial .hero-editorial__slide-item {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hero-editorial .hero-editorial__slide-item.hero-editorial__slide-item--active {
    opacity: 1;
    pointer-events: auto;
}

/* The Doctor Cutout Image */
.hero-editorial .hero-editorial__animated-hero {
    position: absolute;
    bottom: 0;
    max-height: 505px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    z-index: 10;
    opacity: 0;
    transform: translateY(100%);
    will-change: transform, opacity;
    filter: drop-shadow(0 15px 35px rgba(77, 168, 255, 0.2));
}

/* Active Slide-Up Animation (Photo comes to the front from bottom to up!) */
.hero-editorial.hero-editorial--animate .hero-editorial__slide-item--active .hero-editorial__animated-hero {
    animation: heroSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s 1 normal forwards;
}

@keyframes heroSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    65% {
        opacity: 1;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Doctor Identity Capsule at Bottom (Does NOT cover the face!) */
.hero-editorial .hero-editorial__doctor-pill {
    position: absolute;
    bottom: 15px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(131, 230, 208, 0.55);
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: 0 8px 24px rgba(77, 168, 255, 0.16);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 15;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.hero-editorial.hero-editorial--animate .hero-editorial__slide-item--active .hero-editorial__doctor-pill {
    animation: heroFadePill 0.8s ease 1.1s 1 normal forwards;
}

@keyframes heroFadePill {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-editorial .hero-editorial__doctor-pill:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #35D6C5;
    box-shadow: 0 12px 30px rgba(53, 214, 197, 0.28);
}

.hero-editorial .hero-editorial__doctor-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35D6C5;
    box-shadow: 0 0 8px #35D6C5;
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 1; }
}

.hero-editorial .hero-editorial__pill-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1A516E;
    margin: 0;
    line-height: 1.2;
}

.hero-editorial .hero-editorial__pill-specialty {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0E8378;
    margin: 0;
    line-height: 1.2;
}

/* Interactive Hover Glare / Sheen */
.hero-editorial .hero-editorial__stage-col:hover .hero-editorial__animated-hero {
    transform: translateY(-4px) scale(1.02);
    transition: transform 0.4s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-editorial {
        padding-top: 95px;
        padding-bottom: 40px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden !important;
        box-sizing: border-box;
    }
    .hero-editorial .hero-editorial__container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hero-editorial .hero-editorial__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-editorial .hero-editorial__content-col {
        text-align: center;
    }
    .hero-editorial .hero-editorial__description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-editorial .hero-editorial__actions {
        justify-content: center;
    }
    .hero-editorial .hero-editorial__stage-col {
        height: min(420px, 60vh);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .hero-editorial .hero-editorial__circle-svg {
        width: min(380px, 86vw);
        height: min(380px, 86vw);
    }
    .hero-editorial .hero-editorial__animated-hero {
        max-height: min(400px, 58vh);
        max-width: 88vw;
    }
}

@media (max-width: 576px) {
    .hero-editorial {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    .hero-editorial .hero-editorial__container {
        padding: 0 16px;
    }
    .hero-editorial .hero-editorial__headline {
        font-size: clamp(2rem, 8.2vw, 2.5rem);
    }
    .hero-editorial .hero-editorial__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-editorial .hero-editorial__btn-primary,
    .hero-editorial .hero-editorial__btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-editorial .hero-editorial__stage-col {
        height: min(340px, 52vh);
    }
    .hero-editorial .hero-editorial__circle-svg {
        width: min(290px, 82vw);
        height: min(290px, 82vw);
    }
    .hero-editorial .hero-editorial__animated-hero {
        max-height: min(320px, 50vh);
        max-width: 82vw;
    }
    .hero-editorial .hero-editorial__doctor-pill {
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    .hero-editorial.hero-editorial--animate .hero-editorial__slide-item--active .hero-editorial__doctor-pill {
        animation: heroFadePillMobile 0.8s ease 1.1s 1 normal forwards;
    }
    @keyframes heroFadePillMobile {
        0% { opacity: 0; transform: translate(-50%, 20px); }
        100% { opacity: 1; transform: translate(-50%, 0); }
    }
}
