/*
Theme Name: CirebonTrust News - Newkarma Child
Theme URI: https://www.idtheme.com/newkarma/
Description: Child theme Newkarma dengan tampilan portal berita modern terinspirasi pola antarmuka detik.com. Tidak mengubah business logic Newkarma.
Author: CirebonTrust
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newkarma
Template: newkarma
*/

:root {
	--ct-blue: #2149c9;
	--ct-blue-dark: #16369d;
	--ct-purple: #6d2bd1;
	--ct-orange: #ff6b00;
	--ct-ink: #20242c;
	--ct-muted: #777f8b;
	--ct-line: #e7e9ee;
	--ct-soft: #f6f7f9;
	--ct-radius: 12px;
}

body {
	background: #fff;
	color: var(--ct-ink);
}

body,
button,
input,
select,
textarea {
	font-family: Arial, Helvetica, sans-serif;
}

.container,
.container-topnav {
	max-width: 1100px;
}

/* Header */
.gmr-topnavwrap {
	background: #fff;
	border-bottom: 1px solid var(--ct-line);
	min-height: 36px;
}

.gmr-topnavwrap .container-topnav {
	padding-top: 2px;
	padding-bottom: 2px;
}

.gmr-top-date {
	font-size: 12px;
	color: var(--ct-muted);
}

.gmr-topnavmenu ul li a {
	font-size: 12px;
	font-weight: 600;
	color: #666;
}

.gmr-headwrapper {
	min-height: 86px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 14px 0;
}

.gmr-headwrapper .custom-logo-link,
.gmr-headwrapper .gmr-logo {
	margin: 0;
}

.gmr-headwrapper .custom-logo {
	max-height: 58px;
	width: auto;
}

.gmr-headwrapper > *:last-child {
	margin-left: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 3px 10px rgba(20, 31, 55, .10);
}

.top-header {
	background: linear-gradient(105deg, var(--ct-blue-dark) 0%, var(--ct-blue) 50%, var(--ct-purple) 100%);
}

.gmr-menuwrap {
	border: 0;
}

.gmr-mainmenu {
	min-height: 48px;
}

.gmr-mainmenu ul {
	display: flex;
	align-items: stretch;
	gap: 2px;
	margin: 0;
}

.gmr-mainmenu ul li a {
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -.1px;
	padding: 15px 14px;
	border: 0 !important;
}

.gmr-mainmenu ul li:hover > a,
.gmr-mainmenu ul li.current-menu-item > a,
.gmr-mainmenu ul li.current-menu-parent > a {
	background: rgba(255,255,255,.15);
	color: #fff !important;
}

.gmr-secondmenuwrap {
	background: #fff;
	border: 1px solid var(--ct-line);
	border-top: 0;
	border-radius: 0 0 9px 9px;
	box-shadow: 0 4px 12px rgba(20,31,55,.05);
}

.gmr-secondmenu ul {
	display: flex;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.gmr-secondmenu ul::-webkit-scrollbar {
	display: none;
}

.gmr-secondmenu ul li a {
	font-size: 12.5px;
	font-weight: 700;
	color: #525965;
	padding: 11px 12px;
}

.gmr-content {
	padding-top: 18px;
}

/* Homepage */
.ct-home {
	width: 100%;
	padding: 0 7.5px;
}

.ct-updatebar {
	display: grid;
	grid-template-columns: 162px minmax(0, 1fr);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	overflow: hidden;
	background: #fff;
	margin: 0 0 18px;
	box-shadow: 0 5px 16px rgba(31,42,68,.05);
}

.ct-updatebar-label {
	background: linear-gradient(135deg, var(--ct-blue) 0%, var(--ct-purple) 100%);
	color: #fff;
	padding: 13px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-decoration: none !important;
}

.ct-updatebar-label span {
	font-size: 14px;
	font-weight: 800;
}

.ct-updatebar-label strong {
	font-size: 10px;
	letter-spacing: 1px;
	color: #ffe8d6;
	margin-top: 3px;
}

.ct-updatebar-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-updatebar-list > a {
	min-width: 0;
	padding: 10px 14px;
	border-right: 1px solid var(--ct-line);
	border-bottom: 1px solid var(--ct-line);
	color: var(--ct-ink);
	text-decoration: none;
	display: grid;
	grid-template-columns: 8px minmax(0,1fr);
	column-gap: 7px;
	align-items: center;
}

.ct-updatebar-list > a:nth-child(2n) { border-right: 0; }
.ct-updatebar-list > a:nth-last-child(-n+2) { border-bottom: 0; }

.ct-update-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ct-orange);
}

