/**
 * gdj_peletron - main stylesheet (UIkit 3 base).
 * GeniusDesign magazine theme for Periodico Eletronico.
 *
 * Colour + font tokens come from index.php (:root) and css/global/<preset>.css.
 * All components below consume --gdj-* variables so presets / colour pickers
 * restyle the whole theme.
 */

/* ============================================================= TOKENS */
:root {
	--gdj-primary: #213360;
	--gdj-primary-dark: #1d2d55;
	--gdj-accent: #21cdc0;
	--gdj-accent-dark: #1aa197;
	--gdj-text: #253035;
	--gdj-heading: #1d2d55;
	--gdj-link: #5e8abd;
	--gdj-muted: #f7f7f7;
	--gdj-container: 1200px;
	--gdj-font-body: "Noto Serif", Georgia, "Times New Roman", serif;
	--gdj-font-heading: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--gdj-border: #e6e8ec;
	--gdj-shadow: 0 6px 24px rgba(29, 45, 85, .06);
	--gdj-shadow-lg: 0 18px 48px rgba(29, 45, 85, .16);
	--gdj-radius: 14px;
	--gdj-radius-sm: 8px;
}

/* ============================================================= BASE */
body.gdj-peletron {
	font-family: var(--gdj-font-body);
	color: var(--gdj-text);
	background: #f5f9ff;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

.gdj-peletron h1, .gdj-peletron h2, .gdj-peletron h3,
.gdj-peletron h4, .gdj-peletron h5, .gdj-peletron h6 {
	font-family: var(--gdj-font-heading);
	color: var(--gdj-heading);
	line-height: 1.2;
	letter-spacing: -.01em;
}

.gdj-peletron a { color: var(--gdj-link); text-decoration: none; }
.gdj-peletron a:hover { color: var(--gdj-primary); text-decoration: none; }

.gdj-container {
	max-width: var(--gdj-container);
	margin-inline: auto;
	padding-inline: 20px;
	width: 100%;
}

.uk-skip-nav {
	position: absolute; left: -9999px; top: 0; z-index: 2000;
	background: var(--gdj-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.uk-skip-nav:focus { left: 0; }

/* ============================================================= TOPBAR */
.gdj-topbar {
	background: var(--gdj-primary-dark);
	color: rgba(255, 255, 255, .82);
	font-family: var(--gdj-font-heading);
	font-size: .82rem;
}
.gdj-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.gdj-topbar a { color: #fff; }

/* ============================================================= HEADER */
.gdj-header {
	background: #fff;
	border-bottom: 1px solid var(--gdj-border);
	z-index: 980;
}
/* Smart sticky (optional, param-driven): ONLY the header-top stays fixed; the
   menu row reveals on scroll-up. Implemented with UIkit uk-sticky (placeholder +
   fixed positioning) so it works across the whole page. */
.gdj-header-top.uk-sticky-fixed { background: #fff; box-shadow: var(--gdj-shadow); z-index: 30; }
.gdj-header-menu.uk-sticky-fixed { background: #fff; box-shadow: var(--gdj-shadow); z-index: 20; }

/* --- Layer 1: header-top (social left / centred logo / cta right) --- */
.gdj-header-top-inner {
	align-items: center; min-height: 86px;
}
.gdj-header-top-left { justify-self: start; display: flex; align-items: center; gap: 14px; }
.gdj-header-top-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.gdj-header-top-left ul, .gdj-header-top-right ul { list-style: none; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.gdj-header-top-left a, .gdj-header-top-right a { color: var(--gdj-heading); display: inline-flex; }
.gdj-header-top-left a:hover, .gdj-header-top-right a:hover { color: var(--gdj-primary); }

.gdj-brand { justify-self: center; text-align: center; line-height: 1.1; }
.gdj-brand-link { display: inline-block; line-height: 0; }
.gdj-logo, .gdj-brand img { height: 52px; width: auto; max-width: 100%; display: inline-block; }
.gdj-brand-text {
	font-family: var(--gdj-font-heading); font-weight: 900; font-size: 1.7rem;
	color: var(--gdj-primary); letter-spacing: -.02em;
}
.gdj-tagline { font-size: .78rem; color: var(--gdj-text); opacity: .7; font-family: var(--gdj-font-heading); }

/* --- Layer 2: menu row (uk-grid columns: 1-5 toggle / 3-5 menu / 1-5 tools) --- */
.gdj-header-menu { border-top: 1px solid var(--gdj-border); }
.gdj-header-menu-inner { min-height: 58px; }
.gdj-menu-mobile { display: flex; justify-content: flex-start; align-items: center; }
.gdj-nav { display: flex; justify-content: center; align-items: center; }
.gdj-header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
@media (max-width: 959px) {
	/* menu hidden (offcanvas); push toggle to the left and tools to the right */
	.gdj-header-menu-inner { justify-content: space-between; }
}

/* nav menu */
.gdj-menu {
	display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
	font-family: var(--gdj-font-heading);
}
.gdj-menu > li > a {
	display: flex; padding: 10px 14px; color: var(--gdj-heading);
	font-weight: 700; font-size: .95rem; border-radius: 8px; text-transform: none;
	transition: color .15s, background .15s;
}
.gdj-menu > li > a:hover { color: var(--gdj-primary); background: var(--gdj-muted); }
.gdj-menu > li.current > a, .gdj-menu > li.active > a { color: var(--gdj-accent-dark); }
.gdj-menu > li.current > a::after, .gdj-menu > li.active > a::after {
	content: ""; display: block; height: 3px; border-radius: 3px; margin-top: 4px;
	background: var(--gdj-accent);
}
.gdj-menu [uk-navbar-parent-icon] { margin-left: 4px; }

/* dropdown */
.gdj-dropdown { padding: 10px; min-width: 220px; background: #fff; box-shadow: var(--gdj-shadow-lg); border-radius: var(--gdj-radius-sm); }
.gdj-dropdown-nav > li > a { color: var(--gdj-heading); font-weight: 600; padding: 8px 12px; border-radius: 6px; font-family: var(--gdj-font-heading); }
.gdj-dropdown-nav > li > a:hover, .gdj-dropdown-nav > li.uk-active > a { background: var(--gdj-muted); color: var(--gdj-primary); }

/* search */
.gdj-search .uk-search-input, .gdj-search input[type="search"] {
	background: var(--gdj-muted); border: 1px solid var(--gdj-border); border-radius: 999px;
	height: 40px; padding-inline: 16px; min-width: 180px; color: var(--gdj-text);
}
.gdj-nav-toggle { background: none; border: 0; color: var(--gdj-heading); cursor: pointer; padding: 6px; }

/* offcanvas */
.gdj-offcanvas-bar { background: var(--gdj-primary-dark); }
.gdj-menu-mobile { font-family: var(--gdj-font-heading); }
.gdj-menu-mobile a { color: #fff !important; font-weight: 700; }
.gdj-menu-mobile .uk-nav-sub a { color: rgba(255,255,255,.75) !important; font-weight: 600; }
.gdj-offcanvas-search { margin-bottom: 20px; }
.gdj-offcanvas-search input { width: 100%; border-radius: 999px; height: 42px; padding-inline: 16px; border: 0; }

/* ============================================================= PAGE HEAD */
.gdj-pagehead { background: var(--gdj-muted); border-bottom: 1px solid var(--gdj-border); padding: 34px 0; }
.gdj-pagehead-title { font-size: 2.2rem; margin: 0; }
.gdj-breadcrumbs { margin-top: 8px; font-size: .85rem; font-family: var(--gdj-font-heading); }
.gdj-breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gdj-breadcrumbs a { color: var(--gdj-text); opacity: .75; }

/* mod_breadcrumbs override (home icon + chevron separators + active page) */
.gdj-breadcrumb-list {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
	list-style: none; margin: 0; padding: 0;
	font-family: var(--gdj-font-heading); font-size: .84rem;
}
.gdj-breadcrumb-item { display: inline-flex; align-items: center; color: #7c8792; line-height: 1.2; }
.gdj-breadcrumb-item + .gdj-breadcrumb-item::before {
	content: ""; display: inline-block; width: .42em; height: .42em; margin-right: 10px;
	border-right: 2px solid currentColor; border-top: 2px solid currentColor;
	transform: rotate(45deg); opacity: .55;
}
.gdj-breadcrumb-item a { color: var(--gdj-text); font-weight: 600; opacity: 1; }
.gdj-breadcrumb-item a:hover { color: var(--gdj-primary); }
.gdj-breadcrumb-home { display: inline-flex; align-items: center; color: var(--gdj-text); }
.gdj-breadcrumb-home:hover { color: var(--gdj-primary); }
.gdj-breadcrumb-item.is-active { color: var(--gdj-heading); }
.gdj-breadcrumb .gdj-visually-hidden,
.gdj-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.gdj-main { padding: 40px 0 60px; }
.gdj-layout.gdj-has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
/* Home: the article stream shares a 2-column grid with the sidebar, while the
   slider + secondary cards above it stay full-width. */
.gdj-blog-body.gdj-has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.gdj-sidebar > * { margin-bottom: 26px; }
.gdj-sidebar > *:last-child { margin-bottom: 0; }

/* Sidebar widget cards (JA Essence sidebar look). */
.gdj-widget {
	background: #fff; border: 1px solid var(--gdj-border); border-radius: var(--gdj-radius);
	box-shadow: var(--gdj-shadow); padding: 22px 22px 24px;
}
.gdj-widget-title {
	font-size: 1.08rem; margin: 0 0 18px; padding-bottom: 12px; position: relative; font-weight: 800;
}
.gdj-widget-title::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px;
	border-radius: 3px; background: var(--gdj-accent);
}
.gdj-widget-body ul { list-style: none; margin: 0; padding: 0; }
.gdj-widget-body li { padding: 11px 0; border-bottom: 1px solid var(--gdj-border); }
.gdj-widget-body li:first-child { padding-top: 0; }
.gdj-widget-body li:last-child { border-bottom: 0; padding-bottom: 0; }
.gdj-widget-body a { color: var(--gdj-heading); font-family: var(--gdj-font-heading); font-weight: 600; font-size: .92rem; }
.gdj-widget-body a:hover { color: var(--gdj-primary); }
.gdj-widget-body img { max-width: 100%; height: auto; border-radius: 8px; }
.gdj-widget-body .mod-articles-category-date,
.gdj-widget-body .mod-articles-category-writtenby,
.gdj-widget-body time,
.gdj-widget-body .category { font-family: var(--gdj-font-heading); font-size: .76rem; color: #7c8792; }
/* tag cloud inside a widget */
.gdj-widget-body .tagspopular, .gdj-widget-body .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gdj-widget-body .tagspopular li, .gdj-widget-body .tag-list li { padding: 0; border: 0; }
.gdj-widget-body .tagspopular a, .gdj-widget-body .tag-list a {
	display: inline-block; background: var(--gdj-muted); border: 1px solid var(--gdj-border);
	color: var(--gdj-primary); padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.gdj-widget-body .tagspopular a:hover, .gdj-widget-body .tag-list a:hover { background: var(--gdj-primary); color: #fff; }

/* --- Latest articles override (mod_articles_latest): thumb + title + date/hits --- */
.gdj-latest { list-style: none; margin: 0; padding: 0; }
.gdj-latest-item {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 0; border-bottom: 1px solid var(--gdj-border);
}
.gdj-latest-item:first-child { padding-top: 0; }
.gdj-latest-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gdj-latest-media {
	flex: 0 0 auto; width: 68px; height: 68px; border-radius: var(--gdj-radius-sm);
	background-size: cover; background-position: center; background-color: var(--gdj-muted);
	display: block; transition: transform .25s;
}
.gdj-latest-item:hover .gdj-latest-media { transform: scale(1.04); }
.gdj-latest-media-empty { background: linear-gradient(135deg, var(--gdj-primary), var(--gdj-accent-dark)); }
.gdj-latest-body { min-width: 0; }
.gdj-latest-title {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-family: var(--gdj-font-heading); font-weight: 700; font-size: .95rem; line-height: 1.3;
	color: var(--gdj-heading);
}
.gdj-latest-item:hover .gdj-latest-title { color: var(--gdj-accent); }
.gdj-latest-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 7px;
	font-family: var(--gdj-font-heading); font-size: .76rem; color: #7c8792;
}
.gdj-latest-hits { display: inline-flex; align-items: center; gap: 4px; color: var(--gdj-accent-dark); }

/* ============================================================= BUTTONS / CHIPS / META */
.gdj-btn {
	font-family: var(--gdj-font-heading); font-weight: 800; border-radius: 999px;
	padding: 0 26px; height: 46px; line-height: 46px; display: inline-flex; align-items: center; gap: 8px;
	transition: transform .12s, box-shadow .12s, background .15s;
}
.gdj-btn:hover { transform: translateY(-1px); }
.gdj-btn-primary { background: var(--gdj-primary); color: #fff; }
.gdj-btn-primary:hover { background: var(--gdj-primary-dark); color: #fff; box-shadow: var(--gdj-shadow); }
.gdj-btn-accent { background: var(--gdj-accent); color: #06312e; }
.gdj-btn-accent:hover { background: var(--gdj-accent-dark); color: #fff; }
.gdj-btn-ghost { background: transparent; color: var(--gdj-primary); box-shadow: inset 0 0 0 2px var(--gdj-border); }
.gdj-btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--gdj-primary); color: var(--gdj-primary); }

.gdj-chip {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--gdj-font-heading); font-weight: 800;
	font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
	color: var(--gdj-accent-dark); background: rgba(33, 205, 192, .14);
	padding: 4px 11px; border-radius: 999px; line-height: 1.4;
}
.gdj-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.gdj-chip-lg { font-size: .76rem; padding: 6px 14px; }

.gdj-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	font-family: var(--gdj-font-heading); font-size: .82rem; color: #7c8792;
}
.gdj-meta > span,
.gdj-meta > div { position: relative; display: inline-flex; align-items: center; }
.gdj-meta > span + span::before,
.gdj-meta > span + div::before { content: "\2013"; margin-right: 12px; opacity: .6; }
/* .gdj-meta-author is inline-flex (from ".gdj-meta > span"), which collapses the
   whitespace between "Por" and the <strong> name - restore it with a gap. */
.gdj-meta-author { gap: .3em; }
.gdj-meta-author strong { color: var(--gdj-heading); font-weight: 800; }
.gdj-meta-readingtime { display: inline-flex; align-items: center; gap: 4px; }
.gdj-meta-readingtime [uk-icon] { opacity: .85; }
.gdj-meta-hits [uk-icon] { margin-right: 4px; opacity: .8; }
.gdj-meta-avatar {
	width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
	margin-right: -4px;
}
.gdj-meta-avatar-initial {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--gdj-primary); color: #fff;
	font-family: var(--gdj-font-heading); font-weight: 800; font-size: .72rem;
}
.gdj-meta > .gdj-meta-avatar + span::before { content: "" !important; margin: 0 !important; }

/* ============================================================= FEATURED SLIDER */
.gdj-slider-wrap { margin-bottom: 40px; }
.gdj-slider .uk-slider-items { margin: 0; padding: 0; list-style: none; }
.gdj-fcard {
	position: relative; display: block; border-radius: var(--gdj-radius); overflow: hidden;
	min-height: 360px; box-shadow: var(--gdj-shadow); color: #fff;
}
.gdj-fcard:hover { color: #fff; }
.gdj-fcard-media {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	background-color: var(--gdj-primary); transition: transform .5s ease;
}
.gdj-fcard:hover .gdj-fcard-media { transform: scale(1.05); }
.gdj-fcard-noimg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--gdj-primary), var(--gdj-accent-dark)); }
.gdj-fcard-overlay {
	position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
	background: linear-gradient(180deg, rgba(20,25,40,0) 25%, rgba(20,25,40,.88) 100%);
}
.gdj-fcard-body { padding: 22px 24px 26px; width: 100%; text-align: center; display: flex; flex-direction: column; justify-content: end; }
.gdj-fcard-body .gdj-chip { background: rgba(255,255,255,.18); color: #fff; margin-bottom: 12px; width: fit-content; margin: 12px auto; }
/* Higher specificity than the global ".gdj-peletron h3" rule so the title stays white over the image. */
.gdj-fcard .gdj-fcard-title { color: #fff; font-size: 1.32rem; margin: 0 0 12px; text-shadow: 0 1px 12px rgba(10,14,26,.55); }
.gdj-fcard-body .gdj-meta { color: rgba(255,255,255,.85); justify-content: center; }
.gdj-fcard-body .gdj-meta-author strong { color: #fff; }

.gdj-slider-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--gdj-primary);
	display: flex; align-items: center; justify-content: center; box-shadow: var(--gdj-shadow);
	/* NB: transition the background-COLOR longhand, not the "background" shorthand,
	   otherwise the hovered background-color fails to apply in some engines. */
	transition: background-color .15s, color .15s;
}
/* .gdj-peletron prefix so the white glyph beats the global ".gdj-peletron a:hover". */
.gdj-peletron .gdj-slider-nav:hover { background-color: var(--gdj-primary); color: #fff; }
.gdj-peletron .gdj-slider-nav:hover svg { color: #fff; }
.gdj-slider-prev { left: -8px; }
.gdj-slider-next { right: -8px; }
.gdj-dotnav > * > * { background: rgba(29,45,85,.2); }
.gdj-dotnav > .uk-active > * { background: var(--gdj-accent); }

/* ============================================================= SECONDARY MINI CARDS
   Home 3 style: small thumbnail on the left, title + date on the right. */
.gdj-cards-wrap { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--gdj-border); }
.gdj-mini {
	display: flex; gap: 16px; align-items: center; height: 100%;
	color: var(--gdj-text); padding: 6px 0;
}
.gdj-mini-media {
	flex: 0 0 auto; width: 88px; height: 88px; border-radius: var(--gdj-radius-sm);
	background-size: cover; background-position: center; background-color: var(--gdj-muted);
	box-shadow: var(--gdj-shadow); transition: transform .25s;
}
.gdj-mini:hover .gdj-mini-media { transform: scale(1.04); }
.gdj-mini-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.gdj-mini-title {
	font-family: var(--gdj-font-heading); font-weight: 800; font-size: 1.02rem; line-height: 1.32;
	color: var(--gdj-heading);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gdj-mini:hover .gdj-mini-title { color: var(--gdj-accent); }
.gdj-mini-date { margin-top: 8px; font-family: var(--gdj-font-heading); font-size: .8rem; color: #7c8792; }

/* ============================================================= CATEGORY HEADER */
.gdj-cat-header { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 2px solid var(--gdj-border); }
.gdj-cat-title { font-size: 2.4rem; margin: 0 0 10px; position: relative; }
.gdj-cat-desc { color: var(--gdj-text); opacity: .85; max-width: 70ch; }

/* ============================================================= POST STREAM (Home 3 cards) */
.gdj-stream { display: flex; flex-direction: column; gap: 30px; }
.gdj-post {
	align-items: center; background: #fff; border: 1px solid var(--gdj-border);
	border-radius: var(--gdj-radius); box-shadow: var(--gdj-shadow); padding: 32px;
	transition: box-shadow .2s, transform .2s;
}
.gdj-post > .uk-flex-middle > .uk-width-2-5 { width: 32%; }

.gdj-post:hover { box-shadow: var(--gdj-shadow-lg); transform: translateY(-2px); }
.gdj-post-media {
	position: relative; display: block; aspect-ratio: 1/1; border-radius: var(--gdj-radius);
	background-size: cover; background-position: center; background-color: var(--gdj-muted);
	overflow: hidden; transition: transform .3s;
}
.gdj-post:hover .gdj-post-media { transform: scale(1.02); }
.gdj-post-media-empty { background: linear-gradient(135deg, var(--gdj-primary), var(--gdj-accent-dark)); }
.gdj-post-badge {
	position: absolute; top: 12px; left: 12px; width: 42px; height: 42px; border-radius: 12px;
	background: #fff; color: var(--gdj-primary); display: flex; align-items: center; justify-content: center;
	box-shadow: var(--gdj-shadow);
}
.gdj-post-body .gdj-chip { margin-bottom: 14px; }
.gdj-post-title { font-size: 1.7rem; margin: 0 0 14px; line-height: 1.25; font-weight: 800; }
.gdj-post-title a { color: var(--gdj-heading); }
.gdj-post-title a:hover { color: var(--gdj-accent); }
.gdj-fcard:hover .gdj-fcard-title { color: var(--gdj-accent); }
.gdj-post-meta { margin-bottom: 16px; }
.gdj-post-excerpt { margin: 0 0 18px; color: var(--gdj-text); opacity: .92; }
.gdj-post-more {
	font-family: var(--gdj-font-heading); font-weight: 800; color: var(--gdj-accent-dark);
	display: inline-flex; align-items: center; gap: 6px; font-size: .9rem;
}
.gdj-post-more:hover { color: var(--gdj-primary); gap: 10px; }

/* ============================================================= IN-STREAM AD */
.gdj-ad {
	margin: 10px 0 6px; padding: 18px; text-align: center;
	background: var(--gdj-muted); border: 1px dashed var(--gdj-border); border-radius: var(--gdj-radius);
	position: relative;
}
.gdj-ad::before {
	content: "Publicidade"; position: absolute; top: 6px; left: 12px;
	font-family: var(--gdj-font-heading); font-size: .62rem; letter-spacing: .1em;
	text-transform: uppercase; color: #9aa4ae;
}
.gdj-ad img { max-width: 100%; height: auto; }
.gdj-ad :is(.moduletable, .card, .uk-card) { margin: 0; }

/* ============================================================= PAGINATION */
.gdj-pagination { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gdj-pagination ul.pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.gdj-pagination .pagination li > * {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 12px; border-radius: 10px; font-family: var(--gdj-font-heading); font-weight: 700;
	color: var(--gdj-heading); background: var(--gdj-muted); border: 1px solid var(--gdj-border);
}
.gdj-pagination .pagination li.active > * { background: var(--gdj-primary); color: #fff; border-color: var(--gdj-primary); }
.gdj-pagination .pagination li > a:hover { background: var(--gdj-primary); color: #fff; }
.gdj-pagination-counter { font-family: var(--gdj-font-heading); font-size: .82rem; color: #7c8792; margin: 0; }

/* ============================================================= ARTICLE (Layout 3) */
.gdj-layout3 { max-width: 800px; margin-inline: auto; }
.gdj-article { border-radius: var(--gdj-radius); padding: 35px;}
.gdj-article-head { text-align: center; margin-bottom: 26px; }
.gdj-article-head .gdj-chip { margin-bottom: 16px; }
.gdj-article-title { font-size: 2.6rem; margin: 0 0 18px; line-height: 1.15; font-weight: 600; }
.gdj-article-meta { justify-content: center; font-size: .9rem; }
.gdj-article-badges { margin-bottom: 12px; display: flex; gap: 8px; justify-content: center; }
.gdj-badge { background: #ffb020; color: #3a2a00; font-family: var(--gdj-font-heading); font-weight: 800; font-size: .72rem; padding: 3px 10px; border-radius: 999px; }

.gdj-article-hero { margin: 0 0 34px; }
.gdj-article-hero img { width: 100%; border-radius: var(--gdj-radius); box-shadow: var(--gdj-shadow); display: block; }
.gdj-article-caption { text-align: center; font-size: .82rem; color: #7c8792; margin-top: 10px; font-family: var(--gdj-font-heading); }

.gdj-article-body { font-size: 1.12rem; line-height: 1.9; color: var(--gdj-text); text-align: justify; }
.gdj-article-body p { margin: 0 0 1.4em; }
.gdj-article-body h2 { font-size: 1.8rem; margin: 1.8em 0 .6em; }
.gdj-article-body h3 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
.gdj-article-body img { max-width: 100%; height: auto; border-radius: var(--gdj-radius-sm); }
.gdj-article-body a { color: var(--gdj-primary); text-decoration: underline; text-underline-offset: 3px; }
.gdj-article-body ul, .gdj-article-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.gdj-article-body blockquote {
	margin: 1.8em 0; padding: 8px 0 8px 30px; border-left: 4px solid var(--gdj-accent);
	font-family: var(--gdj-font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.4;
	color: var(--gdj-heading); font-style: normal;
}
.gdj-article-body blockquote p { margin-bottom: .3em; }
.gdj-article-body blockquote cite, .gdj-article-body blockquote footer {
	display: block; font-size: .95rem; font-weight: 600; color: #7c8792; font-style: normal; margin-top: 8px;
}

/* tags */
.gdj-article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.gdj-tags-label { font-family: var(--gdj-font-heading); font-weight: 800; color: var(--gdj-heading); font-size: .85rem; }
.gdj-article-tags .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.gdj-article-tags .tags a, .gdj-article-tags .label {
	display: inline-block; background: var(--gdj-muted); border: 1px solid var(--gdj-border);
	color: var(--gdj-primary); padding: 5px 12px; border-radius: 999px; font-size: .8rem;
	font-family: var(--gdj-font-heading); font-weight: 700;
}
.gdj-article-tags .tags a:hover { background: var(--gdj-primary); color: #fff; }

/* share */
.gdj-share { display: flex; align-items: center; gap: 14px; margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--gdj-border); border-bottom: 1px solid var(--gdj-border); }
.gdj-share-label { font-family: var(--gdj-font-heading); font-weight: 800; color: var(--gdj-heading); font-size: .85rem; }
.gdj-share-links { display: flex; gap: 10px; }
.gdj-share-btn {
	width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--gdj-muted); color: var(--gdj-primary); border: 1px solid var(--gdj-border); transition: all .15s;
}
.gdj-share-btn:hover { background: var(--gdj-primary); color: #fff; transform: translateY(-2px); }

/* prev / next */
.gdj-article-nav ul.pagenav, .gdj-article-nav ul.pager {
	display: flex; justify-content: space-between; gap: 16px; list-style: none; margin: 26px 0; padding: 0;
}
.gdj-article-nav li { max-width: 48%; }
.gdj-article-nav li.pagenav-next, .gdj-article-nav li:last-child { margin-left: auto; text-align: right; }
.gdj-article-nav a {
	display: block; padding: 16px 20px; background: var(--gdj-muted); border: 1px solid var(--gdj-border);
	border-radius: var(--gdj-radius); font-family: var(--gdj-font-heading); font-weight: 700; color: var(--gdj-heading);
}
.gdj-article-nav a:hover { border-color: var(--gdj-primary); color: var(--gdj-primary); box-shadow: var(--gdj-shadow); }

/* author box */
.gdj-authorbox {
	display: flex; gap: 20px; align-items: flex-start; margin: 40px 0 0;
	padding: 26px; background: var(--gdj-muted); border-radius: var(--gdj-radius); border: 1px solid var(--gdj-border);
}
.gdj-authorbox-avatar { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.gdj-authorbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gdj-authorbox-initial {
	display: flex; align-items: center; justify-content: center; background: var(--gdj-primary);
	color: #fff; font-family: var(--gdj-font-heading); font-weight: 900; font-size: 1.8rem;
}
.gdj-authorbox-kicker { font-family: var(--gdj-font-heading); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gdj-accent-dark); font-weight: 800; }
.gdj-authorbox-name { margin: 4px 0 2px; font-size: 1.25rem; }
.gdj-authorbox-role { font-family: var(--gdj-font-heading); font-size: .85rem; color: #7c8792; font-weight: 600; }
.gdj-authorbox-bio { margin: 12px 0 0; font-size: .95rem; line-height: 1.7; }

/* ============================================================= BOTTOM / FOOTER */
.gdj-bottom { background: var(--gdj-primary-dark); color: rgba(255,255,255,.8); padding: 54px 0 40px; margin-top: 60px; }
.gdj-bottom + .gdj-footer { margin-top: 0; }
.gdj-bottom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.gdj-bottom-col h3, .gdj-bottom-col h4, .gdj-bottom-col .uk-panel-title, .gdj-bottom-col .moduletable > h3 { color: #fff; font-size: 1.05rem; margin: 0 0 16px; }
.gdj-bottom-col a { color: rgba(255,255,255,.8); }
.gdj-bottom-col a:hover { color: var(--gdj-accent); }
.gdj-bottom-col ul { list-style: none; margin: 0; padding: 0; }
.gdj-bottom-col li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

.gdj-footer { background: #16223c; color: rgba(255,255,255,.6); padding: 22px 0; margin-top: 60px; }
.gdj-bottom + .gdj-footer, .gdj-footer:first-child { margin-top: 0; }
.gdj-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--gdj-font-heading); font-size: .85rem; }
.gdj-footer a { color: rgba(255,255,255,.75); }
.gdj-footer-menu ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* ============================================================= BACK TO TOP */
.gdj-backtop {
	position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; z-index: 900;
	background: var(--gdj-primary); color: #fff !important; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; box-shadow: var(--gdj-shadow-lg);
}
.gdj-backtop:hover { background: var(--gdj-accent-dark); }

/* ============================================================= 404 / ERROR */
body.gdj-errorpage { background: radial-gradient(circle at 50% 20%, var(--gdj-primary), var(--gdj-primary-dark) 70%); min-height: 100vh; margin: 0; }
.gdj-error-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.gdj-error-inner { text-align: center; max-width: 600px; color: #fff; }
.gdj-error-code {
	font-family: var(--gdj-font-heading); font-weight: 900; font-size: clamp(6rem, 22vw, 12rem);
	line-height: 1; letter-spacing: -.04em; color: #fff;
	text-shadow: 0 0 40px rgba(33,205,192,.5); margin-bottom: 8px;
	background: linear-gradient(135deg, #fff 40%, var(--gdj-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gdj-error-title { color: #fff; font-size: 1.8rem; margin: 0 0 12px; }
.gdj-error-lead { color: rgba(255,255,255,.82); font-size: 1.05rem; margin: 0 auto 28px; max-width: 44ch; }
.gdj-error-search { max-width: 420px; margin: 0 auto 24px; }
.gdj-error-search-field { position: relative; display: flex; align-items: center; }
.gdj-error-search-field [uk-search-icon] { position: absolute; left: 16px; color: #fff; opacity: .7; }
.gdj-error-search .uk-input {
	height: 54px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
	background: rgba(255,255,255,.1); color: #fff; padding-left: 46px; width: 100%;
}
.gdj-error-search .uk-input::placeholder { color: rgba(255,255,255,.6); }
.gdj-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gdj-errorpage .gdj-btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.gdj-errorpage .gdj-btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.gdj-errorpage .gdj-btn-primary { background: var(--gdj-accent); color: #06312e; }
.gdj-errorpage .gdj-btn-primary:hover { background: #fff; color: var(--gdj-primary); }

/* ============================================================= OFFLINE */
body.gdj-offline { background: var(--gdj-muted); }
.gdj-offline-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.gdj-offline-card { background: #fff; border-radius: var(--gdj-radius); box-shadow: var(--gdj-shadow-lg); padding: 44px; max-width: 460px; width: 100%; text-align: center; }
.gdj-offline-title { color: var(--gdj-primary); margin: 0 0 16px; }

/* ============================================================= RESPONSIVE */
@media (max-width: 959px) {
	.gdj-layout.gdj-has-sidebar,
	.gdj-blog-body.gdj-has-sidebar { grid-template-columns: 1fr; }
	.gdj-bottom-grid { grid-template-columns: repeat(2, 1fr); }
	.gdj-article-title { font-size: 2rem; }
}
@media (max-width: 639px) {
	.gdj-header-top-left, .gdj-header-top-right { display: none; }
	.gdj-header-menu-inner { min-height: 52px; }
	.gdj-logo, .gdj-brand img { max-height: 42px; }
	.gdj-post { grid-template-columns: 1fr; gap: 14px; }
	.gdj-post-media { aspect-ratio: 16/9; }
	.gdj-post-title { font-size: 1.25rem; }
	.gdj-bottom-grid { grid-template-columns: 1fr; }
	.gdj-slider-prev { left: 2px; } .gdj-slider-next { right: 2px; }
	.gdj-fcard { min-height: 300px; }
	.gdj-article-title { font-size: 1.7rem; }
	.gdj-article-body { font-size: 1.05rem; }
	.gdj-article-nav ul.pagenav, .gdj-article-nav ul.pager { flex-direction: column; }
	.gdj-article-nav li { max-width: 100%; }
	.gdj-authorbox { flex-direction: column; align-items: center; text-align: center; }
	.gdj-footer-inner { justify-content: center; text-align: center; }
}
