/* =========================================================
   Đặc Sản Quê Tui – hiện đại, tươi sáng.
   Cam san hô + xanh lá tươi + vàng nắng trên nền trắng kem.
   ========================================================= */
:root {
	--c-primary: #f2541b;
	--c-accent: #12a150;
	--c-sun: #ffc83d;
	--c-ink: #1f2a24;
	--c-text: #3b4540;
	--c-muted: #7b857f;
	--c-line: #f0e6d8;
	--c-bg: #fffaf3;
	--c-card: #ffffff;
	--c-soft: #fff1e3;
	--c-nav: rgba(255,255,255,.92);
	--c-banner: linear-gradient(135deg, #fff3e6 0%, #ffe9d2 55%, #fdf0d4 100%);
	--c-video: linear-gradient(135deg, #fff1e3, #ffe9c2 60%, #e6f8ec);
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 2px 6px rgba(31,42,36,.04), 0 12px 32px rgba(242,84,27,.08);
	--shadow-lg: 0 4px 10px rgba(31,42,36,.06), 0 24px 48px rgba(242,84,27,.16);
	--font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--grad: linear-gradient(135deg, #ff7a2f 0%, #f2541b 45%, #ff9a3c 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--c-text); background: var(--c-bg); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 .5em; color: var(--c-ink); letter-spacing: -.01em; }
ul, ol { padding-left: 1.2em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; background: var(--c-card); padding: 8px 14px; z-index: 1000; }
:focus-visible { outline: 3px solid rgba(242,84,27,.4); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--c-card); box-shadow: 0 1px 0 var(--c-line); }
.topbar { background: var(--c-soft); color: #9a6a3f; font-size: .76rem; font-weight: 600; letter-spacing: .05em; border-bottom: 1px solid var(--c-line); }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.header-inner { text-align: center; padding: 22px 0 16px; }
.site-title { margin: 0; font-weight: 800; font-size: clamp(1.9rem, 5.5vw, 3rem); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.3; }
.site-title a { display: inline-block; padding: .12em .04em .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--c-primary); }
.site-title a:hover { text-decoration: none; }
.site-desc { margin: 8px 0 0; font-size: .82rem; font-weight: 500; color: var(--c-muted); letter-spacing: .02em; }
.custom-logo { max-height: 80px; width: auto; }

.search-form { display: flex; align-items: center; border: 1.5px solid var(--c-line); border-radius: 999px; overflow: hidden; background: var(--c-card); padding: 4px; transition: box-shadow .2s, border-color .2s; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 10px 18px; font: inherit; font-size: .95rem; background: transparent; color: var(--c-ink); }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(242,84,27,.12); }
.search-form button { border: 0; background: var(--c-primary); color: #fff; font: inherit; font-weight: 700; padding: 10px 24px; border-radius: 999px; cursor: pointer; transition: transform .15s, filter .15s; }
.search-form button:hover { filter: brightness(1.06); transform: scale(1.03); }

/* ---------- Navigation ---------- */
.main-nav { background: var(--c-nav); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; border-top: 1px solid var(--c-line); box-shadow: 0 6px 20px rgba(242,84,27,.06); }
.admin-bar .main-nav { top: 32px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px 0; }
.main-nav a { display: flex; align-items: center; gap: 6px; color: var(--c-ink); font-size: .86rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.main-nav a:hover { text-decoration: none; background: var(--c-soft); color: var(--c-primary); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--c-primary); color: #fff; }
.main-nav .menu-item { position: relative; }
.main-nav .menu > .menu-item { padding-bottom: 6px; margin-bottom: -6px; }
.caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.main-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; max-height: 70vh; overflow-y: auto; background: var(--c-card); box-shadow: var(--shadow-lg); border-radius: 16px; padding: 8px; margin: 0; text-align: left; }
.main-nav .sub-menu a { font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 10px; }
.main-nav .sub-menu .sub-menu { left: 100%; top: 0; margin: 0; }
.main-nav .menu-item:hover > .sub-menu, .main-nav .menu-item:focus-within > .sub-menu, .main-nav .menu-item.is-open > .sub-menu { display: block; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; color: var(--c-ink); font: inherit; font-weight: 700; padding: 14px 0; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; content: ''; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

/* ---------- Layout ---------- */
.site-content { padding: 28px 0 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.breadcrumbs { font-size: .82rem; color: var(--c-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Section titles ---------- */
.section-title, .widget-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; font-size: 1.5rem; font-weight: 800; color: var(--c-ink); }
.section-title > span, .widget-title > span { display: inline-flex; align-items: center; gap: 12px; }
.section-title > span::before, .widget-title > span::before { content: ''; width: 8px; height: 1.2em; border-radius: 6px; background: linear-gradient(var(--c-primary), var(--c-sun)); }
.section-title a, .widget-title a { color: inherit; }
.section-title a:hover { color: var(--c-primary); text-decoration: none; }
.section-title .more { font-size: .82rem; font-weight: 700; color: var(--c-primary); background: var(--c-soft); padding: 7px 16px; border-radius: 999px; white-space: nowrap; }
.section-title .more:hover { background: var(--c-primary); color: #fff; }
.widget-title { font-size: 1.1rem; margin-bottom: 16px; }

/* ---------- Cards ---------- */
.card { background: var(--c-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-soft); overflow: hidden; margin: 8px 8px 0; border-radius: calc(var(--radius) - 8px); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.card:hover .card-thumb img { transform: scale(1.07); }
.thumb-ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 25% 25%, #ffe08a, transparent 55%), linear-gradient(135deg, #ffd0b0, #bff0cf); }
.card-body { padding: 14px 18px 20px; }
.card-title { font-size: 1.1rem; font-weight: 700; margin: 8px 0 6px; }
.card-title a { color: var(--c-ink); }
.card-title a:hover { color: var(--c-primary); text-decoration: none; }
.card-excerpt { margin: 0; font-size: .9rem; color: var(--c-muted); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .76rem; font-weight: 500; color: var(--c-muted); }
.badge { background: rgba(18,161,80,.12); color: #0c7a3b; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.badge:hover { text-decoration: none; background: var(--c-accent); color: #fff; }

.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; transition: transform .2s; }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border-left: 16px solid var(--c-primary); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.card:hover .play, .hero-link:hover .play { transform: scale(1.12); }

/* ---------- Home banner ---------- */
.home-search { position: relative; text-align: center; padding: 48px clamp(18px, 5vw, 60px); margin-bottom: 30px; border-radius: 32px; color: var(--c-ink); background: var(--c-banner); border: 1px solid var(--c-line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.home-search::before, .home-search::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; }
.home-search::before { width: 320px; height: 320px; right: -90px; top: -130px; background: radial-gradient(circle, rgba(255,200,61,.35), transparent 68%); }
.home-search::after { width: 280px; height: 280px; left: -90px; bottom: -130px; background: radial-gradient(circle, rgba(18,161,80,.16), transparent 68%); }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 5px 16px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); background: var(--c-card); border-radius: 999px; box-shadow: 0 2px 8px rgba(242,84,27,.1); }
.home-search-title { font-size: clamp(1.7rem, 4.2vw, 2.7rem); font-weight: 800; margin: 0 0 24px; color: var(--c-ink); }
.home-search .search-form { max-width: 640px; margin: 0 auto; border-color: #f3e2cd; box-shadow: 0 10px 28px rgba(150,80,20,.12); }
.home-search .search-form button { background: var(--c-primary); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 24px 0 0; }
.chips a { display: block; padding: 6px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--c-text); background: var(--c-card); border: 1px solid var(--c-line); }
.chips a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 480px; margin-bottom: 48px; }
.hero-item { position: relative; background: var(--c-soft); overflow: hidden; min-height: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-item.is-main { grid-row: 1 / 3; border-radius: 28px; }
.hero-link { position: absolute; inset: 0; display: block; color: #fff; }
.hero-link:hover { text-decoration: none; }
.hero-link img, .hero-link .thumb-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-link:hover img { transform: scale(1.06); }
.hero-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,20,.82), rgba(20,24,20,0) 62%); }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px; }
.hero-caption .meta { color: rgba(255,255,255,.85); }
.hero-title { display: block; font-weight: 700; line-height: 1.3; font-size: .98rem; margin-top: 5px; }
.is-main .hero-title { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 800; }
.is-main .hero-caption { padding: 26px 28px; }
.hero .play { z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.hero .play::after { left: 17px; top: 12px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
.hero .is-main .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.hero .is-main .play::after { left: 27px; top: 20px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }

/* ---------- Home sections ---------- */
.home-block, .province { margin-bottom: 54px; }
.province-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.mini-list li { display: flex; gap: 14px; align-items: center; }
.province .mini-list { align-content: space-between; }
.province .mini-list li { background: var(--c-card); padding: 10px; border-radius: 16px; box-shadow: var(--shadow); transition: transform .2s; }
.province .mini-list li:hover { transform: translateX(4px); }
.mini-thumb { flex: 0 0 104px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--c-soft); display: block; }
.mini-thumb img, .mini-thumb .thumb-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-list li > div { min-width: 0; }
.mini-list li > div a { color: var(--c-ink); font-weight: 700; font-size: .95rem; line-height: 1.35; display: block; }
.mini-list li > div a:hover { color: var(--c-primary); text-decoration: none; }
.mini-list time { display: block; font-size: .74rem; color: var(--c-muted); margin-top: 3px; }
.province:nth-child(even) .province-grid > .card-big { order: 2; }

.video-block { background: var(--c-video); border-radius: 32px; padding: 34px clamp(16px, 3vw, 34px); }
.video-block .card-title { font-size: 1rem; }

/* ---------- Archive / single ---------- */
.archive-header { position: relative; margin: 6px 0 34px; padding: 6px 0 26px; border-bottom: 1px solid var(--c-line); }
.archive-header::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-sun)); }
.archive-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.page-title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0; color: var(--c-ink); }
.page-title span { color: var(--c-primary); }
.archive-desc { max-width: 680px; margin-top: 14px; color: var(--c-muted); font-size: 1rem; line-height: 1.75; }
.archive-desc > * { margin: 0 0 .5em; }
.archive-desc strong { color: var(--c-ink); }
.archive-desc.is-clamped { max-height: 6.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.archive-desc.is-clamped.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.desc-toggle { margin-top: 8px; border: 0; padding: 0; background: none; color: var(--c-primary); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; border-bottom: 1.5px solid currentColor; }
.desc-toggle:hover { color: var(--c-ink); }

.entry { background: var(--c-card); border-radius: 28px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); margin-bottom: 32px; }
.entry-header .meta { margin-bottom: 4px; }
.entry-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin: 10px 0 20px; }
.entry-content { font-size: 1.06rem; line-height: 1.85; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.5rem; font-weight: 800; margin-top: 1.7em; padding-left: 14px; border-left: 5px solid var(--c-primary); }
.entry-content h3 { font-size: 1.22rem; margin-top: 1.4em; color: var(--c-accent); }
.entry-content img { border-radius: 16px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 6px; }
.entry-content blockquote { margin-inline: 0; padding: 16px 22px; border-radius: 16px; background: var(--c-soft); border-left: 5px solid var(--c-sun); color: var(--c-ink); font-style: italic; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 9px 12px; }
.entry-content th { background: var(--c-soft); }
.entry-content iframe { width: 100%; border-radius: 16px; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.entry-footer { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 14px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--c-text); background: var(--c-soft); }
.tags a:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.page-links { margin-top: 1em; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 34px; }
.post-navigation a { display: block; background: var(--c-card); padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--c-ink); font-weight: 700; font-size: .95rem; }
.post-navigation a:hover { text-decoration: none; color: var(--c-primary); }
.post-navigation a span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent); margin-bottom: 2px; }
.post-navigation .nav-next { text-align: right; }
.related { margin-bottom: 34px; }
.related .card-excerpt { display: none; }

