/*
Theme Name: Web Khoi Nghiep
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 4.2
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

@keyframes sword-slash {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}
@keyframes shimmer-sweep {
  0% {
    background-position: -800px 0;
  }
  100% {
    background-position: 800px 0;
  }
}
@keyframes glow-breathe {
  0% {
    box-shadow: 0 0 0px 0px rgba(184, 168, 130, 0), inset 0 0 0 0.5px rgba(244, 240, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 18px 4px rgba(184, 168, 130, 0.22), inset 0 0 0 0.5px rgba(184, 168, 130, 0.7);
  }
  100% {
    box-shadow: 0 0 0px 0px rgba(184, 168, 130, 0), inset 0 0 0 0.5px rgba(244, 240, 234, 0.3);
  }
}
.page-id-1322 #footer ,.page-id-1319 #footer{
    display: none;
}
blockquote, dl, figure, form, ol, p, pre, ul {
    margin-bottom: 10px;
}
.avortex-lbcl-popup .btn{
        text-transform: capitalize !important;
}

.div-button-lbcl{
    margin-top: -126px;
}
.div-button-lbcl .button{
        padding: 10px 22px !important;
    margin-left: 8px;
}

.entry-content  img{
    margin-bottom: 15px;
}
footer.entry-meta{
    display: none;
}
.related-post h7{
    font-size: 22px;
                   color: var(--fs-color-secondary) !important;
 
}
.div-tac-pham .box .text p{
        display: flex;
    align-items: center;
    gap: 10px;
}
.div-tac-pham .box .text p{
    text-transform: uppercase;
}
.div-tac-pham .box .text .p-right{
                       color: var(--fs-color-secondary) !important;

}
.div-tac-pham .box .text .p-right:before{
        content: "";
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: currentColor;
}
.div-tac-pham .box .text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.dark .is-divider{
                    background-color: var(--fs-color-secondary) !important;
height: 1px;
}
.entry-header .entry-category {
                color: var(--fs-color-secondary) !important;

}
.entry-content{
    padding-top: 0px;
}
.p-step{
        position: relative;
        padding-left: 36px;
            color: var(--fs-color-secondary) !important;

}
.p-step::before {
       content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background-color: currentColor;
    position: absolute;
    left: 0px;
    top: 12px;

}
.section-dinh-vi .nav-line li a:before{
     content: '→';
    color: var(--fs-color-secondary);
    background: transparent;
    position: absolute;
    top: 11px;
    right: 15px;
    font-size: 18px;
}

.p-second-sub{
        font-size: 20px;
        color: var(--fs-color-secondary) !important;
}
.mfp-close{
        margin-right: 10px !important;
}
.lbcl-compass-label .lbcl-label-vi{
       
        background: linear-gradient(90deg, rgba(244, 240, 234, 0.72) 0%, rgba(244, 240, 234, 0.72) 35%, rgba(255, 248, 220, 1) 50%, rgba(184, 168, 130, 0.95) 58%, rgba(244, 240, 234, 0.72) 65%, rgba(244, 240, 234, 0.72) 100%);
    background-size: 400px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-sweep 3.2s ease-in-out infinite;
 animation-duration: 9s;
    animation-timing-function: linear;
    animation-delay: 3s;
}
.text-contact-long p{
        font-size: 14px;
            color: #ADADA9;
            margin-bottom: 20px;
}
.text-contact-long h4{
        font-family: "JetBrains Mono", sans-serif !important;
}

.text-contact .p-contact{

        background: linear-gradient(90deg, rgba(244, 240, 234, 0.72) 0%, rgba(244, 240, 234, 0.72) 35%, rgba(255, 248, 220, 1) 50%, rgba(184, 168, 130, 0.95) 58%, rgba(244, 240, 234, 0.72) 65%, rgba(244, 240, 234, 0.72) 100%);
    background-size: 400px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-sweep 3.2s ease-in-out infinite;
 animation-duration: 9s;
    animation-timing-function: linear;
    animation-delay: 3s;   
}
.off-canvas-left.dark .mfp-content, .off-canvas-right.dark .mfp-content {
    background-color: #1D1A16;
}
.text.div-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
     margin-bottom: 20px;
}
.dark .nav-sidebar.nav-vertical>li+li, .dark .nav-vertical-fly-out>li+li {
    border-color: rgba(184, 168, 130, 0.22) !important;
}
.text.div-brand p {
    text-transform: uppercase;
  margin: 0;
}

.text.div-brand .p-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text.div-brand .p-right::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 1px;
  background-color: currentColor; /* hoặc đổi màu cụ thể, vd #000 */
}
.box-blog-post .blog-post-inner {
  display: flex;
  flex-wrap: wrap;
}

