/*
Theme Name: Fiji Global News
Theme URI: https://fijiglobalnews.com/
Author: Lyra
Description: News-focused child theme for Fiji Global News, built on Twenty Twenty-Five.
Template: twentytwentyfive
Version: 0.1.0
*/

:root {
	--fgn-navy: #061b42;
	--fgn-midnight: #020b1f;
	--fgn-blue: #0078d7;
	--fgn-cyan: #20c7ff;
	--fgn-red: #e50922;
	--fgn-ink: #07111f;
	--fgn-muted: #5b6674;
	--fgn-line: #d9e2ec;
	--fgn-soft: #eef5fa;
	--fgn-white: #ffffff;
}

body {
	background: #f4f7fb;
	color: var(--fgn-ink);
	font-family: Arial, Helvetica, sans-serif;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.fgn-site {
	background: #f4f7fb;
}

.fgn-masthead {
	background:
		linear-gradient(90deg, rgba(2, 11, 31, 0.96) 0%, rgba(6, 27, 66, 0.92) 42%, rgba(6, 27, 66, 0.54) 100%),
		url("https://fijiglobalnews.com/wp-content/uploads/Fiji_Global_News_Cover.png") center / cover no-repeat;
	color: var(--fgn-white);
	border-bottom: 5px solid var(--fgn-red);
}

.fgn-masthead__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 24px 30px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	min-height: 230px;
}

.fgn-brand {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}

.fgn-brand img {
	width: 112px;
	height: 112px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.94);
	border: 3px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.fgn-brand__name {
	margin: 0;
	font-family: Arial Black, Arial, Helvetica, sans-serif;
	font-size: clamp(2.6rem, 6vw, 5.8rem);
	line-height: 0.92;
	letter-spacing: 0;
	text-transform: uppercase;
	text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.fgn-brand__name span {
	color: var(--fgn-red);
}

.fgn-tagline {
	margin: 14px 0 0;
	font-size: clamp(0.9rem, 1.5vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #eaf7ff;
}

.fgn-masthead__tools {
	display: grid;
	gap: 12px;
	justify-items: end;
	align-self: start;
}

.fgn-date {
	font-size: 0.88rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #c7e8ff;
}

.fgn-search {
	display: flex;
	gap: 8px;
}

.fgn-search input {
	width: 230px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.96);
	color: var(--fgn-ink);
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 0.95rem;
}

.fgn-search button {
	border: 0;
	background: var(--fgn-red);
	color: var(--fgn-white);
	font-weight: 800;
	padding: 10px 14px;
	border-radius: 4px;
	cursor: pointer;
}

.fgn-nav {
	background: var(--fgn-midnight);
	border-bottom: 1px solid rgba(32, 199, 255, 0.4);
}

.fgn-nav__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 4px;
	overflow-x: auto;
}

.fgn-nav a {
	color: var(--fgn-white);
	display: block;
	padding: 15px 13px;
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.fgn-nav a:hover {
	background: var(--fgn-blue);
}

.fgn-breaking {
	background: var(--fgn-white);
	border-bottom: 1px solid var(--fgn-line);
}

.fgn-breaking__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.fgn-breaking__label {
	background: var(--fgn-red);
	color: var(--fgn-white);
	font-size: 0.76rem;
	font-weight: 900;
	padding: 6px 9px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.fgn-breaking__text {
	color: var(--fgn-navy);
	font-weight: 800;
	font-size: 0.95rem;
}

.fgn-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px 24px 42px;
}

.fgn-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	border-bottom: 3px solid var(--fgn-navy);
}

.fgn-section-head h2,
.fgn-section-head h3 {
	margin: 0;
	background: var(--fgn-navy);
	color: var(--fgn-white);
	padding: 8px 12px 7px;
	font-size: 0.9rem;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.fgn-top-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
	gap: 24px;
	margin-bottom: 32px;
}

.fgn-lead-list .wp-block-post-template,
.fgn-secondary-list .wp-block-post-template,
.fgn-latest-list .wp-block-post-template,
.fgn-section-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fgn-lead-list .wp-block-post-featured-image {
	margin: 0 0 14px;
}

.fgn-lead-list .wp-block-post-featured-image img,
.fgn-card-list .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}

.fgn-lead-list .wp-block-post-title {
	margin: 0 0 8px;
	font-size: clamp(2rem, 4vw, 3.45rem);
	line-height: 0.98;
	letter-spacing: 0;
	font-family: Georgia, Times, serif;
}

.fgn-lead-list .wp-block-post-title a,
.fgn-card-list .wp-block-post-title a,
.fgn-latest-list .wp-block-post-title a,
.fgn-section-list .wp-block-post-title a {
	color: var(--fgn-ink);
	text-decoration: none;
}

.fgn-lead-list .wp-block-post-title a:hover,
.fgn-card-list .wp-block-post-title a:hover,
.fgn-latest-list .wp-block-post-title a:hover,
.fgn-section-list .wp-block-post-title a:hover {
	color: var(--fgn-blue);
}

