/**
 * NJ Service Frontend Styles
 */

/* =========================================================================
 * 1. FILTER TABS
 * ========================================================================= */
.nj-services-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.nj-filter-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nj-filter-btn:hover {
    color: #2b3992;
    border-color: #cbd5e1;
    background: #ffffff;
}

.nj-filter-btn.active {
    background: #2b3992;
    color: #ffffff;
    border-color: #2b3992;
    box-shadow: 0 4px 12px rgba(43, 57, 146, 0.25);
}

/* =========================================================================
 * 2. SERVICES GRID LAYOUT
 * ========================================================================= */
.nj-services-grid {
    display: grid;
    gap: 30px;
}

.nj-grid-cols-1 { grid-template-columns: 1fr; }
.nj-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nj-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nj-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .nj-grid-cols-3,
    .nj-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nj-grid-cols-2,
    .nj-grid-cols-3,
    .nj-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

.nj-grid-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nj-grid-item.nj-hidden {
    display: none !important;
}

/* =========================================================================
 * 3. SERVICE CARD - MODERN STYLE (DEFAULT)
 * ========================================================================= */
.nj-service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid #edf2f7;
}

.nj-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Card Media / Image */
.nj-card-media {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #1e293b;
}

.nj-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nj-service-card:hover .nj-card-img {
    transform: scale(1.08);
}

/* Featured Ribbon */
.nj-featured-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f7941d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(247, 148, 29, 0.4);
    z-index: 2;
}

/* Category Badge */
.nj-card-badge-wrap {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
}

.nj-card-category-badge {
    display: inline-block;
    background: #2b3992;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nj-card-category-badge:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Card Body */
.nj-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Icon Wrap */
.nj-card-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(43, 57, 146, 0.08);
    color: #2b3992;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nj-service-card:hover .nj-card-icon-wrap {
    background: #2b3992;
    color: #ffffff;
}

/* Subtitle */
.nj-card-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #f7941d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* Title */
.nj-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.nj-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nj-card-title a:hover {
    color: #2b3992;
    text-decoration: none;
}

/* Excerpt */
.nj-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
    flex: 1;
}

/* Duration */
.nj-card-duration {
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

/* Footer / Button */
.nj-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.nj-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2b3992;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.nj-card-btn:hover {
    color: #f7941d;
    gap: 12px;
    text-decoration: none;
}

.nj-btn-arrow {
    transition: transform 0.2s ease;
}

.nj-card-btn:hover .nj-btn-arrow {
    transform: translateX(4px);
}

/* =========================================================================
 * 4. CARD STYLE: BORDERED
 * ========================================================================= */
.nj-style-bordered {
    box-shadow: none;
    border: 1.5px solid #e2e8f0;
}
.nj-style-bordered:hover {
    border-color: #2b3992;
    box-shadow: 0 8px 24px rgba(43, 57, 146, 0.08);
}

/* =========================================================================
 * 5. CARD STYLE: MINIMAL
 * ========================================================================= */
.nj-style-minimal {
    box-shadow: none;
    border: none;
    background: transparent;
}
.nj-style-minimal .nj-card-body {
    padding: 16px 0 0 0;
}

/* =========================================================================
 * 6. SERVICE CATEGORIES SHOWCASE CARDS
 * ========================================================================= */
.nj-categories-grid {
    display: grid;
    gap: 24px;
}

.nj-category-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nj-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--nj-cat-accent, #2b3992);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.nj-cat-card-inner {
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.nj-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(43, 57, 146, 0.08);
    color: var(--nj-cat-accent, #2b3992);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nj-category-card:hover .nj-cat-icon {
    background: var(--nj-cat-accent, #2b3992);
    color: #ffffff;
    transform: scale(1.1);
}

.nj-cat-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.nj-cat-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 10px 0;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

.nj-cat-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.nj-cat-arrow {
    margin-top: auto;
    font-size: 18px;
    color: var(--nj-cat-accent, #2b3992);
    transition: transform 0.2s ease;
}

.nj-category-card:hover .nj-cat-arrow {
    transform: translateX(5px);
}

.nj-no-services {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    padding: 30px;
}