.box-blog-post .blog-post-inner .cat-label {
  order: 1;
  flex: 1;
  margin-bottom: 0;
}

.box-blog-post .blog-post-inner .post-meta {
  order: 2;
  text-align: right;
  margin-bottom: 0;
}

.box-blog-post .blog-post-inner .post-title {
  order: 3;
  width: 100%;
}

.box-blog-post .blog-post-inner .is-divider {
  order: 4;
  width: 100%;
}

.box-blog-post .blog-post-inner .from_the_blog_excerpt {
  order: 5;
  width: 100%;
      color: #ADADA9;
    font-size: 13px;
}
.section-quan-diem .post-item .post-title{
    font-size: 16px;
}
.section-quan-diem .post-item{
    border-right: 1px solid #b4a78636;
}
.section-quan-diem .post-item:last-child{
    border-right: unset;
}
.box-blog-post .is-divider{
    height: 1px ;
                    background-color: var(--fs-color-secondary) !important;

}
.section-border{
        border-top: 0.5px solid rgba(184, 168, 130, 0.22);
}
.p-sub-chien-luoc p{
                color: var(--fs-color-secondary) !important;

    margin-bottom: 10px;
       font-size: 15px;
}
.p-main p{
       margin-bottom: 10px;
       font-size: 15px;
    font-weight: 300;
    color: rgba(244, 240, 234, 0.78);
    line-height: 1.85;
    margin: 20px 0px 0px;
 
    text-wrap: balance;
    border-left: 0.5px solid rgba(184, 168, 130, 0.22);
    padding-left: 16px;
}
.div-text-chien-luoc{
    width: 75%;
}
h3.sword-slash{
    font-size: 34px;
}
.section-dinh-vi .tab-panels {
  counter-reset: panel-step;
  position: relative;
}

.section-dinh-vi .panel {
  counter-increment: panel-step;
  position: relative;
}

.section-dinh-vi .panel::after {
    content: counter(panel-step, decimal-leading-zero);
    position: absolute;
    top: 0px;
    right: 0;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: rgba(184, 168, 130, 0.2);
    pointer-events: none;
    z-index: 0;
    font-size: clamp(100px, 11vw, 160px);
    font-weight: 700;
    color: rgba(184, 168, 130, 0.055);
    line-height: 1;
    user-select: none;
    letter-spacing: -0.04em;
    pointer-events: none;
        font-family: "Be Vietnam Pro", sans-serif !important;
}
.section-dinh-vi .nav.nav-line {
  counter-reset: tab-step;
}

.section-dinh-vi .nav.nav-line > li.tab {
  counter-increment: tab-step;
  position: relative;
}

.section-dinh-vi .nav.nav-line > li.tab::before {
  content: "0" counter(tab-step) " ";
  font-variant-numeric: tabular-nums;
      margin-right: 20px;
    font-size: 12px;
        font-weight: normal;
            color: var(--fs-color-secondary) !important;

}
.section-dinh-vi .tabbed-content ul.nav li{
        border-width: 0.5px medium medium;
    border-style: solid none none;
    border-color: rgba(184, 168, 130, 0.22) currentcolor currentcolor;
    background: none;
        padding: 7px 0px;
            font-size: 18px;
}
.section-dinh-vi .tabbed-content .tab-panels{
    border-left: unset;
}
.menu-chien-luoc {
  counter-reset: menu-step;
}

