﻿/* ===== RESET ===== */
.slider_content > * {
    opacity: 0;
    transform: translateX(-40px);
}

/* ===== KHI SLIDE ACTIVE ===== */
.owl-item.active .slider_content h1 {
    animation: slideInText .8s ease forwards;
    animation-delay: .3s;

}

.owl-item.active .slider_content p {
    animation: slideInText .8s ease forwards;
    animation-delay: .55s;
}

.owl-item.active .slider_content .btn_slider {
    animation: slideInText .8s ease forwards;
    animation-delay: .75s;
}

/* ===== KEYFRAMES ===== */
@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.owl-item.active .slider_content h1,
.owl-item.active .slider_content p,
.owl-item.active .slider_content .btn_slider{
    animation-timing-function: cubic-bezier(.22,.61,.36,1);
}




/* xử lý chấm tròn slider */

.slider_area{
    position: relative;
}
/* container chấm tròn */
.slider_area .owl-dots {
    position: absolute;
    bottom: 20px;           /* khoảng cách từ đáy ảnh */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

/* từng chấm */
.slider_area .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: block;
    transition: all .3s ease;
}

/* chấm active */
.slider_area .owl-dot.active span {
    background: #e6fffc;   /* màu thương hiệu */
    transform: scale(1.2);
}

.slider_section {
    position: relative;
}

.single_slider {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.slider_content {
    max-width: 520px;
    color: #fff;
}

.slider_content h1 {
    font-size: 36px;
    font-weight: 750;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.slider_content p {
    font-size: 16px;
    margin-bottom: 25px;
}

.btn_slider {
    display: inline-block;
    padding: 12px 28px;
    background: #16b3a3;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
}

.btn_slider:hover {
    display: inline-block;
    padding: 12px 28px;
    background: #132120;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
}
/* FIX OWL CAROUSEL BUNG SLIDE */
.owl-carousel {
    display: block;
    width: 100%;
}

.owl-stage-outer {
    overflow: hidden;
}

.owl-item {
    float: left;
}

.single_slider::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.35) 42%,
        rgba(0,0,0,0.05) 72%,
        rgba(0,0,0,0) 100%
    );
    z-index: 1;
}

.single_slider .container{
    position: relative;
    z-index: 2;
}
.color1{
    color: #00f0dc;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.6),
        0 0 12px rgba(0,240,220,0.85),
        0 0 26px rgba(0,240,220,0.45);
}
