/*
Theme Name: Vigaya
Theme URI:
Author:
Author URI:
Description: ธีมข่าว/บทความอุตสาหกรรม-เศรษฐกิจ สร้างตามชุดภาพอ้างอิง ref/V2 (01-home, 02-article-single, 03-about-us, 04-policy) ประกอบด้วยหน้าแรก (บทความเด่น + บทความเด่นประจำวัน + เลือกดูตามภูมิภาค + แนะนำบทความ), หน้าบทความเดี่ยว, หน้าเกี่ยวกับเรา และหน้า Policy เนื้อหาส่วนใหญ่ดึงจากโพสต์จริงอัตโนมัติ ส่วนที่เหลือใช้ placeholder จนกว่าจะเพิ่มเนื้อหาจริงผ่านหลังบ้าน
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vigaya
*/

/* ==========================================================================
   0. Variables & Reset
   ========================================================================== */
:root {
	--vg-teal-deep: #163f3f;
	--vg-teal: #2c7373;
	--vg-teal-mid: #35807f;
	--vg-teal-light: #e7f2f0;
	--vg-cream: #f6f4ee;
	--vg-bg: #fdfbf9;
	--vg-red: #d24b41;
	--vg-orange: #f2994a;
	--vg-text: #1c2b33;
	--vg-text-muted: #5c6b73;
	--vg-white: #ffffff;
	--vg-border: #e4e1d8;
	--vg-radius: 10px;
	--vg-shadow: 0 10px 30px rgba(20, 40, 45, 0.08);
	--vg-container: 1180px;
	--vg-font-heading: "TH Sarabun New", "Sarabun", sans-serif;
	--vg-font-body: "TH Sarabun New", "Sarabun", sans-serif;
	/* Fluid type scale: grows with viewport width so text reads at a
	   comfortable size on both a phone and a wide desktop instead of
	   staying fixed-px small everywhere. */
	--vg-fs-base: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
	--vg-fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 1rem);
	--vg-fs-md: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
	--vg-fs-lg: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
	--vg-fs-xl: clamp(1.7rem, 1.35rem + 1.8vw, 2.6rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--vg-font-body);
	font-size: var(--vg-fs-base);
	color: var(--vg-text);
	background: var(--vg-bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4 {
	font-family: var(--vg-font-heading);
	margin: 0 0 0.5em;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.container {
	max-width: var(--vg-container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

/* ==========================================================================
   1. Header — logo, icon nav, search (ref/V2 01…04)
   ========================================================================== */
.site-header {
	background: var(--vg-teal-deep);
	padding: 10px 0;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-branding {
	flex: 0 0 auto;
}

.site-logo img {
	height: clamp(72px, 7vw, 108px);
	width: auto;
}

.main-navigation {
	flex: 1 1 auto;
}

.main-navigation .nav-menu {
	display: flex;
	align-items: center;
}

.main-navigation .nav-menu li {
	position: relative;
}

.main-navigation .nav-menu li:not(:first-child)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 34px;
	background: rgba(255, 255, 255, 0.4);
}

.main-navigation .nav-menu a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--vg-white);
	font-weight: 500;
	font-size: var(--vg-fs-sm);
	padding: 6px 22px;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.main-navigation .nav-menu a:hover {
	background: rgba(255, 255, 255, 0.1);
}

.main-navigation .nav-menu .nav-icon {
	width: 38px;
	height: 38px;
	object-fit: contain;
	object-position: center;
}

.header-search {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	background: var(--vg-white);
	border-radius: 999px;
	padding: 6px 6px 6px 18px;
	min-width: 220px;
}

.header-search-input {
	border: 0;
	outline: 0;
	flex: 1 1 auto;
	font-family: var(--vg-font-body);
	font-size: var(--vg-fs-sm);
	color: var(--vg-text);
}

.header-search-btn {
	background: var(--vg-teal);
	border: 0;
	border-radius: 999px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: 0 0 auto;
}

.header-search-btn img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	filter: invert(1);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px;
}

.menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--vg-white);
	display: block;
}

/* ==========================================================================
   2. Tagline quote (home only)
   ========================================================================== */
.site-tagline {
	text-align: center;
	font-weight: 700;
	font-size: var(--vg-fs-md);
	color: var(--vg-teal-deep);
	padding: 24px 24px 0;
}

/* ==========================================================================
   3. Tag pills (หมวดหมู่ / ทวีป) — used everywhere a card shows tags
   ========================================================================== */
