/*
Theme Name: EnviLab
Theme URI: https://example.com/envilab
Author: Nguyễn Đình Đức
Description: Theme WordPress cho phòng thí nghiệm / tổ chức thử nghiệm – quan trắc môi trường. Bố cục kiểu cổng thông tin kỹ thuật: top bar, mega menu, slider, dải "Tin mới", thanh truy cập nhanh, lưới dịch vụ, tin tức, đối tác, footer nhiều cột. Màu, logo, thông tin liên hệ, slider chỉnh trong Giao diện → Tùy biến.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: envilab
*/

:root {
	--primary: #0b3d7a;
	--primary-dark: #072a56;
	--primary-soft: #e8eff8;
	--accent: #13a06f;
	--accent-dark: #0d7c56;
	--warn: #e8a317;
	--text: #1f2733;
	--muted: #5f6b7a;
	--border: #e1e7ef;
	--bg-soft: #f4f7fb;
	--white: #fff;
	--radius: 6px;
	--shadow: 0 6px 24px rgba(11, 61, 122, .08);
	--container: 1240px;
	--font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { line-height: 1.3; margin: 0 0 .6em; color: var(--primary-dark); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; background: #fff; padding: 8px 12px; top: 8px; left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.btn-link::after { content: " →"; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #cfdcef; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cfdcef; }
.topbar a:hover { color: #fff; }
.topbar-info, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a { padding: 2px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; font-weight: 600; font-size: 12px; }
.lang-switch a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--border); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; transition: min-height .2s; }
.is-scrolled .header-inner { min-height: 66px; }
.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-branding .custom-logo { max-height: 60px; width: auto; transition: max-height .2s; }
.is-scrolled .site-branding .custom-logo { max-height: 46px; }
.brand-text .site-title { font-size: 20px; font-weight: 800; color: var(--primary); margin: 0; letter-spacing: .3px; text-transform: uppercase; }
.brand-text .site-desc { font-size: 12px; color: var(--muted); margin: 0; }
.brand-mark { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 30px 14px; font-weight: 600; font-size: 14px; color: var(--text); text-transform: uppercase; letter-spacing: .2px; position: relative; white-space: nowrap; transition: padding .2s, color .2s; }
.is-scrolled .main-nav > ul > li > a { padding-top: 22px; padding-bottom: 22px; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.is-scrolled .main-nav > ul > li > a::after { bottom: 12px; }
.main-nav > ul > li:hover > a, .main-nav > ul > li.current-menu-item > a, .main-nav > ul > li.current-menu-ancestor > a { color: var(--primary); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li.current-menu-item > a::after, .main-nav > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav .menu-item-has-children > a { padding-right: 26px; }
.main-nav > ul > .menu-item-has-children > a::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .6; }

.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-top: 3px solid var(--accent); box-shadow: var(--shadow); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 9px 20px; font-size: 14px; color: var(--text); }
.main-nav .sub-menu a:hover { background: var(--bg-soft); color: var(--primary); }
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; border-top: 0; border-left: 3px solid var(--accent); }

