#primary {
    margin: 0 !important;
    border-top: 1px solid rgba(4, 31, 51, 0.1);
}

.custom-select-wrapper {
    display: flex;
}

.event-category-mobile {
    display: none;
}

.events-content-wrapper {
    margin-left: 96px;
    margin-right: 96px;

    .events-page-title {
        display: flex;
        justify-content: space-between;
        margin-bottom: 64px;
    
        .post-title {
            h1 {
                font-size: 60px;
            }
        }
    }
    /* SELECT CATEGORY DROPDOWN */
    .custom-select-container {
        min-width: 200px;
    }
    
    .custom-select {
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: right;
    }
    
    .select-selected {
        font-size: 16px;
        margin-top: 32px;
        min-width: 200px;
        text-align: right;
        padding-top: 5px;
    
        &:before {
            content: "";
            display: inline-block; 
            width: 18px;
            height: 12px; 
            background-image: url(../icons/cat-select.svg);
            background-size: cover;
            background-repeat: no-repeat;
            margin-right: 8px;
        }
    }
    
    .add-background {
        background-color: #f2f2f2;
    }
    
    .remove-background {
        background-color: #fff;
    }
    
    .select-items {
        display: none;
        position: absolute;
        background-color: #f2f2f2;
        z-index: 99;
        font-size: 14px;
        margin-top: 53px;
        min-width: 200px;
    }
    
    .select-items div:first-child {
        padding: 20px 10px 10px 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .select-items div {
        padding: 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .select-items div:hover {
        text-decoration: underline;
    }
    
    .select-hide {
        display: none;
    }
    
    .select-show {
        display: block;
    }
    /* SELECT ACTUALITY DROPDOWN */
    .custom-select-container-actuality {
        min-width: 200px;
    }
    
    .custom-select-actuality {
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: right;
    }
    
    .select-selected-actuality {
        font-size: 16px;
        margin-top: 32px;
        min-width: 200px;
        text-align: right;
        padding-top: 5px;
    
        &:before {
            content: "";
            display: inline-block; 
            width: 12px;
            height: 7px; 
            background-image: url(../icons/select-down-arrow.svg);
            background-size: cover;
            background-repeat: no-repeat;
            margin-right: 8px;
            margin-bottom: 2px;
        }
    }
    
    .add-background-actuality {
        background-color: #f2f2f2;
    }
    
    .remove-background-actuality {
        background-color: #fff;
    }
    
    .select-items-actuality {
        display: none;
        position: absolute;
        background-color: #f2f2f2;
        z-index: 99;
        font-size: 14px;
        margin-top: 53px;
        min-width: 200px;
    }
    
    .select-items-actuality div:first-child {
        padding: 20px 10px 10px 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .select-items-actuality div {
        padding: 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .select-items-actuality div:hover {
        text-decoration: underline;
    }
    
    .select-hide-actuality {
        display: none;
    }
    
    .select-show-actuality {
        display: block;
    }

    .events-data {
        .event-content {
            display: flex;
            border-top: 1px solid rgba(4, 31, 51, 0.1);
            padding-top: 24px;
            margin-bottom: 24px;

            .event-date-content {
                width: 192px;
                .dayname, .event-date, .date-space {
                    font-size: 16px;
                }
            }

            .event-data-content {
                width: 787px;

                .event-title {
                    font-size: 24px;
                    margin-bottom: 16px;
                    margin-right: 70px;

                    a {
                        text-decoration: none;
                        color: #000;

                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }

                .event-time, .event-place {
                    font-size: 16px;
                }
            }

            .event-date-category {
                text-align: center;
                width: 141px;

                .category-name {
                    padding: 5px;
                    background-color: rgba(158, 121, 77, 0.10);
                }
            }
        }
    }

    .load-events {
        border-top: 1px solid rgba(4, 31, 51, 0.1);
        text-align: center;
        margin-top: 80px;
    
        #load-more-events {
            background-color: #fff;
            border: 1px solid #000;
            border-radius: 0;
            color: #000;
            margin: 40px 0 60px 0;
    
            &:hover {
                background-color: #000;
                color: #fff;
            }
        }
    }

    .footer-move-up {
        text-align: right;
        max-width: 1120px;
        margin-left: 96px;
    
        .move-up {
            font-size: 14px;
            float: right;
            margin-top: 20px;
            margin-bottom: 40px;
    
            &:before {
                content: "";
                display: inline-block; 
                width: 12px;
                height: 6px; 
                background-image: url(../icons/arrow_up.svg);
                background-size: cover;
                background-repeat: no-repeat;
                margin-right: 8px;
                margin-bottom: 2px; 
                transition: transform 0.3s ease;
            }
    
            &:hover {
                text-decoration: underline;
                cursor: pointer;
            }
        }
    }
}

@media (max-width: 768px) {
    .events-content-wrapper {
        margin-left: 0;
        margin-right: 0;

        .select-selected-actuality {
            margin-top: 17px;               
        }

        .select-selected {
            margin-top: 17px;
        }

        & .events-page-title {
            & .post-title {
                h1 {
                    font-size: 40px;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    

    

}

@media (max-width: 610px) {
    .events-content-wrapper {
        .events-page-title {
            display: block;
        }
    }

    .custom-select-wrapper {
        display: block;
    }
    .events-content-wrapper {
        .custom-select-actuality {
            display: block;
        }
    }

    .events-content-wrapper {
        .select-items-actuality {
            margin-top: 10px;
        }
    }

    .events-content-wrapper {
        .select-selected-actuality {
            text-align: left;
        }
    }

    .events-content-wrapper {
        .custom-select {
            display: block;
        }
    }

    .events-content-wrapper {
        .select-selected {
            text-align: left;
        }
    }

    .events-content-wrapper {
        .select-items {
            margin-top: 10px;
        }
    }
}

@media (max-width: 450px) {
    .event-date-category {
        display: none;
    }

    .event-category-mobile {
        display: block;
    }

    .events-content-wrapper {
        & .events-data {
            & .event-content {
                .event-date-content {
                    margin-bottom: 16px;
                }

                .event-date-category {
                    text-align: left;
                    margin-bottom: 20px;
                }

                & .event-data-content {
                    .event-time {
                        margin-bottom: 16px;
                    }
                }
            }

            .event-content {
                display: block;

                .event-data-content {
                    width: 100%;
                }
            }
        }
    }
                
}
