/* =====================================================================
   Site footer and the generic templates (page.php, index.php, 404.php):
   title band, breadcrumb (cgs-inner.css), editor content, post lists.
   ===================================================================== */

body.cgs-redesign { margin: 0; }

/* ---------- footer (same look as the approved preview) ---------- */
.cgs-footer {
	background: #1d2b22; color: #cfd8d2;
	text-align: center; padding: 32px 16px;
	font: 14px/1.6 "Hind Siliguri", system-ui, sans-serif;
}
.cgs-footer .cgs-wrap { padding: 0; }
.cgs-footer p { margin: 4px 0; }
.cgs-footer a { color: inherit; }
.cgs-footer__name { font-weight: 700; font-size: 16px; color: #fff; }

/* ---------- title band ---------- */
.cgs-pagehead {
	position: relative; isolation: isolate; overflow: hidden;
	color: #fff;
	background:
		radial-gradient(ellipse 60% 90% at 85% 40%, rgba(128, 214, 168, .18), transparent 70%),
		linear-gradient(118deg, #072d19 0%, #0a3f24 46%, #0d5631 100%);
}
.cgs-pagehead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--gold), var(--gold-2) 40%, rgba(230, 197, 111, 0));
}
.cgs-pagehead__in { padding-block: clamp(30px, 4vw, 52px); }
.cgs-pagehead__title {
	margin: 0; padding-left: 18px; border-left: 5px solid var(--gold);
	font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; line-height: 1.35;
	color: #fff; overflow-wrap: break-word;
}

/* ---------- body ---------- */
.cgs-generic__body {
	background:
		radial-gradient(ellipse 60% 40% at 100% 0, rgba(201, 162, 74, .07), transparent 70%),
		linear-gradient(180deg, #f3f8f4 0, var(--paper) 420px);
	padding-block: clamp(28px, 4.4vw, 60px) clamp(36px, 5vw, 72px);
}
.cgs-entry {
	min-width: 0;
	font-size: var(--fs-base); line-height: 1.9; color: var(--ink);
	overflow-wrap: break-word;
}
.cgs-entry > :first-child { margin-top: 0; }
.cgs-entry p { margin: 0 0 1.1em; }
.cgs-entry h2, .cgs-entry h3, .cgs-entry h4 { font-family: var(--font-display); color: var(--emerald-900); line-height: 1.4; margin: 1.5em 0 .6em; }
.cgs-entry h2 { font-size: var(--fs-xl); }
.cgs-entry h3 { font-size: var(--fs-lg); }
.cgs-entry a { color: var(--emerald-700); }
.cgs-entry img, .cgs-entry video, .cgs-entry iframe { max-width: 100%; height: auto; }
.cgs-entry iframe { aspect-ratio: auto; }
.cgs-entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.cgs-entry th, .cgs-entry td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.cgs-entry th { background: var(--emerald-800); color: #fff; }
.cgs-entry blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: #fff; border-radius: 8px; }
.cgs-entry__meta { margin: 0 0 14px; font-size: var(--fs-sm); color: var(--ink-3); }
.cgs-entry__thumb { margin: 0 0 22px; }
.cgs-entry__thumb img { border-radius: 14px; }
.cgs-entry__pages { margin-top: 20px; font-weight: 600; }
.cgs-entry .alignleft { float: left; margin: .3em 1.2em 1em 0; }
.cgs-entry .alignright { float: right; margin: .3em 0 1em 1.2em; }
.cgs-entry .aligncenter { display: block; margin-inline: auto; }
.cgs-entry .wp-caption-text, .cgs-entry figcaption { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- lists of posts ---------- */
.cgs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.cgs-card-item {
	min-width: 0; padding: 20px 22px;
	background: #fff; border: 1px solid var(--line); border-radius: 16px;
	box-shadow: 0 1px 2px rgba(10, 63, 36, .05), 0 16px 34px -28px rgba(10, 63, 36, .4);
}
.cgs-card-item__title { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.45; }
.cgs-card-item__title a { color: var(--emerald-900); text-decoration: none; }
.cgs-card-item__title a:hover { text-decoration: underline; }
.cgs-card-item__meta { margin: 0 0 8px; font-size: var(--fs-xs); color: var(--ink-3); }
.cgs-card-item__text { font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-2); }
.cgs-card-item__text p { margin: 0 0 10px; }
.cgs-card-item__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--emerald-700); font-weight: 700; text-decoration: none; }
.cgs-card-item__more .cgs-ico { width: 16px; height: 16px; }

.cgs-pagination { margin-top: 28px; }
.cgs-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cgs-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--emerald-800); text-decoration: none; font-weight: 600;
}
.cgs-pagination .page-numbers.current { background: var(--emerald-800); color: #fff; border-color: var(--emerald-800); }

/* ---------- empty / 404 ---------- */
.cgs-empty { max-width: 640px; }
.cgs-empty .cgs-search { margin: 18px 0; }
.cgs-btn--primary {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px;
	border-radius: 12px; background: var(--emerald-700); color: #fff; text-decoration: none; font-weight: 700;
}
.cgs-btn--primary:hover { background: var(--emerald-800); }
.cgs-btn--primary .cgs-ico { width: 18px; height: 18px; }

/* ---------- Academic / Admission / More pages without content yet (templates/page-cgs-info.php) ---------- */
.cgs-infopage__empty {
	display: flex; align-items: flex-start; gap: 18px; max-width: 760px;
	padding: clamp(20px, 3vw, 32px); border-radius: 16px;
	background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
	box-shadow: 0 1px 2px rgba(10, 63, 36, .05), 0 16px 34px -28px rgba(10, 63, 36, .4);
}
.cgs-infopage__icon {
	flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
	background: var(--emerald-100); color: var(--emerald-700);
}
.cgs-infopage__icon .cgs-ico { width: 24px; height: 24px; }
.cgs-infopage__lead { margin: 4px 0 14px; font-size: var(--fs-md); font-weight: 600; line-height: 1.75; color: var(--emerald-950); }
.cgs-infopage__note { margin: 0 0 16px; font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-2); }
.cgs-infopage__h { margin: 0 0 16px; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--emerald-900); }

@media (max-width: 479.98px) {
	.cgs-infopage__empty { flex-direction: column; gap: 12px; }
	.cgs-pagehead__title { padding-left: 14px; border-left-width: 4px; }
}
