/* ==========================================================================
   Med World Live - Unified Stylesheet (Vanilla CSS, Zero External CDNs)
   ========================================================================== */

:root {
    --mwl-navy: #234089;
    --mwl-steel: #4582b8;
    --mwl-top-bar: #cccccc;
    --mwl-brand-bg: #f8f9fa;
    --mwl-green: #00a651;
    --mwl-orange: #e57218;
    --mwl-hover-gray: #999999;
    --mwl-footer-bg: #737373;
    --mwl-text: #222222;
    --mwl-muted: #555555;
    --mwl-border: #cccccc;
    --mwl-white: #ffffff;
    --mwl-max-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", "Segoe UI", Tahoma, Geneva, Verdana, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mwl-text);
    background-color: var(--mwl-footer-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--mwl-steel);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr.mwl-divider {
    border: 0;
    border-top: 1px solid var(--mwl-border);
    margin: 32px 0;
}

.mwl-container {
    max-width: var(--mwl-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header (3-Tier Fixed/Sticky Desktop + Responsive Mobile)
   ========================================================================== */

.mwl-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Tier 1: Utility Bar */
.mwl-top-bar {
    background-color: var(--mwl-top-bar);
    font-size: 15px;
    line-height: 40px;
}

.mwl-top-bar-inner {
    max-width: var(--mwl-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
}

.mwl-top-bar a {
    color: #333333;
    font-weight: 400;
    display: inline-block;
    padding: 0 4px;
}

.mwl-top-bar a:hover {
    color: var(--mwl-navy);
    text-decoration: none;
}

/* Tier 2: Branding Bar */
.mwl-brand-bar {
    background-color: var(--mwl-brand-bg);
    border-bottom: 1px solid #e5e7eb;
}

.mwl-brand-bar-inner {
    max-width: var(--mwl-max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mwl-logo-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.mwl-logo-link img {
    max-height: 50px;
    width: auto;
}

.mwl-tagline {
    font-size: 18px;
    font-style: italic;
    color: var(--mwl-navy);
    line-height: 1.3;
    flex: 1;
    padding-left: 12px;
}

.mwl-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mwl-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 5px;
    color: var(--mwl-white);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.mwl-btn:hover {
    text-decoration: none;
    background-color: var(--mwl-hover-gray);
    border-color: var(--mwl-hover-gray);
    color: var(--mwl-white);
}

.mwl-btn-demo {
    background-color: var(--mwl-green);
    border-color: var(--mwl-green);
}

.mwl-btn-login {
    background-color: var(--mwl-orange);
    border-color: var(--mwl-orange);
}

.mwl-btn-navy {
    background-color: var(--mwl-navy);
    border-color: var(--mwl-navy);
}

.mwl-btn-dark {
    background-color: #111111;
    border-color: #111111;
    border-radius: 3px;
}

.mwl-btn-dark:hover {
    background-color: var(--mwl-steel);
    border-color: var(--mwl-steel);
}

/* Tier 3: Primary Navy Navigation Bar */
.mwl-nav-bar {
    background-color: var(--mwl-navy);
    height: 52px;
}

.mwl-nav-bar-inner {
    max-width: var(--mwl-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.mwl-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mwl-nav-bar .mwl-nav-link {
    color: var(--mwl-white);
    font-size: 18px;
    font-weight: 400;
    line-height: 52px;
    display: inline-block;
    white-space: nowrap;
}

.mwl-nav-bar .mwl-nav-link:hover,
.mwl-nav-bar .mwl-nav-link.active {
    color: #d9e6f7;
    text-decoration: none;
}

/* Dropdown Menus (Shared for Top Bar & Navy Bar) */
.mwl-has-dropdown {
    position: relative;
}

.mwl-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    background-color: var(--mwl-white);
    border: 1px solid #d0d7de;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    z-index: 1100;
    padding: 6px 0;
}

.mwl-top-bar .mwl-dropdown {
    right: 0;
    left: auto;
}

.mwl-has-dropdown:hover > .mwl-dropdown,
.mwl-has-dropdown:focus-within > .mwl-dropdown {
    display: block;
}

.mwl-dropdown a {
    display: block;
    padding: 7px 16px;
    font-size: 14px;
    line-height: 22px;
    color: #333333;
    white-space: nowrap;
}

.mwl-dropdown a:hover {
    background-color: var(--mwl-steel);
    color: var(--mwl-white);
    text-decoration: none;
}

/* Mobile Header Controls (Hidden on Desktop) */
.mwl-mobile-bar {
    display: none;
    background-color: var(--mwl-navy);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
}

.mwl-mobile-bar img.mwl-mobile-logo {
    max-height: 36px;
    width: auto;
}

.mwl-mobile-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mwl-mobile-menu {
    display: none;
    background-color: #4f4f4f;
    color: var(--mwl-white);
    max-height: 80vh;
    overflow-y: auto;
}

.mwl-mobile-menu.open {
    display: block;
}

.mwl-mobile-menu a {
    display: block;
    color: var(--mwl-white);
    padding: 11px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
}

.mwl-mobile-menu a.mwl-mobile-sub {
    background-color: #666666;
    padding-left: 36px;
    font-size: 14px;
}

.mwl-mobile-menu .mwl-mobile-actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--mwl-brand-bg);
}

/* ==========================================================================
   Main Content & Banner
   ========================================================================== */

.mwl-main {
    background-color: var(--mwl-white);
    padding-bottom: 48px;
}

.mwl-banner {
    width: 100%;
    background-color: #dce9f5;
    overflow: hidden;
}

.mwl-banner img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}

.mwl-page-body {
    max-width: var(--mwl-max-width);
    margin: 0 auto;
    padding: 36px 24px 16px;
}

.mwl-page-body h1 {
    font-size: 28px;
    font-weight: 400;
    color: var(--mwl-steel);
    text-align: center;
    margin: 0 0 18px;
}

.mwl-page-body h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--mwl-steel);
    text-align: center;
    margin: 0 0 16px;
}

.mwl-page-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--mwl-navy);
    margin: 22px 0 8px;
}

