/* ==========================================================================
   HousingMaterial.com - Custom Components & Services Carousel Stylesheet
   ========================================================================== */

/* 1. Services Section Base */
.services-carousel-section {
    background-color: #F8FAFC;
    overflow: hidden;
}

/* 2. Swiper Custom Controls */
.services-swiper-prev,
.services-swiper-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: var(--brand-primary, #0A192F);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.services-swiper-prev:hover,
.services-swiper-next:hover {
    background-color: var(--brand-primary, #0A192F);
    color: #FFFFFF;
    border-color: var(--brand-primary, #0A192F);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.services-swiper-prev:active,
.services-swiper-next:active {
    transform: translateY(0);
}

/* 3. Service Card Container */
.service-card-link {
    color: inherit;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-link:hover .service-card {
    transform: translateY(-8px);
    border-color: rgba(255, 87, 34, 0.3) !important;
    box-shadow: 0 20px 35px -10px rgba(10, 25, 47, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04) !important;
}

/* 4. Service Card Image Wrapper */
.service-card-img-wrap {
    height: 220px;
    background-color: var(--brand-secondary, #1E293B);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-link:hover .service-card-img {
    transform: scale(1.09);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.6) 0%, rgba(10, 25, 47, 0.05) 60%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-card-link:hover .service-card-overlay {
    opacity: 0.85;
}

/* Service Card Icon Badge */
.service-card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card-link:hover .service-card-icon-box {
    background-color: var(--brand-accent, #FF5722) !important;
    color: #FFFFFF !important;
    transform: scale(1.1) rotate(-5deg);
}

/* 5. Typography & Hover Effects */
.service-title-hover {
    transition: color 0.25s ease;
}

.service-card-link:hover .service-title-hover {
    color: var(--brand-accent, #FF5722) !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. Card Footer CTA */
.service-card-footer {
    border-color: #F1F5F9 !important;
}

.btn-arrow-icon {
    width: 32px;
    height: 32px;
    background-color: var(--brand-accent-light, #FFF3E0);
    color: var(--brand-accent, #FF5722);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card-link:hover .btn-arrow-icon {
    background-color: var(--brand-accent, #FF5722);
    color: #FFFFFF;
    transform: translateX(4px);
}

/* 7. Swiper Pagination Styling */
.services-swiper-pagination {
    position: relative !important;
    margin-top: 1.5rem;
    bottom: 0 !important;
}

.services-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #94A3B8;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 5px !important;
}

.services-swiper-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 10px;
    background-color: var(--brand-accent, #FF5722);
    opacity: 1;
}

/* 8. Responsiveness tweaks */
@media (max-width: 767.98px) {
    .service-card-img-wrap {
        height: 200px;
    }
    .services-swiper-prev,
    .services-swiper-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
