/* ==========================================================================
   Modern Floating Icon Services Section Styling
   ========================================================================== */

.services-floating-section {
    background-color: #f8fafc; /* Very soft light background, easy on the eyes */
}

/* Card Main Container */
.service-floating-card {
    border: 1px solid rgba(13, 71, 161, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Badge Icon crossing the card top edge */
.floating-icon-badge {
    position: absolute;
    top: -28px;
    left: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-blue, #1d4ed8), var(--primary-blue, #0d47a1));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2);
    transition: transform 0.4s ease, background 0.4s ease;
}

/* Hover Animation for Card & Icon */
.service-floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.12) !important;
    border-color: var(--secondary-blue, #1d4ed8);
}

.service-floating-card:hover .floating-icon-badge {
    transform: scale(1.1) rotate(6deg);
}

/* Staggered Delay Classes for Pop-in sequence */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Staggered Card-by-Card Pop-in Delays
   ========================================================================== */

.reveal-delay-1 {
    transition-delay: 0.1s !important;
}

.reveal-delay-2 {
    transition-delay: 0.2s !important;
}

.reveal-delay-3 {
    transition-delay: 0.3s !important;
}

.reveal-delay-4 {
    transition-delay: 0.4s !important;
}

.reveal-delay-5 {
    transition-delay: 0.5s !important;
}

.reveal-delay-6 {
    transition-delay: 0.6s !important;
}




/* ==========================================================================
   Clean Top-Border Modern Service Cards
   ========================================================================== */

.service-floating-card {
    background: #ffffff;
    /* Clean corporate blue top/all-around border layout matching your image */
    border: 2px solid var(--secondary-blue, #1d4ed8);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 2rem !important;
}

/* Inline Icon Header inside the card (as seen in your design) */
.card-icon-header {
    width: 48px;
    height: 48px;
    color: var(--secondary-blue, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* Hover Effect: Lift & Glow */
.service-floating-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(29, 78, 216, 0.15) !important;
}

.service-floating-card:hover .card-icon-header {
    transform: scale(1.1);
}


/* ==========================================================================
   Loan Offers Cards with Image Support & Snap-Scroll
   ========================================================================== */

.loan-offers-section {
    background-color: #f1f5f9;
}

.loan-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) transparent;
    padding-bottom: 1rem;
}

.loan-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.loan-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}
.loan-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(13, 71, 161, 0.2);
    border-radius: 10px;
}

/* Card Styling with Permanent Modern Border */
.loan-offer-card {
    min-width: 320px;
    max-width: 360px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 2px solid rgba(13, 71, 161, 0.15);
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image Wrapper and Zoom Effect */
.loan-card-img-wrapper {
    height: 170px;
    overflow: hidden;
    position: relative;
}

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

/* Hover Effect: Card Lift, Border Glow & Image Zoom */
.loan-offer-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-blue, #1d4ed8);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.15) !important;
}

.loan-offer-card:hover .loan-card-img-wrapper img {
    transform: scale(1.1);
}