.mwl-subnav-links {
    text-align: center;
    margin: -8px 0 24px;
    font-size: 15px;
    color: var(--mwl-muted);
}

.mwl-subnav-links a {
    color: var(--mwl-steel);
    margin: 0 10px;
}

/* Custom >> list styling */
ul.mwl-chevron-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.mwl-chevron-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 16px;
}

ul.mwl-chevron-list li::before {
    content: ">>";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mwl-navy);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -1px;
}

/* ==========================================================================
   Homepage Specific Sections
   ========================================================================== */

.mwl-home-intro p {
    margin: 0 0 16px;
    font-size: 16px;
    color: #111111;
}

.mwl-home-resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
}

.mwl-home-resource-grid ul.mwl-chevron-list li {
    font-size: 17px;
    margin-bottom: 16px;
}

/* Portal Mockup Showcase with Arrows & Hover CTAs */
.mwl-showcase-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mwl-showcase-arrow {
    background: transparent;
    border: none;
    color: var(--mwl-navy);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.mwl-showcase-arrow:hover {
    color: var(--mwl-steel);
}

.mwl-showcase-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #f4f6f9;
}

.mwl-showcase-card img {
    width: 100%;
    display: block;
}

.mwl-showcase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 64, 137, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mwl-showcase-card:hover .mwl-showcase-overlay,
.mwl-showcase-card:focus-within .mwl-showcase-overlay {
    opacity: 1;
}

/* The Med World Live Difference 3-Col Grid */
.mwl-difference-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
}

.mwl-diff-block {
    margin-bottom: 20px;
    font-size: 14.5px;
    line-height: 1.55;
}

.mwl-diff-block strong {
    color: #000000;
}

.mwl-diff-sub {
    margin: 6px 0 0;
    padding-left: 10px;
    list-style: none;
}

.mwl-diff-sub li {
    margin-bottom: 4px;
    font-size: 14px;
}

.mwl-diff-diagram {
    text-align: center;
}

.mwl-diff-diagram img {
    margin: 0 auto;
    max-width: 390px;
    width: 100%;
}

/* ==========================================================================
   Reusable Grid & Card Components (Subpages)
   ========================================================================== */

.mwl-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.mwl-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.mwl-card {
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
}