.menu-chien-luoc .ux-menu-link {
  counter-increment: menu-step;
  position: relative;
}
.menu-chien-luoc .ux-menu-link{
        border-width: 0.5px medium medium;
    border-style: solid none none;
    border-color: rgba(184, 168, 130, 0.22) currentcolor currentcolor;
    background: none;

}
.menu-chien-luoc .ux-menu-link .ux-menu-link__link{
        padding-top: 10px;
    padding-bottom: 10px;
               border-bottom-style: unset !important;
 
}
.menu-chien-luoc .ux-menu-link .ux-menu-link__link:hover:after{
     content: '→';
    color: var(--fs-color-secondary);
    background: transparent;
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 18px;
}
.menu-chien-luoc .ux-menu-link .ux-menu-link__link::before {
  content: "0" counter(menu-step) " ";
  font-variant-numeric: tabular-nums;
  margin-right: 20px;
  font-size: 12px;
  font-weight: normal;
  color: var(--fs-color-secondary) !important;
}

.section-chien-luoc-con .accordion {
  counter-reset: accordion-step;
}
.section-chien-luoc-con .accordion .accordion-title{
       border-width:  medium medium 0.5px;
    border-style: none none solid;
    border-color:  currentcolor currentcolor rgba(184, 168, 130, 0.22);
    background: none; 
    color: #fdfdfdb5;
}
.section-chien-luoc-con .accordion .accordion-item {
  counter-increment: accordion-step;
  position: relative;
}

.section-chien-luoc-con .accordion .accordion-item .accordion-title::before {
  content: "0" counter(accordion-step) " ";
  font-variant-numeric: tabular-nums;
    margin-right: 8px;
    font-size: 22px;
  font-weight: normal;
  color: var(--fs-color-secondary) !important;
}

.section-chien-luoc-con .accordion .accordion-item .accordion-title{
    padding-left: 0px;
}
.section-chien-luoc-con .accordion .accordion-item .accordion-title button{
    display: none;
}
.p-subtitle{
    text-transform: uppercase;
    color: var(--fs-color-secondary) !important;
    font-size: 14px;
}
.box-blog-post .blog-post-inner .cat-label{
       color: var(--fs-color-secondary) !important;
    opacity: 1;
    font-size: 13px;
    margin-bottom: 10px;
}
.absolute-footer {
    border-top: 1px solid var(--fs-color-secondary);
}
    .section-dinh-vi .tabbed-content .nav-vertical {
        padding-top: 0;
        width: 50%;
    }
    .wpcf7-spinner{
        display: none;
    }
   .wpcf7-form .wpcf7-submit{
        background: transparent;
        border: 1px solid white;
        text-transform: initial;
    }
    .wpcf7-form textarea{
        min-height: 90px;
    }
.wpcf7-form .wpcf7-text,.wpcf7-form textarea{
    background-color: transparent !important;
    border-width: medium medium 0.5px;
    border-style: none none solid;
    border-color: currentcolor currentcolor rgba(184, 168, 130, 0.22);
    border-image: none;
    color: white;
    font-size: 12px;
    font-weight: 300;
    font-family: "Be Vietnam Pro", Inter, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.04em;
    padding: 12px 0px;
    outline: none;
    margin-bottom: 28px;
    box-shadow: unset !important;
}
.wpcf7-form label{
    font-size: 14px;
    text-transform: uppercase;
        color: var(--fs-color-secondary) !important;

}

.section-quan-diem .post-item .box-image{
    display: none;
}

.section-title-normal {
    border-bottom: unset;
}
.section-title-normal a{
        color: var(--fs-color-secondary) !important;
font-weight: normal;
font-size: 12px;
    padding: 10px 20px !important;
}
.title-home-small,.section-title-normal .section-title-main {
font-weight: 700;
    color: rgb(244, 240, 234);
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 16px 0px 0px;
    border-bottom: unset;
    font-size: clamp(40px, 4.5vw, 52px);
text-transform: initial;
}
.title-home{
        font-size: clamp(40px, 4.5vw, 68px);
    font-weight: 700;
    color: rgb(244, 240, 234);
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin: 16px 0px 0px;
    border-bottom: unset;
}

