/* ==========================================================================
   NEUROLOGY PRODUCTS SHOWCASE STYLES
   Stance Biogenics - 100% Exact Match to Designer Mockup
   ========================================================================== */

/* Page Wrapper with Panoramic Edge Waves (Matches Image 2) */
.neuro-page-wrap {
    position: relative;
    background: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Left & Right Panoramic Background Waves */
.neuro-edge-wave-left {
    position: absolute;
    top: 40px;
    left: 0;
    width: 240px;
    height: 780px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}
.neuro-edge-wave-right {
    position: absolute;
    top: 40px;
    right: 0;
    width: 240px;
    height: 780px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}

/* Breadcrumb Navigation */
.neuro-breadcrumb-bar {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    z-index: 5;
}
.neuro-breadcrumb-bar .section-container {
    width: 92%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}
.neuro-breadcrumb-bar a {
    color: #0256b8;
    text-decoration: none;
    font-weight: 500;
}
.neuro-breadcrumb-bar a:hover {
    color: #ff6b00;
}
.neuro-breadcrumb-bar .sep {
    color: #94a3b8;
    font-size: 11px;
}
.neuro-breadcrumb-bar .current {
    color: #0f172a;
    font-weight: 600;
}

/* ==========================================================================
   NEUROLOGY HERO PANORAMIC SECTION (Matches Brand Design System)
   ========================================================================== */
.neuro-hero-section {
    position: relative;
    width: 100%;
    min-height: 390px;
    background-color: #f0f7ff;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 0 80px;
    box-sizing: border-box;
}

.neuro-hero-section .section-container {
    width: 95%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 30px;
}

.neuro-hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.neuro-hero-content {
    max-width: 620px;
    padding: 10px 0;
    position: relative;
    z-index: 3;
}

.neuro-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 800;
    color: #0047bb;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.neuro-hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3.5px;
    background: #ff6b00;
    border-radius: 2px;
}

.neuro-hero-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    color: #003399;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

.neuro-hero-sub {
    font-size: 18.5px;
    line-height: 1.6;
    color: #1a3860;
    font-weight: 600;
    margin: 0;
    max-width: 520px;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
}

@media (max-width: 1200px) {
    .neuro-hero-section {
        min-height: 340px;
        padding: 55px 0 65px;
    }
    .neuro-hero-title {
        font-size: 50px;
    }
}

@media (max-width: 991px) {
    .neuro-hero-section {
        min-height: 300px;
        padding: 45px 0 55px;
        background-position: 75% center;
    }
    .neuro-hero-title {
        font-size: 44px;
    }
    .neuro-hero-sub {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .neuro-hero-section {
        min-height: 260px;
        padding: 35px 0 45px;
        background-position: 85% center;
    }
    .neuro-hero-section .section-container {
        padding: 0 20px;
    }
    .neuro-hero-title {
        font-size: 38px;
    }
    .neuro-hero-content {
        max-width: 100%;
        background: rgba(240, 247, 255, 0.88);
        padding: 22px 24px;
        border-radius: 16px;
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 30px rgba(0, 48, 135, 0.08);
    }
}

@media (max-width: 480px) {
    .neuro-hero-section {
        padding: 28px 0 38px;
    }
    .neuro-hero-title {
        font-size: 32px;
    }
    .neuro-hero-eyebrow {
        font-size: 12.5px;
    }
}

/* ==========================================================================
   PRODUCTS CATALOG SECTION (Exact Match to Image 2)
   ========================================================================== */
.neuro-products-section {
    padding: 24px 0 50px;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.neuro-container {
    width: 94%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

/* Section Header */
.neuro-section-header {
    margin-bottom: 24px;
    padding-left: 10px;
}

.neuro-section-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.neuro-section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0d3b78;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.neuro-section-dash {
    display: inline-block;
    width: 44px;
    height: 3px;
    background: #ff6b00;
    border-radius: 2px;
}
.neuro-products-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: #eef6ff;
    color: #0052cc;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid #d0e4ff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   3-COLUMN EXACT PRODUCT CARDS GRID
   ========================================================================== */
.neuro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Single Product Card (Pure White with Subtle Border & Shadow) */
.neuro-card {
    background: #ffffff;
    border: 1px solid #d8e2ec;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 12px rgba(11, 59, 120, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    padding: 0;
}
.neuro-card:hover {
    transform: translateY(-5px);
    border-color: #0084ff;
    box-shadow: 0 14px 32px rgba(2, 86, 184, 0.16);
}

.neuro-card-image-wrap {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}
.neuro-card-picture {
    display: block;
    width: 100%;
    line-height: 0;
}
.neuro-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #ffffff;
    transition: transform 0.35s ease;
}
.neuro-card:hover .neuro-card-img {
    transform: scale(1.02);
}

/* Subtle Quick Actions Overlay on Hover */
.neuro-card-hover-actions {
    position: absolute;
    inset: 0;
    background: rgba(3, 27, 65, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}
.neuro-card:hover .neuro-card-hover-actions {
    opacity: 1;
    pointer-events: auto;
}
.neuro-action-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}
.neuro-action-btn.btn-view {
    background: #ffffff;
    color: #0256b8;
}
.neuro-action-btn.btn-view:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}
.neuro-action-btn.btn-inquire {
    background: #ff6b00;
    color: #ffffff;
}
.neuro-action-btn.btn-inquire:hover {
    background: #ea580c;
    transform: scale(1.05);
}

/* ==========================================================================
   BOTTOM BRAND WAVES BANNER (Exact Match to Image 2)
   ========================================================================== */
.neuro-bottom-banner {
    position: relative;
    background: #ffffff;
    padding: 30px 0 20px;
    overflow: hidden;
    z-index: 2;
}
.neuro-waves-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.neuro-waves-backdrop svg {
    width: 100%;
    height: 100%;
    display: block;
}
.neuro-bottom-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.neuro-bottom-content,
.neuro-bottom-logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ==========================================================================
   PRODUCT DETAILS MODAL DIALOG
   ========================================================================== */
.neuro-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.72);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.neuro-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.neuro-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 760px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.neuro-modal-backdrop.active .neuro-modal-card {
    transform: scale(1);
}

