/* ========================================
   HOME SLIDER CSS - MATERIAL PINK THEME
   ========================================
   This file contains all CSS required for the home slider
   without affecting other parts of the application
*/

/* Bootstrap Touch Slider Container */
#bootstrap-touch-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
}

/* Ensure proper spacing after slider */
#bootstrap-touch-slider + * {
    margin-top: 0;
}

#bootstrap-touch-slider .carousel-inner {
    height: 70vh;
    min-height: 60vh;
}

#bootstrap-touch-slider .carousel-inner .item {
    position: relative;
    display: none;
    width: 100%;
    height: 70vh;
    min-height: 60vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

#bootstrap-touch-slider .carousel-inner .item.active {
    display: block;
}

#bootstrap-touch-slider .carousel-inner .item.next,
#bootstrap-touch-slider .carousel-inner .item.prev {
    position: absolute;
    top: 0;
    width: 100%;
}

#bootstrap-touch-slider .carousel-inner .item.next.left,
#bootstrap-touch-slider .carousel-inner .item.prev.right {
    left: 0;
}

/* Slider Overlay */
#bootstrap-touch-slider .bs-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.40);
    z-index: 1;
}

/* Hero Content Styles */
#bootstrap-touch-slider .hero-content {
    position: absolute;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    text-align: left;
    color: #fff;
    top: 50%;
    left: 18%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#bootstrap-touch-slider .hero-content .hero-sub-title {
    display: inline-block;
    color: #bd0745;
    font-size: 25px;
    letter-spacing: 6px;
    font-weight: 800;
    position: relative;
    text-transform: uppercase;
    border-bottom: 3px solid #bd0745;
    margin-bottom: 25px;
    animation: fadeInDown 1s ease-out;
}

#bootstrap-touch-slider .hero-content .hero-sub-title i {
    margin-right: 10px;
    color: #bd0745;
}

#bootstrap-touch-slider .hero-content .hero-title {
    color: #ffffff;
    font-size: 72px;
    font-weight: 800;
    margin: 25px 0;
    text-transform: capitalize;
    animation: fadeInRight 1s ease-out;
    line-height: 1.2;
}

#bootstrap-touch-slider .hero-content .hero-title span {
    color: #bd0745;
}

#bootstrap-touch-slider .hero-content p {
    color: #ffffff;
    line-height: 30px;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 25px;
    animation: fadeInLeft 1s ease-out;
}

#bootstrap-touch-slider .hero-content .hero-btn {
    gap: 1.2rem;
    display: flex;
    margin-top: 30px;
    justify-content: flex-start;
    animation: fadeInUp 1s ease-out;
}

/* Theme Button Styles */
#bootstrap-touch-slider .hero-content .theme-btn {
    font-size: 14px;
    color: #ffffff;
    padding: 14px 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    border-radius: 50px 50px 50px 0;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    border: none;
    background: #bd0745;
    box-shadow: 0 4px 15px rgba(189, 7, 69, 0.3);
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

#bootstrap-touch-slider .hero-content .theme-btn::before {
    content: "";
    height: 300px;
    width: 300px;
    background: #202c45;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) scale(0);
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

#bootstrap-touch-slider .hero-content .theme-btn:hover {
    color: #ffffff;
    text-decoration: none;
}

#bootstrap-touch-slider .hero-content .theme-btn:hover::before {
    transform: translateY(-50%) translateX(-50%) scale(1);
}

#bootstrap-touch-slider .hero-content .theme-btn i {
    margin-left: 5px;
}

#bootstrap-touch-slider .hero-content .theme-btn span {
    margin-right: 5px;
}

#bootstrap-touch-slider .hero-content .theme-btn2 {
    background: #ffffff;
    color: #202c45;
}

#bootstrap-touch-slider .hero-content .theme-btn2::before {
    background: #bd0745;
}

#bootstrap-touch-slider .hero-content .theme-btn2:hover {
    color: #ffffff;
}

/* Carousel Controls */
#bootstrap-touch-slider .carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    font-size: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#bootstrap-touch-slider .carousel-control:hover {
    opacity: 0.9;
}

#bootstrap-touch-slider .carousel-control.left {
    left: 0;
    background-image: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,.0001) 100%);
}

#bootstrap-touch-slider .carousel-control.right {
    right: 0;
    background-image: linear-gradient(to right, rgba(0,0,0,.0001) 0%, rgba(0,0,0,.5) 100%);
}

#bootstrap-touch-slider .carousel-control .fa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
}