.sword-slash{
       background: linear-gradient(105deg, rgba(244, 240, 234, 0.88) 0%, rgba(244, 240, 234, 0.88) 32%, rgba(200, 168, 96, 0.95) 43%, rgba(240, 210, 130, 1) 48%, rgba(255, 235, 160, 1) 50%, rgba(240, 210, 130, 1) 52%, rgba(200, 168, 96, 0.95) 57%, rgba(244, 240, 234, 0.88) 68%, rgba(244, 240, 234, 0.88) 100%);
    background-size: 600px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sword-slash 16s linear infinite; 
}
a.button.primary,.section-title-container a{
        margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 32px;
    background-color: transparent;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
        padding: 14px 32px;
    animation: glow-breathe 3s ease-in-out infinite;
    border: none !important;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}
a.button.primary span{
    text-transform: initial;
    background: linear-gradient(90deg, rgba(244, 240, 234, 0.72) 0%, rgba(244, 240, 234, 0.72) 35%, rgba(255, 248, 220, 1) 50%, rgba(184, 168, 130, 0.95) 58%, rgba(244, 240, 234, 0.72) 65%, rgba(244, 240, 234, 0.72) 100%);
    background-size: 400px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-sweep 3.2s ease-in-out infinite;
        animation-duration: 9s;
    animation-timing-function: linear;
    animation-delay: 0s;
}

/* ============================================================
   LA BÀN ĐỘNG — shortcode [la_ban_chien_luoc]
   5 lớp ảnh (1 mặt la bàn + 4 kim rời) cùng khung 1708x1501, xếp chồng
   tuyệt đối lên nhau. Mỗi kim tự lắc quanh đúng tâm chốt (48.8% 48.9% —
   đã dò bằng pixel trên la-ban.png) để trông sống động như kim thật:
   kim trên+dưới lắc cùng nhịp (như 1 kim dọc), kim trái+phải lắc nhịp
   khác (như 1 kim ngang), không đồng bộ với nhau cho tự nhiên.
   ============================================================ */
.lbcl-compass-wrap { display: flex; justify-content: center; }
.lbcl-compass {
    position: relative;
    width: 100%;
    max-width: var(--lbcl-compass-max, 480px);
    aspect-ratio: 1708 / 1501;
}

/* Có 4 nhãn text (labels="true", mặc định) -> dùng Flexbox thay vì Grid.
   Lý do đổi từ Grid sang Flex: Grid với cột giữa "1fr" sẽ ăn hết khoảng
   trống còn lại trong hàng dù la bàn có to cỡ nào — nếu la bàn không lấp
   đầy hết cỡ đó (vd size="90%" trên màn rất rộng), phần dư ra nằm giữa
   la bàn và chữ nhãn, nhìn xa cách. Flexbox thì ngược lại: hàng chỉ rộng
   đúng bằng tổng nội dung con (label + gap + la bàn), không có track nào
   "ăn hết khoảng trống" — nên chữ luôn sát la bàn theo đúng giá trị gap,
   bất kể size của la bàn là bao nhiêu.
   Cấu trúc: cột dọc ngoài cùng (Bắc / hàng-ngang / Nam), hàng ngang bên
   trong là Tây - la bàn - Đông — luôn giữ đúng vị trí trái/phải, kể cả
   trên mobile (không đổi layout thành xếp dọc như trước, vì làm vậy sai
   vị trí 4 hướng thật của la bàn). */
