/* ==========================================================================
   COMFORRT MATTRESS - EXACT HERO SLIDER (REVOLUTION SLIDER REPLICA)
   Matches https://comfortmattress.in/ 100% same-to-same
   ========================================================================== */

.page_cover_slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background-color: #111111;
}

@media (max-width: 768px) {
    .page_cover_slider {
        height: 440px;
    }
}

@media (max-width: 480px) {
    .page_cover_slider {
        height: 400px;
    }
}

.comfort-slides-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.comfort-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.comfort-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Dark overlay matching live Revolution Slider layer 0 */
.comfort-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Slide content container */
.comfort-slide-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .comfort-slide-container {
        padding: 0 20px;
        text-align: center;
    }
}

.comfort-slide-title {
    font-family: 'Roboto', sans-serif !important;
    font-size: 52px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 2px;
    color: #ffffff !important;
    margin: 0 0 16px 0;
    max-width: 1100px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.comfort-slide.active .comfort-slide-title {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 992px) {
    .comfort-slide-title {
        font-size: 40px;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .comfort-slide-title {
        font-size: 28px;
        line-height: 1.3;
        margin: 0 auto 12px;
    }
}

@media (max-width: 480px) {
    .comfort-slide-title {
        font-size: 23px;
        letter-spacing: 0.5px;
    }
}

.comfort-slide-desc {
    font-family: 'Roboto', sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 28px 0;
    max-width: 840px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s;
}

.comfort-slide.active .comfort-slide-desc {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .comfort-slide-desc {
        font-size: 14px;
        line-height: 1.5;
        margin: 0 auto 20px;
        max-width: 95%;
    }
}

.comfort-slide-btn {
    display: inline-block;
    background-color: #ffffff !important;
    color: #3e3585 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 55px;
    padding: 0 38px;
    border-radius: 3px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: 0.6s;
}

.comfort-slide.active .comfort-slide-btn {
    transform: translateY(0);
    opacity: 1;
}

.comfort-slide-btn:hover {
    background-color: #be272e !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(190, 39, 46, 0.4);
}

@media (max-width: 768px) {
    .comfort-slide-btn {
        font-size: 14px;
        line-height: 44px;
        padding: 0 26px;
    }
}

/* Revolution Slider Scroll Down Mouse Indicator */
.rev-scroll-mouse {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    cursor: pointer;
    text-decoration: none !important;
    transition: border-color 0.3s;
}

.rev-scroll-mouse:hover {
    border-color: #ffffff;
}

.rev-scroll-mouse span {
    display: block;
    width: 4px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 2px;
    animation: revScrollAnim 1.8s infinite ease-in-out;
}

@keyframes revScrollAnim {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .rev-scroll-mouse {
        display: none;
    }
}

/* Arrow buttons */
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.slider-arrow-btn:hover {
    background-color: #be272e;
    color: #ffffff;
}

.slider-arrow-btn.prev {
    left: 20px;
}

.slider-arrow-btn.next {
    right: 20px;
}

@media (max-width: 768px) {
    .slider-arrow-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .slider-arrow-btn.prev { left: 8px; }
    .slider-arrow-btn.next { right: 8px; }
}

/* Slide Dots */
.slider-dots {
    position: absolute;
    bottom: 22px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .slider-dots {
        right: 50%;
        transform: translateX(50%);
        bottom: 12px;
    }
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}
