/* ==========================================================================
   CERTIFICATES.CSS - GIAO DIỆN TRANG CHỨNG NHẬN CHẤT LƯỢNG
   Dự án: Huy Cường Heavy Lift (huycuongheavylift.com)
   Chuẩn mực thiết kế: Tái lập 100% tỷ lệ bố cục THACO Industries (thacoindustries.com)
   Nhận diện thương hiệu: Xanh lá đậm (#064A26, #0D7C3E) & Vàng kim (#F0B429, #FFD700)
   Điểm nhấn công nghiệp THACO: Xanh dương (#0f6eb8, #07539d) & Nền trung tính (#F8FAF9)
   Tiêu chuẩn kỹ thuật: WCAG AAA (Contrast ratio >= 4.5:1), Responsive 375px - 4K
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HỆ THỐNG BIẾN THIẾT KẾ CỤC BỘ (DESIGN TOKENS - CHUẨN HÓA VỚI --HC-*)
   -------------------------------------------------------------------------- */
:root {
  /* Bảng màu thương hiệu Huy Cường Heavy Lift */
  --cert-primary:         var(--hc-primary-dark, #064A26);
  --cert-primary-dark:    var(--hc-primary-deeper, #032D17);
  --cert-primary-mid:     var(--hc-primary, #0D7C3E);
  --cert-primary-light:   var(--hc-primary-light, #1A9958);
  --cert-primary-subtle:  var(--hc-primary-surface, #E8F5E9);
  
  /* Điểm nhấn vàng hoàng kim */
  --cert-gold:            var(--hc-accent, #F0B429);
  --cert-gold-light:      var(--hc-accent-light, #FFD700);
  --cert-gold-glow:       var(--hc-accent-glow, rgba(240, 180, 41, 0.4));
  
  /* Điểm nhấn xanh THACO Industries */
  --cert-thaco-blue:      var(--hc-thaco-blue, #0f6eb8);
  --cert-thaco-blue-dark: var(--hc-thaco-blue-dark, #07539d);
  
  /* Màu văn bản & Nền */
  --cert-text-main:       var(--hc-text-primary, #1A1A2E);
  --cert-text-muted:      var(--hc-text-muted, #6B7280);
  --cert-text-white:      var(--hc-text-inverse, #FFFFFF);
  --cert-bg-page:         var(--hc-bg-page, #F8FAF9);
  --cert-bg-card:         var(--hc-bg-card, #FFFFFF);
  
  /* Đường viền & Bóng đổ */
  --cert-border-light:    var(--hc-border-subtle, #E5E7EB);
  --cert-border-thaco:    var(--hc-border-subtle, #E5E7EB);
  --cert-shadow-sm:       var(--hc-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
  --cert-shadow-md:       var(--hc-shadow-md, 0 6px 18px rgba(7, 48, 27, 0.08));
  --cert-shadow-lg:       var(--hc-shadow-lg, 0 16px 36px rgba(7, 48, 27, 0.14));
  
  /* Bán kính bo góc chuẩn hệ thống */
  --cert-radius-sm:       var(--hc-radius-sm, 8px);
  --cert-radius-md:       var(--hc-radius-md, 8px);
  --cert-radius-lg:       var(--hc-radius-lg, 8px);
  
  /* Hiệu ứng chuyển động & Typography */
  --cert-transition:      var(--hc-transition-normal, all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1));
  --font-family-base:     var(--hc-font-family);
  --font-family-heading:  var(--hc-font-family-heading);
}

.hc-certificates-block,
.hc-certificates-block * {
  font-family: 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.hc-certificates-block {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tự động bứt phá 100vw nếu block nằm trong .row hoặc container giới hạn của theme */
.page-wrapper .col-inner > .hc-certificates-block,
.row > .col > .col-inner > .hc-certificates-block {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* --------------------------------------------------------------------------
   1.1. THANH BREADCRUMBS ĐIỀU HƯỚNG TINH GỌN (.breadcrumb_section)
   -------------------------------------------------------------------------- */
.breadcrumb_section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border-bottom: 1px solid var(--cert-border-light);
  padding: 12px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.breadcrumb_section .grid-container {
  width: 100% !important;
  max-width: var(--hc-container-max, 1400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  padding-right: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  box-sizing: border-box !important;
}

.breadcrumb_section .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--cert-text-muted);
}

.breadcrumb_section .breadcrumb a {
  color: var(--cert-text-muted, #6B7280);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb_section .breadcrumb a:hover {
  color: var(--cert-primary);
  font-weight: 600;
}

.breadcrumb_section .breadcrumb .sep {
  color: #9CA3AF;
  font-size: 12px;
}

.breadcrumb_section .breadcrumb .current {
  color: var(--cert-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. BỐ CỤC CHUNG KHU VỰC TRANG CHỨNG NHẬN (.chung_nhan_page)
   -------------------------------------------------------------------------- */
.chung_nhan_page {
  width: 100%;
  max-width: 100%;
  background-color: var(--cert-bg-page);
  padding-top: 36px;
  padding-bottom: 100px;
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
}

.chung_nhan_page.css_bg {
  background-image: radial-gradient(circle at 10% 20%, rgba(7, 48, 27, 0.02) 0%, transparent 60%),
                    radial-gradient(circle at 90% 80%, rgba(223, 192, 112, 0.03) 0%, transparent 50%);
}

.chung_nhan_page .grid-container {
  width: 100% !important;
  max-width: var(--hc-container-max, 1400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  padding-right: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  box-sizing: border-box !important;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   3. CỘT TRÁI: SIDEBAR DANH MỤC (.sidebar & .cat_member)
   -------------------------------------------------------------------------- */
.chung_nhan_page .sidebar,
.grid-25.tablet-grid-30.sidebar {
  width: 25%;
  flex: 0 0 25%;
  box-sizing: border-box;
  padding-right: 32px;
  position: sticky;
  top: 90px;
  z-index: 20;
}

.cat_member {
  background: var(--cert-bg-card);
  border: 1px solid var(--cert-border-thaco);
  border-radius: var(--cert-radius-md);
  padding: 0 0 20px 0;
  box-shadow: var(--cert-shadow-sm);
  overflow: hidden !important;
}

/* Ẩn hoàn toàn header và menu khi mở Lightbox chứng nhận */
html.cert-lb-open header.site-header,
html.cert-lb-open header#masthead,
html.cert-lb-open #masthead.site-header,
html.cert-lb-open .header-wrapper,
body.cert-lb-open header.site-header,
body.cert-lb-open header#masthead,
body.cert-lb-open #masthead.site-header,
body.cert-lb-open .header-wrapper {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  transition: var(--cert-transition);
}

.cat_member:hover {
  box-shadow: var(--cert-shadow-md);
}

/* Nút đóng trên thiết bị di động (ẩn mặc định trên desktop) */
.cat_member .close_list {
  display: none;
}

/* Tiêu đề danh mục chuẩn THACO Industries với nhận diện Huy Cường */
.cat_member h2.heading_title,
.cat_member .heading_title.text_up {
  font-family: 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  height: 60px;
  padding: 0 24px;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--cert-primary) 0%, var(--cert-primary-mid) 100%);
  display: flex;
  align-items: center;
  color: var(--cert-text-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--cert-gold);
  box-sizing: border-box;
}

/* Danh sách bộ lọc danh mục */
.list_cat_member,
ul.list_cat_member {
  list-style: none;
  padding: 0 14px;
  margin: 0;
  box-sizing: border-box;
}

/* Mỗi hàng danh mục */
.list_cat_member li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cert-text-main, #1A1A2E);
  display: flex;
  align-items: center;
  text-transform: uppercase;
  cursor: pointer;
  padding: 11px 14px;
  margin: 0 0 4px 0;
  border-radius: var(--cert-radius-sm);
  transition: var(--cert-transition);
  line-height: 1.35;
  box-sizing: border-box;
  position: relative;
  user-select: none;
}

/* Ô vuông checkmark tick xanh/trắng chuẩn mực THACO Industries */
.list_cat_member li span {
  border: 1.5px solid var(--cert-border-light, #E5E7EB);
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 8px;
  margin-right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  transition: all 0.22s ease-in-out;
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* SVG icon dấu tick trắng */
.list_cat_member li svg {
  width: 10px;
  height: 8px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Trạng thái Hover danh mục */
.list_cat_member li:hover {
  color: var(--cert-primary);
  background-color: var(--cert-primary-subtle);
}

.list_cat_member li:hover span {
  border-color: var(--cert-primary);
}

/* Trạng thái Active danh mục được chọn */
.list_cat_member li.active {
  font-weight: 700;
  color: var(--cert-primary);
  background-color: rgba(223, 192, 112, 0.14);
  border-left: 3.5px solid var(--cert-gold);
  padding-left: 10.5px;
}

.list_cat_member li.active span {
  background: var(--cert-primary);
  border-color: var(--cert-primary);
}

.list_cat_member li.active svg,
.list_cat_member li:hover svg {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   4. CỘT PHẢI HOẶC TOÀN CHIỀU RỘNG: TIÊU ĐỀ & LƯỚI CHỨNG NHẬN CHẤT LƯỢNG
   -------------------------------------------------------------------------- */
.chung_nhan_page .grid-75,
.grid-75.tablet-grid-70 {
  width: 75%;
  flex: 0 0 75%;
  box-sizing: border-box;
  padding-left: 10px;
  min-height: 720px;
}

.chung_nhan_page .grid-100.full-width-certificates {
  width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  padding-top:80px;
}

.chung_nhan_page .full-width-certificates .heading_h2 {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 14px;
}

.chung_nhan_page .full-width-certificates .heading_h2::after {
  left: 50%;
  transform: translateX(-50%);
}

#load_cn_tax {
  min-height: 560px;
}

/* Chuyển danh mục mượt: giữ chiều cao -> mờ lưới cũ -> co/giãn -> hiện lưới mới */
#load_cn_tax.is-resizing {
  transition: height 0.36s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#load_cn_tax > .wrap_cncl {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#load_cn_tax.is-switching > .wrap_cncl {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* Thẻ mới xuất hiện lần lượt (chỉ dùng fill backwards để không đè hiệu ứng hover) */
#load_cn_tax .wrap_cncl .item {
  animation: certItemIn 0.42s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes certItemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Danh mục sidebar: focus bàn phím */
.list_cat_member li:focus-visible {
  outline: 2px solid var(--cert-gold);
  outline-offset: 2px;
}

/* Tiêu đề chính trang: CHỨNG NHẬN CHẤT LƯỢNG */
.chung_nhan_page .heading_h2,
.heading_h2.text_blue {
  font-family: 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 28px;
  font-weight: 800;
  color: var(--cert-primary);
  text-transform: uppercase;
  margin: 0 0 32px 0;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--cert-border-light);
}

/* Thanh gạch dưới trang trí màu vàng kim hoàng gia */
.chung_nhan_page .heading_h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 3.5px;
  background-color: var(--cert-gold);
  border-radius: 8px;
}

/* Lưới thẻ chứng nhận (.wrap_cncl) */
.wrap_cncl {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  box-sizing: border-box;
}

/* Thẻ đơn vị chứng nhận (.item) */
.wrap_cncl .item {
  width: calc(calc(100% / 3) - 30px);
  margin: 0 15px 36px;
  position: relative;
  background: var(--cert-bg-card);
  border: 1px solid var(--cert-border-light);
  border-radius: var(--cert-radius-md);
  padding: 16px 16px 20px;
  box-shadow: var(--cert-shadow-sm);
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.25s ease;
}

/* Hỗ trợ 4 cột trên Desktop */
.wrap_cncl.columns-4 .item {
  width: calc(25% - 30px);
}

.wrap_cncl.columns-3 .item {
  width: calc(calc(100% / 3) - 30px);
}

/* Hiệu ứng nhấc bổng thẻ khi hover */
.wrap_cncl .item:hover {
  transform: translateY(-8px);
  box-shadow: var(--cert-shadow-lg);
  border-color: var(--cert-gold);
}

/* Thẻ link phủ toàn bộ item mở Lightbox modal (.style_center.max) */
.style_center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.max {
  width: 100%;
  height: 100%;
  z-index: 9;
}

.style_center.max {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 9;
  border-radius: var(--cert-radius-md);
}

/* Khung hình ảnh scan chứng nhận (.box_img) */
.wrap_cncl .item .box_img {
  position: relative;
  width: 100%;
  padding-top: 141.4%; /* Tỉ lệ chuẩn scan khổ dọc A4 (1 : 1.414) */
  background: #F8FAF9;
  border-radius: var(--cert-radius-sm);
  overflow: hidden !important;
}

/* Ẩn hoàn toàn header và menu khi mở Lightbox chứng nhận */
html.cert-lb-open header.site-header,
html.cert-lb-open header#masthead,
html.cert-lb-open #masthead.site-header,
html.cert-lb-open .header-wrapper,
body.cert-lb-open header.site-header,
body.cert-lb-open header#masthead,
body.cert-lb-open #masthead.site-header,
body.cert-lb-open .header-wrapper {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  border: 1px solid #E5E7EB;
  margin-bottom: 14px;
  box-sizing: border-box;
}

/* Khung skeleton giữ chỗ trong lúc ảnh đang tải */
.wrap_cncl .item .box_img:not(.is-loaded) {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 37%, #F3F4F6 63%);
  background-size: 400% 100%;
  animation: certShimmer 1.4s ease infinite;
}

.wrap_cncl .item .box_img:not(.is-loaded) img {
  opacity: 0;
}

@keyframes certShimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

/* Ảnh scan chứng chỉ */
.wrap_cncl .item img,
.wrap_cncl .item .box_img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  display: block;
  background-color: #FFFFFF;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Phóng to ảnh scan nhẹ khi hover thẻ */
.wrap_cncl .item:hover .box_img img {
  transform: scale(1.035);
}

/* Hiệu ứng viền nổi bật khung ảnh khi hover thẻ (loại bỏ hoàn toàn màn xanh che ảnh) */
.wrap_cncl .item .box_img {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wrap_cncl .item:hover .box_img {
  border-color: rgba(223, 192, 112, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Tiêu đề chứng nhận (.item h3) */
.wrap_cncl .item h3 {
  color: var(--cert-text-main);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 12px 0;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Trường hợp ảnh chứng nhận bỏ trống tiêu đề */
.wrap_cncl .item h3:empty {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ẩn hoàn toàn header và menu khi mở Lightbox chứng nhận */
html.cert-lb-open header.site-header,
html.cert-lb-open header#masthead,
html.cert-lb-open #masthead.site-header,
html.cert-lb-open .header-wrapper,
body.cert-lb-open header.site-header,
body.cert-lb-open header#masthead,
body.cert-lb-open #masthead.site-header,
body.cert-lb-open .header-wrapper {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  text-overflow: ellipsis;
  transition: color 0.25s ease, opacity 0.25s ease;
  box-sizing: border-box;
}

/* Trạng thái hover tiêu đề chứng nhận */
.wrap_cncl .item:hover h3 {
  color: var(--cert-primary-mid);
  opacity: 1;
}

/* Vùng nội dung mô tả bổ sung (.content) */
.wrap_cncl .item .content {
  font-size: 13.5px;
  color: var(--cert-text-muted);
  box-sizing: border-box;
}

/* Thông báo không có chứng nhận */
.wrap_cncl.no_results {
  width: 100%;
  min-height: 320px;
  margin: 0;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  background: #FFFFFF;
  border-radius: var(--cert-radius-md);
  border: 1px dashed var(--cert-border-light);
  box-sizing: border-box;
}

.wrap_cncl.no_results p {
  font-size: 16px;
  color: var(--cert-text-muted);
  margin: 0;
}

.wrap_cncl.no_results .btn_show_all {
  padding: 10px 22px;
  margin: 0;
  border: 1px solid var(--cert-primary);
  border-radius: var(--cert-radius-sm);
  background: var(--cert-primary);
  color: var(--cert-text-white);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--cert-transition);
}

.wrap_cncl.no_results .btn_show_all:hover {
  background: var(--cert-primary-mid);
  border-color: var(--cert-gold);
}

/* --------------------------------------------------------------------------
   4.1. HIỆU ỨNG HOVER & LOADING CỦA LƯỚI CHỨNG NHẬN
   -------------------------------------------------------------------------- */

/* Bàn phím (Tab vào thẻ) có cùng hiệu ứng như hover */
.wrap_cncl .item:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--cert-shadow-lg);
  border-color: var(--cert-gold);
}

.wrap_cncl .item:focus-within h3 {
  color: var(--cert-primary-mid);
}

.wrap_cncl .item:focus-within .box_img img {
  transform: scale(1.035);
}

.wrap_cncl .item a.max:focus-visible {
  outline: 2px solid var(--cert-gold);
  outline-offset: 3px;
}

/* Vạch vàng chạy dưới chân thẻ khi hover */
.wrap_cncl .item::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--cert-gold) 0%, var(--cert-gold-light) 50%, var(--cert-gold) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}

.wrap_cncl .item:hover::after,
.wrap_cncl .item:focus-within::after {
  transform: scaleX(1);
}

/* Vệt sáng lướt qua ảnh scan khi hover */
.wrap_cncl .item .box_img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-12deg);
  pointer-events: none;
}

.wrap_cncl .item:hover .box_img.is-loaded::after,
.wrap_cncl .item:focus-within .box_img.is-loaded::after {
  transform: translateX(260%) skewX(-12deg);
  transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Nhãn "Xem chi tiết" trượt lên ở chân ảnh (không che nội dung chứng nhận) */
.wrap_cncl .item .cert-zoom-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(7, 48, 27, 0.92);
  color: var(--cert-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(7, 48, 27, 0.28);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}

.wrap_cncl .item .cert-zoom-badge svg {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  fill: currentColor;
  flex: 0 0 auto;
}

.wrap_cncl .item:hover .box_img.is-loaded .cert-zoom-badge,
.wrap_cncl .item:focus-within .box_img.is-loaded .cert-zoom-badge {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Thiết bị cảm ứng không có hover: hiện nhãn mờ cố định để khách biết bấm được */
@media (hover: none) {
  .wrap_cncl .item .box_img.is-loaded .cert-zoom-badge {
    opacity: 0.9;
    transform: translate(-50%, 0);
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
    gap: 0;
    justify-content: center;
  }
}

/* Ảnh scan hiện dần khi tải xong (mờ + phóng nhẹ -> rõ) */
.wrap_cncl .item .box_img.is-loaded img {
  animation: certImgReveal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

@keyframes certImgReveal {
  from {
    opacity: 0;
    filter: blur(6px);
  }
}

/* Danh mục sidebar: chữ trượt nhẹ sang phải khi hover */
.list_cat_member li:not(.active):hover {
  padding-left: 19px;
}

.list_cat_member li:active {
  transform: scale(0.985);
}

/* Thẻ khung xương (skeleton) hiển thị trước khi certificates.js render */
.wrap_cncl .item.is-skeleton {
  cursor: default;
  box-shadow: none;
  animation: none;
}

.wrap_cncl .item.is-skeleton:hover {
  transform: none;
  border-color: var(--cert-border-light);
}

.wrap_cncl .item.is-skeleton::after {
  display: none;
}

.wrap_cncl .item.is-skeleton .sk-line {
  display: block;
  height: 13px;
  margin-bottom: 9px;
  border-radius: 8px;
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 37%, #F3F4F6 63%);
  background-size: 400% 100%;
  animation: certShimmer 1.4s ease infinite;
}

.wrap_cncl .item.is-skeleton .sk-line.short {
  width: 62%;
  margin-bottom: 22px;
}

/* Thanh tiến trình vàng chạy trên đầu lưới khi đang chuyển danh mục */
#load_cn_tax {
  position: relative;
}

#load_cn_tax::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0%, var(--cert-gold) 40%, var(--cert-primary-light) 60%, transparent 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#load_cn_tax.is-switching::before {
  opacity: 1;
  animation: certProgress 0.9s ease-in-out infinite;
}

@keyframes certProgress {
  from { background-position: -100% 0; }
  to { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  #load_cn_tax.is-resizing,
  #load_cn_tax > .wrap_cncl,
  .wrap_cncl .item::after,
  .wrap_cncl .item .cert-zoom-badge {
    transition: none;
  }

  #load_cn_tax .wrap_cncl .item,
  .wrap_cncl .item .box_img:not(.is-loaded),
  .wrap_cncl .item .box_img.is-loaded img,
  .wrap_cncl .item.is-skeleton .sk-line,
  #load_cn_tax.is-switching::before {
    animation: none;
  }

  .wrap_cncl .item .box_img::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. TRÌNH XEM ẢNH LIGHTBOX TOÀN MÀN HÌNH (.cert-lightbox-modal)
   Dùng tiền tố riêng cert-lb__ để không trùng lớp .lightbox-* của Flatsome
   (Flatsome tô nền trắng + giới hạn 875px cho .lightbox-content)
   -------------------------------------------------------------------------- */
.cert-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 96px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  box-sizing: border-box;
}

.cert-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s;
}

.cert-lightbox-modal *,
.cert-lightbox-modal *::before,
.cert-lightbox-modal *::after {
  box-sizing: border-box;
}

.cert-lb__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 24, 14, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.cert-lb__dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-lightbox-modal.active .cert-lb__dialog {
  transform: none;
}

/* Khung giấy chứng nhận: viền trắng mỏng như bản in, không viền vàng chồng lớp */
.cert-lb__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 320px;
  padding: 8px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  line-height: 0;
}

.cert-lb__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 192px), 860px);
  max-height: calc(100vh - 220px);
  margin: 0;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.22s ease;
}

/* Trạng thái đang tải ảnh lớn: ẩn ảnh cũ + vòng xoay */
.cert-lb__frame.is-loading .cert-lb__img {
  opacity: 0;
}

/* Vòng tải 2 màu thương hiệu (xanh + vàng) quay ngược chiều nhau */
.cert-lb__frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -34px 0 0 -22px;
  border: 3px solid transparent;
  border-top-color: var(--cert-primary);
  border-right-color: var(--cert-primary);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(7, 48, 27, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cert-lb__frame::before {
  content: "Đang tải chứng nhận...";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: 26px;
  color: var(--cert-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cert-lb__frame.is-loading::after {
  opacity: 1;
  animation: certLbSpin 0.9s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

.cert-lb__frame.is-loading::before {
  opacity: 1;
  animation: certLbPulse 1.2s ease-in-out infinite;
}

@keyframes certLbPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Ảnh mới vào: trượt theo hướng bấm / phóng nhẹ khi vừa mở */
.cert-lb__frame.is-in .cert-lb__img {
  animation: certLbIn 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-lb__frame.is-in-next .cert-lb__img {
  animation: certLbInNext 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-lb__frame.is-in-prev .cert-lb__img {
  animation: certLbInPrev 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes certLbIn {
  from { opacity: 0; transform: scale(0.97); }
}

@keyframes certLbInNext {
  from { opacity: 0; transform: translateX(36px); }
}

@keyframes certLbInPrev {
  from { opacity: 0; transform: translateX(-36px); }
}

@keyframes certLbSpin {
  to { transform: rotate(360deg); }
}

/* Chú thích: tiêu đề trắng dễ đọc + bộ đếm dạng nhãn */
.cert-lb__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  padding: 0 8px;
  text-align: center;
}

.cert-lightbox-modal .cert-lb__title {
  margin: 0;
  padding: 0;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.2px;
  text-transform: none;
}

.cert-lightbox-modal .cert-lb__counter {
  margin: 0;
  padding: 3px 12px;
  color: var(--cert-gold);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1px;
  border: 1px solid rgba(223, 192, 112, 0.45);
  border-radius: 999px;
  background: rgba(223, 192, 112, 0.08);
}

/* Nút điều khiển: đặt lại toàn bộ style button mặc định của Flatsome */
.cert-lightbox-modal .cert-lb__btn {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #FFFFFF;
  font-size: 0;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(223, 192, 112, 0.55);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.cert-lightbox-modal .cert-lb__btn svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Icon trong nút nhích theo hướng khi hover, nút đóng xoay */
.cert-lightbox-modal .cert-lb__btn svg {
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-lightbox-modal .cert-lb__prev:hover svg { transform: translateX(-3px); }
.cert-lightbox-modal .cert-lb__next:hover svg { transform: translateX(3px); }
.cert-lightbox-modal .cert-lb__close:hover svg { transform: rotate(90deg); }

.cert-lightbox-modal .cert-lb__btn:hover {
  box-shadow: 0 0 0 6px rgba(223, 192, 112, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--cert-primary);
  background: var(--cert-gold);
  border-color: var(--cert-gold);
}

.cert-lightbox-modal .cert-lb__btn:focus-visible {
  outline: 2px solid var(--cert-gold-light);
  outline-offset: 3px;
}

.cert-lightbox-modal .cert-lb__close {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
}

.cert-lightbox-modal .cert-lb__prev,
.cert-lightbox-modal .cert-lb__next {
  top: 50%;
  transform: translateY(-50%);
}

.cert-lightbox-modal .cert-lb__prev { left: 24px; }
.cert-lightbox-modal .cert-lb__next { right: 24px; }

.cert-lightbox-modal .cert-lb__prev:active,
.cert-lightbox-modal .cert-lb__next:active {
  transform: translateY(-50%) scale(0.94);
}

/* Chỉ có 1 chứng nhận: ẩn nút chuyển ảnh và bộ đếm */
.cert-lightbox-modal.is-single .cert-lb__prev,
.cert-lightbox-modal.is-single .cert-lb__next,
.cert-lightbox-modal.is-single .cert-lb__counter {
  display: none;
}

/* Khoá cuộn trang khi mở lightbox & ẩn menu header tránh che khuất ảnh chứng nhận */
html.cert-lb-open,
html.cert-lb-open body,
body.cert-lb-open {
  overflow: hidden !important;
}

/* Ẩn hoàn toàn header và thanh menu khi mở Lightbox chứng nhận */
html.cert-lb-open header.site-header,
html.cert-lb-open header#masthead,
html.cert-lb-open #masthead.site-header,
html.cert-lb-open .header-wrapper,
body.cert-lb-open header.site-header,
body.cert-lb-open header#masthead,
body.cert-lb-open #masthead.site-header,
body.cert-lb-open .header-wrapper {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Ẩn hoàn toàn header và menu khi mở Lightbox chứng nhận */
html.cert-lb-open header.site-header,
html.cert-lb-open header#masthead,
html.cert-lb-open #masthead.site-header,
html.cert-lb-open .header-wrapper,
body.cert-lb-open header.site-header,
body.cert-lb-open header#masthead,
body.cert-lb-open #masthead.site-header,
body.cert-lb-open .header-wrapper {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Di động: ảnh tràn gần hết chiều ngang, nút chuyển ảnh xuống đáy màn hình */
@media (max-width: 768px) {
  .cert-lightbox-modal {
    padding: 64px 12px 84px;
  }

  .cert-lb__dialog {
    gap: 12px;
  }

  .cert-lb__frame {
    min-width: 0;
    min-height: 240px;
    padding: 5px;
  }

  .cert-lb__img {
    max-width: calc(100vw - 34px);
    max-height: calc(100vh - 250px);
    max-height: calc(100dvh - 250px);
  }

  .cert-lightbox-modal .cert-lb__title {
    font-size: 14.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

/* Ẩn hoàn toàn header và menu khi mở Lightbox chứng nhận */
html.cert-lb-open header.site-header,
html.cert-lb-open header#masthead,
html.cert-lb-open #masthead.site-header,
html.cert-lb-open .header-wrapper,
body.cert-lb-open header.site-header,
body.cert-lb-open header#masthead,
body.cert-lb-open #masthead.site-header,
body.cert-lb-open .header-wrapper {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  }

  .cert-lightbox-modal .cert-lb__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .cert-lightbox-modal .cert-lb__prev,
  .cert-lightbox-modal .cert-lb__next {
    top: auto;
    bottom: 20px;
    width: 48px;
    height: 48px;
    transform: none;
    background: rgba(7, 48, 27, 0.85);
  }

  .cert-lightbox-modal .cert-lb__prev { left: calc(50% - 60px); }
  .cert-lightbox-modal .cert-lb__next { right: calc(50% - 60px); }

  .cert-lightbox-modal .cert-lb__prev:active,
  .cert-lightbox-modal .cert-lb__next:active {
    transform: scale(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-lightbox-modal,
  .cert-lb__dialog,
  .cert-lb__img,
  .cert-lightbox-modal .cert-lb__btn svg {
    transition: none;
  }

  .cert-lb__frame.is-in .cert-lb__img,
  .cert-lb__frame.is-in-next .cert-lb__img,
  .cert-lb__frame.is-in-prev .cert-lb__img,
  .cert-lb__frame.is-loading::before {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE MEDIA QUERIES (TABLET & DESKTOP TRUNG BÌNH: <= 1024PX)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .chung_nhan_page {
    padding-top: 40px;
    padding-bottom: 70px;
  }

  .chung_nhan_page .grid-container {
    max-width: 960px;
  }

  /* Chuyển cột sidebar sang 30% và lưới chứng nhận sang 70% */
  .chung_nhan_page .sidebar,
  .grid-25.tablet-grid-30.sidebar {
    width: 32%;
    flex: 0 0 32%;
    padding-right: 20px;
  }

  .chung_nhan_page .grid-75,
  .grid-75.tablet-grid-70 {
    width: 68%;
    flex: 0 0 68%;
    padding-left: 0;
  }

  /* Chia 2 cột trên Tablet khi có sidebar, 3 cột khi full-width */
  .wrap_cncl .item {
    width: calc(calc(100% / 2) - 20px);
    margin: 0 10px 28px;
    padding: 14px;
  }

  .full-width-certificates .wrap_cncl.columns-4 .item,
  .full-width-certificates .wrap_cncl.columns-3 .item {
    width: calc(calc(100% / 3) - 20px);
  }

  .wrap_cncl {
    margin: 0 -10px;
  }

  .wrap_cncl .item h3 {
    font-size: 14.5px;
    min-height: 40px;
  }

  .chung_nhan_page .heading_h2 {
    font-size: 25px;
    margin-bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE MEDIA QUERIES (MOBILE: <= 768PX)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .chung_nhan_page {
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .chung_nhan_page .grid-container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Khối Sidebar di động: Trượt từ cạnh trái màn hình sang (Drawer Menu) */
  .chung_nhan_page .sidebar,
  .grid-25.tablet-grid-30.sidebar {
    width: 0;
    flex: 0 0 0;
    padding: 0;
    position: static;
  }

  .cat_member {
    position: fixed;
    left: 0;
    top: 0;
    width: 290px;
    max-width: 86vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 9999;
    padding: 0 0 20px 0;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    border-radius: 0;
    border: none;
  }

  /* Trạng thái mở menu danh mục di động */
  .cat_member.active {
    transform: translateX(0%);
  }

  /* Nút bấm đóng sidebar danh mục di động */
  .cat_member .close_list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: var(--cert-primary);
    cursor: pointer;
    box-sizing: border-box;
    padding: 0;
    margin-bottom: 12px;
  }

  .cat_member .close_list svg {
    width: 26px;
    height: 26px;
    fill: #FFFFFF;
  }

  /* Tab định vị mở Sidebar nhanh bên lề trái */
  .cat_member .heading_title {
    position: absolute;
    top: 45%;
    right: 2px;
    border: none;
    transform: translate(100%, -200%) rotate(90deg);
    transform-origin: bottom left;
    background: var(--cert-primary);
    margin: 0 !important;
    padding: 10px 22px !important;
    display: flex;
    color: var(--cert-text-white);
    font-size: 14px;
    border-radius: 8px 8px 0 0;
    box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: auto;
    border-bottom: none;
  }

  /* Danh sách ul cuộn mượt mà trên mobile */
  .cat_member ul {
    padding: 0 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .list_cat_member li {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Cột nội dung chính mở rộng toàn màn hình */
  .chung_nhan_page .grid-75,
  .grid-75.tablet-grid-70 {
    width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
  }

  /* Tiêu đề căn giữa trên mobile */
  .chung_nhan_page .heading_h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .chung_nhan_page .heading_h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Thẻ chứng nhận hiển thị 1 cột hoặc 2 cột linh hoạt */
  .wrap_cncl {
    margin: 0 -8px;
  }

  .full-width-certificates .wrap_cncl.columns-4 .item,
  .full-width-certificates .wrap_cncl.columns-3 .item,
  .wrap_cncl .item {
    width: calc(calc(100% / 2) - 16px);
    margin: 0 8px 20px;
    padding: 12px;
  }

  .wrap_cncl .item h3 {
    font-size: 13.5px;
    min-height: 38px;
    line-height: 1.4;
  }

}

/* --------------------------------------------------------------------------
   8. RESPONSIVE CHO MÀN HÌNH DI ĐỘNG NHỎ (<= 480PX)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .full-width-certificates .wrap_cncl.columns-4 .item,
  .full-width-certificates .wrap_cncl.columns-3 .item,
  .wrap_cncl .item {
    width: 100%;
    margin: 0 0 18px 0;
  }

  .wrap_cncl {
    margin: 0;
  }

  .chung_nhan_page .heading_h2 {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------------
   9. NÚT MỞ BỘ LỌC DANH MỤC TRÊN DI ĐỘNG (#btnToggleFilterMobile)
   -------------------------------------------------------------------------- */
#btnToggleFilterMobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--cert-primary) 0%, var(--cert-primary-mid) 100%);
  color: #FFFFFF;
  border: 1px solid var(--cert-gold);
  padding: 12px 18px;
  border-radius: var(--cert-radius-md);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-bottom: 24px;
  box-shadow: var(--cert-shadow-sm);
  transition: var(--cert-transition);
}

#btnToggleFilterMobile:hover,
#btnToggleFilterMobile:active {
  background: var(--cert-primary-dark);
  border-color: var(--cert-gold-light);
  box-shadow: var(--cert-shadow-md);
}

#btnToggleFilterMobile svg {
  width: 18px;
  height: 18px;
  fill: var(--cert-gold);
}

@media (max-width: 768px) {
  #btnToggleFilterMobile {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   10. CHÂN TRANG - THANH BẢN QUYỀN COPYRIGHT (.copy_right_thaco)
   Đồng bộ 100% bố cục với index.html: Cụm liên kết .copy_links luôn nằm bên phải
   -------------------------------------------------------------------------- */
.page-certificates .copy_right_thaco {
  width: 100%;
}

.page-certificates .copy_right_thaco .grid-container {
  width: 100% !important;
  max-width: var(--hc-container-max, 1400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  padding-right: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  box-sizing: border-box !important;
}

.page-certificates .copy_right_thaco .wrap {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px 20px !important;
  width: 100% !important;
}

.page-certificates .copy_right_thaco .copy_text {
  flex: 0 1 auto !important;
  white-space: nowrap !important;
  text-align: left !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

.page-certificates .copy_right_thaco .copy_links {
  margin-left: auto !important;
  text-align: right !important;
  flex-shrink: 0 !important;
}

.page-certificates .copy_right_thaco .copy_links ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

.page-certificates .copy_right_thaco .copy_links ul li {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.page-certificates .copy_right_thaco .copy_links ul a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.25s ease !important;
  display: inline-block !important;
  line-height: 1.4 !important;
}

.page-certificates .copy_right_thaco .copy_links ul a:hover {
  color: var(--cert-gold) !important;
}

@media (max-width: 768px) {
  .page-certificates .copy_right_thaco .wrap {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }

  .page-certificates .copy_right_thaco .copy_text {
    text-align: center !important;
  }

  .page-certificates .copy_right_thaco .copy_links {
    margin-left: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .page-certificates .copy_right_thaco .copy_links ul {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
  }
}

