/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/*************** ADD CUSTOM CSS HERE.   ***************/
body {
	font-family: "Inter", sans-serif;
}
.section > .section-content > .row > .col {
	padding-bottom: 0;
}
p {
	margin-bottom: 10px;
}
p:last-child {
	margin-bottom: 0;
}
.banner h2,
.banner h3,
.banner p {
	margin: 0;
}

.row-icon > .col > .col-inner {
	box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    transition: all .2s;
}
.row-icon > .col > .col-inner:hover {
    border: 1px solid #3333334f;
}
.row-icon > .col > .col-inner:hover .text {
    color: #03045E;
}

/* --- Case Study Card Styles for ADMIN EDITOR (UX Builder Iframe) --- */

/* Đảm bảo element luôn có chiều cao tối thiểu và đường viền tạm để người dùng click */
.flatsome-ux-builder-iframe .case-study-card-wrapper {
    min-height: 100px;
    border: 1px dashed #eee; 
    border-radius: 12px;
}

/* Ép buộc hiển thị các cột, bo góc trong Iframe edit */
.flatsome-ux-builder-iframe .csc-img-col {
    overflow: hidden;
}

/* Placeholder cho ảnh khi trống bên trong Builder: Thêm khung xám nhạt */
.flatsome-ux-builder-iframe .csc-img-col.csc-img-left:empty {
    min-height: 150px;
    background-color: #eee;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%204L10.59%205.41L16.17%2011H4V13H16.17L10.59%2018.59L12%2020L20%2012L12%204Z%22%20fill%3D%22%23AAA%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: center;
}
.flatsome-ux-builder-iframe .csc-img-col.csc-img-left:empty:after {
    content: 'Tải ảnh Trước';
    display: block;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding-top: 100px;
}

.flatsome-ux-builder-iframe .csc-img-col.csc-img-right:empty {
    min-height: 150px;
    background-color: #eee;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12%204L10.59%205.41L16.17%2011H4V13H16.17L10.59%2018.59L12%2020L20%2012L12%204Z%22%20fill%3D%22%23AAA%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: center;
}
.flatsome-ux-builder-iframe .csc-img-col.csc-img-right:empty:after {
    content: 'Tải ảnh Sau';
    display: block;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding-top: 100px;
}

/* Target required for Flatsome UX backend element editor */
.flatsome-ux-builder-iframe .case-study-card-wrapper .case-study-content {
    min-height: 50px;
}

.header-top .nav-small.nav>li.html {
    color: var(--primary-color);
    font-size: 14px;
}
.social-header a {
    margin-left: 8px;
}
.header-main {
    border-bottom: 1px solid #03045E;
}
.hotline-box {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.hotline-box .hotline-box-img {
    margin-right: 10px;
}
.hotline-box .hotline-box-text span {
    font-weight: bold;
    display: block;
}
.hotline-box .hotline-box-text a {
    color: #C71A1A;
    display: block;
    font-weight: bold;
}
.header-main .form-flat input:not([type=submit]) {
    min-height: 40px;
}
.account-item > a:before {
    content: '';
    display: inline-block !important;
    width: 16px;
    height: 16px;
    background-image: url(images/user.png);
    margin-right: 6px;
    opacity: 1 !important;
}
.image-icon.header-cart-icon {
    display: none;
}
.header-cart-title:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(images/cart.png);
    margin-right: 6px;
}