.ct-update-title {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ct-updatebar time {
	grid-column: 2;
	font-size: 10.5px;
	color: var(--ct-muted);
	margin-top: 2px;
}

.ct-hero {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	grid-template-rows: 205px 205px;
	gap: 10px;
	margin-bottom: 26px;
}

.ct-hero-card {
	min-width: 0;
	border-radius: var(--ct-radius);
	overflow: hidden;
	background: #dfe3eb;
}

.ct-hero-main {
	grid-row: 1 / span 2;
}

.ct-hero-image {
	position: relative;
	display: block;
	height: 100%;
	color: #fff !important;
	text-decoration: none !important;
}

.ct-hero-image img,
.ct-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.ct-placeholder {
	background: linear-gradient(135deg, #dce2ea, #eef1f5);
}

.ct-hero-card:hover img {
	transform: scale(1.025);
}

.ct-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.22) 60%, rgba(0,0,0,.04) 100%);
}

.ct-hero-copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px;
	z-index: 2;
}

.ct-kicker,
.ct-feed-cat,
.ct-popular-cat {
	color: #ff8a32;
	font-size: 12px;
	font-weight: 800;
}

.ct-hero-copy h2 {
	font-size: 18px;
	line-height: 1.28;
	font-weight: 800;
	margin: 6px 0 6px;
	color: #fff;
	letter-spacing: -.2px;
}

.ct-hero-main .ct-hero-copy {
	padding: 25px;
}

.ct-hero-main .ct-hero-copy h2 {
	font-size: 29px;
	line-height: 1.18;
	max-width: 90%;
}

.ct-hero-copy time {
	font-size: 11px;
	color: rgba(255,255,255,.8);
}

.ct-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
}

.ct-feed,
.ct-sidebar {
	min-width: 0;
}

.ct-section-heading {
	display: flex;
	align-items: baseline;
	gap: 10px;
	border-bottom: 2px solid #edf0f4;
	margin-bottom: 8px;
	position: relative;
}

.ct-section-heading:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 74px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--ct-blue), var(--ct-purple));
}

.ct-section-heading h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--ct-ink);
	margin: 0;
	padding: 0 0 12px;
}

.ct-section-heading > span {
	font-size: 11.5px;
	color: var(--ct-muted);
}

.ct-section-heading-small h2 {
	font-size: 20px;
}

.ct-feed-list {
	background: #fff;
}

.ct-feed-item {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 18px;
	padding: 19px 0;
	border-bottom: 1px solid var(--ct-line);
	margin: 0;
}

.ct-feed-thumb {
	display: block;
	aspect-ratio: 16/10;
	border-radius: 9px;
	overflow: hidden;
	background: #edf0f5;
}

.ct-feed-thumb img,
.ct-feed-thumb .ct-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-feed-copy h3 {
	font-size: 20px;
	line-height: 1.32;
	font-weight: 800;
	letter-spacing: -.2px;
	margin: 5px 0 7px;
}

.ct-feed-copy h3 a {
	color: var(--ct-ink);
	text-decoration: none;
}

.ct-feed-copy h3 a:hover,
.ct-popular-list h3 a:hover {
	color: var(--ct-blue);
}

.ct-feed-copy p {
	font-size: 13.5px;
	line-height: 1.55;
	color: #626a76;
	margin: 0 0 7px;
}

.ct-feed-meta,
.ct-popular-list time {
	font-size: 11px;
	color: #9aa0a8;
}

.ct-sidebar {
	position: relative;
}

.ct-popular-card {
	background: #fff;
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	padding: 17px 18px 7px;
	box-shadow: 0 7px 22px rgba(31,42,68,.05);
	position: sticky;
	top: 72px;
	z-index: 10;
	margin-bottom: 20px;
}

.ct-popular-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ct-popular-list li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 10px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ct-line);
}

.ct-popular-list li:last-child { border-bottom: 0; }