.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; text-align: center; padding: 8px 14px; background: var(--c-card); box-shadow: var(--shadow); border-radius: 999px; color: var(--c-ink); font-weight: 700; }
a.page-numbers:hover { background: var(--c-soft); color: var(--c-primary); text-decoration: none; }
.page-numbers.current { background: var(--c-primary); color: #fff; }

/* ---------- Sidebar / widgets ---------- */
.sidebar { position: sticky; top: 80px; }
.widget { background: var(--c-card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 24px; font-size: .94rem; }
.widget-search { padding: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget .cat-list li, .widget_categories li, .widget_archive li, .widget_nav_menu li, .widget_meta li, .widget_pages li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.widget .cat-list li:last-child, .widget_categories li:last-child { border-bottom: 0; }
.widget a { color: var(--c-text); }
.widget a:hover { color: var(--c-primary); }
.widget .mini-list li { border: 0; padding: 0; box-shadow: none; background: none; }
.widget .mini-list li:hover { transform: none; }

/* Recent Posts widget with thumbnails */
.widget_recent_entries li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.widget_recent_entries li:first-child { padding-top: 0; }
.widget_recent_entries li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget_recent_entries li a { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: .92rem; line-height: 1.4; color: var(--c-ink); }
.widget_recent_entries li a:hover { color: var(--c-primary); text-decoration: none; }
.widget_recent_entries .rp-thumb { flex: 0 0 88px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--c-soft); display: block; }
.widget_recent_entries .rp-thumb img, .widget_recent_entries .rp-thumb .thumb-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.widget_recent_entries .rp-title { min-width: 0; }

/* ---------- Comments ---------- */
.comments-area { background: var(--c-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata, .comment-metadata a { font-size: .78rem; color: var(--c-muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--c-line); border-radius: 14px; font: inherit; background: var(--c-card); color: var(--c-text); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 4px rgba(242,84,27,.12); }
.form-submit input, .btn { display: inline-block; background: var(--c-primary); color: #fff; border: 0; padding: 12px 28px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(242,84,27,.3); transition: transform .15s; }
.btn:hover, .form-submit input:hover { text-decoration: none; transform: translateY(-2px); }

.error-404, .no-results { text-align: center; padding: 70px 16px; max-width: 560px; margin: 0 auto; }
.error-404 h1 { font-size: 7rem; font-weight: 800; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.no-results .search-form, .error-404 .search-form { margin: 20px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-card); color: var(--c-text); font-size: .92rem; border-top: 1px solid var(--c-line); position: relative; }
.site-footer::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--c-primary), var(--c-sun), var(--c-accent)); }
.footer-widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; padding: 44px 0 26px; align-items: start; }
.footer-widgets.footer-about { grid-template-columns: 1fr; }
.footer-col .widget + .widget { margin-top: 22px; }
.footer-col img { max-width: 100%; height: auto; }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; margin: 0; }
.site-footer .widget-title { font-size: 1.1rem; }
.site-footer a { color: var(--c-text); }
.site-footer a:hover { color: var(--c-primary); }
.site-footer .widget li { border-color: var(--c-line); }
.footer-bottom { background: var(--c-soft); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0; font-size: .82rem; color: var(--c-muted); }
.footer-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 60; transition: transform .2s; }
.to-top:hover { transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero { height: 400px; }
}