.button.is-outline, input[type=button].is-outline, input[type=reset].is-outline, input[type=submit].is-outline {
    border: 1px solid;
} 
.header-main .header-button .button {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    background-color: transparent;
}
.header-main .header-button .button:hover {
    background-image: linear-gradient(to right, #005F72 , #00B4D8);
    font-size: 14px;
    color: #fff;
    box-shadow: none;
}
.header-main .header-button .button:after {
    content: '\f30b';
    font-family: FontAwesome;
}
.header:not(.transparent) .header-bottom-nav.nav > li > a {
    font-size: 16px;
    font-weight: normal;
}
.header:not(.transparent) .header-bottom-nav.nav > li.active > a {
    font-weight: bold;
}

h2.section-title-normal {
    font-size: 25px;
    font-weight: 600;
}
h2.section-title-normal {
    border-bottom: 1px solid #03045E;
}
/*.product-small.box {
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}*/
.product-small.box .product-title a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    margin-bottom: 10px;
}
.product-small.box:hover .product-title a {
    color: var(--primary-color);
}
.product-small.box ins span.amount,
.product-small.box span.amount {
    font-size: 18px;
    color: #ff0000;
}
.product-small.box  del {
    text-decoration: none;
}
.product-small.box del .amount {
    color: #333;
    font-size: 14px;
    text-decoration: line-through;
}

.col-testimonial .col-inner .is-border {
    transition: all .2s;
}
.col-testimonial .col-inner:hover .is-border {
    border-color: #3333334f !important;
}
.col-testimonial .icon-box-left img {
    border-radius: 100%;
}
.col-testimonial .icon-box-left h3 {
    font-size: 18px;
    margin-bottom: 6px;
}
.col-testimonial .col-inner:hover h3 {
    color: var(--primary-color);
}
.col-testimonial .icon-box .is-outline.primary {
    border-color: #666;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    min-height: 30px;
}
.col-testimonial .icon-box .is-outline.primary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: lch(67 42.06 224.82 / 0.1);
    box-shadow: none;
}
.col-testimonial .icon-box blockquote {
    font-size: 16px;
    color: #666666;
    padding-right: 0;
    padding-left: 10px;
}
.section-title b {
    height: 1px;
    background-color: #03045E;
    opacity: 1;
}
h2.section-title-center {
    font-size: 25px;
    font-weight: 600;
}

.stack p {
    margin-bottom: 0;
}

.col-mall .icon-box h3 {
    font-size: 18px;
    margin-bottom: 0px;
}
.col-mall .icon-box p {
    margin-bottom: 0;
}
.col-mall .col-inner:hover {
    background-color: #fff !important;
}
.col-mall .col-inner:hover .is-border {
    border-color: #3333334f !important;
}

.tabbed-content .nav.nav-pills {
    background-color: #E5E7EB;
    width: auto;
    margin: auto;
    border-radius: 99px;
    padding: 3px;
    margin-bottom: 30px;
}
.tabbed-content .nav.nav-pills > li > a {
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    min-width: 300px;
    display: block;
    text-align: center;
}
.tabbed-content .nav.nav-pills > li.active > a {
    background-image: linear-gradient(to right, #005F72 , #00B4D8);
    text-transform: uppercase;
}

.col.post-item .col-inner {
    padding: 10px;
    background-color: #fff;
}
.col.post-item .post-title {
    font-size: 26px;
    font-weight: bold;
    color: #03045E;
}
.col.post-item:hover .post-title {
    color: var(--primary-color);
}
.col.post-item .from_the_blog_excerpt {
    font-size: 16px;
    color: #333;
}
.col.post-item .cat-label {
    border: 1px solid #999;
    border-radius: 8px;
    color: #999;
    background-color: #F9F9F9;
    display: inline-block;
    font-size: 16px;
    text-transform: none;
    padding: 3px 10px;
    margin-bottom: 15px;
}
.col.post-item:hover .cat-label {
    border: 1px solid #00B4D8;
    color: #00B4D8;
    background-color: lch(67.19 42.06 224.82 / 0.10);

}

.btn-tags.button.is-outline.primary {
    background-color: #F9F9F9;
    border-color: #999;
    color: #999;
    min-height: 30px;
    line-height: 30px;
    line-height: 30px;
    font-size: 16px;
    font-weight: normal;
}
.btn-tags.button.is-outline.primary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: lch(67 42.06 224.82 / 0.1);
}
.button.success.btn-custom {
  background-color: #91ce3b;
  color: white; /* Thêm màu chữ để dễ nhìn */
  border: none;
  padding: 5px 30px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  
  /* Gọi hiệu ứng rung lan tỏa */
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(145, 206, 59, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(145, 206, 59, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(145, 206, 59, 0);
  }
}

.absolute-footer {
    padding: 6px 0;
    color: #005F72;
}

.footer-wrapper ul li {
    list-style: none;
    margin-left: 0;
}


.product-small .box-text {
    padding-bottom: 0;
}
.tomec-product-card .button {
    margin-bottom: 0;
    width: 100%;
    border-radius: 8px;
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    border: none;
}
.tomec-product-card:hover .button {
    background-color: #005F72;
}

/* ===== TOMEC Product Card ===== */
/*.tomec-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s, transform 0.3s;
    padding: 12px;
}
.tomec-product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}*/

/* Thumbnail */
.tomec-card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
}
.tomec-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}
.tomec-product-card:hover .tomec-card-thumb img {
    transform: scale(1.05);
}

