/* ==========================================================================
   Lusaka Eye Hospital - Hero Events & News Carousel Styles
   Design Language: LEH Clinical Portal (Slate-50, Sky-600, Navy-900, Inter)
   ========================================================================== */

.hero-events-block {
    position: relative;
    z-index: 10;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.hero-events-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

@media (min-width: 900px) {
    .hero-events-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.hero-events-heading-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-events-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
}

.hero-events-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.1vw, 1.55rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.hero-events-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
}

.hero-events-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.hero-filter-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hero-filter-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.78rem;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.hero-filter-btn:hover {
    color: #0284c7;
    background: #f0f9ff;
}

.hero-filter-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

.hero-carousel-header-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-carousel-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.38rem 0.7rem;
    font-variant-numeric: tabular-nums;
}

/* Main Hero Carousel Card */
.carousel-wrapper,
.hero-carousel-card {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(2, 132, 199, 0.06);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-carousel-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 22px 44px -14px rgba(2, 132, 199, 0.16), 0 4px 16px rgba(15, 23, 42, 0.08);
}

.hero-carousel-card:focus {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Top Auto-Advance Progress Bar */
.carousel-progress-bar-track {
    width: 100%;
    height: 3.5px;
    background-color: #e2e8f0;
    position: relative;
    z-index: 20;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
    transition: width 0.08s linear;
}

/* Track & Slides */
.carousel-slides-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.hero-slide-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 768px) {
    .hero-slide-grid {
        grid-template-columns: 320px 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-slide-grid {
        grid-template-columns: 390px 1fr;
    }
}

.hero-slide-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

@media (min-width: 768px) {
    .hero-slide-media {
        aspect-ratio: auto;
        min-height: 270px;
    }
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel-card:hover .hero-slide-img {
    transform: scale(1.03);
}

.hero-slide-media-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 45%, rgba(15, 23, 42, 0.25) 100%);
    pointer-events: none;
}

.hero-slide-cat-pill {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 4;
    padding: 0.32rem 0.78rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.hero-slide-cat-pill.badge-event {
    background: rgba(217, 119, 6, 0.92);
    color: #ffffff;
}

.hero-slide-cat-pill.badge-outreach {
    background: rgba(5, 150, 105, 0.92);
    color: #ffffff;
}

.hero-slide-cat-pill.badge-pediatric {
    background: rgba(79, 70, 229, 0.92);
    color: #ffffff;
}

.hero-slide-cat-pill.badge-surgical {
    background: rgba(2, 132, 199, 0.92);
    color: #ffffff;
}

.hero-slide-cat-pill.badge-news {
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
}

.hero-slide-body {
    padding: 1.35rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hero-slide-body {
        padding: 1.75rem 2.15rem;
    }
}

.hero-slide-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
}

.hero-slide-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.hero-slide-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.hero-slide-title {
    margin: 0;
    font-size: clamp(1.15rem, 1.9vw, 1.48rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.hero-slide-summary {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.hero-slide-btn-primary {
    border: none;
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slide-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35);
}

.hero-slide-btn-secondary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.63rem 1.05rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-slide-btn-secondary:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #0284c7;
}

/* Carousel Bottom Controls Bar */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

@media (min-width: 768px) {
    .carousel-controls {
        padding: 0.9rem 1.75rem;
    }
}

.carousel-indicators {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot:hover {
    background-color: #64748b;
}

.carousel-dot.active {
    background-color: #0284c7;
    width: 26px;
}

.carousel-controls-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hero-carousel-playpause {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.36rem 0.72rem;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.hero-carousel-playpause:hover {
    border-color: #93c5fd;
    color: #0284c7;
    background: #eff6ff;
}

.carousel-nav-btn-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.carousel-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
}

.carousel-nav-btn:active {
    transform: translateY(0);
}