.mwl-card h3 {
    margin-top: 0;
    color: var(--mwl-steel);
}

.mwl-callout {
    background: #f1f6fb;
    border-left: 4px solid var(--mwl-steel);
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 6px 6px 0;
}

.mwl-testimonial {
    background: #f8f9fa;
    border-left: 4px solid var(--mwl-navy);
    padding: 18px 22px;
    margin: 24px 0;
    font-style: italic;
}

.mwl-testimonial cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 700;
    color: var(--mwl-navy);
}

/* Team & Advisor Rows */
.mwl-bio-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mwl-bio-row:last-child {
    border-bottom: none;
}

.mwl-bio-photo {
    flex-shrink: 0;
    width: 140px;
}

.mwl-bio-photo img {
    width: 140px;
    border-radius: 4px;
    border: 1px solid #d0d7de;
}

.mwl-bio-content h3 {
    margin: 0 0 4px;
    color: var(--mwl-navy);
}

.mwl-bio-role {
    font-weight: 700;
    color: var(--mwl-steel);
    margin-bottom: 10px;
    font-size: 15px;
}

/* Platform & Encompass Media Rows */
.mwl-feature-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.mwl-feature-row:last-child {
    border-bottom: none;
}

/* Forms (Request Demo) */
.mwl-form-card {
    max-width: 680px;
    margin: 20px auto 0;
    background: #f8f9fa;
    border: 1px solid #dce1e7;
    border-radius: 6px;
    padding: 28px;
}

.mwl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mwl-form-group {
    margin-bottom: 16px;
}

.mwl-form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333333;
}

.mwl-form-group input,
.mwl-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    background: var(--mwl-white);
}

.mwl-form-group input:focus,
.mwl-form-group textarea:focus {
    outline: 2px solid var(--mwl-steel);
    border-color: var(--mwl-steel);
}

.mwl-alert-info {
    background-color: #e8f2fc;
    border: 1px solid var(--mwl-steel);
    color: var(--mwl-navy);
    padding: 14px 18px;
    border-radius: 5px;
    margin-top: 16px;
    font-weight: 600;
}

/* ==========================================================================
   Footer (#737373)
   ========================================================================== */

.mwl-footer {
    background-color: var(--mwl-footer-bg);
    color: var(--mwl-white);
    padding: 28px 24px 32px;
    font-size: 14px;
    text-align: center;
}

.mwl-footer-address {
    max-width: 640px;
    margin: 0 auto 20px;
    text-align: center;
    line-height: 1.5;
}

.mwl-footer-bottom {
    text-align: center;
    font-size: 15px;
    color: var(--mwl-white);
}

.mwl-footer-bottom a {
    color: #cfe6ff;
}

/* ==========================================================================
   Modal (In-Development Notices & Full Bios)
   ========================================================================== */

.mwl-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mwl-modal-backdrop.open {
    display: flex;
}

.mwl-modal {
    background: var(--mwl-white);
    max-width: 520px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.mwl-modal.mwl-modal-wide {
    max-width: 720px;
}

.mwl-modal-header {
    background: var(--mwl-navy);
    color: var(--mwl-white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mwl-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mwl-modal-close {
    background: transparent;
    border: none;
    color: var(--mwl-white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mwl-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
}

.mwl-modal-footer {
    padding: 12px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
    .mwl-tagline {
        font-size: 15px;
    }

    .mwl-home-resource-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mwl-showcase-wrap {
        grid-column: 1 / -1;
    }

    .mwl-difference-grid {
        grid-template-columns: 1fr;
    }

    .mwl-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .mwl-top-bar,
    .mwl-brand-bar,
    .mwl-nav-bar {
        display: none;
    }

    .mwl-mobile-bar {
        display: flex;
    }

    .mwl-home-resource-grid,
    .mwl-grid-2,
    .mwl-grid-3,
    .mwl-feature-row,
    .mwl-form-row {
        grid-template-columns: 1fr;
    }

    .mwl-bio-row {
        flex-direction: column;
    }

    .mwl-footer-cols {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .mwl-footer-col-left {
        border-right: none;
        padding-right: 0;
        text-align: center;
    }

    .mwl-footer-col-right {
        padding-left: 0;
        text-align: center;
    }
}
