/* Banner styles for home page */
.banner-title{
    margin-bottom: 2rem!important;

}
/* Common banner styles */
.banner_holder,
.banner_holder_multiple,
.banner_event_multiple {
    margin-bottom: 20px;
}

/* Single product banner */
.banner_holder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.banner_holder > div:first-child {
    flex: 1;
}

.banner_holder > div:last-child {
    flex: 1;
    text-align: center;
}

.banner_image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

/* Multiple products banner */
.banner_holder_multiple {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

/* Multiple events banner */
.banner_event_multiple {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner_calendar_event {
    flex: 1;
    display: flex;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 5px;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
}


.banner_event_multiple .calendar_date {
    width: unset;
    text-align: left;
    border-right: none;
    color: var(--dark);
    padding: 0;
    display: flex;
    align-items: center;

    .calendar_day {
        margin-right: .5rem;
        font-size: 26px;
        font-weight: bold;
    }

    .calendar_month {
        font-size: 26px;
    }
}

.banner_event_single{
    .calendar_content {
        flex: 1;
        text-align: left;
        padding: 1rem;
    }


}
.calendar_content h4 {
    margin-bottom: 1rem;
    font-size: 18px;
    color: var(--dark);
    font-weight: 400;
    text-transform: unset;
}

.calendar_content p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.calendar_icon {
    width: 100%;
    text-align: right;
}

.flag {
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
}


.banner_event_single{
    padding: .5rem 1rem;
    background-color: var(--light);
    border-radius: 10px;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
}

.calendar_responsive_content{
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;

    .calendar_icon{
        width: 3rem;
        vertical-align: middle;
        color: var(--text-color);
        padding: 0 1rem;
    }
}

.calendar_event_type_detail{
    border: 1px solid rgba(0,0,0,.1);
    .calendar_date{
        padding: .5rem 1rem .5rem 0;
    }
    h4{
        margin-bottom: .5rem;
    }
}

.banner_event_single .calendar_date {
    width: 4rem;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.13);
    color: var(--dark);
    padding: 1rem 1rem 1rem 0;
    display: block;

    .calendar_day{
        font-size: 32px;
        font-weight: bold;
    }

    .calendar_month{
        font-size: 24px;
    }
}

.calendar_person {
    margin-left: 1rem;
    text-align: center;
    overflow: hidden;
    min-width: 130px;
    max-height: 130px;
}

.calendar_person img {
    width: fit-content;
    max-width: 400px;
}

.event-akcia {
    background-color: #009FE3;
    /*border-left: 4px solid var(--primary);*/
    color: #fff!important;
}
.event-akcia h4,.event-akcia  .calendar_month,.event-akcia  .calendar_day {
    color: #fff!important;
}
.event-akcia  p {
    color: #ffffffaa!important;
}

.event-akcia i{
    color: #fff!important;

}

/* Product badges and thumbnail overlay for banner products (legacy classes) */
.banner_product_image {
    position: relative;
}
.badge_new {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    background-image: url(../images/badge_new.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 70px;
    width: 81px;
}

.badge_outdated {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    background-image: url(../images/badge_outdated.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 159px;
    width: 185px;
}

/* Optional: show overlay on hover for visual parity with categories grid */
.banner_product_image .thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.05);
    z-index: 1;
}
.banner_product_image:hover .thumbnail-overlay { display: flex; }
.banner_product_image .thumbnail-overlay-animated img.boxzoom {
    width: 32px;
    height: 32px;
    opacity: .85;
}

/* New banner card layout to mimic categories detail structure */
.banner_product_item {
    display: block;
    flex: 1 1 300px;
    .banner_more{
        margin-top: 1rem;
    }
}
.banner_container {
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 5px;
    overflow: hidden;
    height: 100%;

    .banner_image {
        position: relative;
        height: 200px;
        max-width: 100%;
        overflow: hidden;
        background: url("../images/bg_light_products.jpg") no-repeat;
        background-size: cover;
        padding-bottom: 0;
        > .banner_image_flex {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
    .banner_image img {
        max-height: 200px;
        width: auto;
        padding: 10px 0;
    }

    .banner_image .thumbnail-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        justify-content: center;
        align-items: center;
        background: rgba(0,0,0,0.05);
        z-index: 1;
    }
    .banner_image:hover .thumbnail-overlay { display: flex; }
    .banner_image .thumbnail-overlay-animated img.boxzoom {
        width: 32px;
        height: 32px;
        opacity: .85;
    }
}
.banner_container a {
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.banner_content {
    background: var(--light);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 15em;
    flex-grow: 1;
}
.banner_content_inner {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.banner_title {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
    font-weight: 500;
}
.banner_content .banner_text {
    color: var(--text-color);
    font-size: 14px;
    display: block;
    line-height: 16px;
    font-weight: normal;
    max-height: 8.5em;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    li {
        background: unset;
        list-style-type: square;
        margin-left: 1em;
        padding-left: 0;
        font-size: 14px;
        line-height: 16px;
        margin-bottom: 5px;
        padding-bottom: 5px;
        word-break: break-word;
    }
}

.banner_more{
    color: var(--primary);
    text-align: right;
}

/* Responsive styles */
@media (max-width: 991px) {
    .banner_holder,
    .banner_event_multiple{
        flex-direction: column;
    }
    
    .banner_holder > div:last-child,
    .banner_product_image {
        order: 1;
        margin-bottom: 20px;
    }
    
    .banner_holder > div:first-child,
    .banner_product_content,
    .banner_event_content {
        order: 2;
    }
    
    .banner_event_date {
        margin-bottom: 20px;
    }
    
    .banner_calendar_event {
        flex: 1 1 100%;
    }

    .calendar_event_responsive {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar_event .calendar_date {
        width: 100%;
        border-right: none;
        padding: 1rem 1rem 0;
        display: flex;
        align-items: center;
    }
}

@media only screen and (max-width: 768px) {
    .calendar_responsive_content {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
        padding: 1rem;
        .calendar_content {
            padding: 0;
        }
    }
    .calendar_responsive_content {
        .calendar_icon {
            width: 100% !important;
            text-align: right;
            padding: 0 !important;
            color: var(--primary);
        }
    }
}

@media (max-width: 575px) {
    .calendar_icon span {
        display: none;
    }
}