.ct-rank {
	font-size: 28px;
	line-height: 1;
	font-weight: 900;
	font-style: italic;
	color: #d9dde5;
}

.ct-popular-list h3 {
	font-size: 14px;
	line-height: 1.38;
	font-weight: 800;
	margin: 3px 0 5px;
}

.ct-popular-list h3 a {
	color: var(--ct-ink);
	text-decoration: none;
}

.ct-popular-cat { font-size: 10.5px; }

.ct-widget-area .widget {
	border-radius: var(--ct-radius);
	overflow: hidden;
	border: 1px solid var(--ct-line);
	box-shadow: none;
	margin-bottom: 18px;
}

.ct-widget-area .widget-title,
.widget-title {
	font-size: 18px;
	font-weight: 800;
}

.ct-widget-area img {
	max-width: 100%;
	height: auto;
}

.ct-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 22px 0;
	margin: 0;
}

.ct-pagination a,
.ct-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--ct-line);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ct-ink);
	background: #fff;
}

.ct-pagination .current {
	background: var(--ct-blue);
	border-color: var(--ct-blue);
	color: #fff;
}

/* Archives/search: modernize existing Newkarma list without changing templates. */
body.archive .gmr-box-content,
body.search .gmr-box-content,
body.blog:not(.home) .gmr-box-content {
	border-radius: 10px;
	border-color: var(--ct-line);
	box-shadow: none;
}

body.archive .entry-title,
body.search .entry-title {
	font-weight: 800;
	letter-spacing: -.15px;
}

body.archive .content-thumbnail img,
body.search .content-thumbnail img {
	border-radius: 8px;
}

/* Single article */
body.single .gmr-box-content {
	border-radius: 12px;
	border-color: var(--ct-line);
	box-shadow: none;
}

body.single h1.entry-title {
	font-size: 36px;
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -.5px;
	color: var(--ct-ink);
}

body.single .entry-content {
	font-size: 17px;
	line-height: 1.82;
	color: #303640;
}

body.single .entry-content p {
	margin-bottom: 1.35em;
}

body.single .entry-content img {
	border-radius: 10px;
}

/* Footer */
#footer-container,
.site-footer {
	background: #111a2d;
	color: #d7dce7;
}

.site-footer a,
#footer-container a {
	color: #d7dce7;
}

.site-footer {
	border-top: 4px solid var(--ct-blue);
}

/* Mobile */
@media (max-width: 991px) {
	.site-header {
		position: relative;
	}

	.gmr-headwrapper {
		min-height: 72px;
		padding: 10px 0;
	}

	.gmr-headwrapper .custom-logo {
		max-height: 52px;
	}

	.gmr-mainmenu ul {
		overflow-x: auto;
		white-space: nowrap;
		scrollbar-width: none;
	}

	.gmr-mainmenu ul::-webkit-scrollbar { display: none; }

	.gmr-mainmenu ul li {
		flex: 0 0 auto;
	}

	.gmr-mainmenu ul li a {
		padding: 13px 12px;
		font-size: 13px;
	}

	.ct-updatebar {
		grid-template-columns: 132px minmax(0,1fr);
	}

	.ct-updatebar-list {
		grid-template-columns: 1fr;
		max-height: 94px;
		overflow: hidden;
	}

	.ct-updatebar-list > a {
		border-right: 0;
	}

	.ct-updatebar-list > a:nth-last-child(-n+2) { border-bottom: 1px solid var(--ct-line); }

	.ct-hero {
		grid-template-columns: 1.45fr 1fr;
		grid-template-rows: 190px 190px;
	}

	.ct-hero-card:nth-child(4),
	.ct-hero-card:nth-child(5) {
		display: none;
	}

	.ct-layout {
		grid-template-columns: minmax(0,1fr) 280px;
		gap: 22px;
	}

	.ct-feed-item {
		grid-template-columns: 180px minmax(0,1fr);
	}
}

