/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1.11
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
    .title-by-vp124 {
    position: relative;
    display: inline;
    font-size: 28px;
    color: rgb(10 162 152);
    /* text-transform: uppercase; */
    margin-bottom: 20px;
    margin: 0px auto;
    padding: 0 90px;
    margin-bottom: 25px;
    line-height: 3;
  }
    .title-by-vp124:before {
    position: absolute;
    content: '';
    background: url(/wp-content/themes/flatsome-child/image/logo-dupoma.svg) no-repeat right bottom;
    width: 50px;
    height: 50px;
    bottom: 0px;
    left: 30px;
  }
    .title-by-vp124:after {
      position: absolute;
      content: '';
      width: 75px;
      height: 10px;
      /* background: url(wp-content/themes/flatsome-child/images/image-title.png) no-repeat right bottom; */
      bottom: 8px;
      right: 0;
  }
/* --- GIỮ NGUYÊN CÁC BIẾN MÀU SẮC CŨ --- */
:root {
    --vp-primary: #009688;
    --vp-bg-light: #f4f8f9;
    --vp-border: #e1e8ed;
    --vp-text-main: #2d3748;
    --vp-text-gray: #718096;
}

/* --- CÁC STYLE CƠ BẢN --- */
.vp124-medical-layout { background-color: var(--vp-bg-light); padding-bottom: 50px; color: var(--vp-text-main); }
.vp124-breadcrumb-wrap { background: #fff; padding: 10px 0; border-bottom: 1px solid var(--vp-border); margin-bottom: 30px; }

/* --- LAYOUT --- */
.vp124-grid-container { display: flex; gap: 30px; padding-top: 30px; }
.vp124-sidebar { width: 280px; flex-shrink: 0; }
.vp124-main-content { flex: 1; min-width: 0; }

/* --- SIDEBAR & TOC (CẬP NHẬT CHO ICON) --- */
.vp124-sticky-sidebar {
    position: sticky; top: 100px; background: #fff;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden; padding: 25px 20px;
}

.vp124-thumb-circle img {
    width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--vp-bg-light); display: block; margin: 0 auto 15px;
}

.vp124-sidebar-title {
    font-size: 18px; font-weight: 700; text-align: center;
    color: var(--vp-primary); margin-bottom: 20px; line-height: 1.3;
}

.vp124-toc-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vp-border); }

/* Style cho link trong Sidebar để icon thẳng hàng với chữ */
.vp124-toc-nav a.vp124-link {
    display: flex;              /* Sử dụng flexbox */
    align-items: center;        /* Căn giữa theo chiều dọc */
    padding: 12px 10px;
    font-size: 15px;
    color: var(--vp-text-main);
    border-bottom: 1px solid var(--vp-border);
    transition: 0.2s;
    font-weight: 500;
    text-decoration: none;
}

/* Style cho Icon trong Sidebar */
.vp124-menu-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;         /* Khoảng cách giữa icon và chữ */
    flex-shrink: 0;
}

.vp124-toc-nav a:hover, .vp124-toc-nav a.active {
    color: var(--vp-primary);
    background-color: #f0fdfa;
    padding-left: 15px;
}

/* --- CONTENT & CARDS --- */
.vp124-card, .vp124-card-group {
    background: #fff; border-radius: 12px; padding: 30px;
    margin-bottom: 30px; box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}
.vp124-section-title {
    font-size: 22px; color: var(--vp-primary); margin-bottom: 20px;
    font-weight: 700; border-left: 5px solid var(--vp-primary); padding-left: 15px;
}

.vp124-header-with-icon {
    display: flex; align-items: center; margin-bottom: 20px;
    border-bottom: 2px solid var(--vp-bg-light); padding-bottom: 10px;
}
.vp124-header-with-icon img { width: 50px; height: 50px; margin-right: 12px; }
.vp124-header-with-icon h2 { font-size: 20px; color: var(--vp-text-main); margin: 0; font-weight: 700; }

