﻿/* ============================================================
    MEDICAL THEME - PAKMEDICS.COM
    Color Palette: Healing, Trust, Professionalism
============================================================ */
:root {
    --medical-primary: #0d7c6e;
    --medical-primary-dark: #085c51;
    --medical-primary-light: #e8f5f3;
    --medical-primary-bg: #f0faf8;
    
    --medical-blue: #2563eb;
    --medical-blue-light: #dbeafe;
    --medical-blue-dark: #1e40af;
    
    --medical-red: #dc2626;
    --medical-red-light: #fee2e2;
    
    --medical-green: #16a34a;
    --medical-green-light: #dcfce7;
    
    --medical-orange: #f59e0b;
    --medical-orange-light: #fef3c7;
    
    --medical-gray: #f8fafc;
    --medical-gray-dark: #1e293b;
    --medical-gray-light: #e2e8f0;
}

/* ============================================================
    BASE STYLES
============================================================ */
* {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

body {
    background: var(--medical-gray);
    color: var(--medical-gray-dark);
    font-family: 'Inter', sans-serif;
}

/* ============================================================
    TOP BAR
============================================================ */
.top-bar {
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-primary-dark) 100%);
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar a:hover {
    text-decoration: underline !important;
    opacity: 0.9;
}

/* ============================================================
    NAVIGATION
============================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 124, 110, 0.1) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
}

.nav-item .nav-link {
    color: var(--medical-gray-dark) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item .nav-link:hover {
    background: var(--medical-primary-light);
    color: var(--medical-primary) !important;
}

.nav-item .nav-link.active {
    background: var(--medical-primary-light) !important;
    color: var(--medical-primary) !important;
    font-weight: 700 !important;
}

.nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--medical-primary);
    border-radius: 4px;
}

/* ============================================================
    DROPDOWN MENU - HEALTH SERVICES
============================================================ */

/* Mega Dropdown Container */
.dropdown-menu-lg {
    min-width: 700px;
    padding: 1.5rem;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    margin-top: 8px;
}

.dropdown-menu-lg::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

/* Dropdown Grid Layout */
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 240px;
    gap: 1.5rem;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
}

