/* Smooth fade-up animation when cards appear */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to each card */
.service-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

/* Staggered animation delay */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effect */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Icon animation */
.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
    color: #0d6efd; /* optional: darker blue */
}

/* Partner Box Style */
.partner-box {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: #ffffff;
    padding: 18px;
    cursor: pointer;
}

/* Hover Animation */
.partner-box:hover {
    background: linear-gradient(135deg, #0d6efd, #4dabff);
    color: #fff !important;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

/* Smooth text transition */
.partner-box h6 {
    transition: color 0.3s ease;
}
/* Promotion modal Style */
        /* Promo Modal Styles */
        .promo-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .promo-modal-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            position: relative;
            max-width: 500px;
            width: 100%;
            overflow: hidden;
        }

        .promo-modal-container.modal-sm {
            max-width: 400px;
        }

        .promo-modal-container.modal-lg {
            max-width: 700px;
        }

        .promo-modal-content {
            position: relative;
        }

        .promo-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            font-size: 1.2rem;
            color: #333;
            transition: all 0.3s ease;
        }

        .promo-modal-close:hover {
            background: #fff;
            transform: rotate(90deg);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .promo-modal-header {
            /* Remove fixed height */
            height: auto;
            max-height: 500px; /* Maximum height */
            min-height: 150px; /* Minimum height */
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: #f8f9fa; /* Background for empty space */
        }

      .promo-modal-image {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .promo-modal-body {
            padding: 30px;
        }

        .promo-modal-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: #2c3e50;
            line-height: 1.3;
        }

        .promo-modal-description {
            font-size: 1rem;
            line-height: 1.6;
            color: #555;
            margin-bottom: 20px;
        }

        .promo-offer-type {
            margin-bottom: 15px;
        }

        .offer-badge {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .offer-loan {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .offer-insurance {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .offer-both {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .promo-valid-dates {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 20px;
            padding-top: 10px;
            border-top: 1px solid #eee;
        }

        .promo-modal-footer {
            padding: 20px 30px;
            background: #f8f9fa;
            border-top: 1px solid #eee;
            text-align: center;
        }

        .promo-modal-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 12px 30px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            min-width: 200px;
        }

        .promo-modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
            color: white;
            text-decoration: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .promo-modal-container {
                max-width: 95%;
            }

            .promo-modal-header {
                height: 150px;
            }

            .promo-modal-title {
                font-size: 1.5rem;
            }

            .promo-modal-body {
                padding: 20px;
            }

            .promo-modal-footer {
                padding: 15px 20px;
            }
        }

        /* Animation classes */
        [data-aos="zoom-in"] {
            transform: scale(0.9);
            opacity: 0;
            transition-property: transform, opacity;
        }

        [data-aos="zoom-in"].aos-animate {
            transform: scale(1);
            opacity: 1;
        }

        [data-aos="fade-up"] {
            transform: translateY(30px);
            opacity: 0;
            transition-property: transform, opacity;
        }

        [data-aos="fade-up"].aos-animate {
            transform: translateY(0);
            opacity: 1;
        }

        [data-aos="slide-up"] {
            transform: translateY(100px);
            opacity: 0;
            transition-property: transform, opacity;
        }

        [data-aos="slide-up"].aos-animate {
            transform: translateY(0);
            opacity: 1;
        }