/* Mega menu: thêm class CSS "mega" cho mục menu cấp 1 */
.main-nav li.mega { position: static; }
.main-nav li.mega > .sub-menu { left: 50%; transform: translate(-50%, 8px); width: min(960px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; padding: 24px 28px; }
.main-nav li.mega:hover > .sub-menu, .main-nav li.mega:focus-within > .sub-menu { transform: translate(-50%, 0); }
.main-nav li.mega > .sub-menu > li > a { font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 13px; border-bottom: 1px solid var(--border); padding: 8px 0; margin-bottom: 6px; }
.main-nav li.mega > .sub-menu > li > a:hover { background: none; color: var(--accent); }
.main-nav li.mega .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
.main-nav li.mega .sub-menu .sub-menu a { padding: 6px 0 6px 14px; position: relative; }
.main-nav li.mega .sub-menu .sub-menu a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.main-nav li.mega .sub-menu .sub-menu a:hover { background: none; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--primary); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.icon-btn:hover { background: var(--primary); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.menu-toggle { display: none; }

.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--primary); padding: 18px 0; display: none; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.search-form button { padding: 0 20px; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--primary-dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide img { width: 100%; height: clamp(240px, 26vw, 500px); object-fit: cover; }
.hero-slide .hero-caption { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(7,42,86,.82) 0%, rgba(7,42,86,.35) 55%, transparent 100%); }
.hero-caption h2 { color: #fff; font-size: clamp(22px, 3vw, 40px); max-width: 640px; }
.hero-caption p { color: #dbe6f5; max-width: 560px; font-size: 16px; }
.hero-default { min-height: clamp(320px, 30vw, 500px); display: flex; align-items: center; background:
	radial-gradient(circle at 85% 20%, rgba(19,160,111,.45), transparent 45%),
	radial-gradient(circle at 70% 90%, rgba(255,255,255,.08), transparent 40%),
	linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; }
.hero-default .eyebrow { display: inline-block; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; letter-spacing: .5px; }
.hero-default h1 { color: #fff; font-size: clamp(26px, 3.6vw, 46px); max-width: 760px; }
.hero-default p { color: #d5e2f3; font-size: 17px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer; z-index: 3; }
.hero-nav:hover { background: var(--accent); }
.hero-prev { left: 16px; } .hero-next { right: 16px; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: .3s; padding: 0; }
.hero-dots button.active { width: 28px; background: var(--accent); }

/* ---------- Ticker "Tin mới" ---------- */
.ticker { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.ticker .container { display: flex; align-items: center; gap: 14px; height: 44px; overflow: hidden; }
.ticker-label { flex-shrink: 0; background: var(--warn); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 3px; text-transform: uppercase; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { color: var(--text); font-size: 14px; }
.ticker-items a::before { content: "●"; color: var(--accent); font-size: 8px; vertical-align: middle; margin-right: 10px; }
.ticker-items a:hover { color: var(--primary); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Quick links ---------- */
.quicklinks { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--border); }
.quicklinks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.quicklinks a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 8px; border-radius: var(--radius); font-size: 12.5px; font-weight: 700; text-transform: uppercase; color: var(--primary-dark); transition: .2s; height: 100%; }
.quicklinks .ql-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; transition: .25s; }
.quicklinks .ql-icon svg { width: 28px; height: 28px; fill: var(--primary); transition: .25s; }
.quicklinks a:hover { background: var(--bg-soft); color: var(--primary); }
.quicklinks a:hover .ql-icon { background: var(--accent); transform: translateY(-3px); }
.quicklinks a:hover .ql-icon svg { fill: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-size: 28px; text-transform: uppercase; margin: 0; position: relative; padding-bottom: 12px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); }
.section-sub { color: var(--muted); margin: 8px 0 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11,61,122,.14); border-bottom-color: var(--accent); }
.service-thumb { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-thumb img { transform: scale(1.06); }
.service-thumb svg { width: 56px; height: 56px; fill: rgba(255,255,255,.9); }
.service-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 16px; text-transform: uppercase; margin-bottom: 10px; }
.service-body h3 a { color: var(--primary-dark); }
.service-body h3 a:hover { color: var(--accent); }
.service-body p { color: var(--muted); font-size: 14px; flex: 1; }

/* News */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: grid; grid-template-columns: 260px 1fr; gap: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-item .news-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--primary-soft); }
.news-item .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.news-item .news-body { padding: 18px 20px 18px 0; }
.news-item.featured { grid-template-columns: 1fr; }
.news-item.featured .news-thumb { aspect-ratio: 16/8; }
.news-item.featured .news-body { padding: 20px 24px 24px; }
.news-item.featured h3 { font-size: 21px; }
.news-date { font-size: 13px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.news-date svg { width: 13px; height: 13px; fill: currentColor; }
.news-body h3 { font-size: 17px; margin-bottom: 8px; }
.news-body h3 a { color: var(--primary-dark); }
.news-body h3 a:hover { color: var(--accent); }
.news-body p { color: var(--muted); font-size: 14px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.side-box-title { background: var(--primary); color: #fff; margin: 0; font-size: 15px; text-transform: uppercase; padding: 13px 20px; letter-spacing: .3px; }
.side-box ul { list-style: none; margin: 0; padding: 6px 0; }
.side-box li a { display: block; padding: 11px 20px 11px 36px; border-bottom: 1px dashed var(--border); color: var(--text); font-size: 14px; position: relative; }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a::before { content: ""; position: absolute; left: 20px; top: 19px; width: 6px; height: 6px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.side-box li a:hover, .side-box li.current_page_item > a { color: var(--primary); background: var(--bg-soft); }
.side-box li.current_page_item > a { font-weight: 700; border-left: 3px solid var(--accent); }
.side-box .children a { padding-left: 52px; font-size: 13.5px; }
.side-box .children a::before { left: 36px; }

.cta-card { background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.cta-card h4 { color: #fff; font-size: 18px; }
.cta-card p { color: #cfdcef; font-size: 14px; }
.cta-card .hotline { font-size: 24px; font-weight: 800; color: #fff; display: block; margin: 6px 0 14px; }

/* Partners */
.partners { padding: 48px 0; border-top: 1px solid var(--border); }
.partners-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners-row { display: inline-flex; gap: 24px; animation: ticker 40s linear infinite; }
.partners-track:hover .partners-row { animation-play-state: paused; }
.partner { width: 170px; height: 90px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; padding: 12px; background: #fff; }
.partner img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .75; transition: .3s; }
.partner:hover img { filter: none; opacity: 1; }
.partner span { font-weight: 700; color: var(--muted); font-size: 14px; text-align: center; }

/* CTA band */
.cta-band { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); color: #fff; padding: 26px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-band h3 { color: #fff; margin: 0; font-size: 21px; text-transform: uppercase; }
.cta-band p { margin: 4px 0 0; color: #e2f6ee; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #b9c8de; font-size: 14px; }
.footer-main { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.1); position: relative; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--accent); }
.footer-logo img { max-height: 70px; width: auto; margin-bottom: 14px; }
.footer-org { color: #fff; font-size: 16px; margin-bottom: 14px; text-transform: uppercase; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 16px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 9px; }
.footer-contact svg { width: 15px; height: 15px; fill: var(--accent); flex-shrink: 0; margin-top: 4px; }
.site-footer a { color: #b9c8de; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 20px; font-size: 13px; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-links ul, .site-footer .widget ul { list-style: none; padding: 0; margin: 0; }
.footer-links li, .site-footer .widget li { margin-bottom: 9px; }
.footer-links a::before, .site-footer .widget li a::before { content: "›"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-certs img { max-height: 70px; width: auto; background: #fff; padding: 6px; border-radius: 4px; }
.footer-newsletter input[type=email], .footer-newsletter input[type=text] { width: 100%; padding: 10px 12px; border-radius: var(--radius); border: 0; margin-bottom: 8px; font: inherit; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; cursor: pointer; font-size: 20px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- Inner pages ---------- */
.page-banner { position: relative; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); background-size: cover; background-position: center; color: #fff; padding: 56px 0 46px; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,42,86,.88), rgba(7,42,86,.45)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin: 0 0 10px; text-transform: uppercase; }
.breadcrumb { font-size: 13.5px; color: #cfdcef; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }

.content-layout { display: grid; grid-template-columns: 290px 1fr; gap: 36px; padding-top: 48px; padding-bottom: 64px; }
.content-layout.sidebar-right { grid-template-columns: 1fr 320px; }
.content-layout.full { grid-template-columns: 1fr; }
.entry { min-width: 0; }
.entry-title { font-size: 26px; }
.entry-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.entry-content { font-size: 15.5px; }
.entry-content h2 { font-size: 22px; margin-top: 1.4em; padding-left: 12px; border-left: 4px solid var(--accent); }
.entry-content h3 { font-size: 18px; margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.entry-content th { background: var(--primary); color: #fff; text-align: left; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 9px 12px; }
.entry-content tr:nth-child(even) td { background: var(--bg-soft); }
.entry-content blockquote { margin: 1.2em 0; padding: 14px 20px; background: var(--primary-soft); border-left: 4px solid var(--primary); }
.entry-content iframe { max-width: 100%; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-thumb img { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.entry-tags { margin-top: 24px; font-size: 13.5px; }
.entry-tags a { display: inline-block; background: var(--bg-soft); padding: 3px 10px; border-radius: 3px; margin: 0 4px 4px 0; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post-card .news-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--primary-soft); }
.post-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .news-thumb img { transform: scale(1.05); }
.post-card .news-body { padding: 18px 20px 22px; }
.thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), #d7e6f5); }
.thumb-placeholder svg { width: 44px; height: 44px; fill: var(--primary); opacity: .35; }

.pagination { margin-top: 36px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.widget { margin-bottom: 24px; }
.sidebar .widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sidebar .widget-title { background: var(--primary); color: #fff; font-size: 15px; text-transform: uppercase; padding: 13px 20px; margin: 0; }
.sidebar .widget > *:not(.widget-title) { padding-left: 20px; padding-right: 20px; }
.sidebar .widget ul { list-style: none; padding: 10px 20px; margin: 0; }
.sidebar .widget li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sidebar .widget li:last-child { border: 0; }
.sidebar .widget .search-form { padding: 16px 20px; }

.related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.related .posts-grid { grid-template-columns: repeat(3, 1fr); }
.not-found { text-align: center; padding: 80px 0; }
.not-found .big { font-size: 110px; font-weight: 800; color: var(--primary-soft); line-height: 1; -webkit-text-stroke: 2px var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
	.main-nav > ul > li > a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
	.main-nav .menu-item-has-children > a { padding-right: 22px; }
	.main-nav > ul > .menu-item-has-children > a::before { right: 7px; }
	.header-inner { gap: 16px; }
}
@media (max-width: 1180px) {
	.brand-text .site-desc { display: none; }
	.brand-text .site-title { font-size: 17px; }
	.footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
	.menu-toggle { display: grid; }
	.site-branding { flex-shrink: 1; min-width: 0; }
	.header-actions { margin-left: auto; }
	.main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; margin: 0; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; z-index: 200; box-shadow: -10px 0 30px rgba(0,0,0,.15); padding: 64px 0 24px; }
	.main-nav.open { transform: none; visibility: visible; }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
	.nav-backdrop.open { opacity: 1; visibility: visible; }
	.nav-close { position: absolute; top: 14px; right: 14px; }
	.main-nav > ul { flex-direction: column; }
	.main-nav > ul > li > a, .is-scrolled .main-nav > ul > li > a { padding: 13px 22px; border-bottom: 1px solid var(--border); }
	.main-nav > ul > li > a::after, .main-nav > ul > .menu-item-has-children > a::before { display: none; }
	.main-nav .sub-menu, .main-nav li.mega > .sub-menu { position: static; opacity: 1; visibility: visible; transform: none !important; box-shadow: none; border: 0; display: none; width: auto; padding: 0 0 8px 12px; background: var(--bg-soft); grid-template-columns: 1fr; }
	.main-nav li.open > .sub-menu { display: block; }
	.main-nav li.mega { position: relative; }
	.main-nav li.mega > .sub-menu > li > a { border: 0; margin: 0; padding: 10px 20px; }
	.submenu-toggle { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--primary); font-size: 18px; }
	.main-nav li.open > .submenu-toggle { transform: rotate(180deg); }
	.services-grid, .posts-grid, .related .posts-grid { grid-template-columns: repeat(2, 1fr); }
	.news-layout, .content-layout, .content-layout.sidebar-right { grid-template-columns: 1fr; }
	.content-layout .sidebar-left { order: 2; }
}
@media (min-width: 992px) { .nav-close, .submenu-toggle, .nav-backdrop { display: none; } }
@media (max-width: 640px) {
	.topbar-info .hide-sm { display: none; }
	.header-inner { min-height: 68px; }
	.site-branding .custom-logo { max-height: 44px; }
	.brand-text .site-desc { display: none; }
	.brand-text .site-title { font-size: 15px; line-height: 1.25; }
	.brand-mark { width: 40px; height: 40px; font-size: 15px; }
	.services-grid, .posts-grid, .related .posts-grid, .footer-main { grid-template-columns: 1fr; }
	.news-item { grid-template-columns: 1fr; }
	.news-item .news-body { padding: 16px 18px 20px; }
	.section { padding: 44px 0; }
	.section-title { font-size: 22px; }
	.hero-nav { display: none; }
	.admin-bar .site-header { top: 0; }
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.services-archive .service-card { height: 100%; }