/* Dropdown Headers */
.dropdown-header {
    color: #0a1a1f;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 0 0.5rem 0;
    margin: 0 0 0.5rem 0;
    border-bottom: 2px solid #0d7c6e;
    display: inline-block;
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item i {
    width: 20px;
    color: #0d7c6e;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f0faf8;
    color: #0d7c6e;
    transform: translateX(3px);
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.dropdown-item.active {
    background: #f0faf8;
    color: #0d7c6e;
    font-weight: 600;
}

.dropdown-item.active i {
    color: #0d7c6e;
}

/* Promo Card in Dropdown */
.dropdown-promo {
    background: linear-gradient(135deg, #f0faf8 0%, #e8f5f3 100%);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-card {
    width: 100%;
}

.promo-card .promo-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0d7c6e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.promo-card .promo-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.promo-card h6 {
    color: #0a1a1f;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.promo-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.promo-card .btn-primary {
    background: #0d7c6e;
    border: none;
    font-weight: 600;
    padding: 0.4rem 1.5rem;
    transition: all 0.3s ease;
}

.promo-card .btn-primary:hover {
    background: #085c51;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 124, 110, 0.3);
}

/* ─── Fix Dropdown Hover Gap ────────────────────────────────────── */
.navbar .dropdown:hover .dropdown-menu,
.navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.navbar .dropdown-menu,
.navbar .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
    margin-top: 0;
    padding-top: 8px;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Ensure the dropdown toggle doesn't have a gap */
.navbar .nav-link.dropdown-toggle {
    position: relative;
}

/* Add a transparent bridge to prevent gap */
.navbar .dropdown-menu::before,
.navbar .nav-item.dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* For mobile devices, keep default Bootstrap behavior */
@media (max-width: 991.98px) {
    .navbar .dropdown:hover .dropdown-menu,
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .navbar .dropdown-menu,
    .navbar .nav-item.dropdown .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 0;
        padding-top: 0;
    }
    
    .navbar .dropdown.show .dropdown-menu,
    .navbar .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ============================================================
    RESPONSIVE DROPDOWN
============================================================ */
@media (max-width: 992px) {
    .dropdown-menu-lg {
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 1rem;
        margin-top: 0;
        background: #f8fafc;
    }
    
    .dropdown-menu-lg::before {
        display: none;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .dropdown-promo {
        grid-column: span 2;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dropdown-promo {
        grid-column: span 1;
    }
    
    .dropdown-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .dropdown-header {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}

/* ============================================================
    NAVIGATION DROPDOWN TOGGLE HOVER EFFECT
============================================================ */
.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown > .dropdown-toggle:active {
    pointer-events: none;
}

/* For touch devices, keep Bootstrap's click behavior */
@media (hover: none) {
    .dropdown:hover > .dropdown-menu {
        display: none;
    }
}

/* Avatar fallback */
.avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--medical-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================================
    LAYOUT - ECOSYSTEM THEME
============================================================ */

/* Top Bar Ecosystem */
.top-bar .badge {
    font-weight: 500;
    padding: 2px 14px;
}

.top-bar a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

/* Logo Badge */
.navbar-brand .badge {
    background: rgba(13, 124, 110, 0.1) !important;
    color: #0d7c6e !important;
    border: 1px solid rgba(13, 124, 110, 0.15);
    font-weight: 600;
}

/* User Dropdown - Provider Badge */
.avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d7c6e, #10a58a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* User dropdown provider badge */
.nav-link .d-flex .text-primary {
    font-size: 0.6rem;
    font-weight: 600;
}

/* Dropdown Promo */
.dropdown-promo .promo-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
}

.dropdown-promo .promo-card p {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Footer Ecosystem Badge */
.footer-logo .badge {
    font-size: 0.55rem;
    padding: 2px 10px;
    font-weight: 600;
}

.bg-primary-light {
    background: rgba(13, 124, 110, 0.12) !important;
    color: #0d7c6e !important;
}

.bg-success-light {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #16a34a !important;
}

.bg-info-light {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #2563eb !important;
}

/* Footer Features */
.footer-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-features .feature-item i {
    font-size: 1rem;
    color: #0d7c6e;
}

@media (max-width: 768px) {
    .footer-features .feature-item {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 4px;
    }
    .footer-features .feature-item i {
        font-size: 1.2rem;
    }
}

/* ============================================================
    IMPRESSIVE HERO SECTION
============================================================ */

.hero-ecosystem {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #f0faf8 0%, #ffffff 40%, #e8f5f3 100%);
    overflow: hidden;
    padding: 80px 0 60px 0;
}

/* Min height utility */
.min-vh-75 {
    min-height: 75vh;
}

/* ===== HERO BACKGROUND ELEMENTS ===== */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-bg-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, #0d7c6e, transparent);
    animation: floatCircle 20s ease-in-out infinite;
}

.hero-bg-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, #10a58a, transparent);
    animation: floatCircle 25s ease-in-out infinite reverse;
}

.hero-bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 60%;
    background: radial-gradient(circle, #f59e0b, transparent);
    animation: floatCircle 15s ease-in-out infinite;
}

.hero-bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(13, 124, 110, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    margin-bottom: 24px;
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 124, 110, 0.1);
    color: #0d7c6e;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(13, 124, 110, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #0a1a1f;
    line-height: 1.1;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #0d7c6e, #10a58a, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 32px;
}

@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== HERO SEARCH ===== */
.hero-search {
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 60px;
    padding: 4px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(13, 124, 110, 0.1);
    transition: all 0.3s ease;
}

.hero-search-wrapper:focus-within {
    box-shadow: 0 12px 45px rgba(13, 124, 110, 0.12);
    border-color: #0d7c6e;
}

.hero-search-icon {
    padding: 0 12px 0 20px;
    color: #94a3b8;
    font-size: 1.2rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    background: transparent;
    color: #0a1a1f;
    outline: none;
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0d7c6e, #095a4f);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 124, 110, 0.3);
}

@media (max-width: 576px) {
    .hero-search-wrapper {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 8px;
    }
    .hero-search-icon {
        display: none;
    }
    .hero-search-input {
        padding: 12px 16px;
        width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }
    .hero-search-btn {
        width: 100%;
        margin-top: 8px;
        padding: 14px;
    }
}

/* ===== HERO BUTTONS ===== */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d7c6e, #095a4f);
    border: none;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(13, 124, 110, 0.25);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(13, 124, 110, 0.35);
    color: #ffffff;
}

.btn-hero-secondary {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid #0d7c6e;
    color: #0d7c6e;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: #0d7c6e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(13, 124, 110, 0.25);
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0d7c6e;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

@media (max-width: 576px) {
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-number {
        font-size: 1.5rem;
    }
    .hero-stat-divider {
        height: 30px;
    }
}

/* ===== HERO VISUAL GRID ===== */
.hero-visual {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    min-height: 400px;
}

.hero-visual-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 124, 110, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-visual-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(13, 124, 110, 0.12);
    border-color: rgba(13, 124, 110, 0.2);
}

.hero-visual-card i {
    font-size: 1.8rem;
    color: #0d7c6e;
}

.hero-visual-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a1a1f;
}

.hero-visual-card small {
    font-size: 0.7rem;
    color: #94a3b8;
}

.hero-visual-card-center {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: linear-gradient(135deg, #0d7c6e, #10a58a);
    border-color: transparent;
    padding: 30px 20px;
    z-index: 2;
}

.hero-visual-card-center i {
    font-size: 2.8rem;
    color: #ffffff;
}

.hero-visual-card-center span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-visual-card-center small {
    color: rgba(255, 255, 255, 0.7);
}

.hero-visual-card-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.hero-visual-card-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.hero-visual-card-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.hero-visual-card-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.hero-visual-card-5 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.hero-visual-card-6 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* ============================================================
    ECOSYSTEM SHOWCASE
============================================================ */

.ecosystem-showcase {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ===== ECOSYSTEM CARDS ===== */
.ecosystem-card {
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 124, 110, 0.12);
}

.ecosystem-card-primary {
    border-top: 4px solid #0d7c6e;
}

.ecosystem-card-secondary {
    border-top: 4px solid #2563eb;
}

.ecosystem-card-tertiary {
    border-top: 4px solid #8b5cf6;
}

.ecosystem-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ecosystem-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ecosystem-card-primary .ecosystem-card-icon {
    background: #e8f5f3;
    color: #0d7c6e;
}

.ecosystem-card-secondary .ecosystem-card-icon {
    background: #dbeafe;
    color: #2563eb;
}

.ecosystem-card-tertiary .ecosystem-card-icon {
    background: #ede9fe;
    color: #8b5cf6;
}

.ecosystem-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    flex: 1;
}

.ecosystem-card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #64748b;
}

