:root {
    --medico-blue: #1565C0;
    --medico-blue-dark: #0D47A1;
    --medico-teal: #009688;
    --medico-teal-dark: #00796B;
    --medico-white: #FFFFFF;
    --medico-gradient: linear-gradient(135deg, #1565C0 0%, #009688 100%);
    --medico-shadow: 0 10px 40px rgba(21, 101, 192, 0.12);
    --medico-radius: 16px;
    --navbar-height: 80px;
    --topbar-height: 0px;
}

body.corp-layout {
    --topbar-height: 40px;
    --corp-accent: #627d98;
    --corp-accent-hover: #526a82;
    --corp-accent-muted: rgba(98, 125, 152, 0.12);
    --corp-hero-bg: #f3f6f9;
    --corp-hero-bg-alt: #e9eef3;
    --corp-text: #243447;
    --corp-muted: #64748b;
    padding-top: calc(var(--navbar-height) + var(--topbar-height));
}

body.corp-layout .corp-site-container {
    padding-left: clamp(0.75rem, 1.5vw, 1.25rem);
    padding-right: clamp(0.75rem, 1.5vw, 1.25rem);
}

body.corp-layout .btn-primary {
    background-color: var(--corp-accent);
    border-color: var(--corp-accent);
}

body.corp-layout .btn-primary:hover,
body.corp-layout .btn-primary:focus {
    background-color: var(--corp-accent-hover);
    border-color: var(--corp-accent-hover);
}

body.corp-layout .btn-outline-primary {
    color: var(--corp-accent);
    border-color: #b8c4d0;
}

body.corp-layout .btn-outline-primary:hover,
body.corp-layout .btn-outline-primary:focus {
    background-color: var(--corp-accent-muted);
    border-color: var(--corp-accent);
    color: var(--corp-accent-hover);
}

body.corp-layout .navbar-medico .nav-link:hover,
body.corp-layout .navbar-medico .nav-link.active {
    color: var(--corp-accent);
}

@media (max-width: 767.98px) {
    body.corp-layout {
        --topbar-height: 0px;
    }
}

[data-bs-theme="dark"] {
    --medico-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-top: var(--navbar-height);
    overflow-x: hidden;
}

/* Navbar */
.navbar-medico {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .navbar-medico {
    background: rgba(15, 23, 42, 0.95);
}

.navbar-medico .nav-link {
    font-weight: 500;
    color: #334155;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-medico .navbar-collapse,
.navbar-medico .navbar-nav {
    overflow: visible;
}

[data-bs-theme="dark"] .navbar-medico .nav-link { color: #cbd5e1; }

.navbar-medico .nav-link:hover,
.navbar-medico .nav-link.active {
    color: var(--medico-blue);
}

.brand-logo { max-height: 48px; width: auto; }

.btn-theme-toggle {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    padding: 0 0.65rem;
}

.btn-theme-toggle.dropdown-toggle::after {
    display: none;
}

.btn-theme-toggle:hover {
    background: var(--medico-blue);
    color: white;
    border-color: var(--medico-blue);
}

/* Medico mega menu (replaces standard dropdowns) */
.nav-mega-trigger {
    background: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font: inherit;
}

.nav-mega-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    opacity: 0.65;
}

.nav-mega.is-open .nav-mega-chevron,
.nav-mega-trigger[aria-expanded="true"] .nav-mega-chevron {
    transform: rotate(180deg);
}

.nav-mega-backdrop {
    position: fixed;
    inset: var(--navbar-height) 0 0 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1020;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.nav-mega-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.nav-mega-panel {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    pointer-events: none;
}

.nav-mega.is-open .nav-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-mega-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 1rem 1rem;
    background: #fff;
    border-radius: 0 0 1.25rem 1.25rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 3px solid var(--medico-teal);
}

[data-bs-theme="dark"] .nav-mega-inner {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.nav-mega-inner--wide {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.nav-mega-inner--connect {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.nav-mega-feature,
.nav-mega-connect-promo {
    background: var(--medico-gradient);
    color: #fff;
    border-radius: 1rem;
    padding: 1.35rem;
}

.nav-mega-feature-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.55rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.nav-mega-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.nav-mega-feature-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.nav-mega-feature-desc {
    font-size: 0.85rem;
    opacity: 0.92;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.nav-mega-feature-cta {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.nav-mega-feature-cta:hover {
    color: #fff;
    opacity: 0.9;
}

.nav-mega-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.nav-mega-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-bs-theme="dark"] .nav-mega-col-title {
    color: #94a3b8;
}

.nav-mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-mega-link {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
}

.nav-mega-link:hover {
    background: rgba(21, 101, 192, 0.08);
    transform: translateX(3px);
}

[data-bs-theme="dark"] .nav-mega-link:hover {
    background: rgba(56, 189, 248, 0.1);
}

.nav-mega-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(21, 101, 192, 0.1);
    color: var(--medico-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .nav-mega-link-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

.nav-mega-link strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

[data-bs-theme="dark"] .nav-mega-link strong {
    color: #e2e8f0;
}

.nav-mega-link small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.nav-mega-footer {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.65rem 1rem 1rem;
    background: #f8fafc;
    border-radius: 0 0 1.25rem 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 0;
    text-align: center;
}

[data-bs-theme="dark"] .nav-mega-footer {
    background: #1e293b;
    border-color: #334155;
}

.nav-mega-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--medico-blue);
    text-decoration: none;
}

.nav-mega-lead {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.nav-mega-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.nav-mega-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-mega-tile:hover {
    border-color: var(--medico-teal);
    box-shadow: var(--medico-shadow);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .nav-mega-tile {
    border-color: #334155;
}

.nav-mega-tile-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: var(--medico-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.nav-mega-tile-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-mega-tile-desc {
    font-size: 0.78rem;
    color: #64748b;
}

.nav-mega-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.nav-mega-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.nav-mega-card:hover {
    background: rgba(21, 101, 192, 0.06);
    border-color: var(--medico-blue);
}

.nav-mega-card i {
    font-size: 1.25rem;
    color: var(--medico-blue);
}

.nav-mega-card strong {
    display: block;
    font-size: 0.88rem;
}

.nav-mega-card small {
    font-size: 0.75rem;
    color: #64748b;
}

.nav-mega.is-active-route > .nav-mega-trigger,
.nav-mega-trigger[aria-expanded="true"] {
    color: var(--medico-blue);
}

/* Compact flyout — anchored popover for menus with few items */
@media (min-width: 992px) {
    .nav-mega--flyout {
        position: relative;
    }

    .nav-mega--flyout .nav-mega-panel.nav-flyout {
        position: absolute;
        top: calc(100% - 0.25rem);
        left: 50%;
        right: auto;
        width: min(22rem, calc(100vw - 2rem));
        transform: translateX(-50%) translateY(6px) scale(0.97);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1040;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

    .nav-mega--flyout.is-open .nav-mega-panel.nav-flyout {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
        pointer-events: auto;
    }
}

.nav-flyout-body {
    position: relative;
    background: #fff;
    border-radius: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

[data-bs-theme="dark"] .nav-flyout-body {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-flyout-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(226, 232, 240, 0.95);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    transform: translateX(-50%) rotate(45deg);
    z-index: 1;
}

[data-bs-theme="dark"] .nav-flyout-arrow {
    background: #0f172a;
    border-color: #334155;
}

.nav-flyout-list {
    list-style: none;
    padding: 0.35rem;
    margin: 0;
}

.nav-flyout-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.nav-flyout-item:hover {
    background: rgba(21, 101, 192, 0.07);
    border-left-color: var(--medico-teal);
    transform: translateX(2px);
}

[data-bs-theme="dark"] .nav-flyout-item:hover {
    background: rgba(56, 189, 248, 0.08);
}

.nav-flyout-item-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    background: var(--medico-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.nav-flyout-item-text {
    flex: 1;
    min-width: 0;
}

.nav-flyout-item-text strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

[data-bs-theme="dark"] .nav-flyout-item-text strong {
    color: #e2e8f0;
}

.nav-flyout-item-text small {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.1rem;
    line-height: 1.35;
}

.nav-flyout-item-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.nav-flyout-item:hover .nav-flyout-item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--medico-blue);
}

@media (min-width: 992px) {
    .nav-mega-backdrop:not([hidden]) {
        cursor: pointer;
    }
}

@media (max-width: 991.98px) {
    .nav-mega-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        pointer-events: auto;
    }

    .nav-mega.is-open .nav-mega-panel {
        display: block;
    }

    .nav-mega-inner,
    .nav-mega-inner--wide,
    .nav-mega-inner--connect {
        grid-template-columns: 1fr;
        border-radius: 0.75rem;
        margin-top: 0.35rem;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .nav-mega-footer {
        display: none;
    }

    .nav-mega-columns,
    .nav-mega-tiles,
    .nav-mega-cards {
        grid-template-columns: 1fr;
    }

    .nav-mega--flyout .nav-mega-panel.nav-flyout {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
    }

    .nav-mega--flyout.is-open .nav-mega-panel.nav-flyout {
        display: block;
    }

    .nav-mega--flyout .nav-mega-panel.nav-flyout {
        display: none;
    }

    .nav-flyout-arrow {
        display: none;
    }

    .nav-flyout-body {
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .nav-mega-backdrop {
        display: none !important;
    }
}

/* Buttons */
.btn-primary {
    background: var(--medico-blue);
    border-color: var(--medico-blue);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--medico-blue-dark);
    border-color: var(--medico-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.35);
}

.btn-teal {
    background: var(--medico-teal);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
}

.btn-teal:hover {
    background: var(--medico-teal-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--medico-blue);
    color: var(--medico-blue);
    font-weight: 600;
    border-radius: 10px;
}

.btn-outline-primary:hover {
    background: var(--medico-blue);
    border-color: var(--medico-blue);
}

.btn-outline-light {
    border-radius: 10px;
    font-weight: 600;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    max-height: 800px;
}

.hero-carousel .carousel-item {
    min-height: calc(100vh - var(--navbar-height));
    max-height: 800px;
}

.hero-slide {
    position: relative;
    min-height: inherit;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.92) 0%, rgba(0, 150, 136, 0.85) 100%);
    z-index: 1;
}

.hero-slide.theme-teal::before {
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.92) 0%, rgba(21, 101, 192, 0.85) 100%);
}

.hero-slide.theme-purple::before {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.92) 0%, rgba(21, 101, 192, 0.85) 100%);
}

.hero-slide.theme-indigo::before {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.92) 0%, rgba(0, 150, 136, 0.85) 100%);
}

.hero-slide.theme-green::before {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.92) 0%, rgba(0, 150, 136, 0.85) 100%);
}