@media (max-width: 767px) {
	.container,
	.container-topnav {
		padding-left: 13px;
		padding-right: 13px;
	}

	.gmr-topnavwrap {
		display: none;
	}

	.gmr-headwrapper {
		justify-content: center;
		min-height: 64px;
	}

	.gmr-headwrapper > *:last-child:not(.custom-logo-link):not(.gmr-logo) {
		display: none;
	}

	.gmr-headwrapper .custom-logo {
		max-height: 46px;
	}

	.site-header {
		box-shadow: none;
	}

	.top-header .container {
		padding-left: 0;
		padding-right: 0;
	}

	.gmr-menuwrap {
		overflow: hidden;
	}

	.gmr-mainmenu ul {
		padding: 0 8px;
	}

	.gmr-mainmenu ul li a {
		padding: 12px 10px;
		font-size: 12.5px;
	}

	.gmr-secondmenuwrap {
		border-radius: 0;
	}

	.gmr-content {
		padding-top: 12px;
	}

	.ct-home {
		padding: 0;
	}

	.ct-updatebar {
		grid-template-columns: 118px minmax(0,1fr);
		border-radius: 9px;
		margin-bottom: 12px;
	}

	.ct-updatebar-label {
		padding: 10px 11px;
	}

	.ct-updatebar-label span { font-size: 12px; }
	.ct-update-title { font-size: 11.5px; }
	.ct-updatebar time { font-size: 9.5px; }

	.ct-hero {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 235px 145px;
		gap: 8px;
		margin-bottom: 20px;
	}

	.ct-hero-main {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.ct-hero-card:nth-child(2),
	.ct-hero-card:nth-child(3) {
		display: block;
	}

	.ct-hero-card:nth-child(n+4) {
		display: none;
	}

	.ct-hero-main .ct-hero-copy,
	.ct-hero-copy {
		padding: 13px;
	}

	.ct-hero-main .ct-hero-copy h2 {
		font-size: 21px;
		max-width: 100%;
	}

	.ct-hero-small .ct-hero-copy h2 {
		font-size: 13px;
		line-height: 1.25;
		margin: 4px 0;
	}

	.ct-hero-small .ct-kicker,
	.ct-hero-small time {
		font-size: 9px;
	}

	.ct-layout {
		display: block;
	}

	.ct-section-heading h2 {
		font-size: 19px;
	}

	.ct-section-heading > span {
		display: none;
	}

	.ct-feed-item {
		grid-template-columns: 122px minmax(0,1fr);
		gap: 12px;
		padding: 14px 0;
	}

	.ct-feed-copy h3 {
		font-size: 15px;
		line-height: 1.32;
		margin: 3px 0 5px;
	}

	.ct-feed-copy p {
		display: none;
	}

	.ct-feed-cat {
		font-size: 10px;
	}

	.ct-feed-meta {
		font-size: 9.5px;
	}

	.ct-sidebar {
		margin-top: 24px;
	}

	.ct-popular-card {
		position: static;
		padding: 15px;
	}

	.ct-popular-list h3 {
		font-size: 13.5px;
	}

	body.single h1.entry-title {
		font-size: 27px;
	}

	body.single .entry-content {
		font-size: 16px;
		line-height: 1.72;
	}
}

@media (max-width: 420px) {
	.ct-updatebar-list > a:nth-child(n+3) { display: none; }
	.ct-hero { grid-template-rows: 220px 132px; }
	.ct-feed-item { grid-template-columns: 112px minmax(0,1fr); }
	.ct-feed-copy h3 { font-size: 14px; }
}


/* =========================================================
   V1.2 POLISH — based on first real-site screenshot
   ========================================================= */

:root {
    --ct-blue: #2145d7;
    --ct-blue-dark: #1735a7;
    --ct-purple: #5a2ad6;
    --ct-orange: #f36b21;
    --ct-ink: #20242d;
    --ct-muted: #7a818c;
    --ct-line: #e6e9ef;
    --ct-soft: #f5f7fb;
}

/* A little wider and more editorial on desktop. */
#site-container {
    max-width: 1200px !important;
}

@media (min-width: 1200px) {
    .container,
    .container-topnav {
        max-width: 1200px !important;
    }
}

