.cgm-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px 70px; font-size: 15px; }
.cgm-wrap-tight { padding-top: 0; }
.cgm-page-title { margin: 0 0 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #1a1a1a; }

/* ---------------------------------------------------------------
 * Cover card: cover photo + avatar + name
 * ------------------------------------------------------------- */
.cgm-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #fafafa;
	box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06);
}
.cgm-cover {
	height: 280px;
	background: linear-gradient(135deg, #f7a53a, #b5651d) center / cover no-repeat;
}
.cgm-head {
	position: relative;
	min-height: 90px;
	display: flex;
	align-items: flex-end;
	gap: 24px;
	padding: 0 30px 22px 30px;
	background: #fff;
}
.cgm-avatar {
	position: absolute; left: 30px; top: -70px;
	width: 150px; height: 150px; border-radius: 50%;
	border: 5px solid #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	background: #fff; overflow: hidden;
}
.cgm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.cgm-name { margin: 0 0 0 190px; padding-top: 18px; font-size: 1.55rem; font-weight: 600; color: #1a1a1a; }

.cgm-header{background-color:#0b3969; padding:140px 0;}
/* ---------------------------------------------------------------
 * Tab nav — its own floating pill bar, clearly separate from the
 * card above and the panel below.
 * ------------------------------------------------------------- */
.cgm-tabs {
	display: flex; align-items: center; gap: 4px;
	margin: 22px 0 0;
	padding: 6px;
	background: #f2f2f2;
	border-radius: 999px;
	width: fit-content;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.cgm-tabs a {
	padding: 9px 22px;
	color: #555;
	text-decoration: none;
	font-weight: 500;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
}
.cgm-tabs a:hover { color: #111; }
.cgm-tabs a.is-active { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cgm-tabs .cgm-logout {
	margin-left: 10px;
	color: #b5651d;
	font-weight: 600;
	background: none; box-shadow: none;
}
.cgm-tabs .cgm-logout:hover { color: #8a4c14; }

/* Standalone nav on the Edit Profile / Submit Post pages (no cover card above it) */
.cgm-tabs-standalone { margin: 0 0 26px; }
.cgm-form { max-width: 1100px; margin: 0 auto; }

/* Header banner + overlapping avatar (Edit Profile page) */
.cgm-header {
	position: relative;
	height: 190px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #0d3d68, #123b64) center / cover no-repeat;
	border-radius: 10px 10px 0 0;
}
.cgm-header-name { color: #fff; font-size: 1.1rem; letter-spacing: .03em; }
.cgm-avatar-row { position: relative; height: 0; }
.cgm-avatar-row .cgm-avatar {
	position: absolute; left: 30px; top: -75px;
	width: 150px; height: 150px; border-radius: 50%;
	background: #fff; border: 5px solid #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
}
.cgm-avatar-row .cgm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.cgm-avatar-row + .cgm-tabs-standalone { margin-top: 90px; }
#cgm_category{width: 100%; padding: 10px; background-color: #fff;  border: 1px solid #ccc;  border-radius: 6px;box-shadow:rgba(0, 0, 0, 0.16) 0px 1px 4px}
/* ---------------------------------------------------------------
 * Content panel
 * ------------------------------------------------------------- */
.cgm-panel {
	margin-top: 18px;
	padding: 30px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.05);
}

.cgm-panel[hidden] { display: none !important; }
.cgm-btn {
	display: inline-block; padding: 11px 24px; border-radius: 6px;
	background: #b5651d; color: #fff !important; text-decoration: none;
	font-weight: 600; transition: background .15s ease;
}
.cgm-btn:hover { background: #96521a; }
.cgm-btn-light { background: transparent; color: #b5651d !important; border: 1px solid #b5651d; }
.cgm-btn-light:hover { background: #fdf3ea; }

/* Profile fields */
.cgm-about { display: grid; grid-template-columns: 160px 1fr; gap: 14px 24px; margin: 0 0 26px; }
.cgm-about dt { font-weight: 600; color: #333; }
.cgm-about dd { margin: 0; word-break: break-word; color: #444; }

/* News list */
.cgm-post { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #eee; }
.cgm-post:first-child { padding-top: 0; }
.cgm-post:last-child { border-bottom: 0; }
.cgm-post-thumb img { object-fit: cover; border-radius: 8px; display: block; }
.cgm-post-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.cgm-post-body h3 a { color: #1a1a1a; text-decoration: none; }
.cgm-post-body h3 a:hover { color: #b5651d; }
.cgm-post-body p { margin: 8px 0 0; color: #555; }
.cgm-meta { color: #999; font-size: .82rem; }
.cgm-status {
	display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 10px;
	background: #fff3cd; color: #7a5b00; font-size: .68rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em; vertical-align: middle;
}
.cgm-pagination { margin-top: 26px; }
.cgm-pagination .page-numbers {
	display: inline-block; padding: 7px 13px; margin-right: 4px;
	border: 1px solid #ddd; border-radius: 6px; text-decoration: none; color: #444;
}
.cgm-pagination .current { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ---------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------- */
@media (max-width: 700px) {
	.cgm-wrap { padding: 20px 14px 50px; }
	.cgm-cover { height: 150px; }
	.cgm-avatar { width: 100px; height: 100px; top: -50px; left: 16px; border-width: 4px; }
	.cgm-head { padding: 0 16px 16px; gap: 0; }
	.cgm-name { margin-left: 0; font-size: 1.15rem; padding-top: 60px; }
	.cgm-header { height: 150px; }
	.cgm-avatar-row .cgm-avatar { width: 100px; height: 100px; top: -50px; left: 16px; border-width: 4px; }
	.cgm-avatar-row + .cgm-tabs-standalone { margin-top: 60px; }
	.cgm-tabs { width: 100%; box-sizing: border-box; justify-content: space-between; }
	.cgm-tabs a { padding: 8px 14px; flex: 1; text-align: center; }
	.cgm-tabs .cgm-logout { margin-left: 0; flex: none; }
	.cgm-panel { padding: 20px; }
	.cgm-about { grid-template-columns: 1fr; gap: 4px; }
	.cgm-about dd { margin-bottom: 12px; }
	.cgm-post { flex-direction: column; }
	.cgm-post-thumb img { width: 100%; height: 180px; }
}
