/* ==========================================================================
   TOONZ HOME SERVICE CAROUSEL STYLES
   ========================================================================== */

.toonz-hsc-widget-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Header Section */
.toonz-hsc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 30px;
}

.toonz-hsc-header-text {
    flex: 1;
    max-width: 720px;
}

.toonz-hsc-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    font-family: inherit;
}

/* Main Title Heading Accent Dot */
.toonz-hsc-accent-dot {
    color: #ff5722 !important;
    font-weight: inherit;
    font-style: normal;
    display: inline;
}

.toonz-hsc-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-family: inherit;
}

/* Navigation Controls (Top Right Header Alignment) */
.toonz-hsc-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.toonz-hsc-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.toonz-hsc-nav-btn:hover {
    background-color: #ff5722;
    border-color: #ff5722;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.toonz-hsc-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Swiper Container */
.toonz-hsc-carousel {
    width: 100%;
    padding-bottom: 50px !important;
    overflow: hidden !important;
    position: relative;
}

.toonz-hsc-carousel .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    box-sizing: content-box;
    transition-property: transform;
}

.toonz-hsc-slide {
    flex-shrink: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    position: relative;
}

/* Base horizontal slide sizing before Swiper JS initializes */
.toonz-hsc-carousel:not(.swiper-initialized) .swiper-wrapper {
    gap: 24px;
}

.toonz-hsc-carousel:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 72px) / 4) !important;
    max-width: calc((100% - 72px) / 4) !important;
}

@media (max-width: 1024px) {
    .toonz-hsc-carousel:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 24px) / 2) !important;
        max-width: calc((100% - 24px) / 2) !important;
    }
}

@media (max-width: 575px) {
    .toonz-hsc-carousel:not(.swiper-initialized) .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Service Card Container */
.toonz-hsc-card {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

/* Card Background Image & Smooth Hover Scale */
.toonz-hsc-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.toonz-hsc-card-bg.fallback-bg {
    background: linear-gradient(135deg, #1f1f1f 0%, #3a3a3a 100%);
}

.toonz-hsc-card:hover .toonz-hsc-card-bg {
    transform: scale(1.08);
}

/* Dark Gradient Overlay */
.toonz-hsc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.92) 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.toonz-hsc-card:hover .toonz-hsc-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.96) 100%);
}

/* Badge / Tag */
.toonz-hsc-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background-color: rgba(255, 87, 34, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Card Content Box */
.toonz-hsc-card-content {
    position: relative;
    z-index: 3;
    padding: 30px 28px;
    box-sizing: border-box;
}

.toonz-hsc-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.toonz-hsc-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toonz-hsc-card-title a:hover {
    color: #ff5722;
}

.toonz-hsc-card-desc {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: inherit;
}

.toonz-hsc-card-link-wrapper {
    margin-top: 4px;
}

.toonz-hsc-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Readmore Arrow Hover Shift Animation */
.toonz-hsc-link-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    margin-left: 5px;
}

.toonz-hsc-card:hover .toonz-hsc-link-arrow,
.toonz-hsc-card-link:hover .toonz-hsc-link-arrow {
    transform: translateX(8px);
    color: #ff5722;
}

.toonz-hsc-card:hover .toonz-hsc-card-link,
.toonz-hsc-card-link:hover {
    color: #ff5722;
}

/* Swiper Pagination Dots */
.toonz-hsc-pagination {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px !important;
    z-index: 10;
    width: 100% !important;
}

.toonz-hsc-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 0.7 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.toonz-hsc-pagination .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background-color: #ff5722 !important;
    width: 28px !important;
    border-radius: 5px !important;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .toonz-hsc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .toonz-hsc-title {
        font-size: 30px;
    }

    .toonz-hsc-card {
        height: 420px;
    }
}

@media (max-width: 575px) {
    .toonz-hsc-title {
        font-size: 26px;
    }

    .toonz-hsc-card {
        height: 380px;
    }

    .toonz-hsc-card-content {
        padding: 22px 20px;
    }
}