.lbcl-compass-wrap.lbcl-has-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* Ảnh la-ban.png có sẵn khoảng trắng ở 4 lề (hình vẽ la bàn không chạm
       hết mép ảnh) -> nếu chỉ canh theo gap thường, chữ nhãn bị "hụt" ra xa
       so với vòng la bàn thật. Kéo từng nhãn thụt vào bằng margin âm — tách
       riêng 4 hướng vì khoảng trắng của ảnh không đều nhau ở mỗi lề. */
    --lbcl-label-inset-n: 45px;
    --lbcl-label-inset-s: 55px;
    --lbcl-label-inset-w: 110px;
    --lbcl-label-inset-e: 130px;
    /* Chữ "Tây" và "Đông" độ dài khác nhau -> hàng ngang (W-la bàn-E) không
       đối xứng 2 bên la bàn -> Bắc/Nam (canh giữa theo cả hàng) bị lệch phải
       so với tâm la bàn thật. Đẩy Bắc/Nam qua trái 1 chút để bù lại. */
    --lbcl-label-shift-ns: -12px;
}
.section-chien-luoc-sub .lbcl-compass-wrap.lbcl-has-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* Ảnh la-ban.png có sẵn khoảng trắng ở 4 lề (hình vẽ la bàn không chạm
       hết mép ảnh) -> nếu chỉ canh theo gap thường, chữ nhãn bị "hụt" ra xa
       so với vòng la bàn thật. Kéo từng nhãn thụt vào bằng margin âm — tách
       riêng 4 hướng vì khoảng trắng của ảnh không đều nhau ở mỗi lề. */
    --lbcl-label-inset-n: 40px !important;
    --lbcl-label-inset-s: 50px !important;
    --lbcl-label-inset-w: 100px !important;
    --lbcl-label-inset-e: 120px !important;
    /* Chữ "Tây" và "Đông" độ dài khác nhau -> hàng ngang (W-la bàn-E) không
       đối xứng 2 bên la bàn -> Bắc/Nam (canh giữa theo cả hàng) bị lệch phải
       so với tâm la bàn thật. Đẩy Bắc/Nam qua trái 1 chút để bù lại. */
    --lbcl-label-shift-ns: -12px;
}
.lbcl-compass-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 3vw, 28px);
    width: 100%;
}
.lbcl-label-n {
    margin-bottom: calc(-1 * var(--lbcl-label-inset-n));
    transform: translateX(var(--lbcl-label-shift-ns));
}
.lbcl-label-s {
    margin-top: calc(-1 * var(--lbcl-label-inset-s));
    transform: translateX(var(--lbcl-label-shift-ns));
}
.lbcl-label-w { margin-right: calc(-1 * var(--lbcl-label-inset-w)); }
.lbcl-label-e { margin-left: calc(-1 * var(--lbcl-label-inset-e)); }
.lbcl-compass-wrap.lbcl-has-labels .lbcl-compass {
    /* flex-basis = đúng size mong muốn (var --lbcl-compass-max) để flexbox có
       điểm xuất phát rõ ràng mà co/giãn — la bàn không có kích thước nội dung
       riêng (mọi lớp ảnh đều position:absolute) nên "auto" sẽ không đoán được. */
    flex: 0 1 var(--lbcl-compass-max, 480px);
    width: auto; /* để flexbox tự co giãn, không dùng width:100% mặc định nữa */
    min-width: 90px;
}
.lbcl-label-w, .lbcl-label-e { flex: 0 0 auto; }
.lbcl-label-n, .lbcl-label-s { text-align: center; }

.lbcl-compass-label {
    font-size: 13px;
    line-height: 1.7;
    color: #d9d4c8;
    text-align: center;
    max-width: 220px;
    white-space: nowrap;
}
.lbcl-compass-label .lbcl-label-vi { display: block; }
.lbcl-compass-label .lbcl-label-en {
    display: block;
    color: var(--fs-color-secondary);
    font-size: 11.5px;
    letter-spacing: .01em;
}

/* Màn hình hẹp: chữ 2 bên Tây/Đông vẫn NẰM ĐÚNG TRÁI/PHẢI của la bàn (không
   dồn lên trên/dưới như 1 cột dọc — sẽ sai vị trí 4 hướng thật) — chỉ thu
   nhỏ chữ và XOAY DỌC (viết từ trên xuống) để chiếm ít bề ngang, nhường chỗ
   cho la bàn. Bắc/Nam vẫn nằm ngang bình thường vì đã ở trên/dưới sẵn rồi. */