.tag-pill {
	display: inline-block;
	background: var(--vg-teal-light);
	color: var(--vg-teal-deep);
	font-size: var(--vg-fs-sm);
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 999px;
	margin: 0 6px 6px 0;
}

.tag-pill--region {
	background: #e6efe0;
	color: #4a6b2a;
}

/* ==========================================================================
   4. Home hero — featured card / latest-4 list / top-5 box (01-home.png)
   ========================================================================== */
.home-hero {
	padding: 28px 24px 0;
}

.home-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr 0.7fr;
	gap: 24px;
	align-items: stretch;
}

.featured-card {
	background: var(--vg-white);
	border-radius: var(--vg-radius);
	box-shadow: var(--vg-shadow);
	overflow: hidden;
}

.featured-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
}

.featured-body {
	padding: 18px 20px 22px;
}

.featured-body h2 {
	font-size: var(--vg-fs-lg);
	margin: 4px 0 14px;
}

.read-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: var(--vg-fs-base);
	color: var(--vg-teal-deep);
}

.read-more-btn img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.latest-list-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.news-list-item {
	display: flex;
	gap: 12px;
	background: var(--vg-white);
	border-radius: var(--vg-radius);
	padding: 10px;
	box-shadow: var(--vg-shadow);
}

.news-list-item .thumb {
	position: relative;
	flex: 0 0 30%;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
}

.news-list-item .item-body h3 {
	font-size: var(--vg-fs-base);
	margin: 4px 0 0;
}

.top-articles-box {
	background: var(--vg-teal-deep);
	border-radius: var(--vg-radius);
	padding: 18px 18px 16px;
	color: var(--vg-white);
	display: flex;
	flex-direction: column;
}

.top-articles-heading {
	background: var(--vg-teal);
	border-radius: 999px;
	text-align: center;
	padding: 8px 12px;
	font-weight: 700;
	font-size: var(--vg-fs-sm);
	margin-bottom: 14px;
}

.top-articles-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
}

.top-articles-list li {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.top-articles-rank {
	font-family: var(--vg-font-heading);
	font-weight: 800;
	font-size: var(--vg-fs-lg);
	color: var(--vg-orange);
	flex: 0 0 auto;
}

.top-articles-list a {
	font-size: var(--vg-fs-sm);
	line-height: 1.4;
}

.top-articles-more {
	margin-top: 14px;
	align-self: flex-end;
	font-size: var(--vg-fs-sm);
	font-weight: 600;
	color: var(--vg-white);
	opacity: 0.85;
}

/* ==========================================================================
   5. เลือกดูตามภูมิภาค — region strip (01-home.png, 02-article-single.png)
   ========================================================================== */
.region-strip {
	padding: 36px 24px 0;
}

.region-strip-title {
	font-size: var(--vg-fs-md);
	color: var(--vg-teal-deep);
	margin-bottom: 14px;
}

.region-strip-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 14px;
}

.region-item {
	display: block;
}

.region-photo {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--vg-radius);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.region-name {
	display: block;
	width: 100%;
	padding: 8px 6px 6px;
	font-size: var(--vg-fs-sm);
	font-weight: 600;
	text-align: center;
	color: var(--vg-white);
	background: linear-gradient(180deg, transparent, rgba(10, 25, 25, 0.75));
}

/* ==========================================================================
   6. Section pill heading (แนะนำบทความ / บทความอื่นๆ ที่น่าสนใจ)
   ========================================================================== */
.section-heading {
	background: var(--vg-cream);
	margin: 40px 0 0;
	border-bottom: 4px solid var(--vg-teal);
}

.section-heading .container {
	padding: 18px 24px;
}

.section-heading h2 {
	color: var(--vg-teal-deep);
	font-size: var(--vg-fs-lg);
	font-weight: 700;
	margin: 0;
}

.section-heading--pill {
	background: var(--vg-teal);
	border-bottom: 0;
	max-width: var(--vg-container);
	margin: 40px auto 0;
	border-radius: 999px;
}

.section-heading--pill h2 {
	color: var(--vg-white);
	font-size: var(--vg-fs-md);
	text-align: center;
}

/* ==========================================================================
   7. News grid (แนะนำบทความ / บทความอื่นๆ ที่น่าสนใจ) + ad slots
   ========================================================================== */
.news-grid-v2 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 32px 24px 56px;
}