.hero-slide.theme-cyan::before {
    background: linear-gradient(135deg, rgba(0, 131, 143, 0.92) 0%, rgba(21, 101, 192, 0.85) 100%);
}

.hero-slide.theme-orange::before {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.92) 0%, rgba(21, 101, 192, 0.85) 100%);
}

/* Marketing flyers / busy artwork: hide left-side image text, keep hero copy readable */
.hero-slide.hero-slide--scrim-left .hero-bg-image {
    background-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 0.35) 50%, black 68%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 0.35) 50%, black 68%);
}

.hero-slide.hero-slide--scrim-left::before {
    background: linear-gradient(
        90deg,
        rgba(13, 71, 161, 0.98) 0%,
        rgba(13, 71, 161, 0.95) 46%,
        rgba(0, 121, 107, 0.78) 64%,
        rgba(0, 121, 107, 0.45) 100%
    );
}

.hero-slide.theme-orange.hero-slide--scrim-left::before {
    background: linear-gradient(
        90deg,
        rgba(191, 54, 12, 0.98) 0%,
        rgba(191, 54, 12, 0.94) 46%,
        rgba(21, 101, 192, 0.78) 64%,
        rgba(0, 150, 136, 0.45) 100%
    );
}

.hero-slide.theme-purple.hero-slide--scrim-left::before {
    background: linear-gradient(
        90deg,
        rgba(81, 45, 168, 0.98) 0%,
        rgba(81, 45, 168, 0.94) 46%,
        rgba(21, 101, 192, 0.78) 64%,
        rgba(0, 150, 136, 0.45) 100%
    );
}

