/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 17 Nov 2022, 3:39:03 pm
    Author     : Homhero
*/

/* Special Card */

.homhero-specials:not(.specials-alternate-sides) .specials .special{
    margin-left: auto;
}
.specials .special{
    background-color: var(--theme--primary-color-20);
    padding: 5rem 0;
    margin-bottom: 3rem;
    width: 80%;
    position: relative;
}
.homhero-specials.specials-alternate-sides .specials .special.odd{
    margin-left: auto;
}
.homhero-specials.specials-alternate-sides .specials .special.even{
    margin-right: auto;
}
.homhero-specials .specials .special  .special-text-block{
    display: flex;
    position: relative;
    max-width: 30%;
    min-height: 400px;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.special-image-wrapper{
    position: absolute;
    width: 45%;
    height: auto;
    z-index: 1;
}


.special-image-wrapper:hover {
    box-shadow: var(--theme--box-shadow--hover);
}

.special-image-wrapper .special-image {
    height: 400px;
    width: 100%;
    object-fit: cover;
}


/* Left Aligned Styles */
.homhero-specials .specials .special.special-image-side-left .special-text-block {
    left: 45%;
    top: 0;
    bottom: 0;
}

.homhero-specials .specials .special.special-image-side-left .special-image-wrapper {
    left: -7%;
}

/* Right Aligned Styles */
.homhero-specials .specials .special.special-image-side-right .special-text-block {
    right: -20%;
}

.homhero-specials .specials .special.special-image-side-right .special-image-wrapper {
    right: -7%;
}

/* Responsive Styles for Screen Widths Between 1200px  - 1400 px*/
@media screen and (min-width:1200px) and (max-width: 1400px) {
    .homhero-specials .specials .special.special-image-side-left .special-text-block{
      left: 50%;
    } 
    .homhero-specials .specials .special.special-image-side-right .special-text-block{
        left: 10%;
        right: unset;
    }
}

/* Responsive Styles for Screen Widths Between 991px  - 1200 px*/
@media screen and (min-width:991px) and (max-width: 1200px) {
    .homhero-specials .specials .special.special-image-side-left .special-text-block{
      left: 50%;
    } 
    .homhero-specials .specials .special.special-image-side-right .special-text-block{
        left: 10%;
        right: unset; 
    }
}

/* Responsive Styles for Screen Widths Below 768px */
@media screen and (max-width: 991px) {
    .homhero-specials .specials .special {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* padding: 2rem 0; */
        padding-left: var(--theme--gutters);
        padding-right: var(--theme--gutters);
    }

    .special-image-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        /* margin-bottom: 0rem; */
    }

    .special-image-wrapper .special-image {
        width: 100%;
        height: 400px;

    }

    .homhero-specials .specials .special  .special-text-block {
        position: relative;
        max-width: 100%;
        min-height: auto;
        width: 100%;
        margin-top: 1rem;
    }
    /* Left Aligned Styles */
    .homhero-specials .specials .special.special-image-side-left .special-text-block, .homhero-specials .specials .special.special-image-side-left .special-image-wrapper {
        left: unset;
    }

     /* Right Aligned Styles */
    .homhero-specials .specials .special.special-image-side-right .special-text-block,.homhero-specials .specials .special.special-image-side-right .special-image-wrapper {
        right:  unset;
    }

    .homhero-specials .specials .special .special-image-wrapper{
        margin-top: -20%;
    }

    .homhero-specials .specials .special {
        margin-top:20%;
    }

   
}

@media screen and (min-width:991px) and (max-width: 1280px) {
    .homhero-specials .specials .special.special-image-side-left .special-image-wrapper {
        left: -10%;
    }

.special-image-wrapper {     
        width: 50%;
    }
    .homhero-specials .specials .special.special-image-side-right .special-image-wrapper {
    right: -10%;
}
}

/* Slider Special Card */
.homhero-special-slider{
    position: relative;
    width: 80%;
    margin-left: auto;
}


.special-image-wrapper .slick-prev:before,
.special-image-wrapper .slick-next:before {
    color: #fff;
    opacity: 1;
    font-size: 1rem;
    font-weight: 400;
}

.special-image-wrapper .slick-prev,
.special-image-wrapper .slick-next {
    top: unset;
    bottom: -25px;
    z-index: 1;
    left: unset;
    background-color: var(--theme--primary-color);
    height: 3rem;
    width: 3rem;
}

.special-image-wrapper .slick-prev:hover,
.special-image-wrapper .slick-next:hover {
    color: #fff;
    outline: none;
    background: var(--theme--primary-color-80);
}

.special-image-wrapper .slick-prev:focus,
.special-image-wrapper .slick-next:focus {
    background: var(--theme--primary-color);
}

.special-image-wrapper .slick-prev {
    right: calc(3rem + 2px);
}

.special-image-wrapper .slick-next {
    right: 0px;
}
.homhero-specials.homhero-special-slider .special-image-wrapper.special-slider-image-side-left {
     left: -7%; 
     top: 50%;
     transform: translateY(-55%);
}
@media screen and (max-width:991px){
    .homhero-special-slider {
        width: 100%;  
    }
    .homhero-specials.homhero-special-slider .special-image-wrapper.special-slider-image-side-left{
        position: relative;
        width: 100%;
        height: auto;
        left: 0%;
        top: 0%;
        transform: translateY(0%);
    }
    
    .homhero-specials.homhero-special-slider .special-image-wrapper.special-slider-image-side-left{
        margin-top: 0%;
    }
    .homhero-specials.homhero-special-slider .specials {
        /* margin-top:20%; */
        /* top: -17%; */
        transform: translateY(-30px);
    }
     .homhero-specials.homhero-special-slider .specials .special{
        padding-bottom:30px;
        padding-top: 60px;
        margin-top: 0;
        margin-bottom: 0;
    }
}
   

/* Admin Special Css when logged in  */
.admin-special-wrapper {
    position: absolute;
    top: 2rem;
    display:flex;
    gap:5px;
    /* width: 65%; */
    justify-content: flex-end;
}
.homhero-specials .specials .special.special-image-side-left .admin-special-wrapper {
    right: 2rem;
}
.homhero-specials .specials .special.special-image-side-right .admin-special-wrapper {
    left: 2rem;
}
@media screen and (max-width:930px){
    .admin-special-wrapper {
        display: none;
    }
  
}
.admin-special-message span , .admin-special-edit a{
    padding: 0.5em;
    border-radius: var(--theme--border-radius);
    color:#ffffff;
}
.admin-special-edit a{
    background-color: rgba(108,117,125,0.6);
    border: 2px solid rgb(108,117,125);
}

.admin-special-message .display-always-on{
   background-color: rgba(0,123,255,0.6);
   border: 2px solid rgb(0,123,255);
}
.admin-special-message .display-from{
    background-color: rgba(23,162,184,0.6);
    border: 2px solid rgb(23,162,184);
}
.admin-special-message .display-till{
    background-color: rgba(40,167,69,0.6);
    border: 2px solid rgb(40,167,69);
}
.admin-special-message .display-expired{
    background-color: rgba(220,53,69,0.6);
    border: 2px solid rgb(220,53,69);
}

.admin-special-message .display-last-minute{
    background-color: rgba(98,127,157,0.6);
    border: 2px solid rgb(98,127,157);
   margin-right:5px;
}
.admin-special-message .display-night-based{
   background-color: rgba(127,157,98,0.6);
    border: 2px solid rgb(127,157,98);
    margin-right:5px;
}
.admin-special-message .display-promo{
     background-color: rgba(157,98,127,0.6);
    border: 2px solid rgb(157,98,127);
    margin-right:5px;
}