.news-card {
	background: none;
}

.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--vg-radius);
	background-size: cover;
	background-position: center;
	margin-bottom: 12px;
}

.card-body h3 {
	font-size: var(--vg-fs-base);
	margin: 4px 0 0;
}

/* ==========================================================================
   8. Single post — content column + sidebar (02-article-single.png)
   ========================================================================== */
.single-layout {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 36px;
	padding: 32px 24px 0;
}

.single-main .entry-header {
	margin-bottom: 18px;
}

.single-main .entry-title {
	font-size: var(--vg-fs-xl);
	margin-top: 8px;
}

.single-main .entry-thumb {
	margin-bottom: 22px;
	border-radius: var(--vg-radius);
	overflow: hidden;
}

.single-main .entry-content {
	font-size: 1.02rem;
}

.single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sidebar-box {
	background: var(--vg-white);
	border-radius: var(--vg-radius);
	box-shadow: var(--vg-shadow);
	padding: 18px 20px;
}

.sidebar-box-heading {
	background: var(--vg-teal);
	color: var(--vg-white);
	border-radius: 999px;
	text-align: center;
	padding: 8px 12px;
	font-weight: 700;
	font-size: var(--vg-fs-sm);
	margin-bottom: 14px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-cloud a {
	background: var(--vg-teal-light);
	color: var(--vg-teal-deep);
	font-size: var(--vg-fs-sm);
	padding: 5px 12px;
	border-radius: 999px;
}

.social-row {
	display: flex;
	gap: 12px;
}

.social-row a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--vg-teal-light);
	color: var(--vg-teal-deep);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   9. Placeholder / no-image state ("เร็วๆ นี้")
   Applied by vigaya_item_wrap()/vigaya_bg_style() in inc/template-helpers.php
   whenever an item has no thumbnail — real posts without a featured image
   get the pattern but stay clickable; .is-placeholder items (not enough
   real posts yet) are also non-interactive plain elements, not links.
   ========================================================================== */
.thumb.no-image,
.card-thumb.no-image,
.featured-image.no-image {
	background-color: var(--vg-cream);
	background-image: repeating-linear-gradient(
		135deg,
		rgba(44, 115, 115, 0.1) 0px,
		rgba(44, 115, 115, 0.1) 8px,
		transparent 8px,
		transparent 20px
	);
}

.thumb.no-image::after,
.card-thumb.no-image::after,
.featured-image.no-image::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34%;
	max-width: 56px;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	opacity: 0.55;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='9' y='6' width='30' height='36' rx='3' fill='none' stroke='%232c7373' stroke-width='2.5'/%3E%3Cline x1='15' y1='16' x2='33' y2='16' stroke='%232c7373' stroke-width='2.5'/%3E%3Cline x1='15' y1='24' x2='33' y2='24' stroke='%232c7373' stroke-width='2.5'/%3E%3Cline x1='15' y1='32' x2='25' y2='32' stroke='%232c7373' stroke-width='2.5'/%3E%3C/svg%3E");
}

.is-placeholder {
	cursor: default;
}

h2 .is-placeholder,
h3 .is-placeholder {
	color: var(--vg-text-muted);
	font-weight: 500;
}

/* ==========================================================================
   10. Generic single/page/index templates (page.php, index.php fallback)
   ========================================================================== */
.site-main {
	padding: 40px 24px 56px;
}

.single-post .entry-header {
	margin-bottom: 24px;
}

.single-post .entry-title {
	font-size: var(--vg-fs-xl);
}

.single-post .entry-thumb {
	margin-bottom: 24px;
	border-radius: var(--vg-radius);
	overflow: hidden;
}

.article-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 32px;
	padding: 40px 24px 56px;
}

.article-list-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.article-list-item .thumb {
	flex: 0 0 30%;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
}

.article-list-item .item-body p {
	margin: 0;
	-webkit-line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Category hub grid — page-categories.php (7 regions, photo tiles) and
   category.php's sub-category hub (plain tiles, no per-topic photo). */
.category-hub-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 32px 0;
}

.category-hub-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 1 / 1;
	border-radius: var(--vg-radius);
	background: var(--vg-teal-light);
	padding: 16px;
	overflow: hidden;
}

.category-hub-tile-name {
	font-weight: 700;
	font-size: var(--vg-fs-md);
	color: var(--vg-teal-deep);
}