.hero-slide.theme-green.hero-slide--scrim-left::before {
    background: linear-gradient(
        90deg,
        rgba(27, 94, 32, 0.98) 0%,
        rgba(27, 94, 32, 0.94) 46%,
        rgba(0, 121, 107, 0.78) 64%,
        rgba(0, 150, 136, 0.45) 100%
    );
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.carousel-item.active .hero-bg-image {
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 4rem 1.25rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta-group .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-cta-group .btn-light {
    font-weight: 600;
    border-radius: 10px;
}

.hero-cta-group .btn-outline-light:hover {
    background: white;
    color: var(--medico-blue);
}

.hero-carousel .carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid white;
    background: transparent;
    opacity: 0.6;
}

.hero-carousel .carousel-indicators button.active {
    background: white;
    opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    z-index: 3;
}

.hero-carousel .carousel-control-prev {
    left: max(0.75rem, calc((100vw - 1140px) / 2 - 3.25rem));
}

.hero-carousel .carousel-control-next {
    right: max(0.75rem, calc((100vw - 1140px) / 2 - 3.25rem));
}

/* Sections */
.section-padding { padding: 5rem 0; }

.section-label {
    color: var(--medico-teal);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 700px;
    line-height: 1.7;
}

[data-bs-theme="dark"] .section-subtitle { color: #94a3b8; }

/* Intro Hero (below carousel) */
.intro-hero {
    background: var(--medico-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.intro-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.intro-hero .tagline {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Module Cards */
.module-card {
    background: white;
    border-radius: var(--medico-radius);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .module-card {
    background: #1e293b;
    border-color: #334155;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--medico-gradient);
    transition: height 0.35s ease;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--medico-shadow);
    border-color: transparent;
}

.module-card:hover::before { height: 100%; }

.module-card.highlight {
    border-color: var(--medico-teal);
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.04) 0%, rgba(0, 150, 136, 0.04) 100%);
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--medico-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.module-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.module-card ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.module-card ul li {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

[data-bs-theme="dark"] .module-card ul li { color: #94a3b8; }

.module-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--medico-teal);
    font-weight: 700;
    font-size: 0.75rem;
}

/* Home product packaging */
.core-product-showcase {
    border-radius: var(--medico-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: var(--medico-shadow);
    background: white;
}

[data-bs-theme="dark"] .core-product-showcase {
    background: #1e293b;
    border-color: #334155;
}

.core-product-image {
    min-height: 320px;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.core-product-body {
    padding: 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.core-product-badge {
    display: inline-block;
    background: var(--medico-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.core-product-kicker {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--medico-teal);
}

.core-product-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.core-product-desc {
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

[data-bs-theme="dark"] .core-product-desc {
    color: #94a3b8;
}

.core-product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.core-product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.core-product-features li i {
    color: var(--medico-teal);
    flex-shrink: 0;
}

.product-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--medico-blue);
    margin-bottom: 0.5rem;
}

.product-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(21, 101, 192, 0.15);
}

.module-card-compact {
    padding: 1.25rem;
}

.module-icon-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.module-card-title-sm {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.module-list-sm {
    margin-bottom: 0;
}

.module-list-sm li {
    font-size: 0.8rem;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

.product-card.highlight {
    border-color: rgba(21, 101, 192, 0.25);
}

@media (max-width: 991.98px) {
    .core-product-image {
        min-height: 220px;
    }

    .core-product-body {
        padding: 1.5rem;
    }
}

/* Stats / Why Choose */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--medico-radius);
    background: white;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--medico-shadow);
}

.stat-card .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(0, 150, 136, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--medico-blue);
}

.stat-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Client Types */
.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.375rem;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .client-badge {
    background: #1e293b;
    border-color: #334155;
}

.client-badge:hover {
    background: var(--medico-blue);
    color: white;
    border-color: var(--medico-blue);
    transform: scale(1.05);
}

.client-badge i { color: var(--medico-teal); }
.client-badge:hover i { color: white; }

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--medico-radius);
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

[data-bs-theme="dark"] .testimonial-card {
    background: #1e293b;
    border-color: #334155;
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--medico-teal);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    margin: 1.5rem 0;
    color: #334155;
}

[data-bs-theme="dark"] .testimonial-card blockquote { color: #e2e8f0; }

.testimonial-author {
    font-weight: 700;
    color: var(--medico-blue);
}

.testimonial-role {
    font-size: 0.875rem;
    color: #64748b;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--medico-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.35s ease;
}

[data-bs-theme="dark"] .blog-card {
    background: #1e293b;
    border-color: #334155;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--medico-shadow);
}

.blog-card-image {
    height: 180px;
    background: var(--medico-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-card-body { padding: 1.5rem; }

.blog-card-date {
    font-size: 0.8rem;
    color: var(--medico-teal);
    font-weight: 600;
}

.blog-card h5 {
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* Page Hero */
.page-hero {
    background: var(--medico-gradient);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bs-body-bg), transparent);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.page-hero .btn-outline-primary,
.page-hero .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.08);
}

.page-hero .btn-outline-primary:hover,
.page-hero .btn-outline-primary:focus,
.page-hero .btn-outline-light:hover,
.page-hero .btn-outline-light:focus {
    color: var(--medico-blue);
    background-color: #fff;
    border-color: #fff;
}

.breadcrumb-medico {
    --bs-breadcrumb-divider: '›';
}

.breadcrumb-medico .breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-medico .breadcrumb-item.active { color: white; }

/* Solution Page */
.feature-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

[data-bs-theme="dark"] .feature-list-item { border-color: #334155; }

.feature-list-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(0, 150, 136, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medico-blue);
    flex-shrink: 0;
}

.solution-image {
    border-radius: var(--medico-radius);
    box-shadow: var(--medico-shadow);
    width: 100%;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: #f8fafc;
    border-radius: var(--medico-radius);
    border: 1px solid #e2e8f0;
}

[data-bs-theme="dark"] .architecture-diagram {
    background: #1e293b;
    border-color: #334155;
}

.arch-node {
    background: white;
    border: 2px solid var(--medico-blue);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-width: 140px;
    position: relative;
}

[data-bs-theme="dark"] .arch-node { background: #0f172a; }

.arch-node .port {
    display: inline-block;
    background: var(--medico-teal);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--medico-teal);
}

/* Pricing */
.pricing-card {
    background: white;
    border-radius: var(--medico-radius);
    padding: 2.5rem 2rem;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
}

[data-bs-theme="dark"] .pricing-card {
    background: #1e293b;
    border-color: #334155;
}

.pricing-card.featured {
    border-color: var(--medico-blue);
    box-shadow: var(--medico-shadow);
    transform: scale(1.03);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--medico-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--medico-blue);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: var(--medico-radius);
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--medico-shadow);
}

[data-bs-theme="dark"] .contact-form {
    background: #1e293b;
    border-color: #334155;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border-color: #e2e8f0;
}

.contact-form .form-control:focus {
    border-color: var(--medico-blue);
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15);
}

