/* HERO SECTION */
.nv-section-hero {
    padding: 5rem 1.5rem 2rem;
    text-align: center;
    z-index: 1;
}

.nv-hero-title {
    font-size: 2.7rem;
    margin-bottom: .7rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nv-hero-sub {
    max-width: 600px;
    margin: 0.5rem auto 0;
    font-size: 1.15rem;
    color: #667085;
}

/* MODULE GRID */
.nv-modules-showcase {
    padding: 3rem 1.5rem 5rem;
}

/* FILTER BAR */
.nv-filter-bar {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 1;
}

.nv-filter-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nv-filter-btn {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}

.nv-filter-btn:hover {
    background: #e2e8f0;
}

.nv-filter-btn.active {
    background: var(--njorka-light-blue);
    border-color: var(--njorka-light-blue);
    color: #fff;
}

.nv-filter-search input {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    width: 200px;
    transition: border-color .2s ease;
}

.nv-filter-search input:focus {
    outline: none;
    border-color: var(--njorka-light-blue);
}

@media (max-width: 640px) {
    .nv-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nv-filter-search input {
        width: 100%;
    }
}

.nv-modules-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

/* CARDS */
.nv-module-card {
    position: relative;
    background: #ffffff;
    padding: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: var(--njorka-dark-blue);
}

.triangles-background {
    position: absolute;
    bottom: -280px;
    right: -100px;
    width: 100%;
    height: 100%;
    rotate: -20deg;
    z-index: 1;
    scale: 0.8;
    opacity: 0.2;
    filter: drop-shadow(2px 2px 3px rgba(98, 98, 98, 0.8));
    user-select: none;

    transition:
        transform 0.15s ease,
        opacity 0.3s ease,
        bottom 0.15s ease,
        right 0.15s ease;
}

.nv-module-card:hover .triangles-background {
    bottom: -138px;
    right: -50px;
    opacity: 0.5;
}

.nv-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 10px rgba(0, 0, 0, 0.12);
}

.triangles-background-equipment {
    position: absolute;
    bottom: -310px;
    right: -100px;
    width: 100%;
    height: 100%;
    rotate: -20deg;
    z-index: 1;
    scale: 0.8;
    opacity: 0.2;
    filter: drop-shadow(2px 2px 3px rgba(98, 98, 98, 0.8));
    user-select: none;

    transition:
        transform 0.15s ease,
        opacity 0.3s ease,
        bottom 0.15s ease,
        right 0.15s ease;
}

.nv-module-card:hover .triangles-background-equipment {
    bottom: -222px;
    right: -60px;
    opacity: 0.5;
}

.nv-card-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-shrink: 0;
}

.nv-card-image {
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nv-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--njorka-dark-blue);
}

.nv-icon {
    font-size: 1.9rem;
}

.nv-card-desc {
    margin: 1rem 0;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.nv-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features pills */
.nv-features {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.nv-features h3 {
    font-size: .82rem;
    background: #f1f5f9;
    padding: .35rem .7rem;
    border-radius: 30px;
    color: #475569;
}

/* Button */
.nv-card-btn {
    display: inline-block;
    margin-top: auto;
    padding: .55rem 1.4rem;
    background: var(--njorka-light-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background .2s ease, box-shadow .2s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.nv-card-btn:hover {
    background: #0ea5e9;
}

@media (max-width: 768px) {
    .triangles-background {
        bottom: -138px;
        right: -50px;
        opacity: 0.5;
    }
}
