/* Wibify Custom Styles for Knovista */

/* Fix horizontal scroll issues globally */
body {
    overflow-x: hidden;
}

.mil-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
/* ==========================================================================
   Navigation (Wibify Style)
   ========================================================================== */
.wibify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.wibify-header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between CTA and Burger menu */
}

/* ==========================================================================
   Shiny CTA Button
   ========================================================================== */
.shiny-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.shiny-cta:hover {
    color: #fff;
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.shiny-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.shiny-cta:hover::before {
    left: 150%;
}

/* ==========================================================================
   Wibify Hero Section (Trionn 3D Style)
   ========================================================================== */
.wibify-hero {
    position: relative;
    background-color: #000000;
    color: #ffffff;
    padding: 180px 0 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* 3D Canvas Background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto; /* Required for Three.js mouse tracking */
}

/* Dark overlay to ensure text is readable */
.wibify-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Responsive Background Element on the Right */
.hero-bg-element {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.6) 0%, rgba(200, 50, 0, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: ambientFloat 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes ambientFloat {
    0% { transform: translateY(-50%) scale(1) translate(0, 0); }
    33% { transform: translateY(-50%) scale(1.1) translate(5%, -5%); }
    66% { transform: translateY(-50%) scale(0.9) translate(-5%, 5%); }
    100% { transform: translateY(-50%) scale(1) translate(0, 0); }
}

@media (max-width: 992px) {
    .hero-bg-element {
        right: 0%;
        width: 80vw;
        height: 80vw;
        filter: blur(40px);
    }
}



.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3rem, 5vw + 1rem, 6rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    color: #fff;
    max-width: 900px;
}

.hero-sub {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #aaa;
    max-width: 600px;
    margin-bottom: 50px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
}

.btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    color: #ccc;
    text-decoration: underline;
}

/* ==========================================================================
   Hero Metrics Strip
   ========================================================================== */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.metric-item strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wibify-hero {
        padding: 140px 0 60px 0;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hero-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 20px;
    }
    .wibify-header {
        padding: 0 20px;
    }
    .wibify-header-right {
        gap: 15px;
    }
}

/* ==========================================================================
   Space Hero Centered Layout
   ========================================================================== */
.hero-container-centered {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin-top: -50px;
}

.hero-eyebrow-space {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8fa3d4;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-title-space {
    font-size: clamp(3rem, 6vw + 1rem, 5.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 25px;
    color: #ffffff;
}

.hero-title-gradient {
    color: #93b4ff; /* Lighter blue tint for bottom line */
}

.hero-sub-space {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #a4b5d6;
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-cta-blue {
    background-color: #0b5edd;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.hero-cta-blue:hover {
    background-color: #176bef;
    color: #fff;
}

.hero-cta-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-cta-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Trusted By Section */
.hero-trusted-by {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.trusted-label {
    font-size: 13px;
    color: #6a82b8;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.placeholder-logo {
    font-family: serif;
    font-size: 20px;
    font-style: italic;
    color: #fff;
    letter-spacing: 1px;
}

/* ==========================================================================
   Clean Black & White Hero Redesign
   ========================================================================== */

/* Navigation Bar */
.clean-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.clean-nav.nav-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.clean-logo img, .clean-logo-img {
    height: 52px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.clean-links {
    display: flex;
    gap: 35px;
}

.clean-links a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
}

.clean-links a:hover {
    opacity: 0.7;
}

.clean-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.clean-btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.clean-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #FF6A00;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #FF6A00;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.clean-btn-primary:hover {
    background: #e65c00;
    border-color: #e65c00;
}

/* Dark theme for white backgrounds (like blog/publication) */
.clean-nav-dark .clean-links a {
    color: #111;
}

/* Invert the logo color so it shows up on white backgrounds */
.clean-nav-dark .clean-logo img {
    filter: brightness(0);
}

.clean-nav-dark .clean-links a:hover {
    opacity: 0.7;
}

.clean-nav-dark .clean-btn-outline {
    color: #111;
    border-color: rgba(0, 0, 0, 0.3);
}

.clean-nav-dark .clean-btn-outline:hover {
    background: #111;
    color: #fff;
}

.clean-nav-dark .clean-hamburger span {
    background: #111;
}

/* When the hamburger is active on dark nav */
.clean-nav-dark .clean-hamburger.active span {
    background: #fff; /* X should be white over the dark overlay */
}

.arr {
    font-size: 18px;
    line-height: 1;
}

/* Hero Layout */
.clean-hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through to 3D canvas if needed */
}

.clean-hero-content {
    max-width: 800px;
    padding: 0 20px;
    margin-top: -30px;
    pointer-events: auto; /* Re-enable clicks for buttons inside content */
}

/* Typography */
.clean-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-weight: 600;
}

.clean-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 25px;
}

