/* thumbnail */
.grid-image.big-wrap img {
    width: 100%;
    max-width: 380px;
    height: 230px;       /* ép cứng chiều cao */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-image.big-wrap img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}

/* title */
.td-post-details {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.td-post-details .entry-title a {
    font-size: 17px;
    font-weight: 700;
    color: #ffd700;              /* đổi màu vàng nhạt, dịu mắt hơn */
    text-shadow: 0 1px 3px rgba(0,0,0,0.6); /* tạo bóng nhẹ để nổi bật */
    text-align: center;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.td-post-details .entry-title a:hover {
    color: #ffea85;              /* hover vàng sáng hơn */
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

/* responsive */
@media (max-width:1024px){
    .grid-image.big-wrap img { max-width: 100px; height: 100px; }
    .td-post-details .entry-title a { font-size:16px; }
}

@media (max-width:768px){
    .grid-image.big-wrap img { max-width: 380px; height: 230px; }
    .td-post-details .entry-title a { font-size:14px; }
}


/* ==== Custom Scrollbar ==== */
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;            /* độ rộng scrollbar */
    height: 10px;           /* chiều cao cho scroll ngang */
}

::-webkit-scrollbar-track {
    background: #111;       /* nền track */
    border-radius: 8px;     /* bo góc mềm mại */
}

::-webkit-scrollbar-thumb {
    background: #444;       /* màu thanh cuộn */
    border-radius: 8px;
    border: 2px solid #111; /* tạo viền để tách khỏi track */
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #fbe96d;    /* đổi màu khi hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #111; /* thumb và track */
}

/* ================= TD Related Box Dark Mode - Small Version ================= */
.td-related-box.grid.col-340 {
    background: #1f2023;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    margin: 10px;
    width: 220px; /* giảm kích thước thẻ */
    font-size: 14px; /* font nhỏ hơn để co nội dung */
}

/* Hover nâng nhẹ */
.td-related-box.grid.col-340:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
    background: #27282c;
}

/* Ảnh nhỏ, sắc nét, co theo khung */
.td-related-box.grid.col-340 img {
    width: 100%;
    height: 120px; /* giảm chiều cao ảnh */
    object-fit: cover;
    transition: transform 0.3s;
}

/* Zoom ảnh khi hover */
.td-related-box.grid.col-340:hover img {
    transform: scale(1.05);
}

/* Tiêu đề co theo khung nhỏ */
.td-related-box.grid.col-340 .entry-title {
    font-size: 15px; /* font nhỏ hơn */
    font-weight: 600;
    margin: 8px 10px;
    color: #fff;
}

/* Hover tiêu đề đổi màu */
.td-related-box.grid.col-340:hover .entry-title a {
    color: #ff6600;
}

/* Meta info co theo */
.td-related-box.grid.col-340 .block-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px; /* nhỏ hơn */
    color: #aaa;
    padding: 0 10px 10px;
    align-items: center;
}

.td-related-box.grid.col-340 .block-meta i {
    margin-right: 3px;
    color: #888;
}

/* Link meta hover màu cam nhẹ */
.td-related-box.grid.col-340 .block-meta span:hover {
    color: #ff6600;
}


