/* =========================================================
   Redesign 2026-11 — duanvinhomesolympic.vn
   Gỡ bỏ: xoá wp_enqueue_style('dvo-redesign') trong functions.php
   ========================================================= */
:root {
	--dvo-navy: #0f2a4a;
	--dvo-navy-2: #16375f;
	--dvo-gold: #c8a24a;
	--dvo-gold-soft: #f6efdc;
	--dvo-red: #d62828;
	--dvo-ink: #1d2433;
	--dvo-muted: #5b6475;
	--dvo-line: #e3e6ec;
	--dvo-bg: #f5f6f8;
	--dvo-radius: 10px;
	--dvo-shadow: 0 6px 24px rgba(15, 42, 74, .08);
}

body { color: var(--dvo-ink); background: var(--dvo-bg); -webkit-font-smoothing: antialiased; }
#main, #wrapper { background: var(--dvo-bg); }
a { color: var(--dvo-navy-2); }
a:hover { color: var(--dvo-gold); }

/* ---------- Header ---------- */
.header-main { background: #fff !important; border-bottom: 1px solid var(--dvo-line); }
.header-bottom { background: var(--dvo-navy) !important; }
.header-bottom .nav > li > a { color: #fff; font-weight: 600; letter-spacing: .02em; }
.header-bottom .nav > li.active > a,
.header-bottom .nav > li > a:hover { color: var(--dvo-gold) !important; }
.header-bottom .nav > li.active > a { background: transparent !important; box-shadow: inset 0 -3px 0 var(--dvo-gold); }
.nav-dropdown { border-top: 3px solid var(--dvo-gold) !important; background: #fff !important; border-radius: 0 0 var(--dvo-radius) var(--dvo-radius); box-shadow: var(--dvo-shadow); }
.nav-dropdown li a { color: var(--dvo-ink) !important; }
.nav-dropdown li a:hover { color: var(--dvo-gold) !important; background: var(--dvo-gold-soft); }
.hotline-top a { display: inline-flex; align-items: center; gap: 6px; background: var(--dvo-red); color: #fff !important;
	padding: 8px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 14px rgba(214, 40, 40, .25); }
.hotline-top a:hover { background: #b51f1f; }

/* ---------- Buttons ---------- */
.button.primary, .button.is-primary, input[type=submit].button, .wpcf7-submit {
	background: var(--dvo-navy) !important; border-radius: 8px !important; }
.button.secondary, .button.alert { border-radius: 8px !important; }

/* ---------- Bài viết ---------- */
.blog-single .large-9, .blog-single .col.large-10 { }
.blog-single .article-inner,
.single-post .article-inner { background: #fff; border-radius: var(--dvo-radius); box-shadow: var(--dvo-shadow); padding: 32px 36px; }
.single-post .entry-content { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.single-post .entry-header-text { max-width: 760px; margin: 0 auto; padding-top: 0; }
.single-post .entry-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.25; color: var(--dvo-navy); letter-spacing: -.01em; }
.single-post .entry-header .entry-meta { color: var(--dvo-muted); font-size: 14px; text-transform: none; letter-spacing: 0; }
.single-post .entry-divider, .single-post .is-divider { background: var(--dvo-gold); height: 3px; max-width: 48px; }
.entry-content p, .blog-single p { margin-bottom: 1.1em; }
.entry-content h2, .blog-single h2 { font-size: 26px; line-height: 1.3; color: var(--dvo-navy); margin: 1.8em 0 .6em;
	padding-left: 14px; border-left: 4px solid var(--dvo-gold); }
.entry-content h3, .blog-single h3 { font-size: 21px; line-height: 1.35; color: var(--dvo-navy-2); margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 18px; color: var(--dvo-navy-2); }
.entry-content ul, .entry-content ol { margin-left: 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { border-left: 4px solid var(--dvo-gold); background: var(--dvo-gold-soft); padding: 16px 20px;
	border-radius: 0 var(--dvo-radius) var(--dvo-radius) 0; font-style: normal; color: var(--dvo-ink); }
.entry-content img { border-radius: 8px; }
.entry-content .wp-caption, .entry-content figure { max-width: 100% !important; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 14px; color: var(--dvo-muted); text-align: center; padding: 8px 4px 0; }

/* Bảng: cuộn ngang trên mobile, kẻ gọn */
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table tbody, .entry-content table thead { display: table; width: 100%; min-width: 520px; }
.entry-content th, .entry-content td { border: 1px solid var(--dvo-line); padding: 10px 12px; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--dvo-navy); color: #fff; }
.entry-content tbody tr:nth-child(even) td { background: #fafbfc; }

/* Iframe/video không tràn */
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }

/* Hộp tác giả / bài liên quan */
.single-post .entry-author { background: #fff; border-radius: var(--dvo-radius); box-shadow: var(--dvo-shadow); }

/* ---------- Danh sách bài ---------- */
.post-item .box { background: #fff; border-radius: var(--dvo-radius); overflow: hidden; box-shadow: var(--dvo-shadow); transition: transform .2s, box-shadow .2s; height: 100%; }
.post-item .box:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 42, 74, .14); }
.post-item .box-text { padding: 16px 18px 20px !important; }
.post-item .post-title { color: var(--dvo-navy); font-weight: 700; line-height: 1.35; }
.post-item .is-divider { background: var(--dvo-gold); }

/* ---------- Sidebar ---------- */
.post-sidebar .widget, #secondary .widget { background: #fff; border-radius: var(--dvo-radius); box-shadow: var(--dvo-shadow); padding: 18px; border: 0; }
.post-sidebar .widget-title, #secondary .widget-title { color: var(--dvo-navy) !important; border-bottom: 2px solid var(--dvo-gold) !important; }

/* ---------- Footer ---------- */
.footer-wrapper .absolute-footer { background: var(--dvo-navy) !important; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.6; }
.footer-wrapper .absolute-footer a { color: var(--dvo-gold); }

/* ---------- Form ---------- */
.wpcf7 input[type=text], .wpcf7 input[type=tel], .wpcf7 input[type=email], .wpcf7 textarea, .wpcf7 select {
	border-radius: 8px; border: 1px solid var(--dvo-line); box-shadow: none; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--dvo-gold); box-shadow: 0 0 0 3px rgba(200, 162, 74, .2); }

/* ---------- Thanh CTA cố định trên mobile ---------- */
.dvo-cta-bar { display: none; }
@media (max-width: 849px) {
	.float-contact { display: none !important; }
	.dvo-cta-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
		background: #fff; border-top: 1px solid var(--dvo-line); box-shadow: 0 -6px 20px rgba(15, 42, 74, .12);
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
	.dvo-cta-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 8px;
		font-weight: 700; font-size: 14px; color: #fff; text-decoration: none; }
	.dvo-cta-bar .cta-call { background: var(--dvo-red); }
	.dvo-cta-bar .cta-zalo { background: #0068ff; }
	.dvo-cta-bar .cta-form { background: var(--dvo-navy); }
	body { padding-bottom: 64px; }
	.back-to-top { bottom: 76px !important; }

	.single-post .article-inner { padding: 20px 16px; border-radius: 0; box-shadow: none; }
	.single-post .entry-content { font-size: 16.5px; }
	.entry-content h2, .blog-single h2 { font-size: 22px; }
	.entry-content h3, .blog-single h3 { font-size: 19px; }
}

/* ---------- Bổ sung sau khi xem ảnh chụp ---------- */
.ten_cong_ty_dt { color: var(--dvo-navy) !important; letter-spacing: .01em !important; font-size: 28px !important; line-height: 1.2 !important; white-space: nowrap; }
.header-block-block-1 em, .header-block-block-1 i, .header-block-block-1 p { color: var(--dvo-gold) !important; }
.single-page p, .page-right-sidebar p, .blog-single p, .entry-content p, .entry-content li { text-align: left !important; }

.post-sidebar .widget-title, #secondary .widget-title, .widget .widget-title { background: transparent !important; color: var(--dvo-navy) !important;
	text-align: left !important; padding: 0 0 8px !important; font-size: 15px; letter-spacing: .04em; }
.flatsome_recent_posts .recent-blog-posts a, .widget .recent-blog-posts-li a { color: var(--dvo-ink); font-weight: 500; line-height: 1.4; }
.flatsome_recent_posts .recent-blog-posts a:hover { color: var(--dvo-gold); }

.dvo-advice { background: linear-gradient(160deg, var(--dvo-navy), var(--dvo-navy-2)); color: #fff; border-radius: var(--dvo-radius); padding: 20px; margin: -18px; }
.dvo-advice p { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 12px; text-align: left !important; }
.dvo-advice .dvo-advice-title { color: var(--dvo-gold); font-weight: 700; font-size: 17px; line-height: 1.35; }
.dvo-advice .dvo-btn { display: block; text-align: center; padding: 11px 12px; border-radius: 8px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dvo-btn-call { background: var(--dvo-red); } .dvo-btn-zalo { background: #0068ff; }
.dvo-advice .dvo-advice-note { font-size: 12px; color: rgba(255,255,255,.6); margin: 8px 0 0; }
@media (max-width: 849px) { .ten_cong_ty_dt { font-size: 20px !important; white-space: normal; } }

/* =========================================================
   Trang chủ đợt 2 — [dvo_home_*] (inc/dvo-home.php)
   ========================================================= */
.dvo-home-wrap { max-width: 1110px; margin: 0 auto; padding: 0 15px; }
.dvo-hero { position: relative; overflow: hidden; background: var(--dvo-navy); color: #fff; min-height: 520px; display: flex; align-items: flex-end; }
.dvo-hero .dvo-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.dvo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,74,.15) 0%, rgba(15,42,74,.55) 45%, rgba(8,23,42,.92) 100%); }
.dvo-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1110px; margin: 0 auto; padding: 120px 15px 96px; }
.dvo-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(200,162,74,.18); border: 1px solid rgba(200,162,74,.6);
	color: #f1dca4; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.dvo-hero .dvo-hero-title { color: #fff; font-size: clamp(32px, 5vw, 54px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 14px; max-width: 760px; }
.dvo-hero-lead { color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.6; max-width: 680px; margin: 0 0 24px; text-align: left !important; }
.dvo-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.dvo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 700; color: #fff !important; text-decoration: none; transition: filter .15s; }
.dvo-btn:hover { filter: brightness(1.08); }
.dvo-btn-ghost { border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.dvo-hero-note { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }
.dvo-hero-note a { color: #f1dca4; text-decoration: underline; }

.dvo-stats { list-style: none; margin: -56px 0 0 !important; padding: 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--dvo-radius); box-shadow: 0 14px 40px rgba(15,42,74,.14); }
.dvo-stats li { margin: 0 !important; padding: 22px 20px; border-left: 1px solid var(--dvo-line); }
.dvo-stats li:first-child { border-left: 0; }
.dvo-stats strong { display: block; color: var(--dvo-navy); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.dvo-stats span { display: block; color: var(--dvo-muted); font-size: 14px; margin-top: 6px; }

.dvo-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 48px 0 18px; }
.dvo-section-head h2 { margin: 0; font-size: 28px; color: var(--dvo-navy); border: 0; padding: 0; }
.dvo-section-head a { font-weight: 600; font-size: 15px; color: var(--dvo-navy-2); white-space: nowrap; }

.dvo-timeline { list-style: none; margin: 0 !important; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.dvo-timeline li { position: relative; margin: 0 !important; padding: 26px 18px 0 0; border-top: 3px solid var(--dvo-gold); }
.dvo-timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--dvo-gold); border: 3px solid var(--dvo-bg); }
.dvo-timeline li.is-next { border-top-style: dashed; border-top-color: #b9bfcb; }
.dvo-timeline li.is-next::before { background: #fff; box-shadow: inset 0 0 0 2px var(--dvo-gold); }
.dvo-timeline time { display: block; font-weight: 700; color: var(--dvo-navy); font-size: 17px; }
.dvo-timeline span { display: block; color: var(--dvo-muted); font-size: 14.5px; line-height: 1.5; margin-top: 4px; }

.dvo-cards { display: grid; gap: 20px; }
.dvo-cards-4 { grid-template-columns: repeat(4, 1fr); }
.dvo-cards-3 { grid-template-columns: repeat(3, 1fr); }
.dvo-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--dvo-radius); overflow: hidden; box-shadow: var(--dvo-shadow);
	color: var(--dvo-ink) !important; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dvo-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,42,74,.15); }
.dvo-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9edf3; }
.dvo-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.dvo-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.dvo-card-body strong { color: var(--dvo-navy); font-size: 17px; line-height: 1.4; }
.dvo-card-body em { font-style: normal; color: var(--dvo-red); font-weight: 600; font-size: 15px; }
.dvo-card-body time { color: var(--dvo-muted); font-size: 13px; }
.dvo-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--dvo-gold); }
.dvo-disclaimer { margin: 14px 0 0; font-size: 13.5px; color: var(--dvo-muted); text-align: left !important; }

/* Bài giới thiệu dài trên trang chủ: khung đọc */
.home .dvo-home-article { padding-top: 40px !important; padding-bottom: 0 !important; background: transparent !important; }
.home .dvo-home-article > .section-content > .row > .col > .col-inner { background: #fff; border-radius: var(--dvo-radius); box-shadow: var(--dvo-shadow); padding: 40px 48px; }
.home .dvo-home-article .section-content > .row > .col > .col-inner > * { max-width: 820px; max-width: min(820px, 100%); margin-left: auto; margin-right: auto; }
.home .dvo-home-article .section-content > .row > .col > .col-inner > h2:first-child { margin-top: 0; }
.home .dvo-home-article iframe { display: block; max-width: 100%; border: 0; border-radius: 8px; }
.home .dvo-home-article #faq-vinhomes-olympic { background: var(--dvo-gold-soft) !important; }
.home .dvo-home-wrap:last-child { padding-bottom: 56px; }

@media (max-width: 849px) {
	.dvo-hero { min-height: 0; }
	.dvo-hero-inner { padding: 72px 16px 80px; }
	.dvo-hero-lead { font-size: 16px; }
	.dvo-stats { grid-template-columns: repeat(2, 1fr); margin-top: -44px !important; }
	.dvo-stats li:nth-child(3) { border-left: 0; }
	.dvo-stats li:nth-child(n+3) { border-top: 1px solid var(--dvo-line); }
	.dvo-stats strong { font-size: 24px; }
	.dvo-timeline { grid-template-columns: 1fr; }
	.dvo-timeline li { border-top: 0; border-left: 3px solid var(--dvo-gold); padding: 0 0 18px 20px; }
	.dvo-timeline li::before { top: 2px; left: -9px; }
	.dvo-timeline li.is-next { border-left-style: dashed; border-left-color: #b9bfcb; }
	.dvo-cards-4, .dvo-cards-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.dvo-section-head { margin-top: 36px; }
	.dvo-section-head h2 { font-size: 23px; }
	.home .dvo-home-article > .section-content > .row > .col > .col-inner { padding: 24px 16px; border-radius: 0; box-shadow: none; }
}
@media (max-width: 549px) {
	.dvo-hero-cta .dvo-btn { flex: 1 1 100%; }
	.dvo-cards-3 { grid-template-columns: 1fr; }
	.dvo-card-body strong { font-size: 15.5px; }
	.dvo-card-body { padding: 12px 12px 14px; }
}
.dvo-section-head { flex-wrap: nowrap; }
.dvo-section-head h2 { flex: 1 1 auto; width: auto; }
@media (max-width: 549px) { .dvo-section-head { flex-wrap: wrap; } }
.home .dvo-home-article .col-inner > section { margin-left: auto !important; margin-right: auto !important; }
.home .dvo-home-article h2 { color: var(--dvo-navy); }
.dvo-hero .dvo-hero-title .dvo-h1-sub { display: block; margin-top: 8px; font-size: .52em; line-height: 1.25; font-weight: 600; color: #f1dca4; letter-spacing: 0; }

/* Fix mobile: anh co caption khong tran man hinh */
.dvo-home-article .wp-caption, .dvo-home-article .wp-caption img { max-width: 100% !important; height: auto; }

/* Hero: 2 anh nen chuyen mo dan (18/11/2026) */
.dvo-hero .dvo-slide-2 { opacity: 0; animation: dvoHeroFade 12s ease-in-out infinite; }
@keyframes dvoHeroFade { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dvo-hero .dvo-slide-2 { animation: none; } }
.dvo-hero-note { position: absolute; right: 12px; bottom: 10px; z-index: 3; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 10px; pointer-events: none; }