.fgn-meta,
.wp-block-post-date {
	color: var(--fgn-muted);
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fgn-lead-list .wp-block-post-excerpt {
	font-size: 1.04rem;
	line-height: 1.55;
	color: #283443;
}

.fgn-secondary-list {
	background: var(--fgn-white);
	border-top: 4px solid var(--fgn-red);
	padding: 16px;
	box-shadow: 0 8px 24px rgba(7, 17, 31, 0.08);
}

.fgn-secondary-list .wp-block-post {
	border-bottom: 1px solid var(--fgn-line);
	padding-bottom: 13px;
	margin-bottom: 13px;
}

.fgn-secondary-list .wp-block-post:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.fgn-secondary-list .wp-block-post-title {
	font-family: Georgia, Times, serif;
	font-size: 1.18rem;
	line-height: 1.15;
	margin: 0 0 6px;
}

.fgn-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.fgn-card-list .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fgn-card-list .wp-block-post {
	background: var(--fgn-white);
	border: 1px solid var(--fgn-line);
	padding: 12px;
}

.fgn-card-list .wp-block-post-featured-image {
	margin: 0 0 10px;
}

.fgn-card-list .wp-block-post-title {
	font-family: Georgia, Times, serif;
	font-size: 1.25rem;
	line-height: 1.15;
	margin: 0 0 8px;
}

.fgn-card-list .wp-block-post-excerpt {
	color: #354154;
	font-size: 0.94rem;
	line-height: 1.45;
}

.fgn-sidebar {
	display: grid;
	gap: 24px;
}

.fgn-latest-list {
	background: var(--fgn-white);
	border: 1px solid var(--fgn-line);
	padding: 15px;
}

.fgn-latest-list .wp-block-post {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	border-bottom: 1px solid var(--fgn-line);
	padding: 10px 0;
}

.fgn-latest-list .wp-block-post:first-child {
	padding-top: 0;
}

.fgn-latest-list .wp-block-post:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.fgn-latest-list .wp-block-post-title {
	font-size: 0.98rem;
	line-height: 1.22;
	margin: 0;
	font-weight: 800;
}

.fgn-latest-list .wp-block-post-date {
	grid-column: 1;
	grid-row: 1;
	width: 44px;
	height: 44px;
	background: var(--fgn-navy);
	color: var(--fgn-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.62rem;
	line-height: 1.05;
	padding: 4px;
}

.fgn-latest-list .wp-block-post-title {
	grid-column: 2;
}

.fgn-weather-box {
	background: linear-gradient(160deg, var(--fgn-navy), var(--fgn-blue));
	color: var(--fgn-white);
	padding: 18px;
	border-bottom: 4px solid var(--fgn-red);
}

.fgn-weather-box h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.fgn-weather-box p {
	margin: 0;
	color: #e7f7ff;
	line-height: 1.45;
}

.fgn-section-row {
	margin-top: 34px;
}

.fgn-section-list .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fgn-section-list .wp-block-post {
	border-top: 1px solid var(--fgn-line);
	padding-top: 12px;
}

.fgn-section-list .wp-block-post-title {
	font-family: Georgia, Times, serif;
	font-size: 1.1rem;
	line-height: 1.18;
	margin: 0 0 6px;
}

.fgn-weather-list .wp-block-post-template {
	grid-template-columns: 1fr;
	gap: 14px;
}

.fgn-weather-list .wp-block-post {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	background: var(--fgn-white);
	border: 1px solid var(--fgn-line);
	border-left: 4px solid var(--fgn-blue);
	padding: 10px;
}

.fgn-weather-list .wp-block-post-featured-image {
	grid-row: 1 / span 2;
	margin: 0;
	aspect-ratio: 4 / 3;
	background:
		linear-gradient(135deg, rgba(6, 27, 66, 0.18), rgba(0, 120, 215, 0.08)),
		url("https://fijiglobalnews.com/wp-content/uploads/Fiji_Global_News_Cover.png") center / cover no-repeat;
	border-radius: 3px;
	min-height: 86px;
	overflow: hidden;
}

.fgn-weather-list .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.fgn-weather-list .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 86px;
	object-fit: cover;
}

.fgn-weather-list .wp-block-post-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.18;
	margin: 0 0 5px;
}

.fgn-weather-list .wp-block-post-date {
	grid-column: 2;
}

.fgn-footer {
	background: var(--fgn-midnight);
	color: #dbeeff;
	margin-top: 24px;
}

.fgn-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 0.9rem;
}

.fgn-footer a {
	color: #ffffff;
}

.fgn-inner-page {
	padding-top: 36px;
}

.fgn-page-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.fgn-page-title {
	margin: 0 0 24px;
	color: var(--fgn-navy);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: 0;
}

.fgn-term-description {
	margin: -12px 0 24px;
	color: #334256;
	font-size: 1rem;
	line-height: 1.55;
}

.fgn-archive-main,
.fgn-article-main {
	min-width: 0;
}

