/*
   Author: Glacies UG
*/
body {
    font-family: helvetica neue,Helvetica,Arial,sans-serif !important;
}

.btn-ice {
    background-color: #0c6980 !important;
    border-color: #0c6980 !important;
}

.text-ice{
    color: #0c6980 !important;
}

.markdown img {
    width: 100%;
}

/* Reduced Header Height */
.bg-half-170 {
    padding: 80px 0 60px 0;
    overflow: visible;
}

.bg-half-170 .title-heading h1.display-4 {
    font-size: 3.4rem;
    line-height: 1.3;
}

.bg-half-170 #cloud-container {
    position: relative;
    z-index: 10;
}

.bg-half-170 + .position-relative {
    margin-top: 60px;
}

@media (max-width: 991px) {
    .bg-half-170 .title-heading h1.display-4 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .bg-half-170 {
        padding: 60px 0 40px 0;
    }
    .bg-half-170 .title-heading h1.display-4 {
        font-size: 1.8rem;
    }
    .bg-half-170 + .position-relative {
        margin-top: 40px;
    }
}

/* Feature Showcase Component */
.feature-showcase {
    padding: 40px 0;
}

.feature-showcase__images {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-showcase__image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.feature-showcase__image-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.feature-showcase__image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.feature-showcase__tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-showcase__tab {
    position: relative;
    padding: 16px 20px;
    padding-left: 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.feature-showcase__tab:hover {
    background: #f8f9fa;
}

.feature-showcase__tab.active {
    background: #f0f9ff;
}

.feature-showcase__tab-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.feature-showcase__tab-progress-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #0c6980 0%, #0a5568 100%);
    transition: height 0.1s linear;
}

.feature-showcase__tab.active .feature-showcase__tab-progress-fill {
    animation: progressFill 5s linear forwards;
}

.feature-showcase__tab-content {
    padding-left: 8px;
}

.feature-showcase__tab-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.feature-showcase__tab.active .feature-showcase__tab-title {
    color: #0c6980;
}

.feature-showcase__tab-desc {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    margin-top: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.feature-showcase__tab.active .feature-showcase__tab-desc {
    opacity: 1;
}

@keyframes progressFill {
    0% { height: 0; }
    100% { height: 100%; }
}

@media (max-width: 768px) {
    .feature-showcase__images {
        aspect-ratio: 16 / 10;
        margin-bottom: 30px;
    }
    .feature-showcase__tab-title {
        font-size: 18px;
    }
    .feature-showcase__tab-desc {
        font-size: 16px;
    }
}

/* Mobile App Showcase */
.mobile-app-showcase__phones {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-app-showcase__phones .feature-showcase__image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-app-showcase__phones .feature-showcase__image-item img {
    object-fit: contain;
    border-radius: 24px;
}

.mobile-app-showcase__phone-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 20px 0;
}

.mobile-app-showcase__phone-group--single {
    justify-content: center;
}

.mobile-app-showcase__phone {
    width: 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mobile-app-showcase__phone--front {
    margin-left: -40px;
    transform: translateY(20px);
    z-index: 2;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.mobile-app-showcase__phone img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .mobile-app-showcase__phones {
        min-height: 400px;
        margin-bottom: 30px;
    }
    .mobile-app-showcase__phone {
        width: 180px;
    }
}

@media (max-width: 576px) {
    .mobile-app-showcase__phones {
        min-height: 350px;
    }
    .mobile-app-showcase__phone {
        width: 150px;
        border-radius: 18px;
    }
    .mobile-app-showcase__phone--front {
        margin-left: -30px;
        transform: translateY(15px);
    }
}

/* Consistent Typography */
h4.title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
}

h5, .card-body h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.para-desc, .text-muted.para-desc {
    font-size: 17px;
    line-height: 1.6;
}

.card-body .para, .card-body p.para {
    font-size: 16px;
    line-height: 1.6;
}

/* Wider section description text */
.section-title .para-desc {
    max-width: 900px;
}

/* Product Cards */
.product-card {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.product-card__features {
    flex-grow: 1;
    margin-bottom: 24px;
}

.product-card__features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #6c757d;
}

.product-card__features li span {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.4;
}

.product-card__actions {
    text-align: center;
    padding-top: 16px;
}

.btn-outline-ice {
    color: #0c6980;
    border-color: #0c6980;
    background-color: transparent;
}

.btn-outline-ice:hover {
    color: #fff;
    background-color: #0c6980;
    border-color: #0c6980;
}

@media (max-width: 768px) {
    .product-cards .col-12 {
        margin-bottom: 20px;
    }
    .product-card__title {
        font-size: 18px;
    }
    .product-card__features li {
        font-size: 16px;
    }

    /* Responsive Typography */
    h4.title {
        font-size: 22px;
    }
    h5, .card-body h5 {
        font-size: 18px;
    }
    .para-desc, .text-muted.para-desc {
        font-size: 16px;
    }
    .card-body .para, .card-body p.para {
        font-size: 16px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   Product mega-menu UX: forgiving hover, larger text, clearer item highlight.
   Overrides the theme (assets/css/style.min.css); this file loads after it.
   Desktop only — the mobile menu is tap-based and unaffected.
   ───────────────────────────────────────────────────────────────────────── */
@media (min-width: 992px) {

    /* 1) Don't lose the menu when the cursor briefly leaves. The theme fades the
          submenu with visibility+opacity; add a close DELAY on the hidden (base)
          state and keep the OPEN instant, so the user gets a grace period to move
          back or down into the panel. */
    #topnav .navigation-menu > li .submenu {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transition-delay: 0.35s;   /* applies when hiding */
    }
    #topnav .navigation-menu > li.has-submenu:hover > .submenu {
        transition-delay: 0s;      /* open immediately */
    }

    /* 2) Bridge the 10px gap between the "Product" item and the panel so moving
          the cursor straight down doesn't cross a dead zone and close it. */
    #topnav .navigation-menu > li .submenu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -14px;
        height: 14px;
        background: transparent;
    }

    /* 3) Bigger, more readable items + a smooth background highlight on hover
          (was 11px with only a color change). */
    #topnav .navigation-menu > li .submenu li a {
        font-size: 13px;
        padding: 11px 22px;
        border-radius: 6px;
        transition: background-color 0.18s ease, color 0.18s ease;
    }
    #topnav .navigation-menu > li .submenu li a:hover {
        background-color: #f2f5ff;
        color: #2f55d4 !important;
    }

    /* 4) Column headers a touch larger to match. */
    #topnav .navigation-menu > li .submenu.megamenu li .megamenu-head {
        font-size: 13px;
    }
}