/* =========================================
   1. GLOBAL VARIABLES & OVERFLOW LOCK
   ========================================= */
:root {
    --ps-navy: #0A192F;      /* Deep, authoritative navy */
    --ps-blue: #0077B6;      /* Bright, clinical tech blue */
    --ps-light: #F8F9FA;     /* Clean medical gray/white */
    --ps-gold: #FFD700;      /* Trust/Accreditation gold */
    --ps-white: #ffffff;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: 'Poppins', sans-serif; /* Keeping the sleek typography */
    background-color: var(--ps-light);
}

/* =========================================
   2. FLOATING B2B NAVIGATION
   ========================================= */
.ps-floating-nav {
    border-radius: 50rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ps-floating-nav .nav-link {
    color: var(--ps-navy) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ps-floating-nav .nav-link:hover {
    color: var(--ps-blue) !important;
}

@media (max-width: 991px) {
    .ps-floating-nav { border-radius: 1.5rem; }
}

/* =========================================
   3. FULL-SCREEN VIDEO HERO
   ========================================= */
.hero-section {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 50%, rgba(10, 25, 47, 0.2) 100%);
    z-index: -1;
}

/* =========================================
   4. B2B SERVICE IMAGE CARDS
   ========================================= */
.ps-service-card {
    position: relative;
    border-radius: 1rem;
    padding: 3rem 2rem;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.1);
    border: none;
    text-decoration: none;
}

.ps-service-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.ps-service-card:hover .ps-service-bg {
    transform: scale(1.08);
}

.ps-service-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.ps-service-content {
    position: relative;
    z-index: 2;
    color: var(--ps-white);
}

.ps-icon-wrapper {
    width: 60px; height: 60px;
    background-color: var(--ps-blue);
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem; color: var(--ps-white);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
}

/* =========================================
   5. ACCREDITATIONS & FOOTER
   ========================================= */
.grayscale-hover img {
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
    cursor: pointer;
}

.grayscale-hover img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-5px);
}

.ps-footer {
    background-color: var(--ps-navy);
    color: rgba(255, 255, 255, 0.7);
}

.ps-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ps-footer a:hover { color: var(--ps-white); }

/* =========================================
   6. B2B ACCORDION & DRUG TAGS
   ========================================= */
.ps-accordion .accordion-item {
    border: none;
    margin-bottom: 1.25rem;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(10, 25, 47, 0.05);
    background-color: var(--ps-white);
    border: 1px solid rgba(0, 119, 182, 0.1);
}

.ps-accordion .accordion-button {
    background-color: var(--ps-white);
    color: var(--ps-navy);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.5rem;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.ps-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 119, 182, 0.05);
    color: var(--ps-blue);
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

/* Colors the accordion chevron Tech Blue when active */
.ps-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(30%) sepia(85%) saturate(2132%) hue-rotate(183deg) brightness(96%) contrast(101%); 
}

.accordion-icon {
    color: var(--ps-blue);
    margin-right: 12px;
    font-size: 1.25rem;
}

/* High-Tech Drug Pill Badges */
.drug-therapy-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--ps-blue);
    border: 1px solid rgba(0, 119, 182, 0.2);
    border-radius: 50rem;
    margin: 0.25rem 0.25rem 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.drug-therapy-tag:hover {
    background-color: var(--ps-blue);
    color: var(--ps-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}

/* Sticky Sidebar Utility */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Accounts for the floating nav */
}

/* =========================================
   7. B2B PARTNERSHIPS UI (Image Backgrounds)
   ========================================= */
.partner-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    height: 100%;
    min-height: 340px; /* Gives the background image room to breathe */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.partner-card:hover .partner-bg {
    transform: scale(1.08); /* Cinematic slow zoom */
}

/* Deep Navy overlay to ensure white text is always readable */
.partner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.7) 0%, rgba(10, 25, 47, 0.95) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.partner-card:hover .partner-overlay {
    opacity: 0.85; /* Lightens slightly on hover to reveal the image */
}

.partner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ps-white);
}

/* Frosted Glass Icon Wrapper */
.partner-card .icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent */
    color: var(--ps-gold); /* Trust Gold pops against the dark overlay! */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.partner-card:hover .icon {
    background-color: var(--ps-blue);
    color: var(--ps-white);
    transform: scale(1.1);
    border-color: transparent;
}

/* Custom Feature List */
.ps-feature-list {
    list-style: none;
    padding-left: 0;
}

.ps-feature-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--ps-navy);
    line-height: 1.6;
}

.ps-feature-list li::before {
    content: '\f058'; /* Solid Check Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.5rem;
    color: var(--ps-blue);
}

/* Massive CTA Hub */
.ps-cta-hub {
    background: linear-gradient(135deg, var(--ps-navy) 0%, rgba(10, 25, 47, 0.9) 100%);
    border-radius: 1.5rem;
    padding: 5rem 3rem;
    box-shadow: 0 20px 50px rgba(10, 25, 47, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent for the CTA */
.ps-cta-hub::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.ps-cta-hub-content {
    position: relative;
    z-index: 1;
}

/* =========================================
   8. B2B CONTACT & RESOURCES UI
   ========================================= */
.ps-contact-card {
    background: var(--ps-white);
    border-radius: 1.25rem;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 50px rgba(10, 25, 47, 0.1);
    border: 1px solid rgba(0, 119, 182, 0.05);
}

.ps-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.ps-contact-item:last-child {
    margin-bottom: 0;
}

.ps-contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--ps-blue);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.ps-contact-item a {
    color: var(--ps-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.ps-contact-item a:hover {
    color: var(--ps-blue);
}

.ps-map-container {
    height: 100%;
    min-height: 450px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 25, 47, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Resource Document Cards */
.ps-resource-card {
    display: flex;
    align-items: center;
    background: var(--ps-white);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--ps-navy);
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.04);
    border: 1px solid rgba(0, 119, 182, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.ps-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.15);
    border-color: rgba(0, 119, 182, 0.3);
}

.ps-resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ps-blue) 0%, #005f92 100%);
    color: var(--ps-white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.ps-resource-info h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ps-navy);
    transition: color 0.3s ease;
}

.ps-resource-card:hover .ps-resource-info h5 {
    color: var(--ps-blue);
}

.ps-resource-info span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* =========================================
   9. SMART ASSIST RESPONSIVE POSITIONING
   ========================================= */
.ps-toast-pos {
    bottom: 0;
}

@media (max-width: 991px) {
    .ps-toast-pos {
        bottom: 100px; 
    }
    #smart-assist-toast .toast {
        max-width: calc(100vw - 2rem); /* Prevents the horizontal wobble on mobile */
    }
}