/*
Theme Name: HuyDev Auto Review
Theme URI: https://autoreview.vn
Author: HuyDev
Author URI: https://autoreview.vn
Description: Theme review xe (o to, xe may, xe dien) - PHP thuan + ACF.
Version: 1.0
Text Domain: huydev
*/

@media screen{

:root{
    --th-red: #e11b22;
    --th-red-dark: #b8151b;
    --th-dark: #0f1522;
    --th-dark-2: #151d2e;
    --th-footer: #080b12;
    --th-footer-2: #10141f;
    --th-text: #1a2233;
    --th-gray: #6b7280;
    --th-gray-light: #9aa3af;
    --th-line: #e8ebf0;
    --th-bg: #f4f6f9;
    --th-star: #f5a623;
    --th-blue: #2563eb;
    --th-radius: 10px;
}

/*
* BASE.
*/
*{ margin: 0px; padding: 0px; box-sizing: border-box; }
body{ font-family: 'Be Vietnam Pro', Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--th-text); background: var(--th-bg); }
a{ text-decoration: none; color: inherit; transition: all 0.25s; }
a:hover{ color: var(--th-red); }
img{ max-width: 100%; height: auto; display: block; }
ul{ list-style: none; }
.container{ width: 1550px; max-width: 96%; margin: 0px auto; }
.cboth{ clear: both; }
.fleft{ float: left; }
.fright{ float: right; }
.bsize{ box-sizing: border-box; }
.tf{ font-weight: 700; }
.center{ text-align: center; }
.thumb-cover{ display: block; position: relative; overflow: hidden; }
.thumb-cover img{ width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0px; left: 0px; }
.thumb-zoom img{ transition: transform 0.5s; }
.thumb-zoom:hover img{ transform: scale(1.06); }
.empty-content{ padding: 30px; text-align: center; color: var(--th-gray); background: #fff; border-radius: var(--th-radius); }

/*
* BADGE + META.
*/
.badge{ display: inline-block; background: var(--th-red); color: #fff; font-size: 9px; font-weight: 600; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; letter-spacing: 0.3px; }
.badge-oto{ background: var(--th-red); }
.badge-xemay{ background: #f59e0b; }
.badge-xedien{ background: #10b981; }
.badge-sosanh{ background: #6366f1; }
.badge-tintuc{ background: #0ea5e9; }
.rate{ color: var(--th-star); font-weight: 600; }
.rate i{ margin-right: 3px; }
.rate span{ color: var(--th-gray); font-weight: 400; font-size: 13px; margin-left: 4px; }
.meta{ color: var(--th-gray); font-size: 13px; }
.meta i{ margin-right: 4px; color: var(--th-gray-light); }
.meta span{ margin-right: 15px; display: inline-block; }
.btn-red{ display: inline-block; background: var(--th-red); color: #fff; font-weight: 600; padding: 11px 26px; border-radius: 8px; }
.btn-red:hover{ background: var(--th-red-dark); color: #fff; }

/*
* BLOCK ITEM COMMON.
*/
.block-item{ padding: 40px 0px; }
.block-item-head{ margin-bottom: 24px; position: relative; }
.block-item-title{ font-size: 24px; font-weight: 700; padding-left: 14px; border-left: 4px solid var(--th-red); line-height: 1.2; }
.block-item-head .view-all{ position: absolute; right: 0px; top: 6px; font-size: 14px; font-weight: 600; color: var(--th-red); }
.block-item-head .view-all i{ margin-left: 6px; font-size: 12px; }

.archive-banner{ background: linear-gradient(180deg, #10203a, #0b1524); background-size: cover; background-position: center; position: relative; padding: 56px 0px; text-align: center; }
.archive-banner:before{ content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background: rgba(6,12,22,0.55); }
.archive-banner .container{ position: relative; z-index: 2; }
.archive-title{ color: #fff; font-size: 36px; font-weight: 800; line-height: 1.2; }
.archive-banner .breadcrumb{ margin-top: 12px; padding: 0px; color: rgba(255,255,255,0.75); }
.archive-banner .breadcrumb a{ color: rgba(255,255,255,0.9); }
.archive-banner .breadcrumb a:hover{ color: #fff; }
.archive-banner .breadcrumb .sep{ color: rgba(255,255,255,0.45); }

/*
* HEADER.
*/
.header{ background: #fff; box-shadow: 0px 2px 12px rgba(0,0,0,0.06); position: relative; z-index: 50; }
.header .container{ position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.header-logo{ float: left; padding: 10px 0px; }
.header-logo img{ height: 100px; width: auto; display: inline-block; }
.header-logo .logo-text{ display: inline-block; vertical-align: middle; font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.header-logo .logo-text b{ color: var(--th-red); }
.header-logo .logo-sub{ display: block; font-size: 11px; font-weight: 400; color: var(--th-gray); letter-spacing: 0px; }
.header-nav{ float: left; margin-left: 30px; }
.header-nav ul li{ float: left; position: relative; }
.header-nav ul li a{ display: block; padding: 26px 13px; font-size: 14px; font-weight: 500; }
.header-nav ul li.current-menu-item > a,
.header-nav ul li:hover > a{ color: var(--th-red); }
.header-nav ul li.menu-item-has-children > a:after{ content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; margin-left: 5px; }
.header-nav ul ul{ position: absolute; top: 100%; left: 0px; width: 220px; background: #fff; box-shadow: 0px 8px 24px rgba(0,0,0,0.12); border-radius: 8px; padding: 8px 0px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s; z-index: 60; }
.header-nav ul li:hover > ul{ opacity: 1; visibility: visible; transform: translateY(0px); }
.header-nav ul ul li{ float: none; }
.header-nav ul ul li a{ padding: 9px 18px; font-size: 14px; }
.header-right{ float: right; margin-left: auto; padding: 15px 0px; }
.header-search{ float: left; position: relative; margin-right: 14px; }
.header-search input{ width: 240px; height: 40px; border: 1px solid var(--th-line); border-radius: 8px; padding: 0px 40px 0px 15px; font-size: 13px; background: var(--th-bg); outline: none; }
.header-search button{ position: absolute; right: 0px; top: 0px; width: 40px; height: 40px; border: none; background: none; color: var(--th-gray); cursor: pointer; }
.header-icon{ float: left; width: 40px; height: 40px; line-height: 40px; text-align: center; color: var(--th-text); font-size: 17px; position: relative; }
.header-icon .dot{ position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--th-red); border-radius: 50%; }
.header-menu-toggle{ display: none; float: right; width: 60px; height: 60px; margin: 20px 10px; border: 1px solid var(--th-line); border-radius: 8px; background: #fff; font-size: 18px; color: var(--th-text); cursor: pointer; }

/*
* HERO SLIDER.
*/
.home-hero{ background: linear-gradient(180deg, #10203a, #0b1524); overflow: hidden; }
.hero-item{ position: relative; }
.hero-item .thumb-cover{ height: 460px; }
.hero-item .thumb-cover:after{ content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(8,15,28,0.92) 32%, rgba(8,15,28,0.35) 62%, rgba(8,15,28,0.15)); }
.hero-caption{ position: absolute; top: 50%; left: 0px; width: 100%; transform: translateY(-50%); z-index: 3; }
.hero-caption .inner{ width: 620px; max-width: 90%; color: #fff; }
.hero-caption h1{ font-size: 40px; line-height: 1.2; font-weight: 800; margin: 16px 0px 14px; }
.hero-caption p{ font-size: 16px; color: #d5dbe6; margin-bottom: 20px; }
.hero-meta{ margin-bottom: 26px; color: #cfd6e2; font-size: 14px; }
.hero-meta > span{ margin-right: 22px; display: inline-block; }
.hero-meta i{ margin-right: 6px; }
.hero-meta .rate{ color: var(--th-star); }
.hero-meta .rate span{ color: #cfd6e2; }
.home-hero .slick-arrow{ position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 16px; cursor: pointer; transition: all 0.25s; }
.home-hero .slick-arrow:hover{ background: var(--th-red); }
.home-hero .slick-prev{ left: 20px; }
.home-hero .slick-next{ right: 20px; }
.home-hero .slick-dots{ position: absolute; bottom: 20px; left: 0px; width: 100%; text-align: center; }
.home-hero .slick-dots li{ display: inline-block; margin: 0px 4px; }
.home-hero .slick-dots li button{ width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); font-size: 0px; cursor: pointer; }
.home-hero .slick-dots li.slick-active button{ background: var(--th-red); width: 24px; border-radius: 6px; }

/*
* CATEGORY BAR.
*/
.home-catbar{ background: #fff; box-shadow: 0px 2px 12px rgba(0,0,0,0.05); }
.home-catbar .container{ padding: 6px 0px; }
.catbar-item{ float: left; width: 20%; padding: 20px 18px; border-right: 1px solid var(--th-line); }
.catbar-item:last-child{ border-right: none; }
.catbar-item .ico{ float: left; width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 10px; background: rgba(225,27,34,0.08); color: var(--th-red); font-size: 20px; margin-right: 14px; }
.catbar-item .txt{ overflow: hidden; }
.catbar-item .txt b{ display: block; font-size: 16px; }
.catbar-item .txt span{ display: block; font-size: 13px; color: var(--th-gray); }

/*
* HOME LAYOUT.
*/
.home-body{ padding: 20px 0px; }
.home-main{ float: left; width: calc(100% - 340px); }
.home-side{ float: right; width: 310px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.home-main .block-item{ padding: 26px 0px; }

/*
* HOME FEATURED.
*/
.fea-big{position: relative; float: left; width: calc(50% - 14px); }
.fea-big .thumb-cover{ position: relative; height: 450px; border-radius: var(--th-radius); }
.fea-big .fea-body{ position: absolute; bottom: 0px; left: 0px; width: 100%; padding: 24px 22px; z-index: 3; }
.fea-big .thumb-cover:after{ content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 70%; background: linear-gradient(180deg, transparent, rgba(6,12,22,0.95)); z-index: 2; }
.fea-big h3{ color: #fff; font-size: 21px; line-height: 1.3; margin: 12px 0px 8px; }
.fea-big p{ color: #dfe4ec; font-size: 14px; margin-bottom: 12px; }
.fea-big .meta,
.fea-big .meta i{ color: #cbd3e0; }
.fea-rows{ float: right; width: calc(50% - 14px); }
.fea-row{ background: #fff; border-radius: var(--th-radius); overflow: hidden; margin-bottom: 15px; box-shadow: 0px 1px 8px rgba(0,0,0,0.04); }
.fea-row:last-child{ margin-bottom: 0px; }
.fea-row .thumb-cover{ float: left; width: 130px; height: 140px; }
.fea-row .fea-row-body{ overflow: hidden; padding: 12px 14px; }
.fea-row .badge{ margin-bottom: 6px; }
.fea-row h3{ font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
.fea-row .meta{ font-size: 12px; }

/*
* CARD GRID (4 columns, dg-item).
*/
.card-grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid-4 .dg-item{ margin: 0px; }

/*
* ROW GRID (2 columns, fea-row) - alternate layout for cat blocks.
*/
.row-grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.row-grid-2 .fea-row{ margin-bottom: 0px; }

/*
* CARD COLUMN (dg-item).
*/
.card-col-wrap{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dg-item{ background: #fff; border-radius: var(--th-radius); overflow: hidden; box-shadow: 0px 1px 8px rgba(0,0,0,0.05); }
.dg-item .thumb-cover{ height: 250px; }
.dg-item .thumb-cover .badge{ position: absolute; top: 10px; left: 10px; z-index: 3; }
.dg-item .dg-body{ padding: 14px; }
.dg-item h3{ font-size: 15px; line-height: 1.4; min-height: 40px; margin-bottom: 8px; }
.dg-item .rate{ display: block; font-size: 14px; margin-bottom: 12px; }
.dg-item .dg-foot{ font-size: 12px; color: var(--th-gray); display: flex; align-items: center; justify-content: space-between; }
.dg-item .dg-meta span{ display: inline-block; margin-right: 12px; }
.dg-item .dg-meta i{ margin-right: 4px; color: var(--th-gray-light); }

/*
* EXPLORE CATEGORIES (explore-row / explore-cell).
*/
.explore-row{ display: flex; flex-wrap: wrap; background: #fff; border-radius: var(--th-radius); box-shadow: 0px 1px 8px rgba(0,0,0,0.05); }
.explore-cell{ display: block; flex: 1 1 0; min-width: 120px; text-align: center; padding: 22px 10px; border-right: 1px solid var(--th-line); transition: background 0.2s; }
.explore-cell:last-child{ border-right: none; }
.explore-cell:hover{ background: #f7f9fc; }
.explore-cell .ico{ display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 18px; margin-bottom: 10px; }
.explore-cell b{ display: block; font-size: 14px; font-weight: 700; color: var(--th-text); margin-bottom: 2px; }
.explore-cell .cnt{ display: block; font-size: 12px; color: var(--th-gray); }
.explore-cell .explore-img{ width: 100px; height: 100px; margin: 0px auto 10px; }

/*
* HOME XE MAY XE DIEN (reuse fea layout).
*/

/*
* SIDEBAR POPULAR.
*/
.side-box{ background: #fff; border-radius: var(--th-radius); padding: 20px; margin-bottom: 24px; box-shadow: 0px 1px 8px rgba(0,0,0,0.05); }
.side-box .side-title{ font-size: 18px; font-weight: 700; padding-left: 12px; border-left: 4px solid var(--th-red); margin-bottom: 18px; }
.pop-item{ position: relative; padding: 12px 0px; border-bottom: 1px dashed var(--th-line); }
.pop-item:last-child{ border-bottom: none; padding-bottom: 0px; }
.pop-item .num{ float: left; width: 26px; height: 26px; line-height: 26px; text-align: center; background: var(--th-red); color: #fff; border-radius: 6px; font-weight: 700; font-size: 13px; margin-right: 12px; }
.pop-item .num.gray{ background: #cbd2dc; }
.pop-item .thumb-cover{ float: left; width: 62px; height: 46px; border-radius: 6px; margin-right: 12px; }
.pop-item .pop-body{ overflow: hidden; }
.pop-item h3{ font-size: 14px; line-height: 1.35; margin-bottom: 5px; }
.pop-item .meta{ font-size: 12px; }
.pop-item .meta .hot{ color: var(--th-red); float: right; }

/*
* DEFAULT WP WIDGETS (search, recent posts/comments, archives, categories...).
*/
.screen-reader-text{ position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.side-box .search-form{ display: flex; gap: 8px; }
.side-box .search-form label{ flex: 1 1 auto; margin: 0px; }
.side-box .search-field{ width: 100%; height: 44px; border: 1px solid var(--th-line); border-radius: 8px; padding: 0px 14px; font-size: 14px; background: var(--th-bg); outline: none; }
.side-box .search-submit{ flex: 0 0 auto; height: 44px; padding: 0px 20px; white-space: nowrap; border: none; border-radius: 8px; background: var(--th-red); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.side-box .search-submit:hover{ background: var(--th-red-dark); }
.side-box ul{ margin: 0px; padding: 0px; list-style: none; }
.side-box ul ul{ margin-left: 14px; margin-top: 6px; }
.side-box li{ padding: 10px 0px; border-bottom: 1px dashed var(--th-line); font-size: 14px; line-height: 1.4; }
.side-box li:last-child{ border-bottom: none; padding-bottom: 0px; }
.side-box li:first-child{ padding-top: 0px; }
.side-box li a{ color: var(--th-text); }
.side-box li a:hover{ color: var(--th-red); }
.side-box li .post-date{ display: block; font-size: 12px; color: var(--th-gray); margin-top: 3px; }
.side-box select{ width: 100%; height: 42px; border: 1px solid var(--th-line); border-radius: 8px; padding: 0px 10px; background: #fff; color: var(--th-text); font-size: 14px; }
.side-box .wp-calendar-table{ width: 100%; font-size: 13px; text-align: center; }
.side-box .wp-calendar-table caption{ font-weight: 700; padding-bottom: 8px; }
.side-box .wp-calendar-table td, .side-box .wp-calendar-table th{ padding: 6px 4px; }

/* Block-based widgets (Gutenberg Search/Latest Posts/Latest Comments/Archives/Categories blocks). */
.side-box .wp-block-search__label{ display: none; }
.side-box .wp-block-search__inside-wrapper{ display: flex; gap: 8px; border: none; }
.side-box .wp-block-search__input{ flex: 1 1 auto; width: 100%; height: 44px; border: 1px solid var(--th-line) !important; border-radius: 8px !important; padding: 0px 14px; font-size: 14px; background: var(--th-bg); outline: none; margin: 0px; }
.side-box .wp-block-search__button{ flex: 0 0 auto; height: 44px; padding: 0px 20px; white-space: nowrap; border: none !important; border-radius: 8px !important; background: var(--th-red) !important; color: #fff !important; fill: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.side-box .wp-block-search__button:hover{ background: var(--th-red-dark) !important; }
.side-box ul.wp-block-latest-posts,
.side-box ul.wp-block-latest-comments,
.side-box ul.wp-block-archives-list,
.side-box ul.wp-block-categories-list{ list-style: none; margin: 0px; padding: 0px; }
.side-box li.wp-block-latest-posts__post,
.side-box li.wp-block-latest-comments__comment,
.side-box .wp-block-archives-list li,
.side-box .wp-block-categories-list li{ padding: 10px 0px; border-bottom: 1px dashed var(--th-line); font-size: 14px; line-height: 1.4; }
.side-box li.wp-block-latest-posts__post:first-child,
.side-box li.wp-block-latest-comments__comment:first-child,
.side-box .wp-block-archives-list li:first-child,
.side-box .wp-block-categories-list li:first-child{ padding-top: 0px; }
.side-box li.wp-block-latest-posts__post:last-child,
.side-box li.wp-block-latest-comments__comment:last-child,
.side-box .wp-block-archives-list li:last-child,
.side-box .wp-block-categories-list li:last-child{ border-bottom: none; padding-bottom: 0px; }
.side-box .wp-block-latest-posts__post-title,
.side-box .wp-block-latest-comments__comment-link,
.side-box a{ color: var(--th-text); }
.side-box .wp-block-latest-posts__post-title:hover,
.side-box .wp-block-latest-comments__comment-link:hover,
.side-box a:hover{ color: var(--th-red); }
.side-box .wp-block-latest-posts__post-date,
.side-box .wp-block-latest-comments__comment-date{ display: block; font-size: 12px; color: var(--th-gray); margin-top: 3px; }
.side-box .wp-block-latest-comments__comment-excerpt{ display: none; }

/*
* SIDEBAR NEWS.
*/
.news-item{ padding: 12px 0px; border-bottom: 1px dashed var(--th-line); }
.news-item:last-child{ border-bottom: none; padding-bottom: 0px; }
.news-item .thumb-cover{ float: left; width: 78px; height: 58px; border-radius: 6px; margin-right: 12px; }
.news-item .news-body{ overflow: hidden; }
.news-item h3{ font-size: 14px; line-height: 1.35; margin-bottom: 6px; }
.news-item .news-foot span{ font-size: 12px; color: var(--th-gray); }
.news-item .news-foot .tag{ float: right; font-size: 11px; color: var(--th-blue); background: rgba(37,99,235,0.08); padding: 2px 8px; border-radius: 4px; }

/*
* LATEST (dark).
*/
.home-latest{ background: var(--th-dark); color: #fff; padding: 46px 0px; }
.home-latest .block-item-title{ color: #fff; }
.latest-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 22px; }
.latest-item{ position: relative; background: var(--th-dark-2); border-radius: 14px; overflow: hidden; }
.latest-item .thumb-cover{ height: 170px; }
.latest-item .latest-body{ padding: 16px 18px; }
.latest-item .latest-body .badge{ position: absolute; top: 12px; left: 12px; z-index: 2; }
.latest-item h3{ font-size: 16px; line-height: 1.35; margin: 10px 0px; }
.latest-item .meta{ display: flex; flex-wrap: wrap; gap: 5px 14px; }
.latest-item .meta,
.latest-item .meta i{ color: #9aa6b8; }

/*
* FOOTER.
*/
.footer{ background: var(--th-footer); color: #a9b3c2; padding: 34px 0px 0px; }
.footer-cats{ display: grid; grid-template-columns: repeat(var(--footer-cols, 3), 1fr); gap: 30px; }
.footer-col.foot-cat h4{ color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; padding-left: 12px; border-left: 3px solid var(--th-red); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fc-item{ margin-bottom: 16px; }
.fc-item:last-child{ margin-bottom: 0px; }
.fc-item .thumb-cover{ float: left; width: 70px; height: 70px; border-radius: 6px; margin-right: 12px; }
.fc-item .fc-body{ overflow: hidden; }
.fc-item h5{ font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.fc-item h5 a{ color: #fff; }
.fc-item h5 a:hover{ color: var(--th-red); }
.fc-item .meta{ font-size: 12px; color: #8b95a6; }
.fc-item .meta span{ margin-right: 12px; }
.fc-item .meta i{ margin-right: 4px; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.08); margin-top: 34px; padding: 20px 0px; font-size: 13px; }
.footer-bottom .backtop{ float: right; cursor: pointer; }
.footer-bottom .backtop i{ margin-left: 6px; }

/*
* SINGLE - QUICK INFO BAR.
*/
.single-wrap{ padding: 22px 0px 50px; }
.breadcrumb{ font-size: 13px; color: var(--th-gray); padding: 4px 0px 18px; }
.breadcrumb a:hover{ color: var(--th-red); }
.breadcrumb .sep{ margin: 0px 8px; color: var(--th-gray-light); }
/*
* SINGLE LAYOUT.
*/
.single-main{ float: left; width: calc(100% - 350px); }
.single-side{ float: right; width: 320px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.single-head .badge{ margin-bottom: 12px; }
.single-head h1{ font-size: 32px; line-height: 1.25; font-weight: 800; margin-bottom: 14px; }
.single-head .head-meta{ padding-bottom: 16px; border-bottom: 1px solid var(--th-line); margin-bottom: 16px; }
.single-head .head-meta > span{ margin-right: 20px; font-size: 14px; color: var(--th-gray); }
.single-head .head-meta i{ margin-right: 5px; }
.single-head .head-author{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.single-head .head-author .author-info{ display: flex; align-items: center; }
.single-head .head-author img{ width: 42px; height: 42px; border-radius: 50%; object-fit: cover; margin-right: 12px; }
.single-head .head-author .author-text b{ font-size: 14px; }
.single-head .head-author .author-text span{ display: block; font-size: 12px; color: var(--th-gray); }
.single-head .head-author .date{ text-align: right; font-size: 12px; color: var(--th-gray); }

/*
* SINGLE GALLERY.
*/
.single-gallery{ margin-bottom: 26px; }
.gallery-main{ position: relative; border-radius: var(--th-radius); overflow: hidden; margin-bottom: 12px; }
.gallery-main .gitem{ position: relative; }
.gallery-main .thumb-cover{ height: 430px; }
.gallery-main .thumb-cover.tilt-3d{ perspective: 1000px; }
.gallery-main .thumb-cover.tilt-3d img{ transition: transform 0.2s ease-out; will-change: transform; }
.gallery-main .gcap{ position: absolute; bottom: 0px; left: 0px; width: 100%; padding: 30px 20px 16px; color: #fff; font-size: 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75)); z-index: 3; }
.gallery-main .gcount{ position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 20px; z-index: 4; }
.gallery-main .slick-arrow{ position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); color: var(--th-text); cursor: pointer; }
.gallery-main .slick-prev{ left: 14px; }
.gallery-main .slick-next{ right: 14px; }
.gallery-thumbs .gth{ float: left; width: calc((100% - 100px - 60px) / 5); height: 74px; margin-right: 15px; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-thumbs .g360{ float: right; width: 100px; height: 74px; border-radius: 8px; background: var(--th-red); color: #fff; text-align: center; padding-top: 14px; cursor: pointer; }
.gallery-thumbs .g360 b{ display: block; font-size: 17px; }
.gallery-thumbs .g360 span{ font-size: 12px; }

/*
* SINGLE CONTENT.
*/
.single-content{ background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 22px 24px; margin-bottom: 26px; font-size: 16px; line-height: 1.85; color: #2a3444; }
.single-content > *:first-child{ margin-top: 0px; }
.single-content h2{ font-size: 22px; font-weight: 700; margin: 34px 0px 16px; padding-left: 12px; border-left: 4px solid var(--th-red); }
.single-content h2 .num{ color: var(--th-red); margin-right: 6px; }
.single-content h3{ font-size: 18px; font-weight: 700; margin: 26px 0px 12px; padding-left: 10px; border-left: 3px solid var(--th-red); color: var(--th-text); }
.single-content h4{ font-size: 16px; font-weight: 700; margin: 20px 0px 10px; color: var(--th-text); }
.single-content p{ margin-bottom: 16px; }
.single-content p:last-child{ margin-bottom: 0px; }
.single-content strong{ color: var(--th-text); font-weight: 700; }
.single-content a{ color: var(--th-red); text-decoration: underline; text-underline-offset: 2px; }
.single-content a:hover{ color: var(--th-red-dark); }
.single-content ul, .single-content ol{ margin: 0px 0px 18px; padding-left: 4px; list-style: none; }
.single-content ul li, .single-content ol li{ position: relative; padding-left: 26px; margin-bottom: 10px; }
.single-content ul li::before{ content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0px; top: 2px; color: var(--th-red); font-size: 12px; }
.single-content ol{ counter-reset: sc-ol; }
.single-content ol li{ counter-increment: sc-ol; }
.single-content ol li::before{ content: counter(sc-ol); position: absolute; left: 0px; top: 0px; width: 18px; height: 18px; line-height: 18px; text-align: center; background: var(--th-red); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; }
.single-content img{ max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 6px auto; }
.single-content figure{ margin: 20px 0px; }
.single-content figcaption{ text-align: center; font-size: 13px; color: var(--th-gray); margin-top: 8px; }
.single-content hr{ border: none; border-top: 1px solid var(--th-line); margin: 28px 0px; }
.single-content blockquote{ background: #eef4ff; border-left: 4px solid var(--th-blue); padding: 18px 22px; border-radius: 8px; font-style: italic; color: #3a4658; margin: 22px 0px; position: relative; }
.single-content blockquote i{ color: var(--th-blue); font-size: 18px; margin-right: 8px; }
.single-content blockquote p:last-child{ margin-bottom: 0px; }
.single-content table{ width: 100%; border-collapse: collapse; margin: 20px 0px; font-size: 14px; overflow: hidden; border-radius: 8px; border: 1px solid var(--th-line); }
.single-content table th, .single-content table td{ padding: 12px 14px; border-bottom: 1px solid var(--th-line); text-align: left; }
.single-content table th{ background: var(--th-dark); color: #fff; font-weight: 600; }
.single-content table tr:last-child td{ border-bottom: none; }
.single-content table tr:nth-child(2n) td{ background: #f7f9fc; }
.content-gallery{ margin: 18px 0px; }
.content-gallery .cg-big{ float: left; width: calc(55% - 10px); }
.content-gallery .cg-big .thumb-cover{ height: 100%; min-height: 260px; border-radius: 8px; }
.content-gallery .cg-side{ float: right; width: calc(45% - 10px); }
.content-gallery .cg-small{ float: left; width: calc(50% - 6px); margin-bottom: 12px; }
.content-gallery .cg-small:nth-child(2n){ float: right; }
.content-gallery .cg-small .thumb-cover{ height: 118px; border-radius: 8px; }
.content-gallery .cap{ position: absolute; bottom: 0px; left: 0px; width: 100%; padding: 16px 12px 8px; color: #fff; font-size: 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75)); z-index: 3; }
.content-3col .c3{ float: left; width: calc((100% - 24px) / 3); margin-right: 12px; }
.content-3col .c3:nth-child(3n){ margin-right: 0px; }
.content-3col .c3 .thumb-cover{ height: 150px; border-radius: 8px; }
.spec-box{ background: #f7f9fc; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 16px; margin: 18px 0px; }
.spec-box .sb-img{ float: left; width: 170px; height: 110px; border-radius: 8px; overflow: hidden; margin-right: 20px; position: relative; }
.spec-box .sb-list{ overflow: hidden; }
.spec-box .sb-item{ float: left; width: 20%; padding: 8px 10px; }
.spec-box .sb-item i{ color: var(--th-red); font-size: 16px; margin-bottom: 4px; display: block; }
.spec-box .sb-item span{ display: block; font-size: 12px; color: var(--th-gray); }
.spec-box .sb-item b{ font-size: 14px; }
.single-tags{ background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 18px 22px; margin-bottom: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.single-tags .st-label{ font-weight: 700; color: var(--th-text); margin-right: 4px; }
.single-tags .st-label i{ color: var(--th-red); margin-right: 6px; }
.single-tags a{ display: inline-block; padding: 6px 16px; background: var(--th-bg); border-radius: 20px; font-size: 13px; color: var(--th-text); }
.single-tags a:hover{ background: var(--th-red); color: #fff; }
.single-related{ margin-top: 30px; }
.related-row-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 991px){
    .related-row-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px){
    .related-row-4{ grid-template-columns: 1fr; }
}

/*
* SINGLE SIDEBAR.
*/
.author-box .au-top{ margin-bottom: 12px; }
.author-box .au-top img{ float: left; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin-right: 14px; }
.author-box .au-top b{ font-size: 16px; padding-top: 6px; display: block; }
.author-box .au-top span{ font-size: 13px; color: var(--th-gray); }
.author-box p{ font-size: 14px; color: #4a5568; margin-bottom: 12px; }
.author-box .au-link{ color: var(--th-red); font-weight: 600; font-size: 14px; }
.tag-box a{ display: inline-block; background: #eef1f6; color: #4a5568; font-size: 13px; padding: 6px 13px; border-radius: 6px; margin: 0px 6px 8px 0px; }
.tag-box a:hover{ background: var(--th-red); color: #fff; }
.share-box a{ float: left; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 8px; color: #fff; margin-right: 8px; }
.share-fb{ background: #1877f2; }
.share-x{ background: #111; }
.share-in{ background: #0a66c2; }
.share-zl{ background: #0068ff; }
.share-cp{ background: #6b7280; }

/*
* PAGE - GIOI THIEU (about).
*/
.about-hero{ text-align: center; padding: 30px 0px 10px; }
.about-hero .badge{ margin-bottom: 14px; }
.about-hero h1{ font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.about-hero p{ max-width: 680px; margin: 0px auto; color: var(--th-gray); font-size: 16px; line-height: 1.7; }
.about-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0px; }
.as-item{ background: #fff; border-radius: var(--th-radius); box-shadow: 0px 1px 8px rgba(0,0,0,0.05); padding: 26px 10px; text-align: center; }
.as-item i{ color: var(--th-red); font-size: 24px; margin-bottom: 10px; display: block; }
.as-item b{ display: block; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.as-item span{ font-size: 13px; color: var(--th-gray); }
.about-main{ float: none; width: 100%; margin-bottom: 10px; }
.about-values{ padding: 20px 0px 10px; }
.av-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.av-item{ background: #fff; border-radius: var(--th-radius); box-shadow: 0px 1px 8px rgba(0,0,0,0.05); padding: 26px 22px; }
.av-ico{ width: 50px; height: 50px; line-height: 50px; text-align: center; border-radius: 12px; background: rgba(225,27,34,0.08); color: var(--th-red); font-size: 20px; margin-bottom: 14px; }
.av-item b{ display: block; font-size: 16px; margin-bottom: 8px; }
.av-item p{ font-size: 13px; color: var(--th-gray); line-height: 1.6; margin: 0px; }
.about-cta{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--th-dark); border-radius: var(--th-radius); padding: 28px 32px; margin: 30px 0px 40px; color: #fff; }
.about-cta .ac-text b{ display: block; font-size: 18px; margin-bottom: 4px; }
.about-cta .ac-text span{ font-size: 13px; color: #aab4c4; }

/*
* PAGE - LIEN HE (contact).
*/
.contact-info{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0px 30px; }
.ci-item{ background: #fff; border-radius: var(--th-radius); box-shadow: 0px 1px 8px rgba(0,0,0,0.05); padding: 22px; text-align: center; }
.ci-ico{ width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 50%; background: rgba(225,27,34,0.08); color: var(--th-red); font-size: 18px; margin: 0px auto 12px; }
.ci-item span{ display: block; font-size: 12px; color: var(--th-gray); margin-bottom: 4px; }
.ci-item b{ font-size: 14px; font-weight: 600; }
.contact-main{ float: none; width: 100%; }
.contact-form-box h2{ margin-top: 0px; }
.cf-alert{ padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.cf-alert i{ margin-right: 8px; }
.cf-success{ background: rgba(16,185,129,0.1); color: #0a7a58; }
.cf-error{ background: rgba(225,27,34,0.08); color: var(--th-red-dark); }
.cf-hp{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-form .cf-row{ display: flex; gap: 20px; margin-bottom: 18px; }
.contact-form .cf-col{ flex: 1 1 0; }
.contact-form label{ display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.contact-form label em{ color: var(--th-red); font-style: normal; }
.contact-form input, .contact-form textarea{ width: 100%; border: 1px solid var(--th-line); border-radius: 8px; padding: 12px 14px; font-size: 14px; font-family: inherit; background: var(--th-bg); outline: none; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus{ border-color: var(--th-red); }
.contact-form textarea{ resize: vertical; }
.contact-form button{ border: none; cursor: pointer; }
.contact-social{ display: flex; align-items: center; gap: 10px; margin-bottom: 40px; font-size: 14px; color: var(--th-gray); }
.contact-social a{ float: none; }

/* ==========================================================================
   RESPONSIVE.
   ========================================================================== */

/* Tablet landscape / small laptop: collapse the nav into a hamburger. */
@media (max-width: 1199px){
    .header-menu-toggle{ display: block; position: relative; z-index: 210; }
    .header-nav{ display: none; float: none; width: 100vw; margin: 0px; background: #fff; position: fixed; top: 0px; left: 0px; height: 100vh; overflow-y: auto; z-index: 200; padding-top: 92px; }
    .header-nav.open{ display: block; }
    .header-nav ul li{ float: none; border-bottom: 1px solid var(--th-line); }
    .header-nav ul li a{ padding: 16px 24px; font-size: 16px; }
    .header-nav ul li.menu-item-has-children > a:after{ float: right; }
    .header-nav ul ul{ position: static; width: 100%; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0px; background: var(--th-bg); }
    body.nav-open{ overflow: hidden; }
    .header-search input{ width: 180px; }
    .home-main, .home-side{ float: none; width: 100%; }
    .home-side{ margin-top: 10px; position: static; max-height: none; overflow-y: visible; }
    .single-main, .single-side{ float: none; width: 100%; }
    .single-side{ margin-top: 10px; position: static; max-height: none; overflow-y: visible; }
    .footer-cats{ grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait. */
@media (max-width: 991px){
    .header-logo img{ height: 80px; }
    .hero-item .thumb-cover{ height: 380px; }
    .hero-item .thumb-cover:after{ background: linear-gradient(180deg, rgba(8,15,28,0.15), rgba(8,15,28,0.6) 45%, rgba(8,15,28,0.94)); }
    .hero-caption{ top: auto; bottom: 0px; transform: none; padding-bottom: 44px; }
    .hero-caption .inner{ width: 100%; }
    .hero-caption h1{ font-size: 30px; }
    .catbar-item{ width: 50%; }
    .catbar-item:nth-child(2n){ border-right: none; }
    .catbar-item:nth-child(n+3){ border-top: 1px solid var(--th-line); }
    .fea-big, .fea-rows{ float: none; width: 100%; }
    .fea-rows{ margin-top: 20px; }
    .fea-big .thumb-cover{ height: 320px; }
    .card-grid-4, .row-grid-2, .card-col-wrap{ grid-template-columns: repeat(2, 1fr); }
    .about-stats, .av-grid, .contact-info{ grid-template-columns: repeat(2, 1fr); }
    .latest-grid{ grid-template-columns: 1fr; gap: 14px; }
    .latest-item{ display: flex; align-items: flex-start; gap: 14px; padding: 12px; }
    .latest-item .thumb-cover{ flex: 0 0 90px; width: 90px; height: 90px; border-radius: 8px; }
    .latest-item .latest-body{ padding: 0px; flex: 1; min-width: 0px; }
    .latest-item .latest-body .badge{ position: static; display: inline-block; margin-bottom: 8px; }
    .latest-item h3{ font-size: 14px; margin: 0px 0px 6px; }
    .latest-item .meta{ font-size: 12px; gap: 4px 10px; }
}

/* Mobile. */
@media (max-width: 767px){
    .hero-slider{display: none;}
    .header-logo img{ height: 80px; }
    .header-icon, .header-search{ display: none; }
    .hero-caption h1{ font-size: 24px; }
    .hero-caption p{ font-size: 14px; }
    .hero-meta > span{ margin-right: 12px; font-size: 12px; }
    .fea-big .thumb-cover{ height: 380px; }
    .fea-big .thumb-cover:after{ height: 85%; background: linear-gradient(180deg, transparent, rgba(6,12,22,0.6) 35%, rgba(6,12,22,0.97) 80%); }
    .fea-big h3{ font-size: 18px; }
    .catbar-item{ width: 100%; border-right: none !important; padding: 16px 0px; }
    .catbar-item:nth-child(n+2){ border-top: 1px solid var(--th-line); }
    .single-head h1{ font-size: 24px; }
    .archive-banner{ padding: 36px 0px; }
    .archive-title{ font-size: 26px; }
    .single-head .head-author{ flex-direction: column; align-items: flex-start; }
    .single-head .head-author .date{ text-align: left; }
    .gallery-main .thumb-cover{ height: 260px; }
    .gallery-thumbs{ display: flex; flex-wrap: wrap; gap: 8px; }
    .gallery-thumbs .gth{ float: none; width: calc(20% - 7px); height: 60px; margin-right: 0px; }
    .single-content{ padding: 16px 18px; }
    .spec-box .sb-img{ float: none; width: 100%; height: 180px; margin-right: 0px; margin-bottom: 12px; }
    .spec-box .sb-item{ width: 50%; }
    .content-gallery .cg-big, .content-gallery .cg-side{ float: none; width: 100%; }
    .content-gallery .cg-side{ margin-top: 12px; }
    .content-3col .c3{ float: left; width: calc((100% - 12px) / 2); margin-bottom: 12px; }
    .content-3col .c3:nth-child(2n){ margin-right: 0px; }
    .latest-item .thumb-cover{ flex-basis: 74px; width: 74px; height: 74px; }
    .footer-cats{ grid-template-columns: 1fr; gap: 16px; width: 100vw; margin-left: calc(50% - 50vw); padding: 0px 16px; }
    .footer-col.foot-cat{ background: var(--th-footer-2); border-radius: 12px; padding: 18px; }
    .footer-col.foot-cat h4{ border-bottom-color: rgba(255,255,255,0.14); }
    .fc-item{ padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed #fff; }
    .fc-item:last-child{ margin-bottom: 0px; padding-bottom: 0px; border-bottom: none; }
    .about-hero h1{ font-size: 26px; }
    .about-cta{ flex-direction: column; align-items: flex-start; }
    .contact-form .cf-row{ flex-direction: column; gap: 0px; }
}

/* Small mobile. */
@media (max-width: 575px){
    .header-logo img{ height: 80px; }
    .header .container{display: inline !important;}
    .card-grid-4, .row-grid-2, .card-col-wrap{ grid-template-columns: 1fr; }
    .fea-row .thumb-cover{ width: 120px; }
    .single-head h1{ font-size: 20px; }
    .gallery-main .thumb-cover{ height: 200px; }
    .gallery-thumbs .gth{ width: calc(33.33% - 6px); }
    .about-stats, .av-grid, .contact-info{ grid-template-columns: 1fr; }
    .fea-big p{
        display: none;
    }
}

}
