/* Blog: archive, single post, sidebar widgets and blog shortcodes. Values match the previous site. */

/* ---------- Shared helpers used by blog markup ---------- */
.is-larger { font-size: 1.3em; }
.is-large { font-size: 1.15em; }
.is-small, .is-small.button { font-size: .8em; }
.is-smaller { font-size: .75em; }
.is-xsmall { font-size: .7em; }
.is-xxsmall { font-size: .6em; }
@media (max-width: 549px) { .is-larger { font-size: 1.2em; } .is-large { font-size: 1em; } }
.op-7 { opacity: .7; } .op-8 { opacity: .8; }
.mb { margin-bottom: 30px; } .mt { margin-top: 30px; } .mr { margin-right: 30px; }
.mb:last-child { margin-bottom: 0; }
.pt-half { padding-top: 15px; }
.bt { border-top: 1px solid #ececec; } .bb { border-bottom: 1px solid #ececec; }
.pull-right { float: right; margin-right: 0 !important; }
.circle, .circle img { border-radius: 999px !important; object-fit: cover; }
.text-center .pull-right { float: none; }
.text-left .is-divider { margin-left: 0; margin-right: auto; }
.header-font { font-family: var(--tsd-font); font-weight: 600; }
h6.entry-category { text-transform: uppercase; letter-spacing: .05em; line-height: 1.05; }
/* `.uppercase` uses line-height 1.2 (h6 keeps 1.05). */
.entry-meta.uppercase, .author-name.uppercase, .comments-title.uppercase, .from_the_blog_comments.uppercase, .cat-label.uppercase, .tabbed-content h4.uppercase { text-transform: uppercase; line-height: 1.2; }

/* Outline buttons ("Xem chi tiết", share icons) */
.button.is-outline { line-height: 2.19em; background-color: transparent; border: 2px solid; color: silver; }
.button.primary.is-outline { color: var(--tsd-primary); background-color: transparent; }
.button.is-outline:hover { background-color: var(--tsd-primary); border-color: var(--tsd-primary); color: #fff; box-shadow: none !important; }
.button.icon { display: inline-block; min-width: 2.5em; margin-left: .12em; margin-right: .12em; padding-left: .6em; padding-right: .6em; }
.button.icon i { font-size: 1.2em; top: -1.5px; vertical-align: middle; }
.button.icon.circle { padding-left: 0; padding-right: 0; border-radius: 99px; }
.button.icon.circle > i:only-child { margin: 0; }

/* ---------- Layout ---------- */
@media (min-width: 850px) {
  .row-divided > .col + .col:not(.large-12) { border-left: 1px solid #ececec; }
  .row-large { padding-left: 0; padding-right: 0; }
}
.row > div:not(.col):not([class^="col-"]):not([class*=" col-"]) { width: 100% !important; }
/* Large gutters only from 850px; smaller screens keep the normal 15px column padding. */
@media (max-width: 849px) { .blog-wrapper > .row-large > .col { padding: 0 15px 30px; } }

/* ---------- Archive header ---------- */
.archive-page-header .page-title { position: relative; font-size: 0; line-height: 1.2; }
.archive-page-header .page-title span { font-size: 25px; }
.page-title { position: relative; }
.taxonomy-description { margin-bottom: 1em; }

/* ---------- Article (archive card + single) ---------- */
.post { margin: 0 0 30px; }
.entry-header-text { padding: 1.5em 0; }
.entry-header-text.text-center { padding-left: 1.5em; padding-right: 1.5em; }
.entry-header-text-top { padding-top: 0; }
.entry-header .entry-category { margin-bottom: .5em; font-weight: 600; opacity: .8; }
.entry-header .entry-category a { color: var(--tsd-link); }
.entry-title { width: 100%; }
.entry-title a { color: inherit; }
.entry-header .entry-divider { height: 3px; }
.entry-meta a { color: inherit; }
.updated:not(.published) { display: none; }
.entry-content p:empty, .author-box p:empty { display: none; }
.entry-image img { width: 100%; }
.entry-content { padding-top: 1.5em; padding-bottom: 1.5em; }
.post .entry-summary p:last-of-type { margin-bottom: 0; }
.entry-summary .more-link { margin-top: 1.5em; margin-left: 0; margin-right: 0; }
.entry-content ol li, .entry-content ul li, .entry-summary ol li, .entry-summary ul li { margin-left: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 0; }
.entry-content li { margin-bottom: .6em; }
/* Only h1/h2 use line-height 1.3; h3-h5 inherit the body 1.6, h6 is uppercase 1.05. */
.entry-content h3, .entry-content h4, .entry-content h5 { line-height: 1.6; }
.entry-content h1, .entry-content h2 { line-height: 1.3; }
@media (max-width: 549px) { .entry-content h4 { font-size: 1em; } }
.entry-content h6 { text-transform: uppercase; letter-spacing: .05em; line-height: 1.05; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { width: 100%; }
.entry-content blockquote { position: relative; margin: 0 0 1.25em; padding: 0 1.25em 0 1.875em; font-size: 1.2em; font-style: italic; color: #333; border-left: 2px solid var(--tsd-primary); }
.entry-content table { width: 100%; margin-bottom: 1em; border-spacing: 0; border-color: #ececec; }
.entry-content td, .entry-content th { padding: .5em; font-size: .9em; line-height: 1.3; text-align: left; border-bottom: 1px solid #ececec; }
.entry-content td { color: #666; }
footer.entry-meta { padding: .5em 0 .6em; font-size: .8em; border-top: 1px solid #ececec; border-bottom: 2px solid #ececec; }
.entry-author { padding: 2em 0; }
.author-box .author-name { margin-bottom: .5em; }
.author-box .author-desc { margin-bottom: 1.3em; }
.author-box .blog-author-image img { display: inline-block; }

/* Date badge */
.badge.post-date { position: absolute; display: table; z-index: 20; width: 2.8em; height: 2.8em; pointer-events: none; backface-visibility: hidden; }
.post-date.top { left: 0; }
.badge.post-date { top: 7%; }
.post-date.badge-outline { margin-left: -.4em; }
.post-date .badge-inner { display: table-cell; width: 100%; height: 100%; padding: 2px; font-weight: bolder; line-height: .85; text-align: center; vertical-align: middle; white-space: nowrap;
  color: #fff; background-color: var(--tsd-primary); transition: background-color .3s, color .3s, border .3s; }
.post-date.badge-outline .badge-inner { color: var(--tsd-primary); background-color: #fff; border: 2px solid; }
.has-hover:hover .post-date.badge-outline .badge-inner { color: #fff; background-color: var(--tsd-primary); border-color: var(--tsd-primary); }

/* Share icons */
.blog-share .is-divider.medium { margin-left: auto; margin-right: auto; }
.social-icons { display: inline-block; font-size: .85em; color: #999; vertical-align: middle; }
.text-center .social-icons { margin-left: auto; margin-right: auto; }
.social-icons i { min-width: 1em; line-height: 1.2; }
.social-icons .button.icon { margin-bottom: 1em; font-weight: bolder; }
.social-icons .button.icon:hover { color: #fff !important; }
.social-icons .button.facebook:hover { background-color: #3a589d !important; border-color: #3a589d !important; }
.social-icons .button.twitter:hover { background-color: #2478ba !important; border-color: #2478ba !important; }
.social-icons .button.email:hover { background-color: #111 !important; border-color: #111 !important; }
.social-icons .button.pinterest:hover { background-color: #cb2320 !important; border-color: #cb2320 !important; }
.social-icons .button.linkedin:hover { background-color: #0072b7 !important; border-color: #0072b7 !important; }
.social-icons .button.whatsapp:hover { background-color: #51cb5a !important; border-color: #51cb5a !important; }

/* Prev / next post */
.next-prev-nav .flex-col { padding: .7em 0; }
.next-prev-nav .flex-col + .flex-col { border-left: 1px solid #ececec; }
.next-prev-nav i { position: relative; top: -1px; display: inline-block; width: .375em; margin: 0 10px !important; font-size: 2em; line-height: 1.2; text-align: center; vertical-align: middle; }
.next-prev-nav i::before { display: inline-block; margin: 0 -.15em; }
.next-prev-nav a { color: var(--tsd-link); }

/* Pagination */
ul.links { margin: 5px 0; padding: 0; font-size: .85em; }
ul.links li { display: inline-block; margin: 0 .4em; list-style: none; }
ul.links li:first-child { margin-left: 0; }
ul.links li:last-child { margin-right: 0; }
.nav-pagination > li > a, .nav-pagination > li > span { display: block; width: auto; min-width: 2.25em; height: 2.25em; padding: 0 7px; font-size: 1.1em; font-weight: bolder; line-height: 2em;
  text-align: center; vertical-align: top; color: currentColor; border: 2px solid; border-radius: 99px; transition: all .3s; }
.nav-pagination > li i { position: relative; top: -1px; font-size: 1.2em; vertical-align: middle; }
.nav-pagination > li > .current, .nav-pagination > li > a:hover { color: #fff; background-color: var(--tsd-primary); border-color: var(--tsd-primary); }

/* Comments */
.comments-area ol.comment-list { padding: 0; }
.comment-list li { list-style: none; padding: 1em 0 0; }
.comment-list li .avatar { border-radius: 100%; }
.comment-list > li:not(:first-child) { border-top: 1px dashed #ddd; }
#comments .comment-respond { margin-top: 15px; padding: 15px 25px 0; background-color: rgba(0, 0, 0, .05); }
#comments .comment-respond .comment-reply-title { margin-bottom: .5em; font-size: 1.2em; }
.comment-form { margin-bottom: 1.3em; }
.comment-form p { margin-bottom: .5em; }
.comment-form input:not([type=submit]), .comment-form textarea { font-weight: 400; }
#comments .comment-respond small { display: inline-block; margin-left: 10px; font-size: .6em; text-transform: uppercase; }
@media (min-width: 850px) {
  .comment-form { display: flex; flex-flow: row wrap; margin-left: -15px; margin-right: -15px; }
  .comment-form > p, .comment-form > div { width: 100%; padding: 0 15px; }
  .comment-form p.comment-form-author, .comment-form p.comment-form-email, .comment-form p.comment-form-url { flex: 1; }
}

/* ---------- Search form (404 / nothing found) ---------- */
.searchform { position: relative; }
.page-content .searchform { margin-bottom: 1.3em; }
.page-content .searchform .search-field { margin-bottom: 0; font-weight: 400; }
.page-content .searchform .ux-search-submit { min-width: 2.5em; min-height: 2.5em; margin: 0; padding: 0 .6em; font-size: .97em; line-height: 2.4em; color: #fff;
  background-color: var(--tsd-secondary); border: 1px solid rgba(0, 0, 0, .05); border-radius: 0; }
.page-content .searchform .ux-search-submit i { font-size: 1.2em; line-height: 1.2; }

/* ---------- [blog_posts] boxes ---------- */
.box { position: relative; width: 100%; margin: 0 auto; }
.box a { display: inline-block; }
.box-image { position: relative; height: auto; margin: 0 auto; overflow: hidden; }
.box-image > a, .box-image > div > a { display: block; }
.box-image img { width: 100%; max-width: 100%; margin: 0 auto; }
.image-cover, .video-fit { position: relative; height: auto; padding-top: 100%; overflow: hidden; background-position: 50% 50%; background-size: cover; }
.image-cover img, .video-fit iframe, .video-fit video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.video-fit { padding-top: 56.5%; }
.video-fit iframe { object-fit: fill; }
.box-text { position: relative; width: 100%; padding-top: .7em; padding-bottom: 1.4em; font-size: .9em; }
@media (max-width: 549px) { .box-text { font-size: 85%; } }
.box-text.text-center { padding-left: 10px; padding-right: 10px; }
.box-text a:not(.button), .box-text h1, .box-text h2, .box-text h3, .box-text h4, .box-text h5, .box-text h6 { margin-top: .1em; margin-bottom: .1em; line-height: 1.3; }
.box-text p { margin-top: .1em; margin-bottom: .1em; }
.box-text .button { margin-top: 1em; }
.box.box-blog-post .is-divider { height: 2px; margin-top: .5em; margin-bottom: .5em; }
.from_the_blog_comments { padding-top: 7px; opacity: .8; }
.box-image .absolute.x50.y50 { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.overlay-icon { width: 3em; height: 3em; line-height: 2.8em; text-align: center; color: #fff; background-color: rgba(0, 0, 0, .2); border: 2px solid #fff; border-radius: 100%; opacity: .8; transition: transform .2s, opacity .2s; }
.overlay-icon i { position: relative; top: 3px; font-size: 1.3em; line-height: 1.2; transition: color .3s; }
.has-hover:hover .overlay-icon { opacity: 1; transform: scale(1.15); }
.post-title a { color: inherit; }
@media (max-width: 549px) { .box-vertical .box-image { width: 100% !important; } }
@media (min-width: 550px) {
  .box-vertical { display: table; width: 100%; }
  .box-vertical .box-image, .box-vertical .box-text { display: table-cell; direction: ltr; vertical-align: middle; }
  .box-vertical .box-image { width: 50%; }
  .box-vertical .box-text { padding-left: 1.5em; padding-right: 1.5em; }
}
.large-columns-1 > .col, .medium-columns-1 > .col, .small-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
.small-columns-2 > .col { flex-basis: 50%; max-width: 50%; }
@media (min-width: 550px) {
  .medium-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
  .medium-columns-2 > .col { flex-basis: 50%; max-width: 50%; }
  .medium-columns-3 > .col { flex-basis: 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 850px) {
  .large-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
  .large-columns-2 > .col { flex-basis: 50%; max-width: 50%; }
  .large-columns-3 > .col { flex-basis: 33.3333%; max-width: 33.3333%; }
  .large-columns-4 > .col { flex-basis: 25%; max-width: 25%; }
}

/* ---------- Captions / alignment in post content ---------- */
.wp-caption { max-width: 100%; margin-bottom: 2em; }
.wp-caption .wp-caption-text { padding: .4em; font-size: .9em; font-style: italic; background: rgba(0, 0, 0, .05); }
.wp-caption-text { text-align: center; }
@media (min-width: 850px) {
  .alignleft { display: inline; float: left; margin-right: 1.5em; }
  .alignright { display: inline; float: right; margin-left: 1.5em; }
  .aligncenter { clear: both; display: block; margin: 0 auto; }
}

/* ---------- Sidebar widgets ---------- */
.widget { margin-bottom: 1.5em; }
.widget ul { margin: 0; padding: 0; }
.widget li { list-style: none; }
.widget .is-divider { margin-top: .66em; }
span.widget-title { display: inline; font-size: 1em; font-weight: 600; letter-spacing: .05em; line-height: 1.05; text-transform: none; }
ul.product_list_widget li { position: relative; min-height: 80px; margin-bottom: 0; padding: 10px 0 5px 75px; overflow: hidden; line-height: 1.33; vertical-align: top; list-style: none; }
ul.product_list_widget li + li { border-top: 1px solid #ececec; }
ul.product_list_widget li a:not(.remove) { display: block; margin-bottom: 5px; padding: 0; overflow: hidden; line-height: 1.3; text-overflow: ellipsis; }
ul.product_list_widget li img { position: absolute; top: 10px; left: 0; width: 60px; height: 60px; margin-bottom: 5px; object-fit: cover; object-position: 50% 50%; }
.widget-area .res-text { font-size: 8px; }
.widget_products ins { text-decoration: none; }
.widget_products span.amount { font-weight: 700; color: #111; white-space: nowrap; }
.widget_products del span.amount { margin-right: .3em; font-weight: 400; opacity: .6; }

/* Section titles inside blog layouts: h3 size (no 1.2em) and the title margin kept inside its container (clearfix). */
.widget-area .section-title-container::after { content: ""; display: table; clear: both; }
.widget-area h3.section-title { font-size: 1em; }
@media (min-width: 550px) { .widget-area h3.section-title { font-size: 1.25em; } }

/* ---------- [ux_slider] ---------- */
.slider-wrapper { position: relative; }
.tsd-slider { position: relative; }
.tsd-slider .slider-viewport { position: relative; overflow: hidden; }
.tsd-slider .slider-track { display: flex; align-items: flex-start; transition: transform .5s ease; touch-action: pan-y; }
.tsd-slider .slider-track > * { flex: 0 0 auto; width: 100%; margin: 0 !important; }
.slider-style-focus .slider-track > *:not(.is-selected) { opacity: .5; }
.tsd-slider .slider-button { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin: 0; padding: 0; transform: translateY(-50%);
  font-size: 1.6em; line-height: 1; color: #fff; background: transparent; border: 0; cursor: pointer; opacity: .8; }
.tsd-slider.slider-nav-dark .slider-button { color: #111; }
.tsd-slider .slider-button.previous { left: 0; }
.tsd-slider .slider-button.next { right: 0; }
.tsd-slider.slider-nav-outside .slider-button.previous { left: -40px; }
.tsd-slider.slider-nav-outside .slider-button.next { right: -40px; }
.tsd-slider.slider-show-nav .slider-button { opacity: 0; transition: opacity .3s; }
.tsd-slider.slider-show-nav:hover .slider-button { opacity: .8; }
.tsd-slider .slider-dots { position: absolute; bottom: 5px; left: 0; width: 100%; margin: 0; padding: 0; text-align: center; line-height: 1; list-style: none; }
.tsd-slider .slider-dots .dot { display: inline-block; width: 10px; height: 10px; margin: 0 5px; background: #fff; border: 3px solid #fff; border-radius: 99px; opacity: .4; cursor: pointer; }
.tsd-slider.slider-nav-dark .slider-dots .dot { background: #333; border-color: #333; }
.tsd-slider .slider-dots .dot.is-selected { opacity: 1; }
.tsd-slider.slider-nav-dots-simple .slider-dots .dot { background: transparent; }
.tsd-slider.slider-nav-dots-simple .slider-dots .dot.is-selected { background: currentColor; }

/* ---------- [tabgroup] ---------- */
.tabbed-content { display: flex; flex-flow: row wrap; }
.tabbed-content .nav { display: flex; flex-flow: row wrap; width: 100%; margin: 0 0 1em; padding: 0; list-style: none; }
.tabbed-content .nav-center { justify-content: center; }
.tabbed-content .nav > li { margin: 0 .7em; list-style: none; }
.tabbed-content .nav > li > a { display: inline-block; padding: 10px 0; font-weight: 600; color: rgba(17, 17, 17, .85); }
.tabbed-content .nav-uppercase > li > a { text-transform: uppercase; letter-spacing: .02em; }
.tabbed-content .nav-line-bottom > li > a { position: relative; }
.tabbed-content .nav-line-bottom > li > a::before { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background-color: var(--tsd-primary); transform: translateX(-50%); transition: width .3s; }
.tabbed-content .nav > li.active > a { color: #000; }
.tabbed-content .nav-line-bottom > li.active > a::before, .tabbed-content .nav-line-bottom > li > a:hover::before { width: 100%; }
.tab-panels { width: 100%; padding-top: 1em; }
.tab-panels .panel:not(.active) { display: none; }
.tab-panels .entry-content { padding: 0; }

/* ---------- [ux_sidebar] ---------- */
.sidebar-wrapper.ul-reset { margin: 0; padding: 0; list-style: none; }

/* ---------- [wpseo_breadcrumb] ---------- */
.breadcrumbs a { color: inherit; }

/* Hidden WP post embeds (absolute until wp-embed shows them) must not widen the page on mobile. */
.entry-content iframe.wp-embedded-content { max-width: min(100%, calc(100vw - 30px)); }