.clean-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

/* Buttons Container */
.clean-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* Staggered Load Animations */
.anim-item {
    opacity: 0;
    transform: translateY(20px);
}

.anim-1 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.anim-2 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.anim-3 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }
.anim-4 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; }

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hide social icons on team hover */
.mil-team-card .mil-social-icons {
    display: none !important;
}

/* ==========================================================================
   Responsive Mobile Navigation
   ========================================================================== */

/* Hamburger Icon (Hidden on Desktop) */
.clean-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
}

.clean-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

/* Mobile Fullscreen Menu */
.clean-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.clean-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.clean-mobile-links a {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.clean-mobile-menu.active .clean-mobile-links a {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease 0.2s;
}

.clean-mobile-links a:hover {
    color: #FF6A00;
}

/* QIK Mobile Drawer Styling */
.clean-mobile-links {
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 10px;
    gap: 16px !important;
}

.mobile-section-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f97316;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mobile-section-badge.secondary {
    color: #64748b;
    margin-top: 5px;
}

.mobile-nav-main-item {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-subnav-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.mobile-sub-item {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-sub-item:hover {
    color: #f97316 !important;
}

.mobile-nav-sub-link {
    font-size: 15px !important;
    color: #94a3b8 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 10px 0;
    width: 100%;
}

/* Explicit Close Button in Mobile Menu */
.clean-mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1001;
}

.clean-mobile-close:hover {
    color: #FF6A00;
}

/* Hamburger Active State (X icon) */
.clean-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.clean-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.clean-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Stop background scrolling when menu open */
body.no-scroll {
    overflow: hidden;
}

/* Mobile Breakpoint */
@media (max-width: 992px) {
    .clean-links {
        display: none !important;
    }
    .clean-nav-right .clean-btn-outline {
        display: none !important;
    }
    .clean-hamburger {
        display: flex;
    }
    .clean-nav {
        padding: 0 20px;
        height: 70px;
    }
    .clean-logo img, .clean-logo-img {
        max-height: 48px !important;
        height: 48px !important;
        width: auto !important;
    }
    .qik-profile-menu {
        margin-right: 8px;
    }
    .clean-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    .clean-sub {
        font-size: 1rem;
        padding: 0 10px;
    }
    .clean-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    .clean-actions a {
        width: 100%;
        justify-content: center;
    }
}

/* Blog Content Styling */
.clean-blog-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #4a4a4a;
    font-family: 'Inter', sans-serif;
}
.clean-blog-content h2,
.clean-blog-content h3,
.clean-blog-content h4 {
    color: #111;
    margin-top: 55px;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.3;
}
.clean-blog-content h2 { font-size: 2.4rem; }
.clean-blog-content h3 { font-size: 1.9rem; }
.clean-blog-content h4 { font-size: 1.5rem; }
.clean-blog-content p {
    margin-bottom: 35px;
}
.clean-blog-content ul,
.clean-blog-content ol {
    margin-bottom: 35px;
    padding-left: 20px;
}
.clean-blog-content li {
    margin-bottom: 15px;
}
.clean-blog-content strong {
    color: #111;
}
.clean-blog-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Global Space Reduction (Tightening Layout)
   ========================================================================== */

/* Desktop Padding Reductions */
.mil-p-120-120 { padding-top: 80px !important; padding-bottom: 80px !important; }
.mil-p-120-90 { padding-top: 80px !important; padding-bottom: 60px !important; }
.mil-p-0-120 { padding-bottom: 80px !important; }
.mil-p-120-0 { padding-top: 80px !important; }
.mil-p-120-60 { padding-top: 80px !important; padding-bottom: 40px !important; }
.mil-p-90-90 { padding-top: 60px !important; padding-bottom: 60px !important; }
.mil-p-90-120 { padding-top: 60px !important; padding-bottom: 80px !important; }
.mil-p-0-90 { padding-bottom: 60px !important; }

/* Desktop Margin Reductions */
.mil-mb-120 { margin-bottom: 80px !important; }
.mil-mb-90 { margin-bottom: 60px !important; }
.mil-mb-60 { margin-bottom: 40px !important; }
.mil-mb-30 { margin-bottom: 20px !important; }

/* Tablet Optimization (Max-Width 992px) */
@media screen and (max-width: 992px) {
    /* Padding Reductions */
    .mil-p-120-120 { padding-top: 50px !important; padding-bottom: 50px !important; }
    .mil-p-120-90 { padding-top: 50px !important; padding-bottom: 40px !important; }
    .mil-p-0-120 { padding-bottom: 50px !important; }
    .mil-p-120-0 { padding-top: 60px !important; }
    .mil-p-120-60 { padding-top: 60px !important; padding-bottom: 40px !important; }
    .mil-p-90-90 { padding-top: 45px !important; padding-bottom: 45px !important; }
    .mil-p-90-120 { padding-top: 45px !important; padding-bottom: 60px !important; }
    .mil-p-0-90 { padding-bottom: 45px !important; }
    
    /* Margin Reductions */
    .mil-mb-120 { margin-bottom: 60px !important; }
    .mil-mb-90 { margin-bottom: 45px !important; }
    .mil-mb-60 { margin-bottom: 40px !important; }
}

/* ==========================================================================
   Unique Infinite Marquee for Partners
   ========================================================================== */
.knovista-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.knovista-marquee {
    display: inline-flex;
    animation: scrollMarquee 25s linear infinite;
    gap: 40px;
}

.knovista-marquee:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-group .mil-partner-frame {
    width: 175px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
}

.marquee-group .mil-partner-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.knovista-marquee:hover .mil-partner-frame {
    opacity: 0.15;
}

.knovista-marquee .mil-partner-frame:hover {
    opacity: 1 !important;
    filter: grayscale(0%);
    transform: scale(1.15);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

/* Mobile Phone Optimization (Max-Width 768px) */
@media screen and (max-width: 768px) {
    /* Extreme Padding Reductions for Phones */
    .mil-p-120-120 { padding-top: 40px !important; padding-bottom: 40px !important; }
    .mil-p-120-90 { padding-top: 40px !important; padding-bottom: 30px !important; }
    .mil-p-0-120 { padding-bottom: 40px !important; }
    .mil-p-120-0 { padding-top: 40px !important; }
    .mil-p-120-60 { padding-top: 40px !important; padding-bottom: 20px !important; }
    .mil-p-90-90 { padding-top: 30px !important; padding-bottom: 30px !important; }
    .mil-p-90-120 { padding-top: 30px !important; padding-bottom: 40px !important; }
    .mil-p-0-90 { padding-bottom: 30px !important; }
    .mil-p-0-30 { padding-bottom: 15px !important; }
    .mil-p-120-30 { padding-top: 40px !important; padding-bottom: 15px !important; }
    
    /* Extreme Margin Reductions for Phones */
    .mil-mb-120 { margin-bottom: 40px !important; }
    .mil-mb-90 { margin-bottom: 30px !important; }
    .mil-mb-60 { margin-bottom: 30px !important; }
    .mil-mb-30 { margin-bottom: 15px !important; }
    
    /* Typography Adjustments */
    h1, .mil-h1 { font-size: 32px !important; line-height: 1.2 !important; }
    h2, .mil-h2 { font-size: 28px !important; line-height: 1.3 !important; }
    h3, .mil-h3 { font-size: 24px !important; line-height: 1.4 !important; }
    h4, .mil-h4 { font-size: 20px !important; line-height: 1.4 !important; }
    .mil-text-xl { font-size: 18px !important; }
    
    /* Container/Section Constraints */
    .mil-inner-banner { 
        padding-top: 100px !important; 
        padding-bottom: 30px !important;
        height: auto !important;
        min-height: unset !important;
        display: block !important;
    }
    
    .mi-invert-fix {
        height: auto !important;
        min-height: unset !important;
        display: block !important;
    }
    
    .mil-banner-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
        text-align: center !important;
    }
    
    /* Mobile Breadcrumbs */
    .mil-breadcrumbs {
        justify-content: center !important;
        margin-bottom: 25px !important;
        flex-wrap: wrap;
    }
    .mil-breadcrumbs li {
        font-size: 12px !important;
    }
    /* Let the hero section wrap content on mobile */
    #hero-section {
        height: auto !important;
        min-height: unset !important;
    }
    .clean-hero-container {
        position: relative !important;
        height: auto !important;
        padding: 160px 20px 80px 20px !important;
    }
    
    .mil-night-banner {
        min-height: unset !important;
        align-items: flex-start !important;
        padding-top: 100px !important;
        padding-bottom: 20px !important;
    }
    
    .mil-night-content {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
        text-align: center !important;
    }
    
    .mil-night-content .row {
        justify-content: center;
    }
}

/* Improve Blog Card Image Height */
.mil-blog-card .mil-cover-frame {
    padding-bottom: 70% !important;
    border-radius: 8px;
}
.mil-blog-card .mil-cover-frame img {
    border-radius: 8px;
}


/* Blog Slider Fade Effect */
.mil-blog-slider {
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