/* Thiết kế khu vực chờ cho Tool TruTue */
.tt-tool-wrapper {
    background: #0a0a0a !important;
    border: 1px solid #222 !important;
    padding: 50px 20px !important;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tt-placeholder-ui h3 {
    color: #00ff99 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
    letter-spacing: 2px;
}

.tt-placeholder-ui p {
    color: #aaa !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
}

.tt-launch-btn {
    background: transparent !important;
    color: #00ff99 !important;
    border: 2px solid #00ff99 !important;
    padding: 15px 40px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.tt-launch-btn:hover {
    background: #00ff99 !important;
    color: #000 !important;
    box-shadow: 0 0 25px rgba(0,255,153,0.5);
    transform: translateY(-3px);
}




/* Force same height thumbnails for Media & Text blocks */
.wp-block-media-text__media {
  height: 140px;              /* bạn có thể chỉnh: 120 / 140 / 160 */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* FORCE tag cloud to behave like vertical menu */
.td-tag-cloud-widget {
  display: block !important;
}

/* Each tag = full row */
.td-tag-cloud-widget a {
  display: block !important;
  width: 100% !important;
  float: none !important;

  box-sizing: border-box;
  margin: 0 0 6px 0 !important;
  padding: 10px 14px;

  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: lowercase;

  color: #d1d5db !important;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;

  transition: all 0.25s ease;
}

/* Hover = active menu item */
.td-tag-cloud-widget a:hover {
  color: #00ff99 !important;
  background: rgba(0, 255, 153, 0.08);
  border-left-color: #00ff99;
  padding-left: 18px;
}




/* ===== TOOL CONTAINER ===== */
.tt-tool-box {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, max-height 0.6s ease;
}

.tt-tool-box[data-open="1"] {
  opacity: 1;
  max-height: 9999px;
  pointer-events: auto;
}

/* ===== LUXURY FULL WIDTH BUTTON ===== */
.tt-open-tool {
  width: 100%;
  padding: 26px 32px;
 line-height: 1.2;
  font-size: clamp(36px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;

  color: #0b0b0b;
  background: linear-gradient(135deg, #00ff99, #00d4ff);
  border: none;
  cursor: pointer;

  box-shadow:
    0 10px 40px rgba(0,255,153,0.35),
    inset 0 0 0 rgba(255,255,255,0);

  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
	
	  margin-top: 50px;
  margin-bottom: 50px;
}


.tt-open-tool:hover {
  letter-spacing: 8px;
  box-shadow:
    0 18px 70px rgba(0,255,153,0.45),
    inset 0 0 35px rgba(255,255,255,0.35);
  transform: translateY(-2px);
	
}

.tt-open-tool.is-open {
  background: linear-gradient(135deg, #ff5f5f, #ff9f43);
  color: #111;
}

.tt-open-tool.is-open:hover {
  box-shadow:
    0 18px 70px rgba(255,120,80,0.45);
}

/* Mobile tinh chỉnh */
@media (max-width: 768px) {
  .tt-open-tool {
    padding: 22px 16px;
    letter-spacing: 4px;
  }
}





/* =====================================================
   SMALL MODULE – FIX DOM NGƯỢC (THUMB LEFT)
   ===================================================== */

.td-small-module .td-post-details {
    display: flex !important;
    flex-direction: row !important;     /* ép ngang */
    align-items: center !important;
    text-align: left !important;
}

/* Thumb luôn bên trái */
.td-small-module .grid-image {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    margin-right: 10px;
    order: 0 !important;
    overflow: hidden;
    margin-left: 10px;
}

/* Ảnh */
.td-small-module .grid-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0;
}

/* Khối text (title + meta) */
.td-small-module h2,
.td-small-module .block-meta {
    display: block;
    width: 100%;
}

/* Bọc text về dạng cột */
.td-small-module h2,
.td-small-module .block-meta {
    flex: 1 1 auto;
}

.td-small-module .block-meta {
    margin-left: auto !important;   /* đẩy cả cụm meta sang phải */
    padding-right: 10px !important;  /* sát lề phải hơn */
    text-align: right !important;
    white-space: nowrap;
}


/* DATE */
.td-small-module .td-post-date {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 11px;
    color: #555;
}

/* VIEW */
.td-small-module .td-views,
.td-small-module .post-views-count {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 18px;
    color: #888;
}

/* ICON VIEW */
.td-small-module .post-views-count i {
    margin-right: 4px;
    font-size: 18px;
}


/* ===============================
   FORCE EXCERPT BELOW TITLE
   =============================== */

.td-post-details {
    display: flex;
    flex-direction: column;   /* xếp theo cột */
    align-items: center;      /* căn giữa */
}

/* Title */
.td-post-details .entry-title {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}

/* Excerpt luôn nằm dưới */
.td-post-details .td-post-excerpt {
    display: block;           /* ép xuống dòng */
    width: auto;
    max-width: 66.66%;        /* 2/3 tiêu đề */
    font-size: 11px;
    line-height: 1.3;
    color: #aaa;
    text-align: center;
}


/* khóa nút*/
.tt-tool-box {
  display: none;
}

.tt-tool-box[data-open="1"] {
  display: block;
}



/* ===== MOBILE PORTRAIT ONLY ===== */

@media only screen 
and (max-width: 767px) 
and (orientation: portrait){

  /* Label "Tagged" = size label Share */
  .td-social-box-share.tag-links .td-tag-word{
    font-size: 14px;        /* đúng size share */
    font-weight: 600;
    line-height: 54px;      /* khớp chiều cao nút */
    display: block;
    text-align: center;
    color: inherit;
  }
}


@media only screen 
and (max-width: 767px) 
and (orientation: portrait){

  /* SHARE + TAG dùng chung layout */
  #td-social-share-buttons,
  .td-social-box-share.tag-links{
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #td-social-share-buttons .button,
  .td-social-box-share.tag-links a{
    width: 100%;
    justify-content: center;
    text-align: center;
        min-height: 44px;          /* chuẩn mobile */
    line-height: 44px;         /* căn chữ giữa dọc */
  }
}


/* =====================================================
   FIX TAG CLOUD – HIỂN THỊ NHƯ MENU, CĂN GIỮA CHUẨN
   ÁP DỤNG CHO SIDEBAR / TAG CLOUD WIDGET
   ===================================================== */

.widget_gameleon_tag_cloud {
  width: 100%;
}

/* mỗi tag = 1 nút menu */
.widget_gameleon_tag_cloud .td-tag-cloud-widget {
  display: block;
}

/* TAG ITEM */
.widget_gameleon_tag_cloud .tag-cloud-link{
  display: block !important;

  width: 100% !important;
  height: 56px !important;
  line-height: 56px !important;        /* 🔥 CHỐT: căn giữa tuyệt đối */

  padding: 0 16px !important;
  margin: 0 0 6px 0 !important;

  box-sizing: border-box !important;
  text-align: left !important;

  font-size: 14px !important;          /* khóa size, bỏ lệch */
  font-weight: 600;

  color: #d1d5db !important;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid transparent;

  text-decoration: none !important;
  vertical-align: middle !important;

  transition: all 0.25s ease;
}

/* hover như menu */
.widget_gameleon_tag_cloud .tag-cloud-link:hover{
  color: #00ff99 !important;
  background: rgba(0,255,153,0.08);
  border-left-color: #00ff99;
  padding-left: 20px;
}

/* khóa triệt để baseline text */
.widget_gameleon_tag_cloud .tag-cloud-link *{
  line-height: inherit !important;
}




/* ===== Chinh sider sider ===== */
/* GRID layout */


.owl-stage {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  transform: none !important;
  width: 100% !important;
}

/* item reset */
.owl-item {
  width: 100% !important;
}

/* CARD */
.td-small-module {
  background: #0e0f13;
  border-radius: 14px;
  overflow: hidden;
  transition: all .35s ease;
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

/* IMAGE */
.td-owl-item {
  position: relative;
  height: 450px;              /* chỉnh: 150–180 tuỳ gu */
  overflow: hidden;

}

.td-owl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark glass overlay */
.td-owl-item .dark-cover {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.65) 100%
  );
}

/* TITLE AREA */
/* TITLE AREA – fix text sát đáy ảnh */
.td-owl-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  margin-bottom: -45px;               /* bỏ margin cũ */
  padding:12px 12px;      /* khoảng cách đẹp */
  z-index: 2;
}

.td-owl-title h2 a {
    
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
   margin-bottom: 0px;
}

/* DATE */
.td-owl-date .block-meta {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}

/* HOVER EFFECT */
.td-small-module:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 50px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.td-small-module:hover img {
  transform: scale(1.06);
}




/* ===== Thu nho link tiêu đề trang chủ ===== */
/* Thu nhỏ tiêu đề trong block td-fly-in-effect */

.td-fly-in-effect .td-post-details-3 h2.td-big-title a {
    font-size: 13px !important;
}

.td-fly-in-effect h2.td-big-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.post-entry {
  position: relative;
}

.post-entry > img.wp-post-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* SHADOW TỪ ĐÁY ẢNH LÊN */
.post-entry::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;

  top: 330px;              /* height ảnh - vùng shadow */
  height: 120px;

  background: linear-gradient(
    to top,
    rgba(23,25,25,0.95) 0%,   /* đáy: che gần như hoàn toàn */
    rgba(23,25,25,0.75) 45%,
    rgba(23,25,25,0.35) 75%,
    rgba(23,25,25,0.00) 95% /* lên trên: mờ hoàn toàn */
  );

  pointer-events: none;
  z-index: 2;
}


@media (max-width: 768px) {
  .post-entry > img.wp-post-image {
    z-index: 0 !important;
  }
}




#vertical-ticker {
  overflow: visible !important;
  height: auto !important;
}

#vertical-ticker li {
  position: relative !important;
  margin-top: 0 !important;
}


/* Custom avatar author */
#author-meta img.avatar {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;   /* bo tròn */
  object-fit: cover;               /* không méo ảnh */
}