.category-hub-tile-count {
	font-size: var(--vg-fs-sm);
	color: var(--vg-text-muted);
}

.category-hub-tile--photo {
	background-size: cover;
	background-position: center;
}

.category-hub-tile--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 25, 0.78));
}

.category-hub-tile--photo .category-hub-tile-name,
.category-hub-tile--photo .category-hub-tile-count {
	position: relative;
	z-index: 1;
	color: var(--vg-white);
}

.category-hub-tile--photo .category-hub-tile-count {
	color: rgba(255, 255, 255, 0.85);
}

.category-heading-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.category-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: var(--vg-fs-sm);
	color: var(--vg-text-muted);
}

.category-breadcrumb a {
	color: var(--vg-teal);
	font-weight: 600;
}

/* ==========================================================================
   11. Policy page (page-policy.php, ref/V2 04-policy.png)

   The photo + "OUR / POLICY" heading are centered as one block
   (.policy-visual, margin:0 auto); the intro paragraph is pinned to the
   top-right of the hero instead of sitting below/centered.

   The heading physically overlaps the photo. It's rendered twice, stacked
   in the exact same box: a dark copy (.policy-title-base) and a
   #1d6289 copy (.policy-title-over) clipped with clip-path to only the
   region where the photo sits (policy-photo's left edge,
   --vg-policy-photo-start, shared by both the grid and the clip so they
   line up). Because the two copies share identical text/box/font, the
   colored one opaquely replaces the dark one pixel-for-pixel only where
   the photo is — letters outside the photo stay dark.
   ========================================================================== */
.policy-page {
	--vg-policy-photo-start: 38%;
	--vg-policy-font: "Barlow Semi Condensed", var(--vg-font-body);
	background: var(--vg-bg);
	color: var(--vg-text);
	font-family: var(--vg-policy-font);
	padding: 48px 0 40px;
}

.policy-page h1,
.policy-page h3 {
	font-family: var(--vg-policy-font);
}

.policy-hero {
	position: relative;
	margin-bottom: 44px;
}

.policy-visual {
	position: relative;
	display: grid;
	grid-template-columns: var(--vg-policy-photo-start) 1fr;
	align-items: end;
	max-width: 680px;
	margin: 0 auto;
}

.policy-photo {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--vg-radius);
	position: relative;
	z-index: 1;
}

.policy-title {
	grid-column: 1 / -1;
	grid-row: 1;
	position: relative;
	z-index: 2;
	height: 2.15em;
	margin: 0 0 0.5em;
	font-size: clamp(2rem, 4.2vw, 3.2rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	pointer-events: none;
}

.policy-title-base,
.policy-title-over {
	position: absolute;
	inset: 0;
}

.policy-title-base {
	color: var(--vg-teal-deep);
}

.policy-title-over {
	color: #1d6289;
	clip-path: inset(0 0 0 var(--vg-policy-photo-start));
}

.policy-intro {
	position: absolute;
	top: 4px;
	right: 24px;
	width: 260px;
	font-size: var(--vg-fs-base);
	line-height: 1.8;
	color: var(--vg-text-muted);
	text-align: left;
}

.policy-content {
	border-top: 1px solid var(--vg-border);
	padding-top: 32px;
	padding-bottom: 56px;
	font-size: var(--vg-fs-base);
	line-height: 1.8;
	color: var(--vg-text);
}

.policy-content h3 {
	color: var(--vg-orange);
	font-size: var(--vg-fs-md);
	margin-top: 28px;
}

.policy-content p {
	margin-bottom: 14px;
}

/* ==========================================================================
   12. About page (page-about.php, ref/V2 03-about-us.png)
   ========================================================================== */
.about-intro {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 32px;
	align-items: center;
	padding-top: 32px;
}

.about-intro-text h1 {
	font-size: var(--vg-fs-xl);
	color: var(--vg-teal-deep);
}

.about-story {
	text-align: center;
	color: var(--vg-text);
}

.about-thanks {
	text-align: center;
	font-weight: 600;
	margin-top: 20px;
	margin-bottom: 4px;
}

.about-signature {
	display: block;
	margin: 0 auto;
	width: 180px;
}

.about-intro-art img {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
}

.about-band {
	background: var(--vg-teal);
	color: var(--vg-white);
	margin-top: 40px;
	padding: 28px 0;
}

.about-band-inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 24px;
	align-items: center;
}