@media (max-width: 600px) {
    /* La bàn co nhỏ lại theo màn hình -> khoảng trắng lề ảnh cũng nhỏ theo,
       giảm mức thụt vào tương ứng để không lấn vào vòng la bàn thật. */
    .lbcl-compass-wrap.lbcl-has-labels {
        --lbcl-label-inset-n: 20px;
        --lbcl-label-inset-s: 20px;
        --lbcl-label-inset-w: 40px;
        --lbcl-label-inset-e: 40px;
        --lbcl-label-shift-ns: -5px;
    }

.section-chien-luoc-sub .lbcl-compass-wrap.lbcl-has-labels {
 --lbcl-label-inset-n: 20px;
        --lbcl-label-inset-s: 20px !important;
        --lbcl-label-inset-w: 40px !important; 
        --lbcl-label-inset-e: 40px !important;
        --lbcl-label-shift-ns: -5px !important;
}


    .lbcl-compass-row { gap: 4px; }
    .lbcl-label-w, .lbcl-label-e {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        max-width: none;
        white-space: normal;
        font-size: 10.5px;
    }
    .lbcl-label-w { transform: rotate(180deg); } /* đọc từ dưới lên, như gáy sách bên trái */
    .lbcl-label-w .lbcl-label-en, .lbcl-label-e .lbcl-label-en { font-size: 9.5px; }
}
.lbcl-compass-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
.lbcl-compass-needle {
    transform-origin: 48.8% 48.9%;
    will-change: transform;
}
.lbcl-needle-ns { animation: lbcl-needle-ns-swing 4.8s ease-in-out infinite; }
.lbcl-needle-ew { animation: lbcl-needle-ew-swing 3.6s ease-in-out infinite; animation-delay: -1.1s; }

@keyframes lbcl-needle-ns-swing {
    0%   { transform: rotate(-2.4deg); }
    28%  { transform: rotate(1.6deg); }
    52%  { transform: rotate(-0.8deg); }
    76%  { transform: rotate(2deg); }
    100% { transform: rotate(-2.4deg); }
}
@keyframes lbcl-needle-ew-swing {
    0%   { transform: rotate(1.8deg); }
    30%  { transform: rotate(-2.2deg); }
    55%  { transform: rotate(0.6deg); }
    80%  { transform: rotate(-1.4deg); }
    100% { transform: rotate(1.8deg); }
}
@media (prefers-reduced-motion: reduce) {
    .lbcl-needle-ns, .lbcl-needle-ew { animation: none; }
}

/* ============================================================
   GALLERY TÁC PHẨM — [ux_gallery ... class="gallery-tac-pham"]
   Thay layout hàng 4 ảnh/hàng mặc định của Flatsome bằng bố cục mosaic
   lệch nhau theo layout/layout.jpg, dùng CSS Grid + object-fit:cover
   (Flatsome mặc định crop ảnh vuông 1:1 bằng trick padding-top, ở đây bỏ
   trick đó để ảnh lấp đầy đúng hình dạng từng ô, kể cả ô chữ nhật dẹt).

   LƯU Ý: chọn "div.row.gallery-tac-pham" (không phải ".gallery-tac-pham"
   trần) — vì ux_gallery.php của Flatsome có 1 lỗi có sẵn: nó lỡ gắn luôn
   class/attribute của shortcode (gallery-tac-pham, ids="...", style="none")
   lên từng thẻ <img> bên trong, không chỉ khối bọc ngoài. Chọn theo thẻ
   div sẽ chỉ khớp đúng khối bọc ngoài, không đụng nhầm vào các thẻ <img>.

   TỰ LẶP LẠI VÔ HẠN theo chu kỳ 12 ảnh — không giới hạn đúng 9 ảnh như bản
   trước (lúc đó ảnh thứ 10 trở đi không có vị trí, bị đẩy ra ngoài khung
   aspect-ratio cố định nên "biến mất"). Cách làm: mỗi ảnh chỉ khai báo CỘT
   (grid-column, theo nth-child mod 12) + SỐ HÀNG NÓ CHIẾM (grid-row: span),
   không khai báo cứng số thứ tự hàng — để CSS Grid tự "chảy" (auto-flow)
   ảnh tiếp theo xuống hàng còn trống kế tiếp. Nhờ vậy:
   - ảnh 1-9: y hệt bố cục mosaic gốc (1 ô to góc trái + 2 ô phải trên +
     hàng 3 ô đều + 2 ô trái dưới + 1 ô to phải dưới).
   - ảnh 10-12: tự động rơi xuống 1 hàng mới, xếp giống hệt ảnh 4-6 (hàng
     3 ô đều) — vì cùng khai báo cột giống nhau, Grid tự tìm hàng trống kế
     tiếp để đặt.
   - ảnh 13: quay lại giống ảnh 1 (1 ô to góc trái) ở hàng mới, và cứ thế
     lặp lại mãi cho dù có bao nhiêu ảnh.
   Chiều cao từng hàng dùng đơn vị "cqw" (% theo bề ngang của chính khối
   gallery, cần "container-type: inline-size") thay vì "fr" — vì "fr" cần
   biết trước tổng chiều cao khối để chia tỉ lệ, mà tổng chiều cao giờ co
   giãn theo số ảnh thực tế (không cố định qua aspect-ratio nữa), nên phải
   tính chiều cao mỗi hàng độc lập theo bề ngang thay vì theo phần còn lại. */