.badge-patient {
    background: #dbeafe;
    color: #2563eb;
}

.badge-mentor {
    background: #ede9fe;
    color: #8b5cf6;
}

.ecosystem-card-body {
    flex: 1;
}

.ecosystem-card-body p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ecosystem-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ecosystem-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #334155;
    padding: 4px 0;
}

.ecosystem-features li i {
    color: #0d7c6e;
    font-size: 1rem;
}

.ecosystem-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.ecosystem-link {
    color: #0d7c6e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecosystem-link:hover {
    color: #095a4f;
    gap: 12px;
}

/* ===== ECOSYSTEM INTEGRATION ===== */
.ecosystem-integration {
    background: linear-gradient(135deg, #f0faf8, #ffffff);
    border-radius: 20px;
    padding: 30px 35px;
    border: 1px solid #e2e8f0;
}

.ecosystem-integration-content h5 {
    color: #0a1a1f;
    font-weight: 700;
    margin-bottom: 8px;
}

.ecosystem-integration-content h5 i {
    color: #0d7c6e;
    margin-right: 8px;
}

.ecosystem-integration-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.ecosystem-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-ecosystem-item {
    background: #ffffff;
    color: #0a1a1f;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-ecosystem-item i {
    color: #0d7c6e;
}

/* ===== ECOSYSTEM PARTNERS ===== */
.ecosystem-partner {
    text-align: center;
    padding: 20px 12px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.ecosystem-partner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: #0d7c6e;
}

.ecosystem-partner.active {
    border-color: #0d7c6e;
    background: #f0faf8;
}

.ecosystem-partner i {
    font-size: 1.8rem;
    color: #0d7c6e;
    display: block;
    margin-bottom: 6px;
}

.ecosystem-partner span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a1a1f;
}

