@import "../../style/variables.scss";

.event-card-web {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: transparent;
    border: 1px solid $mainBorder;
    position: relative;
    overflow: hidden;
    padding: 8px;
    transition: 0.3s ease-in-out;

    @media only screen and (min-width: 640px) {
        padding: 12px;
    }
    @media only screen and (min-width: 1200px) {
        padding: 10px;
    }
    @media only screen and (min-width: 1441px) {
        gap: 20px;
        padding: 12px;
    }

    @media only screen and (min-width: 1600px) {
        padding: 16px;
    }

    .link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .event-image-box {
        height: 190px;
        width: 100%;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        overflow: hidden;

        // @media only screen and (min-width: 410px) {
        //     height: 210px;
        // }
        @media only screen and (min-width: 370px) {
            height: 160px;
        }

        @media only screen and (min-width: 479px) {
            height: 250px;
        }

        // @media only screen and (min-width: 1200px) {
        //     height: 250px;
        // }
        @media only screen and (min-width: 1441px) {
            height: 271px;
        }

        img {
            width: 100%;
            height: 100%;
            min-height: initial;
            max-height: initial;
            object-fit: cover;
            transition: 0.3s ease-in-out;
        }

        .event-badge {
            position: absolute;
            font-size: 12px;
            line-height: 1;
            font-family: 'Avenir Next';
            font-weight: 500;
            padding: 7px 10px;
            color: $primary;
            top: 10px;
            left: 10px;
            text-transform: uppercase;
            background-color: $white;

            @media only screen and (min-width: 768px) {
                font-size: 14px;
                top: 15px;
                left: 15px;
            }

            @media only screen and (min-width: 1441px) {
                padding: 10px 10px;
                font-size: 16px;
                top: 20px;
                left: 20px;
            }

            @media only screen and (min-width: 1600px) {
                padding: 14px 16px;
                font-size: 18px;
            }
        }

        .ca-about-event-wrap {
            background-color: $white;
            position: absolute;
            bottom: 0;
            max-width: calc(100% - 10px);
            margin: 0;

            @media only screen and (min-width: 1600px) {
                max-width: calc(100% - 20px);
            }

            li {
                font-size: 11px;
                font-weight: 600;
                line-height: 1.3;
                color: $black25;
                font-family: 'Avenir Next';
                text-transform: capitalize;
                padding: 6px;
                position: relative;

                @media only screen and (min-width: 1600px) {
                    padding: 8px;
                    font-size: 14px;
                }

                &::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    right: 0;
                    margin: auto;
                    width: 1px;
                    height: 65%;
                    background-color: $primary;
                }

                &:last-child {
                    &::before {
                        display: none;
                    }
                }

                .ns-icon {
                    width: 16px;
                    height: 16px;
                    margin-right: 4px;

                    @media only screen and (min-width: 1600px) {
                        width: 20px;
                        height: 20px;
                        margin-right: 6px;
                    }

                    &::before {
                        background-color: $primary;
                    }
                }
            }
        }
    }

    .event-card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        width: 100%;

        // h3{
        //     font-size: 20px;
        //     line-height: 24px;
        //     color: $btnText;
        //     margin-bottom: 10px;
        //     word-wrap: break-word;
        //     display: -webkit-box;
        //     text-overflow: ellipsis;
        //     -webkit-line-clamp: 2;
        //     -webkit-box-orient: vertical;
        //     overflow: hidden;
        //     // @media only screen and (min-width: 640px){
        //     //     min-height: 48px;
        //     // }
        //     @media only screen and (min-width: 1024px) {
        //         font-size: 22px;
        //         line-height: 26px;
        //         // min-height: 52px;
        //     }
        //     @media only screen and (min-width: 1440px) {
        //         font-size: 24px;
        //         line-height: 28px;
        //         margin-bottom: 20px;
        //         // min-height: 60px;
        //     }
        //     @media only screen and (min-width: 1600px) {
        //         font-size: 26px;
        //         line-height: 30px;
        //     }
        // }
        .event-title {
            font-size: 13px;
            font-weight: 600;
            color: $black25;
            font-family: 'Avenir Next';
            text-transform: uppercase;
            line-height: 1.44;
            margin-bottom: 5px;
            word-wrap: break-word;
            display: -webkit-box;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;

            @media only screen and (min-width: 480px) {
                font-size: 14px;
                margin-bottom: 8px;
            }

            @media only screen and (min-width: 991px) {
                font-size: 16px;
            }

            @media only screen and (min-width: 1441px) {
                font-size: 18px;
                margin-bottom: 12px;
            }
        }

        p {
            font-size: 13px;
            font-weight: 400;
            line-height: 1.36;
            font-family: 'Avenir Next';
            color: $grey5E;
            display: -webkit-box;
            text-overflow: ellipsis;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0;

            @media only screen and (min-width: 480px) {
                font-size: 14px;
                margin-bottom: 8px;
            }

            @media only screen and (min-width: 991px) {
                font-size: 15px;
            }

            @media only screen and (min-width: 1441px) {
                font-size: 16px;
                margin-bottom: 12px;
            }

        }

        .verify-img {
            width: 16px;

            @media only screen and (min-width: 768px) {
                width: 20px;
            }

            @media only screen and (min-width: 1441px) {
                width: 22px;
            }
        }

        .description {
            font-size: 14px;
            font-weight: 500;
            line-height: 1.36;
            font-family: 'Avenir Next';
            color: $grey5E;
            white-space: break-spaces;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0px;
            display: none;

            @media only screen and (min-width: 479px) {
                display: -webkit-box;
            }

            @media only screen and (min-width: 991px) {
                font-size: 15px;
            }

            @media only screen and (min-width: 1441px) {
                font-size: 16px;
            }
        }

        .ns-location {
            color: $black25;
            font-size: 14px;
            line-height: 1.2;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 8px;

            @media only screen and (min-width: 480px) {
                margin-bottom: 12px;
            }

            i {
                &::before {
                    background-color: $primary;
                }

                &.ns-icon {
                    width: 16px;
                    height: 16px;

                    @media only screen and (min-width: 480px) {
                        width: 20px;
                        height: 20px;
                    }

                    @media only screen and (min-width: 1600px) {
                        width: 24px;
                        height: 24px;
                    }
                }
            }
        }

        .date {
            color: $primary;
        }

        .solid-btn,
        .border-btn,
        .btn-full {
            padding: 6px 10px;
            font-size: 12px;
            line-height: 1.22;
            font-weight: 500;
            font-family: 'Avenir Next';
            min-height: 30px;
            text-transform: uppercase;
            height: 100%;

            @media only screen and (min-width: 480px) {
                padding: 8px 10px;
                font-size: 13px;
                min-height: 36px;
            }

            @media only screen and (min-width: 768px) {
                padding: 8px 14px;
            }

            @media only screen and (min-width: 1200px) {
                padding: 5px 4px;
                font-size: 12px;
            }
            @media only screen and (min-width: 1400px) {
                padding: 8px 8px;
                font-size: 13px;
            }
            @media only screen and (min-width: 1441px) {
               
                min-height: 42px;
            }

            @media only screen and (min-width: 1600px) {
                padding: 10px 10px;
                font-size: 15px;
                // font-size: 18px;
                min-height: 48px;
                // padding: 12px 14px;
            }
        }

        .solid-btn {
            &:hover {
                background-color: transparent;
                color: $primary;
                border-color: $primary;
            }
        }

        .book-btn {
            z-index: 2;
        }

        // .price-wrap{
        //     margin-top: 15px;
        //     position: relative;
        //     z-index: 2;
        //     h3{
        //         min-height: auto;
        //     }
        //     @media only screen and (min-width: 768px){
        //     margin-top: 20px;
        //     }
        // }
        .pricing-wrap {

            // margin-top: 10px;
            @media only screen and (min-width: 480px) {
                margin-top: 10px;
            }

            @media only screen and (min-width: 1600px) {
                margin-top: 20px;
            }

            .price {
                margin-bottom: 0;
                font-size: 13px;
                font-weight: 700;
                line-height: 1.3;
                color: $black25;
                font-family: 'Avenir Next';

                @media only screen and (min-width: 480px) {
                    font-size: 15px;
                }
                @media only screen and (min-width: 1200px) {
                    font-size: 14px;
                }
                @media only screen and (min-width: 1600px) {
                    font-size: 18px;
                }

                span {
                    vertical-align: bottom;
                    font-size: 13px;
                    font-weight: 400;
                    margin-left: 5px;
                    @media only screen and (min-width: 1200px) {
                        font-size: 12px;
                        margin-left: 2px;
                    }
                    @media only screen and (min-width: 1400px) {
                        font-size: 13px;
                        margin-left: 5px;
                    }
                }
            }
        }

        .btn-full {
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    &:hover {
        box-shadow: 0px 12px 16.8px 0px #00000026;

        .event-image-box {
            img {
                transform: scale(1.1);
            }
        }
    }
}
html[lang="en"]{
    .buttons-wraps{
        @media only screen and (max-width: 768px) {
            flex-wrap: wrap;
        }
        @media only screen and (min-width: 1200px) {
            flex-wrap: wrap;
        }
        @media only screen and (min-width: 1370px) {
           flex-wrap: nowrap;
        }
    }
    
}
html[lang="de"]{
    .buttons-wraps{
        flex-wrap: wrap;
        @media only screen and (min-width: 768px) {
            flex-wrap: nowrap;
        }
        @media only screen and (min-width: 1200px) {
            flex-wrap: wrap;
        }
        @media only screen and (min-width: 1370px) {
           flex-wrap: nowrap;
        }
    }
    .book-btn{
        .btn-full{
            @media only screen and (min-width: 1024px) {
                padding-left: 7px;
                padding-right: 7px;
            }
            @media only screen and (min-width: 1441px) {
                padding-left: 7px;
                padding-right: 7px;
                font-size: 13px;
            }
            @media only screen and (min-width: 1600px) {
                font-size: 15px;
            }
        }
    }
}