@media (max-width: 900px) {
	.main-nav .menu { display: none; flex-direction: column; flex-wrap: nowrap; max-height: 70vh; overflow-y: auto; gap: 2px; border-top: 1px solid var(--c-line); }
	.nav-toggle { display: flex; }
	.main-nav.is-open .menu { display: flex; }
	.main-nav a { justify-content: space-between; border-radius: 12px; }
	.main-nav .sub-menu, .main-nav .sub-menu .sub-menu { position: static; display: none; box-shadow: none; border-radius: 0; max-height: none; background: var(--c-soft); padding: 4px 8px; margin: 2px 0 6px; border-radius: 12px; }
	.main-nav .menu-item:hover > .sub-menu, .main-nav .menu-item:focus-within > .sub-menu { display: none; }
	.main-nav .menu-item.is-open > .sub-menu { display: block; }
}

@media (max-width: 900px) {
	.footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	.admin-bar .main-nav { top: 46px; }
}

@media (max-width: 720px) {
	.topbar-inner span:first-child { display: none; }
	.topbar-inner { justify-content: center; }
	.hero { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 160px 160px; height: auto; }
	.hero-item.is-main { grid-column: 1 / 3; grid-row: 1; }
	.hero-title { font-size: .88rem; }
	.grid-2, .grid-3, .province-grid { grid-template-columns: 1fr; }
	.province:nth-child(even) .province-grid > .card-big { order: 0; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.section-title { font-size: 1.25rem; }
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
	.home-search, .archive-header, .video-block { border-radius: 24px; }
}

@media (max-width: 480px) {
	.footer-widgets { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: 1fr; }
	.search-form button { padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
