/* Premium Grid Style */
.sinhoni-service-grid {
    display: grid;
    gap: 60px;
    margin-bottom: 70px;
}

@media only screen and (max-width: 1024px) {
    .sinhoni-service-grid {
        gap: 32px;
    }
}
@media only screen and (max-width: 767px) {
    .sinhoni-service-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 32px;
        margin-bottom: 48px;
    }
}

.service-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.service-card:hover {
    transform: none;
    box-shadow: none;
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 633/409;
    background: #f5f5f5;
    border-radius: 2px;
}

.service-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.service-card:hover .service-thumb {
    transform: scale(1.05);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background 0.3s ease;
}

.play-button {
    width: 76px;
    height: 76px;
    background: #2d3691;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.play-button svg {
    width: 48px;
    height: 48px;
}

@media only screen and (max-width: 767px) {
    .play-button {
        width: 48px;
        height: 48px;
    }

    .play-button svg {
        width: 24px;
        height: 24px;
    }
}

.service-card:hover .play-button {
    transform: scale(1.05);
}

/* Content Details */
.service-details {
    margin-top: 40px;
    text-align: center;
}

@media only screen and (max-width: 1024px) {
    .service-details {
        margin-top: 24px;
    }
}
@media only screen and (max-width: 767px) {
    .service-details {
        margin-top: 20px;
    }
}

.service-title {
    margin: 0;
    font-family: var(--fb-global-h5--font-family);
    font-size: var(--fb-global-h5--font-size);
    font-weight: var(--fb-global-h5--font-weight);
    line-height: var(--fb-global-h5--line-height);
    color: var(--wp--frontis--color--custom-black-300);
}

.service-title a {
    color: var(--wp--frontis--color--custom-black-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: #2d3691;
}

/* Loading State & Skeleton */
.sinhoni-service-grid-wrapper {
    position: relative;
    transition: opacity 0.3s ease;
}

.sinhoni-service-grid-wrapper.is-loading .sinhoni-pagination {
    opacity: 0.3;
    pointer-events: none;
}

.skeleton-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 20px;
}

.skeleton-image {
    aspect-ratio: 16 / 10;
    width: 100%;
    background: #f2f2f2;
    border-radius: 2px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.skeleton-title {
    height: 18px;
    width: 80%;
    background: #f2f2f2;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

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

/* Pagination */
.sinhoni-pagination {
    width: 100%;
    margin-top: 40px;
}

.sinhoni-pagination ul.page-numbers {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.sinhoni-pagination ul.page-numbers li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sinhoni-pagination ul.page-numbers a.page-numbers, 
.sinhoni-pagination ul.page-numbers span.page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px;
    height: 48px;
    border-radius: 4px !important;
    background: #f5f5f5 !important;
    border: none !important;
    color: #444 !important;
    text-decoration: none !important;
    font-family: var(--fb-global-h5--font-family) !important;
    font-size: var(--fb-global-h5--font-size) !important;
    font-weight: var(--fb-global-h5--font-weight) !important;
    line-height: var(--fb-global-h5--line-height) !important;
    transition: all 0.3s ease !important;
}

.sinhoni-pagination ul.page-numbers a.page-numbers:hover {
    background: #e8e8e8 !important;
    color: #30337b !important;
}

.sinhoni-pagination ul.page-numbers .current {
    background: #30337b !important;
    color: #fff !important;
}

/* Disable actions in Editor */
.sinhoni-service-grid-wrapper.is-editor {
    pointer-events: none !important;
}



.sinhoni-pagination ul.page-numbers svg {
    width: auto;
    height: 18px;
}

.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}