div.row.gallery-tac-pham {
    display: grid;
    grid-auto-flow: row dense;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 19.5cqw 19.5cqw 18cqw 23.5cqw 23.5cqw 18cqw; /* lặp lại tuần hoàn mỗi 6 giá trị. 2 số đầu (hàng của ô 1/2/3) chỉnh để ô 1 (span 2 hàng, rộng 7/12 cột) ra tỉ lệ cao:rộng ~70% (21cqw trước đó đo thực tế ra ~75.4%, nên hạ theo tỉ lệ 21*70/75.4≈19.5cqw). */
    container-type: inline-size;
    gap: 12px;
    width: 100%;
}
div.row.gallery-tac-pham .gallery-col {
    width: auto;
    max-width: none;
    flex: none;
    margin: 0;
}
div.row.gallery-tac-pham .col-inner,
div.row.gallery-tac-pham .gallery-col > .col-inner > a,
div.row.gallery-tac-pham .box,
div.row.gallery-tac-pham .box-image {
    height: 100%;
    width: 100%;
}
div.row.gallery-tac-pham .box-image {
    padding-top: 0 !important; /* bỏ trick vuông 1:1 mặc định của Flatsome */
    position: relative;
    overflow: hidden;
}
div.row.gallery-tac-pham .box-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
div.row.gallery-tac-pham .box-text { display: none; } /* không có caption trong ảnh mẫu */

/* Kiểu ô lặp lại mỗi 12 ảnh (xem giải thích auto-flow phía trên). */
div.row.gallery-tac-pham .gallery-col:nth-child(12n+1)  { grid-column: 1 / 8;  grid-row: span 2; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+2)  { grid-column: 8 / 13; grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+3)  { grid-column: 8 / 13; grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+4)  { grid-column: 1 / 5;  grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+5)  { grid-column: 5 / 9;  grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+6)  { grid-column: 9 / 13; grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+7)  { grid-column: 1 / 6;  grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+8)  { grid-column: 1 / 6;  grid-row: span 1; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+9)  { grid-column: 6 / 13; grid-row: span 2; }
div.row.gallery-tac-pham .gallery-col:nth-child(12n+10) { grid-column: 1 / 5;  grid-row: span 1; } /* giống ảnh 4 */
div.row.gallery-tac-pham .gallery-col:nth-child(12n+11) { grid-column: 5 / 9;  grid-row: span 1; } /* giống ảnh 5 */
div.row.gallery-tac-pham .gallery-col:nth-child(12n)    { grid-column: 9 / 13; grid-row: span 1; } /* giống ảnh 6 (12n+12) */
.gallery-tac-pham:after{
    display: none;
}
/* Mobile: mosaic lệch nhiều ô nhỏ sẽ quá bé để xem trên điện thoại —
   chuyển về lưới 2 cột đơn giản, mỗi ảnh tỉ lệ cao:rộng = 70% (10:7),
   không giữ vị trí lệch. !important vì .gallery-col:nth-child(...) ở trên
   có độ đặc hiệu ngang nhau, cần thắng toàn bộ chứ không chỉ đè vài dòng. */