.contact-info-card {
    background: var(--medico-gradient);
    color: white;
    border-radius: var(--medico-radius);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-card a { color: white; }

/* Footer */
.footer-medico {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--medico-teal); }

.footer-bottom { border-color: #1e293b !important; }

.footer-muted {
    color: #94a3b8 !important;
}

.footer-medico a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-medico a:hover {
    color: var(--medico-teal);
}

.footer-medico .footer-muted a {
    color: #94a3b8;
}

.footer-medico .footer-muted a:hover {
    color: var(--medico-teal);
}

[data-bs-theme="dark"] .footer-medico .footer-muted,
[data-bs-theme="dark"] .footer-medico .text-muted {
    color: #94a3b8 !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--medico-blue);
    color: white;
    transform: translateY(-3px);
}

/* CTA Banner */
.cta-banner {
    background: var(--medico-gradient);
    color: white;
    border-radius: var(--medico-radius);
    padding: 3rem;
    text-align: center;
}

/* Technology badges */
.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(21, 101, 192, 0.08);
    color: var(--medico-blue);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem;
}

[data-bs-theme="dark"] .tech-badge {
    background: rgba(21, 101, 192, 0.2);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation { animation: float 4s ease-in-out infinite; }

.bg-light-section {
    background: #f8fafc;
}

[data-bs-theme="dark"] .bg-light-section {
    background: #0f172a;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--medico-blue);
    opacity: 0.4;
    padding: 0;
}

.testimonial-dot.active { opacity: 1; }

/* PACS Page */
.page-hero-pacs {
    background: linear-gradient(135deg, #1F6FEB 0%, #1565C0 50%, #009688 100%);
}

.pacs-trust-line {
    color: var(--medico-teal);
    font-weight: 600;
}

.pacs-banner-strip {
    background: #1F6FEB;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.code-block-card {
    background: #0f172a;
    border-radius: var(--medico-radius);
    overflow: hidden;
    border: 1px solid #334155;
    height: 100%;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #334155;
}

.code-block {
    margin: 0;
    padding: 1.25rem;
    color: #a5f3fc;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    background: transparent;
}

.code-inline {
    display: inline-block;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

[data-bs-theme="dark"] .code-inline {
    background: #1e293b;
    color: #a5f3fc;
}

.arch-node-detailed {
    min-width: 180px;
    max-width: 220px;
}

.architecture-detailed {
    gap: 1.5rem;
}

.social-copy-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--medico-radius);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .social-copy-card {
    background: #1e293b;
    border-color: #334155;
}

.social-copy-card:hover {
    border-color: var(--medico-blue);
    box-shadow: var(--medico-shadow);
}

.social-copy-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--medico-teal);
    margin-bottom: 0.75rem;
}