.neuro-modal-header {
    background: linear-gradient(135deg, #053b92 0%, #002566 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.neuro-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}
.neuro-modal-header .rx-pill {
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
}
.neuro-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.neuro-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.neuro-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
}
.neuro-modal-artwork-wrap {
    border: 1px solid #e2ecf5;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    text-align: center;
    padding: 0;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}
.neuro-modal-artwork {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
}

.neuro-modal-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    flex-shrink: 0;
}
.neuro-spec-item {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 12px 14px;
}
.neuro-spec-item.full-width {
    grid-column: 1 / -1;
}
.neuro-spec-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.neuro-spec-val {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.neuro-modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2ecf5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
#modalCopyBtn {
    display: none !important;
}
.neuro-modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.neuro-modal-btn.primary {
    background: #ff6b00;
    color: #ffffff;
}
.neuro-modal-btn.primary:hover {
    background: #e65a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}
.neuro-modal-btn.secondary {
    background: #e2e8f0;
    color: #1e293b;
}
.neuro-modal-btn.secondary:hover {
    background: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .neuro-hero-title {
        font-size: 46px;
    }
    .neuro-hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .neuro-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .neuro-brain-img {
        height: 180px;
    }
    .neuro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .neuro-edge-wave-left, .neuro-edge-wave-right {
        display: none;
    }
}

@media (max-width: 640px) {
    .neuro-hero-title {
        font-size: 36px;
    }
    .neuro-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .neuro-modal-spec-grid {
        grid-template-columns: 1fr;
    }
    .neuro-modal-footer {
        flex-direction: column;
    }
    .neuro-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   THERAPEUTIC AREA SPECIFIC GRID MODIFIERS
   ========================================================================== */

/* 1. Orthopedics Grid (3 Columns) */
.neuro-grid.ortho-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px;
    max-width: 1360px;
    margin: 0 auto;
}

/* 2. Cardiology Grid (5 Columns Exact Match) */
/* 2. Cardiology Grid (3 Columns) */
.neuro-grid.cardio-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px;
    max-width: 1360px;
    margin: 0 auto;
}

.cardio-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-top: 10px;
    max-width: 580px;
    font-weight: 500;
}

/* 3. Pain Management Grid (3 Columns + Centered Bottom Card) */
.neuro-grid.pain-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

/* 4. General Medicine Grid (3 Columns + Centered Bottom Card) */
.neuro-grid.genmed-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

/* 5. Gastroenterology Grid (3 Columns) */
.neuro-grid.gastro-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px;
    max-width: 1360px;
    margin: 0 auto;
}


/* Centered single item on last row in 3-column layout */
.neuro-grid .card-centered-bottom {
    grid-column: 2 !important;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .neuro-grid.cardio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .neuro-grid.ortho-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .neuro-grid.cardio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .neuro-grid.pain-grid,
    .neuro-grid.genmed-grid,
    .neuro-grid.gastro-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .neuro-grid .card-centered-bottom {
        grid-column: 1 / -1 !important;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .neuro-grid.ortho-grid,
    .neuro-grid.cardio-grid,
    .neuro-grid.pain-grid,
    .neuro-grid.genmed-grid,
    .neuro-grid.gastro-grid {
        grid-template-columns: 1fr !important;
    }
    .neuro-grid .card-centered-bottom {
        grid-column: auto !important;
        max-width: 100%;
    }
}