/* Utility strip: keep it light, compact, and secondary. */
.gmr-topnavwrap {
    min-height: 31px !important;
    background: #fff !important;
    border-bottom: 1px solid #eceef2 !important;
}
.gmr-topnavwrap .container-topnav {
    min-height: 31px;
}
.gmr-topnavmenu ul li a {
    font-size: 11px !important;
    color: #69707c !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}
.gmr-searchform input[type="text"] {
    height: 28px !important;
    border-radius: 5px !important;
    border-color: #dfe3ea !important;
    font-size: 11px !important;
}

/* Brand row: fix the logo being pushed to the right in v1.1. */
.gmr-headwrapper {
    min-height: 74px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}
.gmr-headwrapper > .gmr-logo,
.gmr-headwrapper > .ct-site-brand {
    margin-left: 0 !important;
    margin-right: auto !important;
}
.gmr-headwrapper > .newkarma-core-topbanner {
    margin-left: auto !important;
}
.ct-site-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.ct-brand-link {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none !important;
    letter-spacing: -1.1px;
}
.ct-brand-main {
    color: #2145d7;
    font-size: 30px;
    font-weight: 900;
}
.ct-brand-tld {
    color: #f36b21;
    font-size: 30px;
    font-weight: 900;
}
.ct-brand-desc {
    margin-top: 5px;
    color: #8a909a;
    font-size: 10.5px;
    letter-spacing: .1px;
}

/* Main nav: override theme/customizer colors so it no longer stays red. */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 9px rgba(24, 38, 76, .12) !important;
}
.site-header .top-header,
.top-header {
    background: linear-gradient(100deg, #183ebd 0%, #2450dc 55%, #6030d4 100%) !important;
    border: 0 !important;
}
.gmr-menuwrap,
.gmr-mainmenu,
.gmr-mainmenu > ul {
    background: transparent !important;
}
.gmr-mainmenu {
    min-height: 45px !important;
}
.gmr-mainmenu ul li,
.gmr-mainmenu ul li a {
    background: transparent !important;
}
.gmr-mainmenu ul li a {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 14px 13px !important;
    text-shadow: none !important;
}
.gmr-mainmenu ul li:hover > a,
.gmr-mainmenu ul li.current-menu-item > a,
.gmr-mainmenu ul li.current-menu-parent > a {
    background: rgba(255,255,255,.13) !important;
}
.gmr-secondmenuwrap {
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #e6e9ef !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.gmr-secondmenu ul li a {
    color: #5d6571 !important;
    font-size: 11.5px !important;
    padding: 9px 11px !important;
}

.gmr-content {
    padding-top: 16px !important;
}
.ct-home {
    padding: 0 !important;
}

/* Update strip: flatter and less blocky. */
.ct-updatebar {
    grid-template-columns: 140px minmax(0,1fr) !important;
    border-radius: 8px !important;
    border-color: #e4e7ed !important;
    box-shadow: none !important;
    margin-bottom: 15px !important;
}
.ct-updatebar-label {
    background: #2145d7 !important;
    padding: 11px 14px !important;
}
.ct-updatebar-label span {
    font-size: 13px !important;
}
.ct-updatebar-label strong {
    font-size: 9px !important;
    color: #ffd9c7 !important;
}
.ct-updatebar-list > a {
    padding: 9px 12px !important;
}
.ct-update-title {
    font-size: 11.5px !important;
}

/* Hero: stronger feature hierarchy like a national news homepage. */
.ct-hero {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, .96fr) minmax(0, .96fr) !important;
    grid-template-rows: 182px 182px !important;
    gap: 8px !important;
    margin-bottom: 25px !important;
}
.ct-hero-card {
    border-radius: 8px !important;
}
.ct-hero-main .ct-hero-copy {
    padding: 23px !important;
}
.ct-hero-main .ct-hero-copy h2 {
    font-size: 28px !important;
    line-height: 1.14 !important;
    max-width: 94% !important;
}
.ct-hero-small .ct-hero-copy {
    padding: 13px !important;
}
.ct-hero-small .ct-hero-copy h2 {
    font-size: 15px !important;
    line-height: 1.24 !important;
    margin: 4px 0 !important;
}
.ct-kicker {
    font-size: 10.5px !important;
    color: #ff8a42 !important;
}

/* Main editorial column/sidebar proportions. */
.ct-layout {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 30px !important;
}
.ct-section-heading {
    margin-bottom: 4px !important;
    border-bottom: 1px solid #e4e7ed !important;
}
.ct-section-heading:after {
    width: 66px !important;
    height: 3px !important;
    background: #2145d7 !important;
}
.ct-section-heading h2 {
    font-size: 20px !important;
    padding-bottom: 9px !important;
}