.linkedin-post-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--medico-radius);
    padding: 1.5rem;
    height: 100%;
}

[data-bs-theme="dark"] .linkedin-post-card {
    background: #1e293b;
    border-color: #334155;
}

.badge.bg-teal {
    background-color: var(--medico-teal) !important;
}

@media (max-width: 991.98px) {
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { display: none; }

    .pricing-card.featured { transform: none; }
}

@media (max-width: 767.98px) {
    .section-padding { padding: 3.5rem 0; }
    .hero-content { padding: 2rem 1.25rem; }
}

/* Medico Meeting promotion strip */
.promo-meeting-section {
    padding: 2.5rem 0 0;
}

.promo-meeting-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 45%, #084298 100%);
    border-radius: 1rem;
    padding: 2rem 2.25rem;
    color: #fff;
    box-shadow: 0 1rem 2.5rem rgba(13, 110, 253, 0.25);
    overflow: hidden;
}

.promo-meeting-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.promo-meeting-kicker {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.92;
    margin: 0;
}

.promo-meeting-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.promo-meeting-body {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.95;
    margin-bottom: 1.25rem;
}

.promo-meeting-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-meeting-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.promo-meeting-highlights li i {
    color: #9eeaf9;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.promo-meeting-banner-link {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-meeting-banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
}

