/* public/blogs/css/slider.css */
.hero-slider-wrapper {
    position: relative;
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    height: 320px;
    border-radius: 0;
    overflow: hidden;
    background-color: #0f766e;
    margin-bottom: 2.5rem;
    box-shadow: none;
}

@media (min-width: 1024px) {
    .hero-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        height: 400px;
        border-radius: 2rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
    display: flex;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 75%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    /* Solid brand-teal on the left, fading to transparent on the right */
    background: linear-gradient(90deg, #0f766e 0%, rgba(15,118,110,0.95) 40%, rgba(15,118,110,0) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    max-width: 70%;
}

@media (min-width: 768px) {
    .hero-slide-content {
        padding: 4rem;
        max-width: 60%;
    }
}

.hero-slide-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: max-content;
}

.hero-slide-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-slide-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
}

.hero-slide-desc {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 95%;
}

@media (min-width: 768px) {
    .hero-slide-desc {
        font-size: 0.875rem;
        max-width: 75%;
    }
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #0f766e;
    font-weight: 700;
    border-radius: 1rem;
    font-size: 0.875rem;
    width: max-content;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-slide-btn:hover {
    transform: translateY(-2px);
    background-color: #f1f5f9;
}

/* Slider Controls */
.hero-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 30;
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .hero-slider-controls {
        left: 4rem;
    }
}

.hero-slider-dot {
    width: 2.5rem;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-slider-dot.active {
    background-color: #fff;
}
