.hero-widget-wrapper {
    position: relative;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* Bottom section is white */
}

.hero-top-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px 150px 20px; /* Large bottom padding for overlap */
    overflow: hidden;
    border-radius: 0 0 40px 40px; /* Rounded bottom corners for the background image */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.hero-header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a2b48;
    margin-bottom: 10px;
}

.hero-sub-title {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 30px;
}

.hero-top-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hero-btn-dark {
    background-color: #1a2b48;
    color: #ffffff;
}

.hero-btn-light {
    background-color: #ffffff;
    color: #1a2b48;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-bottom-section {
    position: relative;
    max-width: 1200px;
    margin: -120px auto 0 auto; /* Pull cards up to overlap the top section */
    padding: 0 20px 60px 20px;
    z-index: 10;
}

.hero-cards-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
    overflow: visible;
}

.hero-card {
    flex: 1;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: visible;
}

.hero-card-white {
    background-color: #ffffff;
    color: #1a2b48;
}

.hero-card-dark {
    background-color: #1a2b48;
    color: #ffffff;
}

.hero-card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-card-desc {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-card-image-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.hero-card-img-overlap {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 60%;
    display: block;
    transition: all 0.3s ease;
    z-index: 5;
    border-radius: 15px;
}

.hero-card-img-cars {
    position: absolute;
    bottom: -20px;
    right: -40px;
    width: 120%;
    transition: all 0.3s ease;
    z-index: 5;
}

.hero-footer-badges {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-top: 20px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.hero-badge i {
    color: #48bb78;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-bottom-section {
        margin-top: -80px;
    }
    .hero-cards-container {
        flex-direction: column;
        gap: 80px;
    }
    .hero-card {
        min-height: auto;
        padding-bottom: 180px;
    }
    .hero-card-img-overlap {
        width: 50%;
    }
    .hero-card-img-cars {
        width: 90%;
        right: -20px;
    }
}

@media (max-width: 767px) {
    .hero-main-title {
        font-size: 32px;
    }
    .hero-top-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}
