/**
 * NJ Robotics Rehabilitation Styles
 * Plugin: NJ Core
 */

.nj-robotics-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-robotics-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 clamp(20px, 4vw, 70px);
    box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────────────────
   Common Typography & Badges
   ────────────────────────────────────────────────────────────────────────── */
.nj-rb-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(247, 148, 29, 0.1);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
}

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

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

.nj-rb-title {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-weight: 700;
    color: #1a2468;
    line-height: 1.25;
}

.nj-rb-section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    margin: 10px 0 16px 0;
}

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

.nj-rb-lead-para {
    font-size: 17px;
    font-weight: 500;
    color: #334155;
}

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

.nj-rb-hero-content .nj-rb-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin: 0 0 20px 0;
}

.nj-rb-motto-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(43, 57, 146, 0.05) 0%, rgba(247, 148, 29, 0.08) 100%);
    border-left: 4px solid #f7941d;
    border-radius: 12px;
    padding: 16px 22px;
    margin-top: 24px;
}

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

.nj-rb-motto-text {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #1a2468;
    line-height: 1.4;
}

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

.nj-rb-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-rb-media-frame:hover .nj-rb-hero-img {
    transform: scale(1.05);
}

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

.nj-rb-float-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    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-rb-media-frame:hover .nj-rb-float-card {
    transform: translateY(-4px);
}

.nj-rb-float-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: #2b3992;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(43, 57, 146, 0.35);
}

.nj-rb-float-content {
    display: flex;
    flex-direction: column;
}

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

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

/* ──────────────────────────────────────────────────────────────────────────
   2. What is Robotic Rehabilitation?
   ────────────────────────────────────────────────────────────────────────── */
.nj-rb-what-section {
    margin-bottom: 85px;
}

.nj-rb-what-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 55px;
    box-shadow: 0 15px 45px rgba(43, 57, 146, 0.06);
    border: 1px solid #edf2f7;
}

.nj-rb-what-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 36px auto;
}

.nj-rb-what-desc {
    font-size: 17px;
    line-height: 1.75;
    color: #475569;
    margin-top: 14px;
}

.nj-rb-features-panel {
    background: #f8fafc;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.nj-rb-features-lead {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #1a2468;
    margin: 0 0 20px 0;
}

.nj-rb-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
}

.nj-rb-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nj-rb-check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(43, 57, 146, 0.1);
    color: #2b3992;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.nj-rb-feature-item:hover .nj-rb-check-circle {
    background-color: #f7941d;
    color: #ffffff;
    transform: scale(1.15);
}

.nj-rb-feature-text {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

/* Therapist Integration Note */
.nj-rb-therapist-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(43, 57, 146, 0.04) 0%, rgba(247, 148, 29, 0.06) 100%);
    border-radius: 14px;
    padding: 22px 28px;
    border: 1px solid #e2e8f0;
}

.nj-rb-therapist-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #2b3992;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(43, 57, 146, 0.3);
}

.nj-rb-therapist-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin: 0;
    font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────────────────
   3. Why Robotic Rehabilitation? (6 Key Advantages)
   ────────────────────────────────────────────────────────────────────────── */
.nj-rb-why-section {
    margin-bottom: 90px;
}

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

.nj-rb-why-sub {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 18.5px;
    font-weight: 700;
    color: #f7941d;
    margin: 4px 0 14px 0;
}

.nj-rb-why-desc {
    font-size: 16px;
    line-height: 1.75;
    color: #5b616e;
    margin: 0;
}

/* Advantages 6-Card Grid */
.nj-rb-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nj-rb-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 30px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px 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-rb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(43, 57, 146, 0.12);
    border-color: rgba(247, 148, 29, 0.4);
}

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

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

.nj-rb-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.nj-rb-num {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 26px;
    font-weight: 800;
    color: #f7941d;
    line-height: 1;
}

.nj-rb-card-corner-line {
    width: 32px;
    height: 2px;
    background-color: #e2e8f0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nj-rb-card:hover .nj-rb-card-corner-line {
    width: 48px;
    background-color: #2b3992;
}

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

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

.nj-rb-card-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #5b616e;
    margin: 0;
    flex: 1;
}

