/*
Theme Name: BinhNC
Theme URI: https://vn90.com
Author: Nguyen Cong Binh
Author URI: https://wordpress.org/
Description: My Theme
Version: 1.0
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

:root{
  --primary-color: #ee4d2d;
  --secondary-color: rgba(255,87,34,0.1);
  --tertiary-color: black;
  --line-color: #e8e8e8;
	/* Colors */
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --text-color: #333;
  --background-color: #f8f9fa;
  --white: #fff;
  
  /* Typography */
  --font-family-body: 'Arial', sans-serif;
  --font-size-base: 16px;
  
  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  
  /* Box Shadow */
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-duration: 0.3s;
} 

body {
  color: #404040;
  font: 400 .875rem arial;
  line-height: 1.313;
  font-family: sans-serif;
}
.clearfix{clear: both;}
h1, h2, h3, h4, h5, h6 {
  color: #222;
}
a {
  color: #404040;
  text-decoration: none;
}
a:active, a:hover, a:focus,.current-menu-item a {
  outline: 0;
  color: #06c;
}

b, strong {
  font-weight: bold;
}
figure{margin: 0;}
img {
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
}
ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alignleft, img.alignleft {
  margin-right: 1.5em;
  display: inline;
  float: left;
}

.alignright, img.alignright {
  margin-left: 1.5em;
  display: inline;
  float: right;
}

.aligncenter, img.aligncenter {
  margin-right: auto;
  margin-left: auto;
  display: block;
  clear: both;
  max-width: 100% !important;
}

.wp-caption {
  margin-bottom: 1.5em;
  text-align: center;
  padding-top: 5px;
}

.wp-caption p.wp-caption-text {
  line-height: 1.5;
  font-style: italic;
  color: #666;
  font-size: 12px;
  margin: 0;
}

.singular-title{
  font-weight: 600;
  line-height: 1.3em;
  margin: 15px 0;
}
.entry {
  font-size: 16px;
  line-height: 1.5em;
}
.entry img{
  max-width: 100%;
  height: auto !important;
}
.post h1 {
  font-weight: 700;
  line-height: 1.3em;
  margin: 15px 0;
}
.post .entry h2 {
  font-weight: 700;
  margin: 15px 0;
  padding: 0;
  line-height: 1.3em;
}

.meta {
  margin-bottom: 1em;
  color: #9b9b9b;
  font-size: 13px;
}

.section-title{
  display: block;
}
.article-related{
  margin-top: 15px;
}
.relatedposttags {
  font-family: times new roman, serif;
  margin-bottom: 1rem;
}
.relatedposttags ul {
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  margin: 0;
  padding: 11px 0 11px 25px;
}
.relatedposttags ul li {
  list-style: disc;
  margin-bottom: 5px;
  font-size: 19px;
  padding: 0;
  color: #1e69b2;
}
.relatedposttags ul li a {
  color: #1e69b2;
  display: block;
  font-style: italic;
  font-weight: bold;
}

.tag {
  margin: 15px 0;
  }
.tag a {
  padding: 2px 5px;
  background-color: #edf2f8;
  margin-right: 5px;
  font-size: 11px;
}

.nav-single{
  display: flex;
  padding: 10px;
  border-top: solid 1px var(--line-color);
  border-bottom: solid 1px var(--line-color);
}
.nav-single .nav-previous{
  width: 50%;
}
.nav-single .nav-next{
  width: 50%;
  text-align: right;
}
.nav-single h2{
  margin: 0;
}
.nav-single h2 a{
  font-size: 12px;
  font-weight: normal;
  display: block;
}
/* ========== */
header{
  margin-bottom: 10px;
}
.search{
  padding: 10px 0;
  text-align: center;
}
#menu-mobile{
  white-space: nowrap;
  overflow-x: scroll;
}
.main-menu {
  border-top: solid 1px var(--line-color);
  border-bottom: solid 1px var(--line-color);
}
.main-menu ul li {
  display: inline-block;
  position: relative;
}
.main-menu ul li a {
  display: inline-block;
  padding: 10px;
}
.main-menu ul li:hover a {
  transition: all 0.3s;
}

