.skeleton-loader {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #f0f0f0;
    overflow: hidden;
    z-index: 1000;
}

.skeleton-loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10% 8%;
    box-sizing: border-box;
}

.skeleton-title {
    width: 60%;
    height: 60px;
    background: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 4px;
}

.skeleton-desc {
    width: 40%;
    height: 24px;
    background: #e0e0e0;
    margin-bottom: 40px;
    border-radius: 4px;
}

.skeleton-btns {
    display: flex;
    gap: 20px;
}

.skeleton-btn {
    width: 200px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 8px;
}

.skeleton-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.skeleton-dot {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .skeleton-loader {
        padding-bottom: 100%;
        /* 1:1 ratio for mobile slider */
    }

    .skeleton-content {
        padding: 15% 5%;
    }

    .skeleton-title {
        width: 80%;
        height: 48px;
    }

    .skeleton-desc {
        width: 70%;
    }

    .skeleton-btns {
        flex-direction: column;
        gap: 15px;
    }

    .skeleton-btn {
        width: 100%;
    }
}

/* Hide skeleton loader - no longer needed as we prioritize immediate rendering */
.skeleton-loader {
    display: none !important;
}

#home-slider-wrapper .td-section--main-slider {
    visibility: visible;
    opacity: 1;
}