/*
Theme Name:Hello Elementor : Advanced Dental Artistry
Theme URI: https://elementor.com/
Description: Child theme for Hello Elementor For Advanced Dental Artistry
Author: Advanced Dental Artistry
Author URI: 
Template: hello-elementor
Version: 1.1
Text Domain: hello-elementor-child
*/
.hnt-filter {
    max-width: 100%;
    /* font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
}

/* Outer dropdown */
.hnt-filter__box {
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.hnt-filter__title {
    list-style: none;
    cursor: pointer;
    padding: 14px 14px;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    user-select: none;
}

.hnt-filter__title::-webkit-details-marker {
    display: none;
}

.hnt-filter__box > .hnt-filter__title::after {
    content: "▾";
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.hnt-filter__box[open] > .hnt-filter__title::after {
    transform: rotate(180deg);
}

/* Groups */
.hnt-filter__group {
    padding: 10px 14px 6px;
}

.hnt-filter__group + .hnt-filter__group {
    border-top: 1px dashed #eee;
}

.hnt-filter__group-title {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    padding: 8px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.hnt-filter__group-title::-webkit-details-marker {
    display: none;
}

.hnt-filter__group > .hnt-filter__group-title::after {
    content: "+";
    font-weight: 700;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.hnt-filter__group[open] > .hnt-filter__group-title::after {
    content: "–";
}

/* Items */
.hnt-filter__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
}

.hnt-filter__item:hover {
    background: #fafafa;
}

.hnt-filter__item input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: #111;
}

.hnt-filter__text {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    flex: 1;
}

.hnt-filter__count {
    font-size: 13px;
    opacity: 0.65;
    white-space: nowrap;
    padding-top: 1px;
}

/* Actions */
.hnt-filter__actions {
    display: flex;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid #eee;
}

.hnt-filter__btn {
    flex: 1;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    border: 1px solid #e7e7e7;
    background: #fff;
    cursor: pointer;
}

.hnt-filter__btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

.hnt-filter__btn--ghost {
    background: #fff;
    color: #111;
}

.hnt-filter__reset-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hnt-filter__reset-btn:hover {
    background: #f5f5f5;
    border-color: #111;
    color: #111;
}

.hnt-filter__item--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.hnt-filter__item input[disabled] {
    cursor: not-allowed;
}

/* Loading  */
.infinite-loading {
    text-align: center;
    padding: 16px 0;
    color: #999;
    font-size: 30px;
}

.infinite-loading .dots::after {
    content: "";
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: hntDots 1.2s steps(4, end) infinite;
    vertical-align: bottom;
}

@keyframes hntDots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }

    100% {
        content: "";
    }
}

/* Card List Before After  */
.hnt-before__after-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 992px) {
    .hnt-before__after-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hnt-before__after-grid {
        grid-template-columns: 1fr;
    }
}

.hnt-horizontal-nav-infinite {
    display: none;
}

@media (max-width: 768px) {
    #hnt-before__after-grid[data-load-type="infinite"] {
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
    }

    #hnt-before__after-grid[data-load-type="infinite"] .hnt-before__after-card {
        scroll-snap-align: start;
    }

    #hnt-before__after-grid[data-load-type="infinite"],
    .hnt-before__after-grid[data-load-type="infinite"] {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
    }

    #hnt-before__after-grid[data-load-type="infinite"] .hnt-before__after-card,
    .hnt-before__after-grid[data-load-type="infinite"] .hnt-before__after-card {
        flex: 0 0 auto;
        width: 80vw;
        scroll-snap-align: start;
    }

    #hnt-before__after-grid[data-load-type="infinite"]::-webkit-scrollbar {
        height: 6px;
    }

    #hnt-before__after-grid[data-load-type="infinite"]::-webkit-scrollbar-track {
        background: #ccc;
        border-radius: 10px;
    }

    #hnt-before__after-grid[data-load-type="infinite"]::-webkit-scrollbar-thumb {
        background: #00564a;
        border-radius: 10px;
    }

    .hnt-horizontal-nav-infinite {
        display: flex;
        justify-content: flex-end;
        margin: 10px 0 0;
        margin-bottom: 10px;
        gap: 5px;
    }

    .hnt-horizontal-nav-infinite button {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #111;
        border: none;
        padding: 0;
    }
}

.hnt-before__after-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hnt-before__after-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.hnt-before__after-box {
    padding: 14px;
}

.hnt-before__after-title {
    margin: 0;
    font-size: 16px;
}

.hnt-before__after-desc {
    margin: 6px 0;
    font-size: 14px;
    color: #555;
}

.hnt-before__after-meta {
    margin: 6px 0;
    font-size: 13px;
    color: #777;
}

.hnt-before__after-actions {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}

.hnt-before__after-btn {
    border: 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.hnt-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #777;
    grid-column: 1 / -1;
}

/* Load More Button */
.hnt-before__after-loadmore-wrap {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.hnt-before__after-loadmore-btn {
    border: 0;
    padding: 14px 40px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hnt-before__after-loadmore-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.hnt-before__after-loadmore-btn:active {
    transform: translateY(0);
}

.hnt-before__after-loadmore-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* End Card List Before After  */

/* Grid Loading States - Smooth Animations */
.hnt-before__after-grid {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hnt-before__after-grid.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

/* Individual Card Animations */
.hnt-before__after-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(0);
}

.hnt-before__after-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Infinite Loading Indicator */
.infinite-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 1.5s ease-in-out infinite;
}

.infinite-loading.show {
    opacity: 1;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Load More Button Animation */
.hnt-before__after-loadmore-btn {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hnt-before__after-loadmore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hnt-before__after-loadmore-btn.loading {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Stagger Animation for Multiple Cards */
.hnt-before__after-card:nth-child(1) {
    animation-delay: 0ms;
}

.hnt-before__after-card:nth-child(2) {
    animation-delay: 100ms;
}

.hnt-before__after-card:nth-child(3) {
    animation-delay: 200ms;
}

.hnt-before__after-card:nth-child(4) {
    animation-delay: 300ms;
}

.hnt-before__after-card:nth-child(5) {
    animation-delay: 400ms;
}

.hnt-before__after-card:nth-child(6) {
    animation-delay: 500ms;
}

/* Blog Bar */
.hnt-tax-select-wrap {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.hnt-tax-select-container {
    position: relative;
    width: 100%;
}

.hnt-tax-trigger {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hnt-tax-trigger:focus {
    outline: none;
    border-color: #007bff;
}

.hnt-tax-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hnt-dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnt-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    line-height: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnt-clear-btn:focus,
.hnt-clear-btn:hover {
    color: #333;
    background: transparent!important;
}

.hnt-tax-select-container.has-selection .hnt-dropdown-arrow {
    opacity: 0;
    pointer-events: none;
}

.hnt-tax-select-container.has-selection .hnt-clear-btn {
    opacity: 1;
    pointer-events: auto;
}

.hnt-tax-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 500px;
    overflow: auto;
    display: none;
    z-index: 99;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hnt-tax-options.show {
    display: block;
}

.hnt-tax-options li {
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.hnt-tax-options li:hover {
    background: #f3f3f3;
}

.hnt-tax-options li.active {
    background: #007bff;
    color: #fff;
}