article.article-item {
  margin: 10px 0;
  border-bottom: solid 1px var(--line-color);
  display: flex;
}
.article-item .article-thumb{
  width: 90px;
  margin-right: 10px;
}

.article-item .article-thumb img {
  height: auto !important;
}
.article-item .article-content .article-meta {
  color: #9b9b9b;
}
.article-item .article-content .article-title{
  font-size: 12px;
  margin: 0;
}
.article-item .article-content .article-excerpt {
  color: #666;
  font-size: 12px;
}

h3.category-title {
  margin: 5px 0;
  text-align: center;
  font-weight: normal;
  background-color: var(--line-color);
  font-size: 14px;
}
.container{
  padding: 0 10px;
  margin: 0 auto;
}

footer {
  margin: 15px 0;
  text-align: center;
}

/* ---- code ---- */

pre, code {
  display: block;
  font-size: 12px;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre-wrap;
  background-color: #f4f4f4;
  border: 1px solid rgba(0,0,0,.1);
  margin: 0 0 20px;
  line-height: 1.4;
  padding: 10px;
  letter-spacing: 0;
  color: inherit;
  border-radius: 6px;
}


/* syntax highlight
------------------------- */

code .string,
code .tag .value { color: #0A2; }
code .number, /* integer */
code .literal { color: #07D; } /*boolean*/
code .keyword { color: #E31; } /* keyword */
code .attribute { color: #D31; } /* markup attribute */
code .title  { color: #39A; }
code .params  { color: #98D; }

/* ---- back to top ---- */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  fill: #757575;
  border: 1px solid #e5e5e5 ;
  outline: none;
  background: #fff;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 44px;
  text-align: center;
  border-radius: 3px;
  opacity: 0.7;
}

#myBtn:hover {
background-color: #f7f7f7;
opacity: 1;
}
/* Wrapper chính */
.epyt-video-wrapper,
.fluid-width-video-wrapper,
.epyt-gallery {
    position: relative !important;
    overflow: hidden !important;
}

/* Che NÚT "Xem trên YouTube" (góc dưới TRÁI) - chỉ che phần chữ + icon, không phủ hết bottom */
.epyt-video-wrapper::after,
.fluid-width-video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 160px;          /* Chỉ rộng đủ che "Xem trên YouTube" + icon nhỏ (từ ảnh, khoảng 140-180px) */
    height: 35px;          /* Cao vừa đủ che nút, không cao quá để tránh che play bar */
    background: #000000;   /* Đen khớp nền tối; thay bằng màu nền video nếu cần */
    z-index: 15;           /* Trên iframe nhưng dưới control bar nếu cần */
    pointer-events: none;  /* QUAN TRỌNG: Click xuyên qua overlay xuống player */
}

/* Che LOGO YouTube nhỏ (góc PHẢI dưới, trong control bar) - nhỏ gọn */
.epyt-video-wrapper::before,
.fluid-width-video-wrapper::before {
    content: '';
    position: absolute;
    bottom: 10px;          /* Cách bottom 10px để khớp vị trí logo thường nằm khi control bar hiện */
    right: 10px;           /* Cách right 10px */
    width: 55px;           /* Rộng vừa che logo "YouTube" + icon */
    height: 22px;          /* Cao vừa che */
    background: #000000;
    z-index: 15;
    pointer-events: none;  /* Click xuyên qua */
}

/* Responsive: Thu nhỏ overlay trên mobile để không che quá nhiều */
@media (max-width: 768px) {
    .epyt-video-wrapper::after,
    .fluid-width-video-wrapper::after {
        width: 140px;
        height: 30px;
    }
    .epyt-video-wrapper::before,
    .fluid-width-video-wrapper::before {
        width: 50px;
        height: 20px;
        bottom: 8px;
        right: 8px;
    }
}