.about-band-text h2 {
	font-size: var(--vg-fs-lg);
	margin-bottom: 8px;
}

.about-band-social {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.about-band-social a {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.about-stat {
	text-align: center;
}

.about-stat img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	margin: 0 auto 8px;
}

.about-stat strong {
	display: block;
	font-size: var(--vg-fs-xl);
	font-family: var(--vg-font-heading);
}

.about-stat span {
	font-size: var(--vg-fs-sm);
	opacity: 0.85;
}

.about-announcements {
	padding: 40px 24px 56px;
}

.about-announcements-heading {
	display: inline-flex;
	align-items: center;
	background: var(--vg-teal-deep);
	color: var(--vg-white);
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 999px;
	margin-bottom: -20px;
	position: relative;
	z-index: 1;
}

.about-announcements-box {
	background: var(--vg-cream);
	border: 1px solid var(--vg-border);
	border-radius: var(--vg-radius);
	padding: 40px 28px 24px;
	min-height: 140px;
}

.about-announcements-box ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.about-announcements-box li {
	border-bottom: 1px solid var(--vg-border);
	padding-bottom: 14px;
}

.about-announcements-box strong {
	display: block;
	margin-bottom: 2px;
}

.about-announcements-box span {
	font-size: 0.8rem;
	color: var(--vg-text-muted);
}

.about-announcements-empty {
	text-align: center;
	color: var(--vg-text-muted);
	margin: 0;
}

/* ==========================================================================
   13. Bottom page nav (About / Policy — "← กลับหน้าแรก" / "หน้าถัดไป →")
   ========================================================================== */
.page-bottom-nav {
	background: var(--vg-teal-deep);
}

.page-bottom-nav-inner {
	display: flex;
	justify-content: space-between;
	padding: 16px 24px;
}

.page-bottom-nav-link {
	color: var(--vg-white);
	font-weight: 600;
	font-size: var(--vg-fs-sm);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
	background: var(--vg-teal-deep);
	color: var(--vg-white);
	padding-top: 32px;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 24px;
	padding-bottom: 24px;
}

.footer-logo {
	width: 64px;
	margin-bottom: 10px;
}

.footer-brand-title {
	font-weight: 700;
	font-size: var(--vg-fs-sm);
}

.footer-col h3 {
	font-size: var(--vg-fs-md);
	color: var(--vg-white);
	margin-bottom: 10px;
}

.footer-col p {
	font-size: var(--vg-fs-sm);
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 6px;
}

.footer-col a {
	color: rgba(255, 255, 255, 0.85);
}

.footer-widgets {
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 18px 0;
}

.footer-copy {
	margin: 0;
	font-size: 0.78rem;
	opacity: 0.7;
}

.back-to-top {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--vg-white);
	letter-spacing: 0.02em;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.home-hero-grid {
		grid-template-columns: 1fr 1fr;
	}

	.top-articles-box {
		grid-column: span 2;
	}

	.region-strip-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.news-grid-v2 {
		grid-template-columns: repeat(3, 1fr);
	}

	.category-hub-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.single-layout {
		grid-template-columns: 1fr;
	}

	.footer-columns {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.article-list {
		grid-template-columns: 1fr;
	}

	.policy-page {
		--vg-policy-photo-start: 0%;
	}

	.policy-visual {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.policy-photo {
		grid-column: 1;
	}

	.policy-intro {
		position: static;
		width: auto;
		margin-top: 20px;
		text-align: left;
	}

	.about-intro,
	.about-band-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.category-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.header-inner {
		flex-wrap: wrap;
	}

	.header-search {
		order: 3;
		flex: 1 1 100%;
	}

	.menu-toggle {
		display: flex;
	}

	.main-navigation .nav-menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--vg-teal-deep);
		padding: 12px 24px 18px;
		z-index: 30;
	}

	.main-navigation .nav-menu a {
		flex-direction: row;
	}

	.main-navigation .nav-menu li:not(:first-child)::before {
		content: none;
	}

	.main-navigation.is-open .nav-menu {
		display: flex;
	}

	.home-hero-grid {
		grid-template-columns: 1fr;
	}

	.top-articles-box {
		grid-column: span 1;
	}

	.region-strip-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.news-grid-v2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.article-list-item {
		flex-direction: column;
	}

	.article-list-item .thumb {
		width: 100%;
		flex-basis: auto;
	}

	.footer-columns {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.page-bottom-nav-inner {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}
