:root {
    --primary-blue: #0d6efd;
    --dark-blue: #1e3a8a;
    --light-blue: #0ea5e9;
}

#topBar {
    height: 32px;
    line-height: 32px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
}

#navbar.fixed-top {
    top: 32px;
}

.hero-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    padding-top: 132px;
    padding-bottom: 80px;
    color: white;
}
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-blue);
}
.product-card {
    transition: all 0.3s ease;
    /*height: 100%;*/
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.industry-card {
    transition: all 0.3s ease;
}
.industry-card:hover {
    background-color: #f8f9fa;
}
.industry-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.nav-link {
    position: relative;
}
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}
.nav-link:hover:after {
    width: 100%;
}
.category-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}
.category-tabs .nav-link.active {
    color: var(--primary-blue);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-blue);
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
#offers{
     background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
}

/* ========== Standard Products: selectable family cards + one models panel ========== */

.standard-products-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.standard-family-scroller {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.standard-family-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.standard-family-card:hover {
    border-color: #bfdbfe;
}

.standard-family-card.is-selected {
    border-color: var(--primary-blue);
    background: #f0f7ff;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.standard-family-card.is-selected::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -11px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 11px solid var(--primary-blue);
    transform: translateX(-50%);
    z-index: 2;
}

.standard-family-card .card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.standard-family-header {
    min-height: 6.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.standard-family-icon {
    display: block;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.standard-family-header h3 {
    line-height: 1.3;
    color: #0f172a;
}

.standard-family-features {
    font-size: 0.9rem;
    line-height: 1.4;
}

.standard-family-features li {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.standard-family-features li:last-child {
    margin-bottom: 0;
}

.standard-family-cta {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    text-align: center;
}

.standard-family-cta:hover {
    text-decoration: underline;
}

.standard-models-panel {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1.25rem 1.35rem 1.5rem;
}

.standard-models-heading {
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.standard-model-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.standard-model-grid.is-active {
    display: grid;
}

.standard-model-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #93c5fd;
    border-radius: 0.375rem;
    background: #eff6ff;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    word-break: break-word;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.standard-model-chip:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .standard-family-scroller {
        display: flex;
        gap: 0.85rem;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .standard-family-card {
        flex: 0 0 min(78vw, 18.5rem);
        scroll-snap-align: start;
    }

    .standard-family-header {
        min-height: 5.5rem;
    }

    .standard-model-grid,
    .standard-model-grid.is-active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .standard-family-card {
        flex-basis: min(88vw, 20rem);
    }

    .standard-family-header {
        min-height: 0;
    }

    .standard-models-panel {
        padding: 1rem 1rem 1.15rem;
    }

    .standard-model-grid,
    .standard-model-grid.is-active {
        grid-template-columns: 1fr;
    }
}