:root{
    --primary:#0D5BD7;
    --primary-dark:#083B8A;
    --accent:#FF3A3A;
    --text:#1E293B;
    --muted:#64748B;
    --soft:#F4F8FF;
    --line:#E2E8F0;
    --white:#FFFFFF;
    --dark:#0B172A;
    --shadow:0 18px 50px rgba(2, 78, 176, .10);
    --radius:18px;
}

html, body{
    overflow-x:hidden;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    color:var(--text);
    background:#fff;
    padding-top:30px;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

.btn{
    border-radius:12px;
    font-weight:600;
    padding:10px 18px;
}

.btn-primary{
    background:var(--primary);
    border-color:var(--primary);
}

.btn-primary:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
}

.btn-danger{
    background:var(--accent);
    border-color:var(--accent);
}

.custom-navbar{
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(10px);
    box-shadow:0 8px 30px rgba(0,0,0,.05);
    transition:.25s ease;
    padding:3px 0;
}

.custom-navbar.scrolled{
    padding:6px 0;
}

.site-logo{
    height:44px;
    margin-right:12px;
}

.brand-wrap{
    line-height:1.1;
}

.brand-name{
    font-weight:700;
    color:var(--primary-dark);
    font-size:16px;
}

.brand-tagline{
    color:var(--muted);
    font-size:11px;
}

.navbar .nav-link{
    color:var(--text);
    font-weight:600;
    padding:10px 14px !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover{
    color:var(--primary);
}

.btn-nav{
    min-width:140px;
}

.site-main{
    min-height:400px;
}

.hero-section{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    background:linear-gradient(135deg, #062B63 0%, #0D5BD7 55%, #1792FF 100%);
    color:#fff;
    overflow:hidden;
}

.hero-pattern{
    position:absolute;
    inset:0;
    background:url('../images/backgrounds/medical-pattern.svg') center center / cover no-repeat;
    opacity:.18;
}

.hero-badge{
    display:inline-block;
    padding:10px 18px;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.10);
    border-radius:999px;
    margin-bottom:18px;
    font-size:14px;
    font-weight:600;
}

.hero-title{
    font-size:52px;
    font-weight:800;
    line-height:1.15;
    margin-bottom:20px;
}

.hero-subtitle{
    font-size:18px;
    color:rgba(255,255,255,.92);
    line-height:1.7;
    margin-bottom:28px;
}

.hero-image-card{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.20);
    border-radius:28px;
    padding:20px;
    box-shadow:0 30px 90px rgba(0,0,0,.18);
}

.section-space{
    padding:90px 0;
}