/* Badge */
.tomec-badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Body */
.tomec-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tên */
.tomec-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}
.tomec-product-name a { color: inherit; text-decoration: none; font-size: 16px }
.product-small:hover .tomec-product-name a { color: var(--primary-color); }

/* Meta */
.tomec-product-meta {
    font-size: 10px;
    color: #999;
    margin: 0 0 10px;
}

/* Giá */
.tomec-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.tomec-price-sale {
    font-size: 18px;
    font-weight: 800;
    color: #ff0000;
}
.tomec-price-regular {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

/* Rating */
.tomec-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999999;
}
.tomec-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: #333;
}
.tomec-stars .icon-star { color: #f5a623; font-size: 14px; }
.tomec-stars .icon-star.filled { color: #f5a623; font-size: 13px; }
.tomec-stars .icon-star.empty  { color: #ddd;    font-size: 13px; }
.tomec-stars strong { color: #f5a623 }

/* Tag */
.tomec-review-tag {
    display: inline-block;
    border: 1.5px solid #0066cc;
    color: #0066cc;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

/* Nút */
.tomec-btn-buy {
    display: block;
    background: #00aaff;
    color: #fff !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    margin-top: auto;
}
.tomec-btn-buy:hover { background: #0088dd; }

.tomec-product-meta-2 {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: lch(67.19 42.06 224.82 / 0.05);
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
    width: fit-content;
}

.slider-nav-push .flickity-prev-next-button {
    background: transparent !important;
    box-shadow: none !important;
}

.button i, button i {
    top: 0;
}
.product-short-description {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: lch(67.19 42.06 224.82 / 0.05);
    font-size: 14px;
    padding: 10px 10px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.product-short-description ul {
    margin-bottom: 0;
}
.product-short-description ul li:last-child {
    margin-bottom: 0;
}
.product-info .price .amount, 
.product-info .price ins .amount {
    color: #ff0000;
    font-size: 25px;
}
.product-info del {
    text-decoration: none;
}
.product-info .price del .amount {
    font-size: 18px;
    color: #333;
    text-decoration: line-through;
}
.header-bottom .nav-spacing-xlarge>li {
    margin: 0 30px;
}

.product_list_widget .amount, 
.product_list_widget ins .amount {
    color: #ff0000;
    font-size: 15px;
}
.product_list_widget del {
    text-decoration: none;
}
.product_list_widget del .amount {
    font-size: 13px;
    color: #333;
    text-decoration: line-through;
}


/* ===== Archive Block ===== */
.tomec-featured-block { margin-bottom: 40px; }

.tomec-block-header { background: #001a4d; padding: 12px 20px; }
.tomec-block-title { margin: 0; font-size: 20px; font-weight: bold; letter-spacing: 1px; text-transform:uppercase; }
.tomec-block-title a { color: #fff !important; text-decoration: none; }
.tomec-block-title a::before {
    content: ''; display: inline-block;
    width: 4px; height: 18px; background: #00aaff;
    margin-right: 10px; vertical-align: middle; border-radius: 2px;
}

/* Tabs */
.tomec-cat-tabs {
    display: flex; border-bottom: 2px solid #e8e8e8;
    margin-bottom: 24px; flex-wrap: wrap;
}
.tomec-cat-tab {
    background: none; border: none; padding: 2px 20px;
    font-size: 14px; font-weight: 500; color: #555;
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s;
    text-transform: none;
}
.tomec-cat-tab:hover { color: var(--primary-color); background:rgba(0, 102, 204, 0.05); }
.tomec-cat-tab.active { color: var(--primary-color); background:rgba(0, 102, 204, 0.05); border-bottom-color: var(--primary-color); font-weight: 700; }

/* Grid */
.tomec-product-grid { min-height: 200px; position: relative; transition: opacity 0.2s; }
.tomec-product-grid.tomec-loading { opacity: 0.4; pointer-events: none; }
.tomec-spinner {
    display: none; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 10;
}
.tomec-loading .tomec-spinner { display: block; }
.tomec-spinner span {
    display: block; width: 36px; height: 36px;
    border: 3px solid #e0e0e0; border-top-color: #00aaff;
    border-radius: 50%; animation: tomecSpin 0.7s linear infinite;
}
@keyframes tomecSpin { to { transform: rotate(360deg); } }

/* Footer */
.tomec-block-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0 10px; border-top: 1px solid #eee;
    margin-top: 16px; flex-wrap: wrap; gap: 10px;
}
.tomec-footer-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tomec-count-text { font-size: 13px; color: #888; white-space: nowrap; }
.tomec-attr-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tomec-attr-tag {
    background: #fff; border: 1.5px solid #ccc; color: #555;
    font-size: 12px; font-weight: 600; padding: 0px 12px;
    border-radius: 20px; cursor: pointer; transition: all 0.2s;
    margin-bottom: 0;
    text-transform: none;
}
.tomec-attr-tag:hover { border-color: #00aaff; color: #00aaff; }
.tomec-attr-tag.active { background: #00aaff; border-color: #00aaff; color: #fff; }
.tomec-view-all {
    font-size: 13px; font-weight: 700;
    color: #001a4d !important; text-decoration: none !important; white-space: nowrap;
}
.tomec-view-all:hover { color: #00aaff !important; }

/* Pagination */
.tomec-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.tomec-page-btn {
    width: 36px; height: 36px; border: 1.5px solid #ddd; background: #fff;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    color: #333; cursor: pointer; transition: all 0.2s;
    padding: 0;
}
.tomec-page-btn:hover { border-color: #00aaff; color: #00aaff; }
.tomec-page-btn.active { background: #00aaff; border-color: #00aaff; color: #fff; }
.tomec-no-product { padding: 40px; text-align: center; color: #999; font-size: 14px; }

/* Ẩn default WooCommerce */
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-pagination { display: none !important; }

/* ===== Product Card ===== */
.products .product { display: flex; flex-direction: column; }

.tomec-product-card {
    background: #fff; padding: 15px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow 0.3s, transform 0.3s;
}
.tomec-product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    /*transform: translateY(-4px);*/
}

/* Thumbnail */

.tomec-card-thumb-link {
    display: block;
    overflow: hidden;
}
.tomec-card-thumb-link img {
    width: 100%; aspect-ratio: 1 / 1;
    object-fit: contain; 
    transition: transform 0.4s; display: block;
}
.tomec-product-card:hover .tomec-card-thumb-link img { transform: scale(1.05); }

/* Body */
.tomec-card-body {
    padding: 15px 0px 0px;
    display: flex; flex-direction: column; flex: 1;
}
.tomec-card-body .button {
    margin: 0;
    width: 100%;
    border-radius: 8px;
}
.tomec-product-name {
    font-size: 15px; font-weight: 700; color: #1a1a1a;
    margin: 0 0 4px; line-height: 1.3;
}
.tomec-product-name a { color: inherit; text-decoration: none; font-size: 16px; }
.tomec-product-card:hover .tomec-product-name a { color: var(--primary-color); }
.tomec-product-meta { font-size: 10px; color: #999; margin: 0 0 10px; }

/* Giá */
.tomec-price-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tomec-price-sale { font-size: 18px; font-weight: 800; color: #ff0000; }
.tomec-price-regular { font-size: 13px; color: #aaa; text-decoration: line-through; }

/* Rating */
.tomec-rating-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; font-size: 12px; color: #999;
}
.tomec-stars { display: flex; align-items: center; gap: 3px; font-weight: 600; }
.tomec-stars .icon-star.filled { color: #f5a623; font-size: 13px; }
.tomec-stars strong { color: #f5a623; }

/* Meta 2 */
.tomec-product-meta-2 {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.05);
    font-size: 14px; padding: 2px 8px;
    border-radius: 8px; display: inline-block;
    width: fit-content; margin-bottom: 10px;
}

/* Add to Cart */
.tomec-atc-wrap { margin-top: auto; padding-top: 12px; }
/*.tomec-atc-wrap .button {
    display: block !important; width: 100% !important;
    background: #00aaff !important; color: #fff !important;
    text-align: center !important; font-size: 14px !important;
    font-weight: 700 !important; 
    border-radius: 8px !important; text-decoration: none !important;
    border: none !important; box-shadow: none !important;
    transition: background 0.2s !important; letter-spacing: 0.5px !important;
}
.tomec-atc-wrap .button:hover { background: #0088dd !important; color: #fff !important; }
*/
.shop-page-title.category-page-title.page-title {
    display: none;
}
.tomec-product-card .badge-container {
    left: 42px !important;
    top: 25px;
    margin: 0;
}
.tomec-product-card .badge {
    height: auto;
}
.tomec-product-card .badge-inner.on-sale {
    background-color: #F30E25;
    font-weight: normal;
    font-size: 16px;
    border-radius: 0;
    padding: 5px 5px;
}

/* Container bao bọc các tags */
.custom-cpost-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa các thẻ tag */
    margin-bottom: 20px; /* Khoảng cách với nội dung bên dưới */
}

/* Style cho từng tag riêng biệt */
.custom-cpost-tags-wrapper .cpost-tag-item {
    color: #a0a0a0; /* Màu chữ xám */
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #dbdbdb; /* Viền xám nhạt cho TỪNG tag */
    border-radius: 99px; /* Bo góc tròn cho TỪNG tag */
    padding: 4px 12px; /* Khoảng cách chữ tới viền */
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap; /* Giữ cho chữ trong 1 tag không bị rớt dòng */
}

/* Hiệu ứng khi di chuột vào tag */
.custom-cpost-tags-wrapper .cpost-tag-item.has-link:hover {
    color: #333333; /* Đổi màu chữ đậm hơn khi hover */
    border-color: #999999; /* Đổi màu viền đậm hơn khi hover (tùy chọn) */
}

.entry-category {
    display: none;
}

.custom-yoast-breadcrumb-single {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ============ FILTER TABS - PILL STYLE ============ */
.custom-blog-filter-wrapper {
    margin: 30px 0 40px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.custom-blog-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ececec;
    border-radius: 999px;
    padding: 6px;
    list-style: none;
    margin: 0 auto;
    max-width: 1200px;
    min-width: max-content;
    gap: 0;
}

.custom-blog-filter li {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    text-align: center;
}

.custom-blog-filter .filter-item {
    display: block;
    width: 100%;
    padding: 9px 16px;
    color: #8a8a8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 999px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.custom-blog-filter .filter-item:hover {
    color: #0d5d6e;
}

.custom-blog-filter .filter-item.active {
    background: linear-gradient(90deg, #0d5d6e 0%, #2db8d4 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 93, 110, 0.25);
}

.custom-blog-filter .filter-item.active:hover {
    color: #ffffff;
}

.taki-ajax-pagination {
    display: block !important;
    width: 100%;
    clear: both;
    text-align: center;
    margin: 40px 0 20px;
    padding: 20px 0;
}
.taki-ajax-pagination .taki-page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.taki-ajax-pagination .taki-page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}
.taki-ajax-pagination .taki-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}
.taki-ajax-pagination .taki-page-link:hover {
    background: #00b4d8;
    color: #fff;
    border-color: #00b4d8;
}
.taki-ajax-pagination .taki-current {
    background: #00b4d8 !important;
    color: #fff !important;
    border-color: #00b4d8 !important;
    cursor: default;
}
.taki-ajax-pagination .taki-current:hover {
    background: #00b4d8 !important;
    color: #fff !important;
}
.taki-ajax-pagination .taki-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999;
}

/* Responsive — mobile */
@media (max-width: 768px) {
    .custom-blog-filter {
        padding: 4px;
    }
    .custom-blog-filter .filter-item {
        padding: 9px 15px;
        font-size: 13px;
    }
}
/* Áp dụng cho giao diện dưới 849px (Tablet & Mobile) */
@media (max-width: 849px) {
    .stack-custom.stack {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Ép tất cả nằm trên 1 hàng */
        overflow-x: auto !important;   /* Cho phép cuộn ngang */
        -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
        gap: 15px; /* Khoảng cách giữa các thẻ p và button */
        padding-bottom: 10px; /* Tránh sát thanh cuộn */
    }

    /* Xử lý các thẻ con trực tiếp (p và button) */
    .stack-custom.stack > div,
    .stack-custom.stack > a,
    .stack-custom.stack > a.button {
        flex: 0 0 auto !important; /* Rất quan trọng: Không cho phép co lại (shrink) */
        margin-bottom: 0 !important; /* Loại bỏ margin mặc định của Flatsome */
        white-space: nowrap !important; /* Giữ chữ trên 1 hàng, không cho xuống dòng */
    }

    /* Ẩn thanh cuộn để nhìn gọn gàng hơn */
    .stack-custom.stack::-webkit-scrollbar {
        display: none;
    }
    .stack-custom.stack {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}
@media only screen and (max-width: 768px) {
    body .case-study-card-wrapper .csc-img-col {
        min-height: 176px;
        padding: 6px;
        background: #fff;
    }
}

@media only screen and (max-width: 480px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .tabbed-content .nav.nav-pills > li > a {
        min-width: 100%;
    }
    .section-title b {
        display: none;
    }
    .section-title-center span {
        margin: auto;
    }
    .case-study-card-wrapper .case-study-footer {
        padding: 5px 10px !important;
    }

    body .case-study-card-wrapper .csc-img-col {
        min-height: 150px;
    }
    /* tab mobile */
.tabbed-content .tab{flex-shrink: 0!important; overflow-y: hidden!important;-webkit-overflow-scrolling: touch!important;}
.tabbed-content .nav{ 

    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-direction: unset;
    -webkit-flex-flow: unset;
    flex-flow: unset;
    -webkit-justify-content: unset;
    justify-content: unset;
    -webkit-align-items: unset;
    align-items: unset;

}
::-webkit-scrollbar{height:3px;-webkit-overflow-scrolling: touch;}
::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);-webkit-overflow-scrolling: touch;}
::-webkit-scrollbar-thumb{border:4px solid #ba6900}
}
@media only screen and (max-width: 375px) {
    body .case-study-card-wrapper .csc-img-col {
       min-height: 110px;
    }
}
/* */
.entry-content.single-page {
    padding-top: 0;
}
body .breadcrumbs {
    color: hsla(0, 0%, 40%, .7);
}