.fgn-archive-list .wp-block-post-template {
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fgn-archive-list .wp-block-post {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	background: var(--fgn-white);
	border: 1px solid var(--fgn-line);
	border-left: 4px solid var(--fgn-blue);
	padding: 12px;
}

.fgn-archive-list .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(135deg, rgba(6, 27, 66, 0.18), rgba(0, 120, 215, 0.08)),
		url("https://fijiglobalnews.com/wp-content/uploads/Fiji_Global_News_Cover.png") center / cover no-repeat;
	border-radius: 3px;
	overflow: hidden;
}

.fgn-archive-list .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.fgn-archive-list .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fgn-archive-card-body {
	min-width: 0;
}

.fgn-archive-list .wp-block-post-title {
	margin: 0 0 7px;
	font-family: Georgia, Times, serif;
	font-size: 1.55rem;
	line-height: 1.12;
}

.fgn-archive-list .wp-block-post-title a,
.fgn-article-meta a,
.fgn-article-tags a,
.fgn-sidebar-cards .wp-block-post-title a {
	color: var(--fgn-ink);
	text-decoration: none;
}

.fgn-archive-list .wp-block-post-title a:hover,
.fgn-article-meta a:hover,
.fgn-article-tags a:hover,
.fgn-sidebar-cards .wp-block-post-title a:hover {
	color: var(--fgn-blue);
}

.fgn-archive-list .wp-block-post-excerpt {
	margin: 10px 0 0;
	color: #334256;
	font-size: 0.96rem;
	line-height: 1.45;
}

.fgn-pagination {
	margin-top: 24px;
}

.fgn-pagination a,
.fgn-pagination .page-numbers {
	color: var(--fgn-navy);
	font-weight: 800;
}

.fgn-article-meta {
	margin: -12px 0 18px;
	gap: 10px;
	color: var(--fgn-muted);
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fgn-article-image {
	margin: 0 0 22px;
}

.fgn-article-image img {
	width: 100%;
	object-fit: cover;
	border-radius: 4px;
}

.fgn-article-main .wp-block-post-content {
	background: var(--fgn-white);
	border: 1px solid var(--fgn-line);
	padding: 24px;
}

.fgn-article-main .wp-block-post-content p,
.fgn-article-main .wp-block-post-content li {
	font-size: 1.06rem;
	line-height: 1.68;
}

.fgn-article-tags {
	margin-top: 18px;
	color: var(--fgn-muted);
	font-size: 0.9rem;
	font-weight: 700;
}

.fgn-page-sidebar {
	position: sticky;
	top: 16px;
}

.fgn-sidebar-panel {
	background: var(--fgn-white);
	border: 1px solid var(--fgn-line);
	padding: 15px;
}

.fgn-sidebar-cards .wp-block-post-template {
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fgn-sidebar-cards .wp-block-post {
	border-bottom: 1px solid var(--fgn-line);
	padding-bottom: 14px;
}

.fgn-sidebar-cards .wp-block-post:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.fgn-sidebar-cards .wp-block-post-featured-image {
	margin: 0 0 9px;
}

.fgn-sidebar-cards .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 3px;
}

.fgn-sidebar-cards .wp-block-post-title {
	margin: 0 0 6px;
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 900;
}

@media (max-width: 900px) {
	.fgn-masthead__inner,
	.fgn-brand,
	.fgn-top-grid,
	.fgn-content-grid {
		grid-template-columns: 1fr;
	}

	.fgn-masthead__tools {
		justify-items: stretch;
	}

	.fgn-search input {
		width: 100%;
	}

	.fgn-card-list .wp-block-post-template,
	.fgn-section-list .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.fgn-weather-list .wp-block-post {
		grid-template-columns: 104px minmax(0, 1fr);
	}

	.fgn-archive-list .wp-block-post {
		grid-template-columns: 180px minmax(0, 1fr);
	}
}

@media (max-width: 780px) {
	.fgn-page-grid {
		grid-template-columns: 1fr;
	}

	.fgn-page-sidebar {
		position: static;
	}
}

@media (max-width: 600px) {
	.fgn-masthead__inner {
		padding: 22px 18px;
		min-height: 0;
	}

	.fgn-brand {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
	}

	.fgn-brand img {
		width: 76px;
		height: 76px;
	}

	.fgn-tagline {
		font-size: 0.72rem;
		letter-spacing: 0.1em;
	}

	.fgn-nav__inner,
	.fgn-breaking__inner,
	.fgn-main,
	.fgn-footer__inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.fgn-breaking__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.fgn-lead-list .wp-block-post-title {
		font-size: 2rem;
	}

	.fgn-weather-list .wp-block-post {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 10px;
	}

	.fgn-weather-list .wp-block-post-title {
		font-size: 0.93rem;
	}

	.fgn-archive-list .wp-block-post {
		grid-template-columns: 108px minmax(0, 1fr);
		gap: 12px;
		padding: 10px;
	}

	.fgn-archive-list .wp-block-post-title {
		font-size: 1.05rem;
	}

	.fgn-archive-list .wp-block-post-excerpt {
		display: none;
	}

	.fgn-article-main .wp-block-post-content {
		padding: 18px;
	}
}