.section-light{
    background:linear-gradient(180deg, #F7FAFF 0%, #EFF6FF 100%);
}

.section-title{
    margin-bottom:40px;
}

.section-title h2{
    font-size:36px;
    font-weight:800;
    margin-bottom:12px;
}

.section-title p{
    color:var(--muted);
    max-width:700px;
    margin:0 auto;
}

.feature-box{
    background:#fff;
    border-radius:var(--radius);
    padding:28px;
    box-shadow:var(--shadow);
    height:100%;
    transition:.25s ease;
    border:1px solid #eef3fb;
}

.feature-box:hover{
    transform:translateY(-5px);
}

.feature-box h5{
    font-weight:700;
    margin-bottom:12px;
    color:var(--primary-dark);
}

.feature-box p{
    color:var(--muted);
    margin-bottom:0;
    line-height:1.8;
}

.cta-box{
    padding:38px;
    border-radius:26px;
    color:#fff;
    background:linear-gradient(135deg, #083B8A 0%, #0D5BD7 100%);
    box-shadow:0 25px 70px rgba(13, 91, 215, .18);
}

.footer-main{
    background:#071C44;
    color:#fff;
    padding:70px 0 20px;
}

.footer-logo{
    height:46px;
}

.footer-title{
    font-weight:700;
    margin-bottom:16px;
}

.footer-text{
    color:rgba(255,255,255,.78);
    line-height:1.8;
}

.footer-links,
.footer-contact{
    padding-left:0;
    list-style:none;
    margin:0;
}

.footer-links li,
.footer-contact li{
    margin-bottom:10px;
    color:rgba(255,255,255,.78);
}

.footer-links a{
    color:rgba(255,255,255,.78);
}

.footer-links a:hover{
    color:#fff;
}

.footer-social a{
    display:inline-block;
    margin-right:12px;
    color:#fff;
    font-weight:600;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.12);
    margin-top:35px;
    padding-top:20px;
    color:rgba(255,255,255,.72);
}

.login-page{
    min-height:100vh;
    background:linear-gradient(135deg, #062B63 0%, #0D5BD7 55%, #1792FF 100%);
}

.login-wrapper{
    position:relative;
    min-height:100vh;
    overflow:hidden;
}

.login-overlay{
    position:absolute;
    inset:0;
    background:url('../images/backgrounds/medical-pattern.svg') center/cover no-repeat;
    opacity:.16;
}

.login-card{
    position:relative;
    background:rgba(255,255,255,.98);
    border-radius:26px;
    padding:34px;
    box-shadow:0 30px 90px rgba(0,0,0,.16);
}

.login-logo{
    height:64px;
    margin-bottom:14px;
}

.login-brand h3{
    font-weight:800;
    color:var(--primary-dark);
}

.login-brand p{
    color:var(--muted);
}

.form-control,
.form-select{
    border-radius:12px;
    min-height:46px;
    border:1px solid #d9e3f0;
}

.form-control:focus,
.form-select:focus{
    box-shadow:0 0 0 .2rem rgba(13,91,215,.12);
    border-color:var(--primary);
}

.btn-login-submit{
    min-height:48px;
}

.cms-body{
    background:#F4F7FB;
}

.cms-wrapper{
    display:flex;
    min-height:100vh;
}

.cms-sidebar{
    width:270px;
    background:linear-gradient(180deg, #082D6D 0%, #0D5BD7 100%);
    color:#fff;
    padding:20px;
    display:flex;
    flex-direction:column;
    position:sticky;
    top:0;
    height:100vh;
    z-index:1000;
}

.cms-sidebar-top{
    margin-bottom:24px;
}

.cms-logo-wrap{
    display:flex;
    align-items:center;
    color:var(--primary-dark);
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.9);
    border-radius:16px;
    background:#fff;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.35) inset,
        0 0 14px rgba(255,255,255,.22);
    transition:.25s ease;
}


.cms-logo-wrap:hover{
    color:var(--primary-dark);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.45) inset,
        0 0 18px rgba(255,255,255,.30);
}

.cms-logo{
    height:46px;
    margin-right:12px;
}

.cms-logo-text strong{
    display:block;
    font-size:15px;
    color:var(--primary-dark);
}

.cms-logo-text small{
    opacity:.8;
    color:var(--primary-dark);
}

.cms-menu{
    flex:1;
}

.cms-menu-item{
    display:block;
    padding:12px 15px;
    color:rgba(255,255,255,.9);
    border-radius:12px;
    margin-bottom:8px;
    font-weight:600;
    transition:.2s ease;
}

.cms-menu-item:hover,
.cms-menu-item.active{
    background:rgba(255,255,255,.14);
    color:#fff;
}

.cms-sidebar-bottom{
    margin-top:4px;
}

.cms-main{
    flex:1;
    min-width:0;
}

.cms-header{
    background:#fff;
    padding:18px 24px;
    border-bottom:1px solid #e8eef6;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:900;
}

.cms-page-title{
    font-weight:800;
    color:var(--primary-dark);
}

.cms-user-box{
    text-align:right;
}

.cms-user-name{
    font-weight:700;
}

.cms-content{
    padding:24px;
}

.cms-stat-card{
    background:#fff;
    border-radius:20px;
    padding:24px;
    box-shadow:var(--shadow);
    border:1px solid #eef2f8;
    height:100%;
}

.cms-stat-label{
    font-size:14px;
    color:var(--muted);
    margin-bottom:10px;
}

.cms-stat-value{
    font-size:34px;
    font-weight:800;
    color:var(--primary-dark);
}

.table{
    vertical-align:middle;
}

.card{
    border-radius:18px;
}

.alert{
    border-radius:14px;
}

.page-banner{
    background:linear-gradient(135deg, #083B8A 0%, #0D5BD7 100%);
    color:#fff;
    padding:80px 0 70px;
}

.page-banner h1{
    font-size:42px;
    font-weight:800;
    margin-bottom:12px;
}

.page-banner p{
    margin-bottom:0;
    color:rgba(255,255,255,.88);
    max-width:720px;
}

.filter-card,
.sidebar-card,
.contact-form-box,
.product-detail-box,
.content-box,
.article-detail-box,
.empty-box{
    background:#fff;
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:24px;
    border:1px solid #eef3fb;
}

.category-list-links a{
    display:block;
    padding:10px 14px;
    border-radius:12px;
    background:#f7faff;
    color:var(--text);
    margin-bottom:10px;
    font-weight:600;
}

.category-list-links a:hover{
    background:#eaf3ff;
    color:var(--primary);
}

.product-card,
.article-card,
.mini-product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    border:1px solid #eef3fb;
    height:100%;
    transition:.25s ease;
}

.product-card:hover,
.article-card:hover,
.mini-product-card:hover{
    transform:translateY(-6px);
}

.product-thumb{
    height:240px;
    overflow:hidden;
    background:#f5f8fd;
}

.product-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-body{
    padding:22px;
}

.product-body h5{
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;
}

.product-category,
.article-category{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:#eaf3ff;
    color:var(--primary);
    font-size:12px;
    font-weight:700;
    margin-bottom:12px;
}

.product-meta,
.article-meta{
    color:var(--muted);
    font-size:14px;
    margin-bottom:6px;
}

.article-card img{
    width:100%;
    height:230px;
    object-fit:cover;
}

.article-body{
    padding:22px;
}

.article-body h5{
    font-weight:700;
    margin-bottom:12px;
}

.read-more-link{
    color:var(--primary);
    font-weight:700;
}

.mini-product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.product-detail-image-main{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    border:1px solid #eef3fb;
}

.product-detail-image-main img{
    width:100%;
    height:auto;
    display:block;
}

.product-detail-thumb{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:var(--shadow);
    border:1px solid #eef3fb;
}

.product-detail-thumb img{
    width:100%;
    height:130px;
    object-fit:cover;
}

.btn-success-custom{
    background:#1FAF5A;
    color:#fff;
    border:1px solid #1FAF5A;
    border-radius:12px;
    padding:10px 18px;
    font-weight:600;
}

.btn-success-custom:hover{
    color:#fff;
    background:#14954A;
    border-color:#14954A;
}

.article-search-box .form-control{
    min-height:50px;
}

.latest-article-item{
    display:flex;
    gap:12px;
    margin-bottom:16px;
    padding-bottom:16px;
    border-bottom:1px solid #edf2f7;
}

.latest-article-item:last-child{
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:0;
}

.latest-article-item img{
    width:82px;
    height:82px;
    border-radius:12px;
    object-fit:cover;
}

.latest-article-item h6{
    font-size:15px;
    margin-bottom:6px;
    line-height:1.4;
}

.latest-article-item h6 a{
    color:var(--text);
}

.latest-article-item h6 a:hover{
    color:var(--primary);
}

.article-detail-cover{
    width:100%;
    border-radius:18px;
    margin-bottom:10px;
}

.article-excerpt-box{
    background:#f7faff;
    border-left:4px solid var(--primary);
    padding:18px;
    border-radius:12px;
    color:var(--muted);
    line-height:1.8;
}

.article-content{
    line-height:1.9;
    color:#334155;
}

.article-content img{
    max-width:100%;
    height:auto;
    border-radius:12px;
}

.contact-info-item{
    margin-bottom:20px;
}

.contact-info-item strong{
    display:block;
    margin-bottom:6px;
    color:var(--primary-dark);
}

.map-box iframe{
    width:100% !important;
    min-height:280px;
    border:0;
    border-radius:14px;
}

.empty-box{
    text-align:center;
    padding:38px 20px;
}

.media-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
    border:1px solid #eef3fb;
    height:100%;
}

