/**
 * NJ Technology Styles
 * Plugin: NJ Core
 */

.nj-technology-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: var(--nirja-font-main, 'DM Sans', 'Poppins', sans-serif);
    padding: 20px 0 60px 0;
}

.nj-technology-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(20px, 4vw, 70px);
    box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. Hero & Clinical Overview Section
   ────────────────────────────────────────────────────────────────────────── */
.nj-tech-hero-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}

.nj-tech-hero-section.nj-tech-row-reverse .nj-tech-hero-content-col {
    order: 2;
}

.nj-tech-hero-section.nj-tech-row-reverse .nj-tech-hero-media-col {
    order: 1;
}

/* Badge / Super Title */
.nj-tech-badge-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.nj-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #f7941d;
    background-color: rgba(247, 148, 29, 0.1);
    padding: 6px 18px;
    border-radius: 30px;
}

.nj-tech-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #f7941d;
}

/* Main Heading */
.nj-tech-hero-title {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a2468;
    margin: 0 0 22px 0;
}

/* Paragraphs */
.nj-tech-para {
    font-size: 16px;
    line-height: 1.75;
    color: #5b616e;
    margin: 0 0 16px 0;
}

.nj-tech-para-highlight {
    font-size: 16.5px;
    color: #334155;
    font-weight: 500;
}

/* Goal Callout Card */
.nj-tech-goal-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f7941d;
    border-radius: 14px;
    padding: 22px 26px;
    margin-top: 28px;
    box-shadow: 0 10px 30px rgba(43, 57, 146, 0.05);
}

.nj-tech-goal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: rgba(43, 57, 146, 0.08);
    color: #2b3992;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.nj-tech-goal-text {
    display: flex;
    flex-direction: column;
}

.nj-tech-goal-lead {
    font-size: 14.5px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 6px;
}

.nj-tech-goal-motto {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #1a2468;
    line-height: 1.35;
    margin: 0;
}

/* Media Column & Image Frame */
.nj-tech-hero-media-col {
    position: relative;
}

.nj-tech-media-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(43, 57, 146, 0.12);
    aspect-ratio: 4 / 3.4;
    background-color: #1a2468;
}

.nj-tech-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nj-tech-media-frame:hover .nj-tech-hero-img {
    transform: scale(1.04);
}

.nj-tech-media-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(16, 21, 48, 0.5) 100%);
    pointer-events: none;
}

/* Floating Badge on Image */
.nj-tech-floating-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.nj-tech-media-frame:hover .nj-tech-floating-card {
    transform: translateY(-4px);
}

.nj-tech-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #f7941d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(247, 148, 29, 0.35);
}

.nj-tech-float-info {
    display: flex;
    flex-direction: column;
}

.nj-tech-float-title {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    color: #1f2444;
    line-height: 1.3;
}

.nj-tech-float-sub {
    font-size: 12.5px;
    font-weight: 600;
    color: #f7941d;
    margin-top: 2px;
}

/* Separator Line */
.nj-tech-section-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 30px 0 65px 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. Pain Management Technologies Section
   ────────────────────────────────────────────────────────────────────────── */
.nj-tech-pain-section {
    width: 100%;
    position: relative;
}

.nj-tech-section-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 50px auto;
}

.nj-tech-super-title {
    display: inline-block;
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f7941d;
    margin-bottom: 10px;
}

.nj-tech-section-title {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1a2468;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.nj-tech-section-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #5b616e;
    margin: 0 0 20px 0;
}

.nj-tech-lead-badge {
    display: inline-block;
    background-color: #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Modalities Grid */
.nj-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 45px;
}

.nj-tech-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 28px;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 26px rgba(43, 57, 146, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.nj-tech-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(43, 57, 146, 0.12);
    border-color: rgba(247, 148, 29, 0.3);
}

.nj-tech-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #2b3992, #f7941d);
    transition: width 0.4s ease;
}

.nj-tech-card:hover .nj-tech-card-bar {
    width: 100%;
}

.nj-tech-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nj-tech-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: rgba(43, 57, 146, 0.08);
    color: #2b3992;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nj-tech-card:hover .nj-tech-icon-wrap {
    background-color: #f7941d !important;
    color: #ffffff !important;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(247, 148, 29, 0.32);
}

.nj-tech-num {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.nj-tech-card:hover .nj-tech-num {
    color: #f7941d;
}

.nj-tech-card-title {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #1f2444;
    line-height: 1.35;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.nj-tech-card:hover .nj-tech-card-title {
    color: #2b3992;
}

.nj-tech-card-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
    flex: 1;
}

/* Philosophy Banner */
.nj-tech-philosophy-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 38px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nj-tech-philo-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2b3992 0%, #1a2468 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(43, 57, 146, 0.28);
}

.nj-tech-philo-content {
    display: flex;
    flex-direction: column;
}

.nj-tech-philo-note {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 6px 0;
}

.nj-tech-philo-motto {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 17.5px;
    font-weight: 700;
    color: #1a2468;
    line-height: 1.4;
    margin: 0;
}

/* CTA Wrap */
.nj-tech-cta-wrap {
    text-align: center;
    margin-top: 10px;
}

.nj-tech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 30px;
    background-color: #2b3992;
    color: #ffffff !important;
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 22px rgba(43, 57, 146, 0.28);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nj-tech-btn:hover {
    background-color: #f7941d !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(247, 148, 29, 0.42) !important;
    color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .nj-tech-hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }

    .nj-tech-hero-section.nj-tech-row-reverse .nj-tech-hero-content-col {
        order: 1;
    }

    .nj-tech-hero-section.nj-tech-row-reverse .nj-tech-hero-media-col {
        order: 2;
    }

    .nj-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .nj-tech-philosophy-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .nj-tech-grid {
        grid-template-columns: 1fr;
    }

    .nj-tech-card {
        padding: 26px 20px;
    }

    .nj-tech-floating-card {
        bottom: 14px;
        left: 14px;
        right: 14px;
        padding: 12px 14px;
    }

    .nj-tech-goal-card {
        padding: 18px 16px;
    }

    .nj-tech-btn {
        width: 100%;
        padding: 14px 24px;
    }
}
