#hp-archive-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    padding: 16px 0;
    flex-direction: column;
}


#hp-archive-filter select,
#hp-archive-filter input[type="text"] {
    appearance: none;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    border: 1px solid #d8d6d2;
    background-color: #fff;
    font-size: 14px;
    color: #333;
}

#hp-archive-filter select {
    min-width: 160px;
    cursor: pointer;
}

#hp-archive-filter input[type="text"] {
    min-width: 150px;
}

.hp-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hp-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid #f2994a;
    color: #2d2d2d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-filter-tag:hover {
    background-color: #f2994a;
    color: #fff;
}
.hp-filter-tag::after {
    content: "×";
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}
.hp-filter-reset {
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    border: none;
    background-color: #f6b26b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hp-original-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    border-radius: 16px;
    border: none;
    background-color: #f6b26b;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;

}

.hp-original-link:after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 13'%3E%3Cpath d='M8.60078 6.4998L4.70078 2.5998C4.51745 2.41647 4.42578 2.18314 4.42578 1.8998C4.42578 1.61647 4.51745 1.38314 4.70078 1.1998C4.88411 1.01647 5.11745 0.924805 5.40078 0.924805C5.68411 0.924805 5.91745 1.01647 6.10078 1.1998L10.7008 5.7998C10.8008 5.8998 10.8716 6.00814 10.9133 6.1248C10.9549 6.24147 10.9758 6.36647 10.9758 6.4998C10.9758 6.63314 10.9549 6.75814 10.9133 6.8748C10.8716 6.99147 10.8008 7.0998 10.7008 7.1998L6.10078 11.7998C5.91745 11.9831 5.68411 12.0748 5.40078 12.0748C5.11745 12.0748 4.88411 11.9831 4.70078 11.7998C4.51745 11.6165 4.42578 11.3831 4.42578 11.0998C4.42578 10.8165 4.51745 10.5831 4.70078 10.3998L8.60078 6.4998Z' fill='%232D2D2D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 2px;
    left: 5px;

}

.hp-filter-reset:hover {
    background-color: #f2994a;
}

.hp-filter-submit {
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    border: none;
    background-color: #f6b26b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hp-filter-tags:empty {
    display: none;
}

.hp-filter-dropdown {
    position: relative;
}

.hp-filter-trigger {
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    border: 1px solid #d8d6d2;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

.hp-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e3df;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: none;
    z-index: 10;
}

.hp-filter-dropdown.open .hp-filter-panel {
    display: block;
}

.hp-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
}

.hp-filter-option:hover {
    background-color: #f7f6f4;
    border-radius: 8px;
}


.hp-filter-fields {
    display: flex;
    gap: 20px;
    align-items: center;
}


.hp-archive-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}



.hp-archive-card {
    display: flex;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}


.hp-card-image {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    display: flex;
    background-color: #98beff;
}

.hp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*.hp-card-image {*/
/*    flex: 0 0 42%;*/
/*    background-color: #aec7ff;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/*.hp-card-image img {*/
/*    max-width: 100%;*/
/*    max-height: 100%;*/
/*    object-fit: cover;*/
/*}*/

.hp-card-content {
    flex: 1;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
}

.hp-card-categories {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.hp-card-megjelent {
    display: flex;
    align-items: center;
    color: #4d4d4d;
    font-size: 14px;
    font-weight: bold;
}

.hp-card-title {
    font-size: 20px;
    color: #4d4d4d;

    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
}

.hp-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #2d2d2d;
    margin-bottom: auto;

    a {
        color: #2d2d2d;
    }
}

.hp-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.hp-card-date, .hp-card-date-mobil {
    font-size: 13px;
    color: #666;
}

.hp-card-date-mobil {
    display: none;
}

.hp-card-category {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #f2994a;
    color: #2d2d2d;
    white-space: nowrap;
}

.hp-card-arrow {
    margin-left: auto;
    font-size: 22px;
    color: #f2994a;
    transition: transform 0.2s ease;
}

.hp-archive-card:hover .hp-card-arrow {
    transform: translateX(4px);
}

.hp-archive-single-card {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;

    .hp-single-text {
        a {
            color: #ff6600;
        }
    }
}

#hp-archive-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.hp-single-pdf {
    width: 75%;
    margin: 40px auto;
    display: block;
    outline: none;
    border: none;
    min-height: 700px;
}


.hp-single-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.hp-single-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hp-single-text p {
    padding: 15px 0;
}

.hp-single-audio {
    margin: 40px auto;
}

.hp-filter-date-wrapper {
    position: relative;
}

.hp-filter-date-wrapper input {
    padding-right: 36px;
}

.hp-filter-date-wrapper .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    background: url('../images/icon-calendar.svg') center / contain no-repeat;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}


@media (max-width: 768px) {
    #hp-archive-filter {
        gap: 10px;
        margin: 0 40px;
    }

    #hp-archive-filter select,
    #hp-archive-filter input[type="text"] {
        width: 100%;
    }

    .hp-filter-tags {
        width: 100%;
        margin-left: 0;
    }

    .hp-single-pdf {
        width: 100%;
    }

    #hp-archive-results {
        grid-template-columns: 1fr;
        margin: 0 20px;
    }

    .hp-filter-fields {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hp-filter-fields div {
        width: 100%;
    }

    .hp-filter-trigger {
        width: 100%;
    }
}


@media (max-width: 900px) {
    .hp-archive-list {
        grid-template-columns: 1fr;
    }

    .hp-archive-card {
       // flex-direction: column;
    }

    .hp-card-excerpt {
        display: none;
    }

    .hp-card-date {
        display: none;
    }
    .hp-card-date-mobil {
        margin-top: 10px;
        display: block;
    }
}

.hp-archive-pagination {
    grid-column: 1 / -1;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.hp-archive-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp-archive-pagination .page-numbers li {
    list-style: none;
}

.hp-archive-pagination a,
.hp-archive-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    border: 1px solid #d8d6d2;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hp-archive-pagination a:hover {
    background-color: #f6b26b;
    color: #fff;
    border-color: #f6b26b;
}

.hp-archive-pagination .current {
    background-color: #f6b26b;
    color: #fff;
    border-color: #f6b26b;
    font-weight: 600;
}

.hp-archive-pagination .dots {
    border: none;
    pointer-events: none;
}


.hp-single-meta-extra {
    padding: 20px 0;
}