.promo-meeting-banner {
    display: block;
    border-radius: 0.75rem;
}

@media (max-width: 991.98px) {
    .promo-meeting-card {
        padding: 1.5rem;
    }

    .promo-meeting-banner-link {
        margin-bottom: 0.5rem;
    }
}

/* Corporate home layout (Endeavour-style packaging) */
.corp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.82rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.corp-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.corp-topbar a:hover {
    color: #fff;
}

.corp-topbar-contacts {
    display: flex;
    gap: 1.25rem;
}

.corp-topbar-contacts i,
.corp-topbar-social i {
    margin-right: 0.35rem;
}

.corp-topbar-social {
    display: flex;
    gap: 0.75rem;
}

body.corp-layout .navbar-medico {
    top: var(--topbar-height);
    background: rgba(243, 246, 249, 0.96);
    box-shadow: 0 1px 0 rgba(98, 125, 152, 0.1);
}

body.corp-layout .hero-carousel,
body.corp-layout .hero-carousel .carousel-item {
    min-height: calc(100vh - var(--navbar-height) - var(--topbar-height));
    max-height: 800px;
}

.corp-hero-carousel {
    background: var(--corp-hero-bg, #f3f6f9);
    width: 100%;
}

.corp-hero-carousel .carousel-inner,
.corp-hero-carousel .carousel-item {
    width: 100%;
}

.corp-hero-slide {
    background: var(--corp-hero-bg, #f3f6f9);
}

.corp-hero-slide--alt {
    background: var(--corp-hero-bg-alt, #e9eef3);
}

.corp-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 520px;
    width: 100%;
}

.corp-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem clamp(0.75rem, 1.5vw, 1.25rem);
    background: inherit;
}

.corp-hero-layout--reverse .corp-hero-copy {
    order: 2;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    padding-right: clamp(0.75rem, 1.5vw, 1.25rem);
}

.corp-hero-layout:not(.corp-hero-layout--reverse) .corp-hero-copy {
    padding-left: clamp(0.75rem, 1.5vw, 1.25rem);
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.corp-hero-media {
    position: relative;
    align-self: stretch;
    min-height: 320px;
    background: inherit;
}

.corp-hero-layout--reverse .corp-hero-media {
    order: 1;
}

.btn-corp-primary {
    background: var(--corp-accent, #627d98);
    border: 1px solid var(--corp-accent, #627d98);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
}

.btn-corp-primary:hover,
.btn-corp-primary:focus {
    background: var(--corp-accent-hover, #526a82);
    border-color: var(--corp-accent-hover, #526a82);
    color: #fff;
}

.btn-corp-outline {
    background: transparent;
    border: 1px solid #b8c4d0;
    color: var(--corp-accent, #627d98);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
}

.btn-corp-outline:hover,
.btn-corp-outline:focus {
    background: var(--corp-accent-muted, rgba(98, 125, 152, 0.12));
    border-color: var(--corp-accent, #627d98);
    color: var(--corp-accent-hover, #526a82);
}

[data-bs-theme="dark"] .corp-hero-slide {
    background: #1a2332;
}

[data-bs-theme="dark"] .corp-hero-slide--alt {
    background: #151d29;
}

.corp-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--corp-accent, #627d98);
    background: var(--corp-accent-muted, rgba(98, 125, 152, 0.12));
    border: 1px solid rgba(98, 125, 152, 0.22);
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .corp-hero-badge {
    color: #a8bdd3;
    background: rgba(168, 189, 211, 0.1);
    border-color: rgba(168, 189, 211, 0.2);
}

.corp-hero-title {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--corp-text, #243447);
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .corp-hero-title {
    color: #f1f5f9;
}

.corp-hero-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--corp-muted, #64748b);
    max-width: 34rem;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .corp-hero-text {
    color: #94a3b8;
}

.corp-hero-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}

.corp-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.corp-hero-indicators {
    bottom: 1rem;
    margin-bottom: 0;
    z-index: 2;
}

.corp-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    background: #cbd5e1;
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.corp-hero-indicators [data-bs-target].active {
    background: var(--corp-accent, #627d98);
    transform: scale(1.15);
}

.corp-hero-carousel.carousel-fade .carousel-item {
    transition: opacity 0.65s ease-in-out;
}

@media (max-width: 991.98px) {
    .corp-hero-layout,
    .corp-hero-layout--reverse {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .corp-hero-layout--reverse .corp-hero-copy,
    .corp-hero-layout--reverse .corp-hero-media {
        order: unset;
    }

    .corp-hero-copy {
        padding: 2.25rem clamp(0.75rem, 1.5vw, 1.25rem) 1.5rem;
    }

    .corp-hero-media {
        min-height: 260px;
    }

    .corp-hero-visual {
        position: absolute;
        inset: 0;
        height: auto;
    }
}

.corp-nav-cta {
    border-radius: 999px;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    font-weight: 600;
}

.corp-pillar {
    padding: 4.5rem 0;
    background: #fff;
}

.corp-pillar--alt {
    background: #f8fafc;
}

[data-bs-theme="dark"] .corp-pillar {
    background: #0f172a;
}

[data-bs-theme="dark"] .corp-pillar--alt {
    background: #1e293b;
}

.corp-pillar-badge {
    display: inline-block;
    background: var(--medico-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.corp-pillar-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0f172a;
}

[data-bs-theme="dark"] .corp-pillar-title {
    color: #f1f5f9;
}

.corp-pillar-text {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.corp-pillar-visual {
    min-height: 280px;
    border-radius: 1rem;
    background: var(--medico-gradient);
    background-image: var(--corp-pillar-image), var(--medico-gradient);
    background-size: cover;
    background-position: center;
    box-shadow: var(--medico-shadow);
}

.corp-trust {
    background: linear-gradient(135deg, #0d47a1 0%, #00695c 100%);
    color: #fff;
}

.corp-trust-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.corp-trust-lead {
    max-width: 820px;
    font-size: 1.1rem;
    opacity: 0.92;
    line-height: 1.7;
}

.corp-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.corp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--medico-shadow);
    border-color: var(--medico-teal);
    color: inherit;
}

[data-bs-theme="dark"] .corp-product-card {
    background: #1e293b;
    border-color: #334155;
}

.corp-product-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--medico-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.corp-product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.corp-product-tagline {
    font-size: 0.88rem;
    color: #64748b;
    flex: 1;
    margin-bottom: 0.75rem;
}

.corp-product-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--medico-blue);
}

.corp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.corp-checklist li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 1rem;
    color: #334155;
}

.corp-checklist i {
    color: var(--medico-teal);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

[data-bs-theme="dark"] .corp-checklist li {
    color: #cbd5e1;
}

.corp-tech-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--medico-shadow);
}

[data-bs-theme="dark"] .corp-tech-panel {
    background: #1e293b;
    border-color: #334155;
}

.corp-tech-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.corp-tech-row:last-child {
    border-bottom: 0;
}

.corp-tech-row span {
    color: #64748b;
}

.corp-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.corp-tech-tags span {
    background: rgba(21, 101, 192, 0.08);
    color: var(--medico-blue);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.corp-benefit-card {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

[data-bs-theme="dark"] .corp-benefit-card {
    background: #1e293b;
    border-color: #334155;
}

.corp-benefit-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: var(--medico-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.corp-benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.corp-benefit-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.corp-stats {
    background: var(--medico-gradient);
    padding: 3.5rem 0;
    color: #fff;
}

.corp-stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.corp-stat-label {
    font-size: 0.88rem;
    opacity: 0.9;
}

.corp-client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.corp-client-chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

[data-bs-theme="dark"] .corp-client-chip {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.corp-faq .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.corp-faq .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
}

.corp-faq .accordion-button:not(.collapsed) {
    background: rgba(21, 101, 192, 0.06);
    color: var(--medico-blue);
}

.corp-demo-card {
    background: linear-gradient(135deg, #1565c0 0%, #00897b 100%);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(21, 101, 192, 0.25);
}

.corp-demo-form .form-control,
.corp-demo-form .form-select {
    border: 0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 767.98px) {
    .corp-pillar {
        padding: 3rem 0;
    }

    .corp-pillar-visual {
        min-height: 200px;
    }

    .corp-demo-card {
        padding: 1.5rem;
    }
}
