/* Home-2 Section Styling Fixes */

/* Fix banner background image rendering */
.vl-banner-area2 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden !important;
}

/* Fix banner video section overlap */
.vl-banner-video {
    position: relative;
    z-index: 10;
}

.vl-banner-video .vl-video-thum2b {
    margin-top: -150px;
}

@media (max-width: 768px) {
    .vl-banner-video .vl-video-thum2b {
        margin-top: -50px;
    }
}

/* Fix service icon box typo class */
.vl-service-icon-bo2x {
    overflow: hidden;
}

.vl-service-icon-bo2x:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vl-service-icon-bo2x:hover::after {
    height: 100%;
}

/* Fix about section counter box positioning */
.vl-about-countr-box2,
.vl-about-countr-box3 {
    z-index: 2;
}

/* Ensure proper image loading */
.vl-about-area-thumb1 img,
.vl-service-icon-bo2x .icon img,
.team-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Fix team social icon visibility */
.vl-single-team-bo2x {
    overflow: visible;
}

.vl-single-team-bo2x .team-social {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vl-single-team-bo2x:hover .team-social {
    opacity: 1;
}

/* Fix section spacing */
section {
    position: relative;
    overflow: visible;
}

/* Ensure proper z-index stacking */
.vl-section-title2 {
    position: relative;
    z-index: 1;
}

/* Fix animation delays */
[data-aos] {
    pointer-events: auto;
}

/* Fix swiper navigation buttons */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.owl-nav button {
    pointer-events: auto;
    position: absolute;
    background: var(--vkl-text-theme-color-2);
    color: var(--vkl-text-text-6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.owl-nav .owl-prev {
    left: -25px;
}

.owl-nav .owl-next {
    right: -25px;
}

.owl-nav button:hover {
    background: var(--vkl-text-text-6);
    color: var(--vkl-text-theme-color-2);
}

/* Fix testimonial review stars */
.vl-review ul {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vl-review ul li {
    display: inline-block;
}

/* Ensure proper font loading for counters */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Fix broken images fallback */
img {
    max-width: 100%;
    height: auto;
}

img[src=""],
img:not([src]),
img[src*="undefined"] {
    opacity: 0;
}

/* Animation fix for text-anime-style-3 */
.text-anime-style-3 {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}