﻿.news-listing {
    position: relative;
}

.news-listing__items {
    position: relative;
}

.news-listing__loader {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    color: var(--color-3);
}

.news-listing__head {
    background-color: #000;
}

.news-listing__main-categories {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 20px;
}

    .news-listing__main-categories a {
        color: #fff;
        font-size: 25px;
        font-weight: 600;
        text-decoration: none;
        line-height: 1.2;
        position: relative;
        flex: 1;
    }

        .news-listing__main-categories a.active:after {
            content: "";
            width: 100%;
            height: 4px;
            background-color: var(--color-1);
            position: absolute;
            top: calc(100% + 7px);
            left: 0;
        }


.news-listing__main-category-all {
    white-space: nowrap;
}

    .news-listing__main-category-all.active:after {
        width: 90%;
    }

.news-listing__filters {
    padding: 40px 0;
    background-color: var(--color-3);
}

.news-listing__pagination {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

    .news-listing__pagination.disabled {
        opacity: 0.7;
        pointer-events: none;
        filter: grayscale();
    }

.news-listing__filters .form-group {
    position: relative;
    max-width: 90%;
}

.news-listing .form-control-icon,
.news-listing .form-control-icon.pointer {
    position: absolute;
    right: 10px;
    top: 0;
    margin-top: 0;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .news-listing .form-control-icon.pointer {
        cursor: pointer;
        pointer-events: none;
    }

.news-listing .form-group input.form-control {
    border-bottom-color: var(--color-1);
    color: #fff;
    height: 40px;
}

.news-listing select.form-select.styled {
    color: #fff;
    height: 40px;
    font-size: 14px;
}

.ausopen .news-listing .form-group input.form-control,
.ausopen .news-listing select.form-select.styled {
    border-bottom-color: #fff;
}

.news-listing select.form-select.styled option:not(first-child) {
    color: #000;
}

.news-listing ::placeholder {
    color: #fff;
    font-size: 14px;
    opacity: 1; /* Firefox */
}

.news-listing .form-clear-filter {
    flex: 0.3;
}

    .news-listing .form-clear-filter > a {
        color: #fff;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: end;
        gap: 10px;
        flex-wrap: nowrap;
        white-space: nowrap;
        cursor: pointer;
        text-decoration: none;
    }


.news-card__category {
    position: absolute;
    top: 0;
    right: 30px;
    background-color: var(--color-3);
    color: #fff;
    padding: 3px 5px;
    font-size: 12px;
    z-index: 2;
}

.news-card__body h2 {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

.news-card__time-author span {
    color: var(--color-3);
    font-size: 12px;
    font-weight: 600;
}

.news-listing .dg-tile__image-placeholder {
    background-image: url(/images/golfaus/image-placeholder.svg);
}

.news-listing__sort {
    margin: 20px 0;
}

.news-listing__sorting {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;
}

    .news-listing__sorting select {
        border: none;
        appearance: none;
        cursor: pointer;
        padding: 5px 0 3px;
    }

        .news-listing__sorting select:focus-visible,
        .news-listing__sorting select:focus,
        .news-listing__sorting select:active {
            outline: none;
        }

    .news-listing__sorting label {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 5px 0;
    }


.news-detail {
    position: relative;
    min-height: 100vh;
    margin-bottom: 60px;
}

.news-detail__loader {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FBFBFB;
    color: #808080;
}

.news-detail__body {
    margin: 20px 0;
}

.news-detail__content,
.news-detail__summary {
    padding-right: 60px;
}

.news-detail__summary {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 20px;
}

.news-detail__content,
.news-detail__content p {
    font-size: 18px;
}

.news-detail__right {
    height: 100%;
    overflow: hidden;
}

.news-detail__others span {
    font-weight: 600;
    font-size: 12px;
    color: var(--color-3);
}

    .news-detail__others span + span {
        border-left: 1px solid var(--color-3);
        padding-left: 5px;
        margin-left: 5px;
    }

.news-detail .hero-block {
    margin-bottom: 60px;
    overflow: hidden;
}

@media (max-width: 568px) {
    .news-detail .hero-block {
        margin-bottom: 35px;
    }
}

.news-detail .hero-block__content {
    height: 100%;
}

.news-detail__hero-block .container-md {
    padding: 0;
}

.mygolf .news-card__category {
    background-color: var(--ga-orange);
}

.news-card__details {
    flex: 1;
    max-height: 130px;
}

.news-card__body p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

.news-card__time-author span + span {
    border-left: 1px solid var(--color-3);
    padding-left: 5px;
    margin-left: 5px;
}

.news-card:hover .news-card__body {
    background-color: rgba(48,224,187, 0.6);
    backdrop-filter: blur(4px);
    transform: translateY(-20px);
}

.news-detail__tags {
    margin: 20px 0;
}

    .news-detail__tags h5 {
        margin-bottom: 3px;
    }

    .news-detail__tags a {
        color: var(--color-3);
        font-size: 12px;
    }

        .news-detail__tags a + a {
            margin-left: 10px;
        }

.news-listing__filter-mobile-btn {
    display: none;
    background-color: #fff;
    border: 1px solid grey;
    border-radius: 40px;
    width: 100%;
    padding: 10px 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

    .news-listing__filter-mobile-btn .fa-times {
        display: none;
    }

.news-listing__filters select {
    cursor: pointer;
}

@media (max-width: 1280px) {
    .news-listing__main-categories {
        gap: 30px;
    }

        .news-listing__main-categories a {
            font-size: 21px;
        }
}

@media (max-width: 992px) {
    .news-listing__main-categories {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

        .news-listing__main-categories a {
            font-size: 16px;
        }

    .news-listing__filters .row {
        flex-direction: column;
    }

    .news-listing__filters .form-group {
        max-width: 100%;
    }

    .news-listing .form-clear-filter {
        flex: 1;
        margin-top: 20px;
    }

    .news-listing__filter-inner {
        max-height: 0px;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    .news-listing__filter-mobile-btn {
        display: flex;
    }

    .show .news-listing__filter-mobile-btn .fa-times {
        display: block;
    }

    .show .news-listing__filter-mobile-btn .fa-filter {
        display: none;
    }

    .show .news-listing__filter-inner {
        margin-top: 10px;
        max-height: 1000px;
        opacity: 1;
    }
}


@media (max-width: 580px) {
    .news-listing .dg-pagination__prev,
    .news-listing .dg-pagination__next,
    .news-listing .dg-pagination__indicator {
        font-size: 12px;
    }

        .news-listing .dg-pagination__prev:hover,
        .news-listing .dg-pagination__next:hover {
            color: var(--color-3);
        }

        .news-listing .dg-pagination__prev:hover i,
        .news-listing .dg-pagination__next:hover i {
            transform: translateX(0px);
        }
}