.custom-negative-mt {
    margin-top: -388px;
}
@media (max-width: 991.98px) {
    .custom-negative-mt {
        margin-top: -150px;
    }
}
@media (max-width: 767.98px) {
    .custom-negative-mt {
        margin-top: -180px;
    }
    .custom-hero-shape-divider {
        height: 30vw !important;
    }
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}
@keyframes customSvgDraw {
    to {
        stroke-dashoffset: 0 !important;
    }
}

/* Custom Social Outline */
.social-icons.custom-social-outline li a {
    background: transparent !important;
    color: #183f72 !important; /* Matches secondary color of header text */
    border: 2px solid transparent !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important; /* Add shadow by default */
    transition: all 0.3s ease;
}
.social-icons.custom-social-outline li.social-icons-instagram a:hover {
    background: transparent !important;
    color: #E1306C !important;
    border-color: #E1306C !important;
}
.social-icons.custom-social-outline li.social-icons-x a:hover {
    background: transparent !important;
    color: #000000 !important;
    border-color: #000000 !important;
}
.social-icons.custom-social-outline li.social-icons-facebook a:hover {
    background: transparent !important;
    color: #3b5998 !important;
    border-color: #3b5998 !important;
}
.social-icons.custom-social-outline li.social-icons-whatsapp a {
    background: transparent !important;
    color: #183f72 !important;
}
.social-icons.custom-social-outline li.social-icons-whatsapp a:hover {
    background: transparent !important;
    color: #25d366 !important;
    border-color: #25d366 !important;
}

/* Custom Link Hover Underline */
.custom-link-hover {
    position: relative;
    display: inline-block;
}
.custom-link-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #00a1cd; /* Matches primary color */
    transition: width 0.3s ease-in-out;
}
.custom-link-hover:hover::after {
    width: 100%;
}

/* Animated Running Border Form Box */
.neon-form-box {
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; /* Standard subtle shadow */
    border: none !important;
    background: transparent !important;
    overflow: hidden;
    z-index: 1;
    border-radius: 12px; /* Ensure clean rounded corners for the running line */
}

.neon-form-box::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    /* Create a distinct line effect with the theme colors */
    background: conic-gradient(transparent 70%, #00a1cd 85%, #183f72 100%);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.neon-form-box::after {
    content: '';
    position: absolute;
    inset: 3px; /* Controls the thickness of the running border */
    background: #ffffff;
    border-radius: inherit;
    z-index: -1;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Input Colors */
.neon-form-box .form-control {
    border: 1px solid #183f72 !important; /* Secondary theme color by default */
    background-color: transparent !important;
    transition: all 0.3s ease-in-out;
}

.neon-form-box .form-control:focus {
    border-color: #00a1cd !important; /* Primary theme color on focus */
    box-shadow: 0 0 5px rgba(0, 161, 205, 0.4) !important;
    outline: none !important;
}

.font-weight-extra-bold {
    font-weight: 800 !important;
}

/* Solution Card Hover Effects */
.custom-solution-card {
    overflow: hidden;
}

.custom-solution-card img.card-img-top {
    transition: transform 0.6s ease;
}

.custom-solution-card:hover img.card-img-top {
    transform: scale(1.1);
}

/* Ken Burns Video Zoom Effect Slider (6 slides) */
.ken-burns-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.kb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kb-zoom-fade 42s infinite;
}

.kb-slide:nth-child(3),
.kb-slide:nth-child(4) {
    animation-name: kb-pan-fade;
}

.kb-slide:nth-child(1), .kb-text:nth-child(1) { animation-delay: 0s; }
.kb-slide:nth-child(2), .kb-text:nth-child(2) { animation-delay: 7s; }
.kb-slide:nth-child(3), .kb-text:nth-child(3) { animation-delay: 14s; }
.kb-slide:nth-child(4), .kb-text:nth-child(4) { animation-delay: 21s; }
.kb-slide:nth-child(5), .kb-text:nth-child(5) { animation-delay: 28s; }
.kb-slide:nth-child(6), .kb-text:nth-child(6) { animation-delay: 35s; }

@keyframes kb-zoom-fade {
    0% { opacity: 0; transform: scale(1); }
    2.38% { opacity: 1; }
    16.66% { opacity: 1; }
    19.04% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.1); }
}

@keyframes kb-pan-fade {
    0% { opacity: 0; transform: scale(1.1) translateX(-4%); }
    2.38% { opacity: 1; }
    16.66% { opacity: 1; }
    19.04% { opacity: 0; transform: scale(1.1) translateX(4%); }
    100% { opacity: 0; transform: scale(1.1) translateX(4%); }
}

@keyframes kb-pan-fade-reverse {
    0% { opacity: 0; transform: scale(1.1) translateX(4%); }
    2.38% { opacity: 1; }
    16.66% { opacity: 1; }
    19.04% { opacity: 0; transform: scale(1.1) translateX(-4%); }
    100% { opacity: 0; transform: scale(1.1) translateX(-4%); }
}

.kb-text-wrapper {
    position: relative;
}

.kb-text {
    position: absolute;
    top: 0;
    right: 0; /* Align with text-end */
    width: 100%;
    opacity: 0;
    animation: kb-fade-text 42s infinite;
    pointer-events: none; /* Let clicks pass through if invisible */
}

.kb-text.active-click {
    pointer-events: auto;
}

@keyframes kb-fade-text {
    0% { opacity: 0; pointer-events: none; transform: translateY(10px); }
    2.38% { opacity: 1; pointer-events: auto; transform: translateY(0); }
    16.66% { opacity: 1; pointer-events: auto; transform: translateY(0); }
    19.04% { opacity: 0; pointer-events: none; transform: translateY(-10px); }
    100% { opacity: 0; pointer-events: none; transform: translateY(-10px); }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 46, 80, 0.70); /* Theme tertiary color with opacity */
    z-index: 1;
}

/* Ensure Owl Carousel items stretch to equal height */
.equal-height-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}
.equal-height-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}
.equal-height-carousel .owl-item > div {
    display: flex;
    flex-direction: column;
    width: 100%;
}