/* Forward Grid v1.0.0 — colours and fonts come from CSS variables set in Settings › Forward Grid. */

/* ---------- Grid & cards ---------- */
.fg-wrap { width: 100%; }
.fg-grid {
	display: grid;
	grid-template-columns: repeat(var(--fg-cols, 3), minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}
@media (max-width: 1024px) { .fg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .fg-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.fg-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 2px solid #D5EDE2;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(7, 94, 84, .08);
	transition: transform .2s, box-shadow .2s;
	min-width: 0;
}
.fg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(7, 94, 84, .16); }

.fg-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--fg-bg);
	overflow: hidden;
	text-decoration: none !important;
}
.fg-thumb .fg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s;
	border-radius: 0 !important;
	margin: 0 !important;
}
.fg-card:hover .fg-thumb .fg-img { transform: scale(1.04); }

.fg-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18) 0 60px, transparent 61px),
		linear-gradient(135deg, var(--fg-primary-dark), var(--fg-accent));
	color: #fff;
}
.fg-placeholder-label { font-family: var(--fg-font-body); font-size: 13px; font-style: italic; opacity: .85; }
.fg-placeholder-title { font-family: var(--fg-font-heading); font-size: 22px; line-height: 1.2; font-weight: 700; }

.fg-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 22px;
	flex: 1;
}
.fg-cats, .fg-tags, .fg-browse { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-chip {
	display: inline-block;
	font-family: var(--fg-font-body);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .5px;
	padding: 5px 11px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.fg-cats .fg-chip { background: #DDF7E7; color: var(--fg-primary-dark); text-transform: uppercase; }
.fg-cats .fg-chip:hover { background: var(--fg-primary); color: var(--fg-ink); }
.fg-tags .fg-chip { background: transparent; color: var(--fg-accent); padding: 2px 4px; font-weight: 600; letter-spacing: 0; font-size: 13px; }
.fg-tags .fg-chip:hover { color: var(--fg-ink); text-decoration: underline !important; }

.fg-title { margin: 0 !important; font-family: var(--fg-font-heading) !important; font-size: 22px !important; line-height: 1.25 !important; font-weight: 700 !important; }
.fg-title a { color: var(--fg-primary-dark) !important; text-decoration: none !important; }
.fg-title a:hover { color: var(--fg-accent) !important; }
.fg-excerpt { margin: 0 !important; font-family: var(--fg-font-body); font-size: 15px; line-height: 1.55; color: var(--fg-text); }
.fg-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-family: var(--fg-font-body);
	font-size: 14px;
	color: #6B7F7A;
}
.fg-read { font-weight: 700; color: var(--fg-accent) !important; text-decoration: none !important; }
.fg-read:hover { color: var(--fg-primary-dark) !important; }

.fg-more-wrap { margin: 28px 0 0; text-align: center; }
.fg-btn {
	display: inline-block;
	font-family: var(--fg-font-body);
	font-size: 16px;
	font-weight: 700;
	color: var(--fg-ink) !important;
	background: var(--fg-primary);
	border: 0;
	padding: 12px 26px;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background-color .2s, transform .2s;
}
.fg-btn:hover { background: #1EBE5A; transform: translateY(-2px); }

/* ---------- Listing template ---------- */
.fg-archive .site-content > .ast-container,
.fg-archive #content > .ast-container { max-width: none; padding: 0; display: block; }
.fg-main { width: 100%; background: var(--fg-bg); }
.fg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.fg-hero { background: var(--fg-primary-dark); padding: 72px 0 64px; }
.fg-hero .fg-container { display: flex; flex-direction: column; gap: 14px; }
.fg-eyebrow { margin: 0; font-family: var(--fg-font-body); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--fg-accent); }
.fg-eyebrow--light { color: var(--fg-highlight); }
.fg-hero-title { margin: 0; font-family: var(--fg-font-heading); font-size: clamp(36px, 6vw, 60px); line-height: 1.08; font-weight: 700; color: #fff; }
.fg-hero-desc, .fg-hero-desc p { margin: 0; max-width: 680px; font-family: var(--fg-font-body); font-size: 19px; line-height: 1.6; color: #D4EDE7; }
.fg-hero-count { margin: 0; font-family: var(--fg-font-body); font-size: 15px; color: #B9D3CC; }
.fg-search { display: flex; gap: 10px; max-width: 560px; margin-top: 8px; flex-wrap: wrap; }
.fg-search input[type="search"] {
	flex: 1 1 260px;
	min-height: 48px;
	padding: 10px 20px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: var(--fg-font-body);
	font-size: 16px;
	background: #fff;
	color: var(--fg-ink);
}
.fg-search input[type="search"]:focus { outline: none; border-color: var(--fg-primary); }
.fg-section { padding: 48px 0 88px; }
.fg-browse { align-items: center; margin-bottom: 14px; }
.fg-browse--tags { margin-bottom: 36px; }
.fg-browse-label { font-family: var(--fg-font-body); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-text); margin-right: 6px; }
.fg-browse .fg-chip { background: #fff; border: 1.5px solid #CFE8DD; color: var(--fg-primary-dark); font-size: 13px; padding: 6px 12px; }
.fg-browse--tags .fg-chip { font-weight: 600; }
.fg-browse .fg-chip:hover, .fg-browse .fg-chip.is-active { background: var(--fg-primary-dark); border-color: var(--fg-primary-dark); color: #fff; }

.fg-pagination { margin-top: 44px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-family: var(--fg-font-body); }
.fg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box;
	border-radius: 999px; background: #fff; border: 1.5px solid #CFE8DD;
	color: var(--fg-primary-dark); font-weight: 700; text-decoration: none;
}
.fg-pagination .page-numbers.current, .fg-pagination a.page-numbers:hover { background: var(--fg-primary-dark); border-color: var(--fg-primary-dark); color: #fff; }
.fg-empty { text-align: center; padding: 48px 0; font-family: var(--fg-font-body); color: var(--fg-text); }
.fg-empty h2 { font-family: var(--fg-font-heading); color: var(--fg-primary-dark); }

/* ---------- Posts & pages (not built with Elementor) ---------- */
body.fg-styled:not(.elementor-page),
body.fg-styled.single-post { background-color: var(--fg-bg); }
body.fg-styled:not(.elementor-page) .site-content { background-color: var(--fg-bg); }
body.fg-styled.single-post .site-content .ast-container,
body.fg-styled.page:not(.elementor-page) .site-content .ast-container { padding-top: 48px; padding-bottom: 72px; }

body.fg-styled:not(.elementor-page) article.post,
body.fg-styled:not(.elementor-page) article.page,
body.fg-styled:not(.elementor-page) .ast-article-single {
	background: #fff !important;
	border: 2px solid #D5EDE2;
	border-radius: 24px;
	padding: 44px 48px !important;
	box-shadow: 0 8px 24px rgba(7, 94, 84, .06);
}
@media (max-width: 640px) {
	body.fg-styled:not(.elementor-page) article.post,
	body.fg-styled:not(.elementor-page) article.page,
	body.fg-styled:not(.elementor-page) .ast-article-single { padding: 28px 20px !important; border-radius: 18px; }
}
body.fg-styled:not(.elementor-page) .entry-title {
	font-family: var(--fg-font-heading) !important;
	font-weight: 700 !important;
	font-size: clamp(30px, 4.5vw, 46px) !important;
	line-height: 1.15 !important;
	color: var(--fg-primary-dark) !important;
}
body.fg-styled:not(.elementor-page) .entry-meta,
body.fg-styled:not(.elementor-page) .entry-meta a { font-family: var(--fg-font-body); color: #6B7F7A; font-size: 15px; }
body.fg-styled:not(.elementor-page) .entry-content {
	font-family: var(--fg-font-body);
	font-size: 19px;
	line-height: 1.75;
	color: var(--fg-ink);
}
body.fg-styled:not(.elementor-page) .entry-content h2,
body.fg-styled:not(.elementor-page) .entry-content h3,
body.fg-styled:not(.elementor-page) .entry-content h4 { font-family: var(--fg-font-heading); color: var(--fg-primary-dark); line-height: 1.25; }
body.fg-styled:not(.elementor-page) .entry-content a { color: var(--fg-accent); text-underline-offset: 3px; }
body.fg-styled:not(.elementor-page) .entry-content img,
body.fg-styled:not(.elementor-page) .post-thumb img { border-radius: 16px; }
body.fg-styled:not(.elementor-page) .entry-content blockquote {
	border-left: 0; margin: 28px 0; padding: 22px 26px; border-radius: 4px 20px 20px 20px;
	background: #EAF8F0; font-style: normal; color: var(--fg-ink);
}

/* Single-post extras */
.fg-single-cats { margin-bottom: 22px; }
.fg-single-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid #DCEDE6; }
.fg-single-section .fg-eyebrow { margin-bottom: 14px; }
.fg-single-tags .fg-chip { font-size: 15px; background: #F0FAF4; padding: 6px 12px; border-radius: 999px; }
.fg-related .fg-grid { gap: 18px; }
.entry-content .fg-card a, .entry-content .fg-chip { text-decoration: none; }
.entry-content .fg-title { font-size: 19px !important; }

/* Astra's own "next/previous" and comment areas, softened */
body.fg-styled.single-post .post-navigation a { font-family: var(--fg-font-body); color: var(--fg-primary-dark); }
body.fg-styled.single-post .comments-area { font-family: var(--fg-font-body); }

/* ---------- Single post template (v1.1) ---------- */
body.fg-single .site-content > .ast-container,
body.fg-single #content > .ast-container { max-width: none !important; padding: 0 !important; display: block; }
body.fg-single #primary, body.fg-single #secondary { display: none; }
.fg-hero--single { padding: 56px 0 64px; }
.fg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--fg-font-body); font-size: 14px; color: #B9D3CC; }
.fg-crumbs a { color: #D4EDE7; text-decoration: none; }
.fg-crumbs a:hover { color: var(--fg-highlight); }
.fg-hero-cats .fg-chip { background: rgba(255, 255, 255, .14); color: #fff; }
.fg-hero-cats .fg-chip:hover { background: var(--fg-primary); color: var(--fg-ink); }
.fg-single-title { max-width: 980px; font-size: clamp(32px, 5vw, 56px); }
.fg-single-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--fg-font-body); font-size: 15px; color: #B9D3CC; }
.fg-single-meta span:first-child { font-style: italic; }

.fg-single-section-main { padding: 48px 0 56px; }
.fg-single-layout { display: flex; gap: 32px; align-items: flex-start; }
.fg-article {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
	border: 2px solid #D5EDE2;
	border-radius: 24px;
	padding: 44px 52px !important;
	box-shadow: 0 8px 24px rgba(7, 94, 84, .06);
	margin: 0 !important;
}
.fg-article-image { margin: 0 0 32px; }
.fg-article-image .fg-img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 18px; display: block; }
body.fg-single .fg-article-content { font-family: var(--fg-font-body); font-size: 20px; line-height: 1.8; color: var(--fg-ink); }
body.fg-single .fg-article-content p { margin-bottom: 1.1em; }
body.fg-single .fg-article-content img { border-radius: 16px; height: auto; max-width: 100%; }
body.fg-single .fg-article-content h2,
body.fg-single .fg-article-content h3 { font-family: var(--fg-font-heading); color: var(--fg-primary-dark); }
.fg-article-footer { margin-top: 36px; padding-top: 26px; border-top: 1px solid #DCEDE6; }
.fg-article-footer .fg-eyebrow { margin-bottom: 12px; }

.fg-sidebar { flex: 0 0 300px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.admin-bar .fg-sidebar { top: 56px; }
.fg-side-card { background: #fff; border: 2px solid #D5EDE2; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fg-browse--stack { flex-direction: row; }

.fg-share { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-share-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer;
	font-family: var(--fg-font-body); font-size: 14px; font-weight: 700; line-height: 1;
	text-decoration: none !important; color: #fff !important; background: var(--fg-primary-dark);
	transition: transform .2s, opacity .2s;
}
.fg-share-btn:hover { transform: translateY(-2px); opacity: .92; }
.fg-share-whatsapp { background: var(--fg-primary); color: var(--fg-ink) !important; }
.fg-share-telegram { background: #229ED9; }
.fg-share-facebook { background: #1877F2; }
.fg-share-x { background: #111; }
.fg-share-copy { background: #E3F1EC; color: var(--fg-primary-dark) !important; }

.fg-related-section { padding: 0 0 80px; }
.fg-section-title { margin: 6px 0 24px; font-family: var(--fg-font-heading); font-size: clamp(30px, 4vw, 42px); line-height: 1.1; color: var(--fg-primary-dark); }
.fg-comments-section { padding: 0 0 80px; }
.fg-comments-wrap { max-width: 900px; font-family: var(--fg-font-body); }

@media (max-width: 1024px) {
	.fg-single-layout { flex-direction: column; }
	.fg-sidebar { position: static; flex: 1 1 auto; width: 100%; }
}
@media (max-width: 640px) {
	.fg-article { padding: 26px 20px !important; border-radius: 18px; }
	body.fg-single .fg-article-content { font-size: 18px; }
	.fg-hero--single { padding: 40px 0 44px; }
}

/* ---------- Ad slots (v1.2) ---------- */
.fg-ad { display: block; width: 100%; margin: 0; text-align: center; }
.fg-ad-label {
	display: block; margin-bottom: 6px;
	font-family: var(--fg-font-body); font-size: 11px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase; color: #8AA39C;
}
.fg-ad-box {
	background: #FFFFFF; border: 1.5px dashed #CFE8DD; border-radius: 16px;
	padding: 12px; box-sizing: border-box; overflow: hidden;
}
.fg-ad-box ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.fg-grid > .fg-ad--grid { grid-column: 1 / -1; margin: 8px 0; }
.fg-ad--inline { max-width: 1200px; margin: 0 auto; }
.fg-article-content .fg-ad { margin: 32px 0; }
.fg-article-content .fg-ad-box { border-style: solid; background: #F7FCF9; }
.fg-ad--sidebar .fg-ad-box { border-radius: 20px; }
.fg-ad-section { padding: 0 0 56px; }