.nj-rb-card-bullets {
    list-style: none;
    margin: 16px 0 0 0;
    padding: 14px 0 0 0;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nj-rb-card-bullets li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: #334155;
    font-weight: 600;
}

.nj-rb-bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f7941d;
    flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   4. Our Robotic Rehabilitation Programs
   ────────────────────────────────────────────────────────────────────────── */
.nj-rb-programs-section {
    margin-bottom: 90px;
}

.nj-rb-programs-header {
    text-align: center;
    margin-bottom: 60px;
}

.nj-rb-program-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
    margin-bottom: 80px;
}

.nj-rb-program-row:last-child {
    margin-bottom: 0;
}

/* Positioning */
.nj-rb-program-row.nj-rb-pos-left .nj-rb-program-media {
    order: 1;
}
.nj-rb-program-row.nj-rb-pos-left .nj-rb-program-content {
    order: 2;
}

.nj-rb-program-row.nj-rb-pos-right .nj-rb-program-media {
    order: 2;
}
.nj-rb-program-row.nj-rb-pos-right .nj-rb-program-content {
    order: 1;
}

/* Media Frame */
.nj-rb-program-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 420px;
    background-color: #1a2468;
    box-shadow: 0 16px 45px rgba(27, 36, 104, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nj-rb-program-row:hover .nj-rb-program-frame {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(27, 36, 104, 0.15);
}

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

.nj-rb-program-row:hover .nj-rb-program-img {
    transform: scale(1.05);
}

.nj-rb-program-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 21, 48, 0.1) 0%, rgba(16, 21, 48, 0.45) 100%);
    pointer-events: none;
}

.nj-rb-program-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: rgba(43, 57, 146, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Content Column */
.nj-rb-program-tag {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #f7941d;
    display: inline-block;
    margin-bottom: 8px;
}

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

.nj-rb-program-desc {
    font-size: 16px;
    line-height: 1.75;
    color: #5b616e;
    margin: 0 0 24px 0;
}

.nj-rb-program-checklist {
    background: #f8fafc;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
}

.nj-rb-checklist-label {
    display: block;
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #1a2468;
    margin-bottom: 12px;
}

.nj-rb-check-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
}

.nj-rb-check-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.nj-rb-check-icon {
    color: #f7941d;
    flex-shrink: 0;
}

.nj-rb-highlight-quote {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(247, 148, 29, 0.08);
    border-left: 3.5px solid #f7941d;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 18px;
}

.nj-rb-quote-mark {
    font-size: 28px;
    font-weight: 800;
    color: #f7941d;
    line-height: 1;
}

.nj-rb-highlight {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #1a2468;
}

.nj-rb-program-subtext {
    font-size: 14.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   5. CTA Banner
   ────────────────────────────────────────────────────────────────────────── */
.nj-rb-cta-banner {
    background: linear-gradient(135deg, #1a2468 0%, #2b3992 100%);
    border-radius: 24px;
    padding: 48px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(27, 36, 104, 0.25);
}

.nj-rb-cta-content {
    max-width: 100%;
    flex: 1;
}

.nj-rb-cta-title {
    font-family: var(--nirja-font-heading, 'Poppins', sans-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.nj-rb-cta-desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

.nj-rb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 30px;
    background-color: #f7941d;
    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(247, 148, 29, 0.38);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.nj-rb-btn:hover {
    background-color: #ffffff !important;
    color: #1a2468 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

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

    .nj-rb-what-box {
        padding: 35px 28px;
    }

    .nj-rb-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nj-rb-program-row {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 60px;
    }

    .nj-rb-program-row.nj-rb-pos-right .nj-rb-program-media {
        order: 1;
    }

    .nj-rb-program-row.nj-rb-pos-right .nj-rb-program-content {
        order: 2;
    }

    .nj-rb-program-frame {
        height: 330px;
    }

    .nj-rb-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .nj-rb-btn {
        width: 100%;
    }
}

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

    .nj-rb-advantages-grid {
        grid-template-columns: 1fr;
    }

    .nj-rb-check-grid {
        grid-template-columns: 1fr;
    }

    .nj-rb-therapist-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
    }

    .nj-rb-media-frame {
        aspect-ratio: 4 / 3;
    }

    .nj-rb-float-card {
        bottom: 14px;
        left: 14px;
        right: 14px;
        padding: 12px 14px;
    }
}
