/* =========================
   1) ลิงก์ทั่วไปในเนื้อหา
========================= */
.entry-content a,
.nv-content-wrap a {
  color: #0073e6;          /* สีน้ำเงินลิงก์ปกติ */
  text-decoration: none;  /* ไม่มีเส้นใต้ */
}

.entry-content a:hover,
.nv-content-wrap a:hover {
  color: #005bb5;          /* น้ำเงินเข้มตอน hover */
  text-decoration: underline; /* ถ้าไม่อยากขีด ลบบรรทัดนี้ */
}

/* =========================
   2) เมนู Header
========================= */
header .menu a,
header a {
  color: inherit;                /* ใช้สีเดิมของธีม */
  text-decoration: none !important;
}

/* hover เมนู header = สีเขียว */
header .menu a:hover,
header a:hover {
  color: #0ec963 !important;
  text-decoration: none !important;
}

/* =========================
   3) เมนู Footer
========================= */
footer a {
  color: inherit;                /* ใช้สีเดิมของธีม */
  text-decoration: none !important;
}

/* hover เมนู footer = สีเขียว */
footer a:hover {
  color: #0ec963 !important;
  text-decoration: none !important;
	
}



/* GRID */

.tt-grid{
display:grid;
grid-template-columns:repeat(3,2fr);
gap:8px;
}

.tt-card{
position:relative;
aspect-ratio:9/16;
overflow:hidden;
border-radius:12px;
cursor:pointer;
}

.tt-card img{
width:100%;
height:100%;
object-fit:cover;
}

/* overlay */

.tt-overlay{
position:absolute;
inset:0;
display:flex;
align-items:center;
justify-content:center;
background:rgba(0,0,0,0.2);
}

.tt-play{
width:50px;
height:50px;
background:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
}

/* POPUP */

#tt-popup{
position:fixed;
inset:0;
display:none;
z-index:99999;
}

.tt-popup-bg{
position:absolute;
inset:0;
background:rgba(0,0,0,0.9);
}

/* FEED (TikTok style) */

.tt-feed{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:min(92vw,380px);
height:90vh;
overflow-y:scroll;
scroll-snap-type:y mandatory;
border-radius:18px;
background:#000;
}

/* VIDEO */

.tt-video{
width:100%;
height:90vh;
scroll-snap-align:start;
}

.tt-video iframe{
width:100%;
height:100%;
border:none;
}
/* ซ่อนคลิปตั้งแต่ตัวที่ 7 เป็นต้นไป */

.tt-grid.show-less .tt-card:nth-child(n+7){
  display:none;
}

/* ปุ่ม Load More */

.tt-loadmore-wrap{
  text-align:center;
  margin-top:20px;
}

#tt-loadmore-btn{
  background:#0ec963;
  color:#fff;
  border:none;
  padding:12px 28px;
  border-radius:999px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
}

#tt-loadmore-btn:hover{
  opacity:.9;
}

/* post grid 2 column */

@media (max-width: 767px){

    .vc_basic_grid .vc_grid-item{
        width:45% !important;
        float:left !important;
        margin: 0!important;
        padding:2px !important;
        box-sizing:border-box !important;
    }

    .vc_basic_grid,
    .vc_basic_grid .vc_grid-container{
        margin:0 !important;
        padding:0 !important;
    }

}