.ct-feed-item {
    grid-template-columns: 205px minmax(0,1fr) !important;
    gap: 16px !important;
    padding: 16px 0 !important;
}
.ct-feed-thumb {
    border-radius: 7px !important;
}
.ct-feed-copy h3 {
    font-size: 18px !important;
    line-height: 1.28 !important;
    margin: 4px 0 6px !important;
}
.ct-feed-copy p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: #69717c !important;
}
.ct-feed-cat {
    color: #f36b21 !important;
    font-size: 10px !important;
}

/* Popular sidebar: remove the oversized card feel. */
.ct-popular-card {
    position: static !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 22px !important;
}
.ct-popular-list li {
    grid-template-columns: 27px minmax(0,1fr) !important;
    gap: 9px !important;
    padding: 12px 0 !important;
}
.ct-rank {
    font-size: 23px !important;
    color: #cbd1dc !important;
}
.ct-popular-list h3 {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}

/* Clean up legacy Newkarma widgets still visible below Terpopuler. */
.ct-widget-area .widget {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 22px !important;
}
.ct-widget-area .widget-title,
.ct-widget-area .widgettitle {
    position: relative;
    margin: 0 0 10px !important;
    padding: 0 0 9px !important;
    border-bottom: 1px solid #e4e7ed !important;
    background: transparent !important;
    color: #20242d !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}
.ct-widget-area .widget-title:after,
.ct-widget-area .widgettitle:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 54px;
    height: 3px;
    background: #2145d7;
}
.ct-widget-area .widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ct-widget-area .widget li {
    border-bottom: 1px solid #eceef2 !important;
    padding: 9px 0 !important;
    margin: 0 !important;
}
.ct-widget-area .widget a {
    color: #2e3440 !important;
    text-decoration: none !important;
}
.ct-widget-area .widget a:hover {
    color: #2145d7 !important;
}
.ct-widget-area .tagcloud,
.ct-widget-area .wp-block-tag-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.ct-widget-area .tagcloud a,
.ct-widget-area .wp-block-tag-cloud a {
    display: inline-flex !important;
    width: auto !important;
    background: #f2f5fa !important;
    color: #525b68 !important;
    border: 1px solid #e5e9f0 !important;
    border-radius: 999px !important;
    padding: 5px 9px !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
}
.ct-widget-area img {
    border-radius: 7px !important;
}

/* Pagination: simple portal style. */
.ct-pagination a,
.ct-pagination span {
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 5px !important;
    font-size: 10.5px !important;
}

/* Footer polish. */
#footer-container,
.site-footer {
    background: #10182a !important;
}
.site-footer {
    border-top: 3px solid #2145d7 !important;
}
#footer-container .ct-site-brand .ct-brand-main,
#footer-container .ct-site-brand .ct-brand-tld,
.site-footer .ct-site-brand .ct-brand-main,
.site-footer .ct-site-brand .ct-brand-tld {
    color: #fff !important;
}

@media (max-width: 991px) {
    #site-container { max-width: 100% !important; }
    .ct-layout { grid-template-columns: minmax(0,1fr) 270px !important; gap: 20px !important; }
    .ct-feed-item { grid-template-columns: 175px minmax(0,1fr) !important; }
}

@media (max-width: 900px) {
    /* Parent theme switches to its mobile header at this breakpoint. */
    .site-header { position: relative !important; }
    .ct-site-brand { align-items: center; }
    .ct-brand-main, .ct-brand-tld { font-size: 24px !important; }
    .ct-brand-desc { display: none; }
}

@media (max-width: 767px) {
    .ct-updatebar { grid-template-columns: 112px minmax(0,1fr) !important; }
    .ct-hero {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 220px 128px !important;
        gap: 7px !important;
    }
    .ct-hero-main .ct-hero-copy h2 { font-size: 20px !important; }
    .ct-hero-small .ct-hero-copy h2 { font-size: 12.5px !important; }
    .ct-layout { display: block !important; }
    .ct-feed-item {
        grid-template-columns: 116px minmax(0,1fr) !important;
        gap: 11px !important;
        padding: 13px 0 !important;
    }
    .ct-feed-copy h3 { font-size: 14.5px !important; }
    .ct-feed-copy p { display: none !important; }
    .ct-sidebar { margin-top: 22px !important; }
}