#bootstrap-touch-slider .carousel-control .fa-angle-left {
    left: 50%;
    margin-left: -15px;
}

#bootstrap-touch-slider .carousel-control .fa-angle-right {
    right: 50%;
    margin-right: -15px;
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    #bootstrap-touch-slider .carousel-inner {
        height: 65vh;
        min-height: 55vh;
    }
    
    #bootstrap-touch-slider .hero-content .hero-title {
        font-size: 60px;
    }
    
    #bootstrap-touch-slider .hero-content {
        left: 15%;
        max-width: 750px;
    }
}

@media (max-width: 991px) {
    #bootstrap-touch-slider .carousel-inner {
        height: 60vh;
        min-height: 50vh;
    }
    
    #bootstrap-touch-slider .hero-content .hero-title {
        font-size: 48px;
        margin: 15px 0;
    }
    
    #bootstrap-touch-slider .hero-content .hero-sub-title {
        font-size: 20px;
        letter-spacing: 4px;
        margin-bottom: 15px;
    }
    
    #bootstrap-touch-slider .hero-content p {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 15px;
    }
    
    #bootstrap-touch-slider .hero-content {
        left: 10%;
        max-width: 700px;
        padding: 0 15px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-btn {
        margin-top: 25px;
    }
}

@media (max-width: 767px) {
    #bootstrap-touch-slider .carousel-inner {
        height: 55vh;
        min-height: 45vh;
    }
    
    #bootstrap-touch-slider .hero-content {
        width: 90%;
        left: 5%;
        padding: 0 10px;
        max-width: 600px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-title {
        font-size: 36px;
        margin: 12px 0;
        line-height: 1.1;
    }
    
    #bootstrap-touch-slider .hero-content .hero-sub-title {
        font-size: 18px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    #bootstrap-touch-slider .hero-content p {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 12px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-btn {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
        gap: 0.8rem;
    }
    
    #bootstrap-touch-slider .hero-content .theme-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #bootstrap-touch-slider .carousel-inner {
        height: 50vh;
        min-height: 40vh;
    }
    
    #bootstrap-touch-slider .hero-content {
        width: 95%;
        left: 2.5%;
        padding: 0 8px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-title {
        font-size: 28px;
        margin: 10px 0;
        line-height: 1.1;
    }
    
    #bootstrap-touch-slider .hero-content .hero-sub-title {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    
    #bootstrap-touch-slider .hero-content p {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 10px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-btn {
        margin-top: 15px;
        gap: 0.6rem;
    }
    
    #bootstrap-touch-slider .hero-content .theme-btn {
        padding: 10px 14px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    #bootstrap-touch-slider .carousel-inner {
        height: 45vh;
        min-height: 35vh;
    }
    
    #bootstrap-touch-slider .hero-content .hero-title {
        font-size: 24px;
        margin: 8px 0;
    }
    
    #bootstrap-touch-slider .hero-content .hero-sub-title {
        font-size: 12px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }
    
    #bootstrap-touch-slider .hero-content p {
        font-size: 11px;
        line-height: 16px;
        margin-bottom: 8px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-btn {
        margin-top: 12px;
    }
    
    #bootstrap-touch-slider .hero-content .theme-btn {
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* Touch Support for Mobile */
@media (max-width: 767px) {
    #bootstrap-touch-slider .carousel-control {
        width: 20%;
    }
    
    #bootstrap-touch-slider .carousel-control .fa {
        font-size: 24px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #bootstrap-touch-slider .carousel-inner {
        height: 100vh;
        min-height: 100vh;
    }
    
    #bootstrap-touch-slider .hero-content {
        top: 40%;
        transform: translateY(-40%);
    }
    
    #bootstrap-touch-slider .hero-content .hero-title {
        font-size: 48px;
        margin: 15px 0;
    }
    
    #bootstrap-touch-slider .hero-content .hero-sub-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    #bootstrap-touch-slider .hero-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    #bootstrap-touch-slider .hero-content .hero-btn {
        margin-top: 20px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #bootstrap-touch-slider .hero-content .hero-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    #bootstrap-touch-slider {
        display: none;
    }
}

/* Accessibility Improvements */
#bootstrap-touch-slider .carousel-control .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus States for Accessibility */
#bootstrap-touch-slider .carousel-control:focus {
    outline: 2px solid #bd0745;
    outline-offset: 2px;
}

#bootstrap-touch-slider .theme-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #bootstrap-touch-slider .hero-content * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