@media (max-width: 640px) {
    div.row.gallery-tac-pham {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 8px;
    }
    div.row.gallery-tac-pham .gallery-col {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 10 / 7; /* cao = 70% rộng */
        height: auto;
    }
}


@media(max-width: 855px){
    .div-button-lbcl {
    margin-top: -20px;
    padding-bottom: 0px;
}
    .div-tac-pham .div-text{
        text-align: justify;
    }
    .div-text-chien-luoc {
    width: 100%;
}
    .title-home-small, .section-title-normal .section-title-main{
        font-size: 32px;
    }
    .section-dinh-vi .tabbed-content .nav-vertical {
    padding-top: 0;
    width: 100%;
}
}

/* ==========================================================================
   Section "Định Vị" (La bàn chiến lược) — bullet trượt bên phải, đồng bộ
   2 chiều với tab dọc bên trái. Logic JS tương ứng nằm ở js/custom.js.
   Panel vẫn do Flatsome toggle class "active" như cũ, ở đây chỉ ghi đè cách
   hiển thị panel không active để làm hiệu ứng trượt ngang (transform) thay
   vì ẩn hẳn (height:0) như mặc định.
   ========================================================================== */
.section-dinh-vi .tabbed-content .tab-panels {
    position: relative;
    overflow: hidden;
    transition: height .4s ease;
}

.section-dinh-vi .tabbed-content .tab-panels .panel {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 0px 30px !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}

.section-dinh-vi .tabbed-content .tab-panels .panel.active {
    transform: translateX(0);
}

.section-dinh-vi .tabbed-content .tab-panels .panel.chien-luoc-before {
    transform: translateX(-100%);
}

.section-dinh-vi .chien-luoc-bullets {
    display: flex;
    flex: 0 0 100%;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    /* .tabbed-content là flex row wrap: cột nav-vertical chiếm 50% bên trái,
       đẩy dải bullet sang đúng vị trí cột nội dung bên phải thay vì lọt
       xuống dưới cột tab bên trái. 30px khớp padding-left mặc định của
       .tab-panels (border-left) để bullet thẳng hàng với chữ nội dung. */
    margin-left: 50%;
    padding-left: 30px;
}
.section-dinh-vi .chien-luoc-bullets .chien-luoc-bullet {
      min-width: unset;
    width: 12px;
    height: 2px;
    padding: 0;
    border: none;
    border-radius: 1.5px;
    background-color: rgba(184, 168, 130, 0.35);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
    min-height: unset;
    margin-right: 0px;
}

.section-dinh-vi .chien-luoc-bullets .chien-luoc-bullet:hover {
    background-color: rgba(184, 168, 130, 0.6);
}

.section-dinh-vi .chien-luoc-bullets .chien-luoc-bullet.active {
    width: 12px;
    background-color: var(--fs-color-secondary);
}

@media (max-width: 855px) {
    .section-dinh-vi .tabbed-content .tab-panels .panel{
        padding: 0px !important;
    }
    .div-text-lang-kinh{
        text-align: justify;
    }
    .section-chien-luoc-con .accordion .accordion-item .accordion-title::before{
        font-size: 18px;
    }
    h3.sword-slash {
    font-size: 26px;
}
    .section-dinh-vi .chien-luoc-bullets {
        margin-left: 0;
    }


  .section-chien-luoc-con .accordion .accordion-item .accordion-title {
    padding-left: 0px;
    padding-right: 0px;
    font-size: 13px;
}
}

/* Cờ chuyển ngôn ngữ (shortcode [polylang_flags], wkn_polylang_flags_shortcode
   trong functions.php) — giờ đã dùng ảnh cờ riêng (64x48px, đặt ở
   wp-content/polylang/vi.png và en_US.png, xem ghi chú trong
   wkn_polylang_flags_shortcode) nên không còn bị Polylang tự in cứng
   width/height 16x11 vào thẻ <img> nữa (đó là hành vi chỉ áp dụng cho cờ
   mặc định built-in). Chỉ cần set width, height để "auto" cho khỏi méo ảnh
   (ảnh cờ riêng là 4:3, khác tỉ lệ 16:11 của cờ mặc định cũ). */
.lang-item img {
    width: 28px;
    height: auto;
}