.media-preview{
    height:180px;
    background:#f5f8fd;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.media-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.media-file-icon{
    font-size:28px;
    font-weight:800;
    color:var(--primary-dark);
}

.media-card-body{
    padding:16px;
}

.media-file-name{
    font-weight:700;
    word-break:break-word;
}

.media-file-path{
    word-break:break-all;
}

.navbar-brand-logo-only{
    display:flex;
    align-items:center;
    max-width:320px;
}

.site-logo{
    display:block;
    height:auto;
    max-width:100%;
}

.site-logo-horizontal{
    width:300px;
    max-height:72px;
    object-fit:contain;
}

.cms-body{
    background:#F4F7FB;
    padding-top:0 !important;
}

.product-detail-image-main img,
.product-detail-thumb img{
    cursor:zoom-in;
    transition:.25s ease;
}

.product-detail-image-main img:hover,
.product-detail-thumb img:hover{
    opacity:.92;
    transform:scale(1.01);
}

#productImageModal .modal-header{
    background:transparent;
}

#productImageModal .modal-body{
    background:transparent;
}

#productImageModalPreview{
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    background:#fff;
}

.marketplace-section{
    border-top:1px solid #e9ecef;
    padding-top:20px;
}

.marketplace-grid{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.marketplace-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:180px;
    height:72px;
    padding:12px 18px;
    background:#fff;
    border:1px solid #e6eaf0;
    border-radius:16px;
    box-shadow:0 6px 18px rgba(15, 23, 42, 0.06);
    text-decoration:none;
    transition:all .2s ease;
}

.marketplace-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(15, 23, 42, 0.10);
    border-color:#d0d9e5;
}

.marketplace-logo{
    max-width:140px;
    max-height:34px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}

@media (max-width: 575.98px){
    .marketplace-grid{
        gap:10px;
    }

    .marketplace-btn{
        width:100%;
        min-width:100%;
        height:68px;
        padding:10px 14px;
    }

    .marketplace-logo{
        max-width:130px;
        max-height:30px;
    }
}