/* --- POST ITEM --- */
.vp124-post-item {
    display: flex; gap: 20px; padding: 15px;
    border: 1px solid var(--vp-border); border-radius: 8px;
    margin-bottom: 15px; transition: 0.3s; color: inherit;
}
.vp124-post-item:hover {
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: var(--vp-primary);
}
.vp124-post-img { width: 100px; height: 75px; flex-shrink: 0; }
.vp124-post-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.vp124-post-meta h3 { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.vp124-post-meta p { font-size: 13px; color: var(--vp-text-gray); margin: 0; line-height: 1.4; }

/* --- BUTTON & LOAD MORE --- */
.vp124-btn-outline {
    display: inline-block; padding: 8px 25px; border: 1px solid var(--vp-primary);
    color: var(--vp-primary); background: transparent; border-radius: 30px;
    font-weight: 600; cursor: pointer; transition: 0.3s; width: 100%; max-width: 300px;
}
.vp124-btn-outline:hover { background: var(--vp-primary); color: #fff; }
.vp124-loadmore-wrap { text-align: center; margin-top: 20px; }

/* --- ACCORDION A-Z --- */
.vp124-acc-item { border: 1px solid var(--vp-border); margin-bottom: -1px; }
.vp124-acc-item:first-child { border-radius: 8px 8px 0 0; }
.vp124-acc-item:last-child { border-radius: 0 0 8px 8px; margin-bottom: 0; }
.vp124-acc-head {
    padding: 12px 20px; background: #fdfdfd; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.vp124-acc-head:hover { background: #f0fdfa; }
.vp124-az-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px; padding: 15px; background: #fff;
}
.vp124-az-grid a:hover { color: var(--vp-primary); text-decoration: underline; }

/* --- MOBILE STYLES --- */
.vp124-mobile-nav {
    position: sticky; top: 0; z-index: 999; background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 10px 0;
}
.admin-bar .vp124-mobile-nav { top: 32px; }

.vp124-nav-scroller {
    display: flex; overflow-x: auto; padding: 0 15px; gap: 10px; scrollbar-width: none;
}
.vp124-nav-scroller::-webkit-scrollbar { display: none; }
.vp124-pill {
    white-space: nowrap; padding: 6px 16px; background: #f0f2f5;
    border-radius: 20px; color: #555; font-size: 13px; font-weight: 600;
}
.vp124-pill.active { background: var(--vp-primary); color: #fff; }
/* Giao diện cho post phần bệnh lý */
/* --- CONTAINER --- */
.vp124-context-footer-area {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

/* --- PATHOLOGY MAP BOX --- */
.vp124-pathology-map {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

/* HEADER */
.vp124-map-header {
    background: #f9fafb;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vp124-map-info {
    display: flex; align-items: center; gap: 15px; text-decoration: none !important;
}
.vp124-map-info img {
    width: 100%; max-width: 114px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.vp124-map-pre {
    display: block; font-size: 12px; text-transform: uppercase; color: #777; font-weight: 700;
}
.vp124-map-title {
    margin: 0; font-size: 1.3em; color: var(--primary-color); font-weight: 800; line-height: 1.2;
}
.vp124-map-btn {
    font-size: 1em; font-weight: 600; color: #555; background: #fff;
    padding: 6px 15px; border-radius: 20px; border: 1px solid #ccc; transition: 0.2s;
}
.vp124-map-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* BODY */
.vp124-map-body {
    padding: 20px;
}

/* GROUP ROW */
.vp124-group-row {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}
.vp124-group-row:last-child {
    margin-bottom: 0; border-bottom: none; padding-bottom: 0;
}

/* Label Cột trái */
.vp124-group-label {
    width: 200px;
    flex-shrink: 0;
    font-weight: 700;
    color: #444;
    font-size: 1em;
    padding-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp124-group-label i { color: var(--primary-color); opacity: 0.7; }

/* List Cột phải */
.vp124-group-posts {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* POST PILL (Thẻ bài viết) */
.vp124-post-pill {
    display: inline-flex;
    align-items: center;
    font-size: 1em;
    color: #555;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: 0.2s;
    border: 1px solid transparent;
}
.vp124-post-pill:hover {
    background: #eefdfc;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* CURRENT POST STYLE */
.vp124-post-pill.current {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    pointer-events: none; /* Không bấm vào chính nó */
}
.vp124-reading-dot {
    width: 6px; height: 6px; background: #fff; border-radius: 50%;
    margin-right: 8px; display: inline-block;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}
/* --- WRAPPER CHÂN TRANG --- */
.vp124-single-footer-wrapper {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

/* --- 1. SHARE --- */
.vp124-share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.vp124-share-label {
    font-size: 14px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
}
/* Tùy chỉnh icon share của flatsome */
.vp124-share-section .social-icons {
    margin-bottom: 0 !important;
}

/* --- 2. TAGS CLOUD --- */
.vp124-tags-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}
.vp124-meta-label {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    margin-top: 6px; /* Căn chỉnh với chip */
}
.vp124-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vp124-tag-chip {
    font-size: 13px;
    color: #555;
    background: #f0f2f5;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none !important;
}
.vp124-tag-chip:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- 3. AUTHOR BOX (MEDICAL STYLE) --- */
.vp124-author-box {
    background: #f9fbfd;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}
.vp124-author-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.vp124-author-avatar img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.vp124-author-role {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.vp124-author-name {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.vp124-author-name a {
    color: #333;
    text-decoration: none;
}
.vp124-author-bio {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* --- NAV BELOW (NEXT/PREV) --- */
/* Làm nhỏ phần này lại để không tranh chấp với Map */
#nav-below {
    margin-top: 20px;
    opacity: 0.8;
    font-size: 0.9em;
}
.image-cover {
    padding-top: 75%!important;
}
/* RESPONSIVE */
@media (max-width: 600px) {
    .vp124-tags-section { flex-direction: column; gap: 10px; }
    .vp124-author-inner { flex-direction: column; text-align: center; align-items: center; }
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .vp124-map-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .vp124-map-btn { width: 100%; text-align: center; }
    
    .vp124-group-row { flex-direction: column; gap: 10px; }
    .vp124-group-label { width: 100%; margin-bottom: 5px; color: var(--primary-color); }
    .vp124-post-pill { width: 100%; } /* Mobile hiển thị từng dòng cho dễ bấm */
}
@media (max-width: 849px) {
    .vp124-grid-container { display: block; padding-top: 15px; }
    .vp124-card, .vp124-card-group { padding: 20px; margin-bottom: 20px; }
    .vp124-mobile-thumb img { width: 100%; border-radius: 12px; margin-bottom: 15px; }
    .vp124-mobile-title { font-size: 22px; color: var(--vp-primary); font-weight: 800; text-transform: uppercase; margin-bottom: 20px;}
    .vp124-post-item { flex-direction: column; gap: 10px; }
    .vp124-post-img { width: 100%; height: 150px; }
}

  /* Media query cho giao diện mobile */
@media (max-width: 768px) {
    .title-by-vp124:before {
          display: none;
      }
      .title-by-vp124:after {
          display: none;
      }
      .title-by-vp124 {
        display: contents;
      }
  }

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}