.ecosystem-partner small {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .ecosystem-integration {
        padding: 20px;
    }
    .ecosystem-badges {
        justify-content: center;
        margin-top: 12px;
    }
    .ecosystem-card {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 992px) {
    .hero-ecosystem {
        min-height: auto;
        padding: 60px 0 40px 0;
    }
    .min-vh-75 {
        min-height: auto;
    }
}

/* ============================================================
    BUTTONS
============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--medical-primary) 0%, var(--medical-primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 124, 110, 0.3);
    color: white;
}

.btn-primary-soft {
    background: var(--medical-primary-light);
    color: var(--medical-primary);
    border: 2px solid var(--medical-primary);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-soft:hover {
    background: var(--medical-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 124, 110, 0.2);
}

.btn-outline-primary {
    border: 2px solid var(--medical-primary);
    color: var(--medical-primary);
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--medical-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================
    CARDS - Medical Style
============================================================ */
.card-medical {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-medical:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 124, 110, 0.12);
}

.card-medical .card-header {
    background: var(--medical-primary-light);
    border: none;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
}

/* ============================================================
    BADGES
============================================================ */
.badge-verified {
    background: var(--medical-green-light);
    color: var(--medical-green);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.badge-specialist {
    background: var(--medical-blue-light);
    color: var(--medical-blue);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.badge-available {
    background: var(--medical-green-light);
    color: var(--medical-green);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ============================================================
    HERO SECTION
============================================================ */
.hero-medical {
    background: linear-gradient(135deg, #f0faf8 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-medical::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 124, 110, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-medical .hero-icon {
    width: 80px;
    height: 80px;
    background: var(--medical-primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--medical-primary);
}

/* ============================================================
    STATS SECTION
============================================================ */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--medical-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--medical-gray-dark);
    font-weight: 500;
    opacity: 0.7;
}

/* ============================================================
    DOCTOR PROFILE CARDS
============================================================ */
.doctor-card {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(13, 124, 110, 0.12);
}

.doctor-card .doctor-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--medical-gray);
}

.doctor-card .doctor-info {
    padding: 1.5rem;
}

.doctor-card .doctor-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--medical-gray-dark);
}

.doctor-card .doctor-specialty {
    color: var(--medical-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================================
    SEARCH SECTION
============================================================ */
.search-medical {
    background: white;
    border-radius: 60px;
    padding: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.search-medical .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 60px;
}

.search-medical .form-control:focus {
    box-shadow: none;
    border-color: var(--medical-primary);
}

.search-medical .btn-search {
    background: var(--medical-primary);
    color: white;
    border-radius: 60px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.search-medical .btn-search:hover {
    background: var(--medical-primary-dark);
    transform: scale(1.02);
}

/* ============================================================
    SPECIALTIES GRID
============================================================ */
.specialty-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.specialty-item:hover {
    border-color: var(--medical-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 124, 110, 0.1);
}

.specialty-item .specialty-icon {
    font-size: 2.5rem;
    color: var(--medical-primary);
    margin-bottom: 0.5rem;
}

.specialty-item .specialty-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--medical-gray-dark);
}

/* ============================================================
    APPOINTMENT FORM
============================================================ */
.appointment-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.appointment-form .form-control,
.appointment-form .form-select {
    border: 2px solid var(--medical-gray-light);
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--medical-primary);
    box-shadow: 0 0 0 4px rgba(13, 124, 110, 0.1);
}

/* ============================================================
    REVIEWS & RATINGS
============================================================ */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--medical-primary);
}

.star-rating {
    color: var(--medical-orange);
    font-size: 1.1rem;
}

/* ============================================================
    FOOTER
============================================================ */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-link:hover {
    color: white;
    transform: translateX(3px);
    display: inline-block;
}

.hover-text-primary {
    transition: color 0.3s ease;
}

.hover-text-primary:hover {
    color: var(--medical-primary) !important;
}

/* ============================================================
    RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .hero-medical {
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .search-medical {
        border-radius: 20px;
        padding: 0.3rem;
    }
    
    .search-medical .btn-search {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .hero-medical .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .appointment-form {
        padding: 1.5rem;
    }
}

/* ============================================================
    UTILITY CLASSES
============================================================ */
.bg-soft-primary {
    background: var(--medical-primary-light) !important;
}

.text-primary-dark {
    color: var(--medical-primary-dark) !important;
}

.text-primary-soft {
    color: var(--medical-primary) !important;
}

.border-primary-soft {
    border-color: var(--medical-primary-light) !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

.rounded-5 {
    border-radius: 30px !important;
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.transition-smooth {
    transition: all 0.3s ease;
}

/* ============================================================
    MEDICAL ICONS & SYMBOLS
============================================================ */
.medical-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--medical-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medical-primary);
    font-size: 1.2rem;
}

.medical-icon-md {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--medical-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medical-primary);
    font-size: 1.8rem;
}

/* ============================================================
    IMPRESSIVE FOOTER - PAKMEDICS
============================================================ */

/* Footer Main Container */
.footer-medical {
    background: #0a1a1f;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
}

/* Footer Top - Main Content */
.footer-main {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Brand & Logo */
.footer-brand .footer-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.footer-brand .footer-logo .text-primary {
    color: #0d7c6e !important;
}

.footer-about {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 350px;
    color: rgba(255, 255, 255, 0.6);
}

/* Trust Badges */
.footer-trust-badges .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 50px;
}

.bg-primary-light {
    background: rgba(13, 124, 110, 0.15) !important;
    color: #0d7c6e !important;
}

.bg-success-light {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #16a34a !important;
}

.bg-info-light {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #2563eb !important;
}

/* Footer Headings */
.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #0d7c6e;
    border-radius: 4px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.6rem;
    margin-right: 0.5rem;
    color: #0d7c6e;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
    color: #0d7c6e;
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact li i {
    width: 24px;
    color: #0d7c6e;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
}

.footer-contact li span {
    flex: 1;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-icon:hover {
    background: #0d7c6e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 124, 110, 0.3);
}

/* Footer Features Strip */
.footer-features {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
    color: #0d7c6e;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1.5rem;
}

.footer-legal li {
    display: inline;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* ============================================================
    RESPONSIVE FOOTER
============================================================ */
@media (max-width: 992px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-about {
        max-width: 100%;
    }
    
    .footer-heading {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-heading {
        margin-top: 0.5rem;
    }
    
    .footer-heading::after {
        width: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .footer-bottom .text-md-start {
        text-align: center !important;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
    }
    
    .feature-item {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-features {
        padding: 1rem 0;
    }
    
    .feature-item {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .feature-item i {
        font-size: 1.2rem;
    }
    
    .footer-contact li {
        font-size: 0.8rem;
    }
    
    .footer-legal {
        gap: 0.5rem 1rem;
    }
    
    .footer-legal a {
        font-size: 0.7rem;
    }
}

/* ─── Fix Dropdown Hover Gap ────────────────────────────────────── */
/* This is the key fix for the dropdown hover gap issue */
.navbar .dropdown:hover .dropdown-menu,
.navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.navbar .dropdown-menu,
.navbar .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
    margin-top: 0;
    padding-top: 8px;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Ensure the dropdown toggle doesn't have a gap */
.navbar .nav-link.dropdown-toggle {
    position: relative;
}

/* Add a transparent bridge to prevent gap */
.navbar .dropdown-menu::before,
.navbar .nav-item.dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* For mobile devices, keep default Bootstrap behavior */
@media (max-width: 991.98px) {
    .navbar .dropdown:hover .dropdown-menu,
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .navbar .dropdown-menu,
    .navbar .nav-item.dropdown .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 0;
        padding-top: 0;
    }
    
    .navbar .dropdown.show .dropdown-menu,
    .navbar .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}