/**
 * Sahifa demo-inspired layout for GP homepage sections.
 */

:root {
	--gp-accent: #f88c00;
	--gp-accent-dark: #e07b00;
	--gp-nav-bg: #2f2f2f;
	--gp-top-bar: #f0f0f0;
	--gp-text: #333;
	--gp-muted: #888;
	--gp-border: #e5e5e5;
	--gp-footer-bg: #2a2a2a;
	--gp-footer-bar: #1f1f1f;
}

.gp-clear {
	clear: both;
}

/* Layout shell (GP child) */
.gp-magazine-wrap {
	max-width: 1050px;
	margin: 0 auto;
	padding: 0 15px;
}

.gp-magazine-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 20px;
	align-items: flex-start;
}

.gp-magazine-main {
	flex: 1 1 680px;
	min-width: 0;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.gp-magazine-sidebar {
	flex: 0 0 300px;
	width: 300px;
	position: relative;
	z-index: 5;
	align-self: flex-start;
	background: #f5f5f5;
}

/* Header */
.gp-theme-header {
	background: #fff;
	border-bottom: 1px solid var(--gp-border);
}

.gp-top-bar {
	background: var(--gp-top-bar);
	font-size: 11px;
	padding: 6px 0;
	color: #666;
	text-transform: uppercase;
}

.gp-top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1050px;
	margin: 0 auto;
	padding: 0 15px;
}

.gp-logo-row {
	padding: 20px 0;
	text-align: left;
}

.gp-site-logo {
	font-size: 42px;
	font-weight: 700;
	text-decoration: none;
	color: var(--gp-text);
	font-family: "Droid Sans", Arial, sans-serif;
}

.gp-site-logo .gp-logo-accent {
	color: var(--gp-accent);
}

.gp-main-nav {
	background: var(--gp-nav-bg);
	border-top: 3px solid var(--gp-accent);
	border-bottom: 3px solid var(--gp-accent);
	position: relative;
	z-index: 200;
}

.gp-main-nav-inner {
	padding: 0;
}

.gp-main-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.gp-main-menu > li {
	position: relative;
	display: flex;
	align-items: stretch;
}

.gp-main-menu > li > a {
	display: flex;
	align-items: center;
	align-self: stretch;
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	gap: 8px;
	padding: 14px 16px;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.gp-main-menu > li:not(.current-menu-item):not(.current-menu-ancestor):not(.current-menu-parent):not(.current_page_item):not(.current_page_parent):not(.current-page-ancestor):not(.gp-nav-home):not(.gp-nav-random):hover > a {
	background: var(--gp-accent);
}

.gp-menu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	opacity: 0.9;
	font-size: 16px;
	line-height: 1;
	min-width: 16px;
}

.gp-menu-arrow {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #fff;
	margin-left: 2px;
	flex-shrink: 0;
}

.gp-nav-home > a.gp-home-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gp-accent) !important;
	padding: 14px 18px !important;
	min-width: 54px;
}

.gp-home-icon-svg {
	display: block;
	width: 22px;
	height: 22px;
	color: #fff;
}

.gp-nav-random .gp-random-icon {
	font-size: 16px;
	padding: 14px 16px;
}

.gp-top-search {
	display: flex;
	align-items: center;
}

.gp-top-search input[type="search"] {
	border: 1px solid #ccc;
	padding: 4px 8px;
	font-size: 11px;
	min-width: 140px;
}

.gp-top-search button {
	background: var(--gp-accent);
	border: 0;
	color: #fff;
	padding: 5px 10px;
	cursor: pointer;
	margin-left: 4px;
}

/* Mega menu dropdown */
.gp-mega-panel {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 520px;
	max-width: min(900px, calc(100vw - 30px));
	background: #3a3a3a;
	border-top: 3px solid var(--gp-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	z-index: 400;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
}

.gp-menu-has-children:hover > .gp-mega-panel,
.gp-mega-cat:hover > .gp-mega-panel {
	display: block;
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}

.gp-mega-panel-inner {
	padding: 16px;
}

.gp-mega-posts {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.gp-mega-featured {
	flex: 0 0 220px;
}

.gp-mega-featured img {
	max-width: 100%;
	height: auto;
	display: block;
}

.gp-mega-featured h4 {
	margin: 8px 0 4px;
	font-size: 14px;
}

.gp-mega-featured h4 a,
.gp-mega-list-item a {
	color: #fff;
	text-decoration: none;
}

.gp-mega-date {
	font-size: 11px;
	color: #aaa;
}

.gp-mega-list {
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.gp-mega-list-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.gp-mega-list-item > div {
	flex: 1;
	min-width: 0;
}

.gp-mega-thumb-sm {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	overflow: hidden;
	display: block;
}

.gp-mega-thumb-sm img {
	display: block;
	width: 60px !important;
	height: 60px !important;
	max-width: 60px;
	object-fit: cover;
}

.gp-mega-links {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 24px;
}

.gp-mega-links a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	display: block;
	padding: 6px 0;
}

.gp-mega-links a:hover {
	color: var(--gp-accent);
}

.gp-mega-empty {
	color: #ccc;
	margin: 0;
}

/* Featured grid (max 2 tiles) */
.gp-featured-grid {
	margin-bottom: 20px;
}

.gp-featured-grid-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	grid-template-areas: "a b";
	grid-template-rows: minmax(220px, auto);
}

.gp-featured-grid-inner.gp-featured-count-1 {
	grid-template-areas: "a";
	grid-template-columns: minmax(0, 1fr);
}

.gp-featured-item:nth-child(1) { grid-area: a; }
.gp-featured-item:nth-child(2) { grid-area: b; }

.gp-featured-item {
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 220px;
}

.gp-featured-link {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	background-color: #e8e8e8;
	position: relative;
	text-decoration: none;
	overflow: hidden;
	transform-origin: center center;
	transition: transform 0.3s ease-in-out;
}

.gp-featured-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	color: #fff;
	/* Ensure text overlay stays above sidebar widgets. */
	z-index: 100;
	max-width: 100%;
	box-sizing: border-box;
}

.gp-featured-title {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.gp-featured-date {
	font-size: 11px;
	opacity: 0.9;
}

/* Tile hover effect: center zoom + dark overlay + white icon */
.gp-scroll-thumb,
.gp-list-featured-thumb,
.gp-list-side-thumb,
.gp-1c-thumb,
.gp-1c-mini-thumb,
.gp-2c-thumb,
.gp-2c-small-thumb,
.gp-tab-featured-thumb,
.gp-tab-list-thumb,
.gp-recent-thumb,
.gp-pic-grid li > a,
.gp-news-picture-inner li > a,
.gp-featured-link {
	display: block;
	overflow: hidden;
	position: relative;
}

.gp-scroll-thumb img,
.gp-list-featured-thumb img,
.gp-list-side-thumb img,
.gp-1c-thumb img,
.gp-1c-mini-thumb img,
.gp-2c-thumb img,
.gp-2c-small-thumb img,
.gp-tab-featured-thumb img,
.gp-tab-list-thumb img,
.gp-recent-thumb img,
.gp-pic-grid li > a img,
.gp-news-picture-inner li > a img {
	transform: scale(1);
	transform-origin: center center;
	transition: transform 0.3s ease-in-out;
}

.gp-scroll-thumb::before,
.gp-list-featured-thumb::before,
.gp-list-side-thumb::before,
.gp-1c-thumb::before,
.gp-1c-mini-thumb::before,
.gp-2c-thumb::before,
.gp-2c-small-thumb::before,
.gp-tab-featured-thumb::before,
.gp-tab-list-thumb::before,
.gp-recent-thumb::before,
.gp-pic-grid li > a::before,
.gp-news-picture-inner li > a::before,
.gp-featured-link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	pointer-events: none;
	z-index: 1;
}

.gp-scroll-thumb::after,
.gp-list-featured-thumb::after,
.gp-list-side-thumb::after,
.gp-1c-thumb::after,
.gp-1c-mini-thumb::after,
.gp-2c-thumb::after,
.gp-2c-small-thumb::after,
.gp-tab-featured-thumb::after,
.gp-tab-list-thumb::after,
.gp-recent-thumb::after,
.gp-pic-grid li > a::after,
.gp-news-picture-inner li > a::after,
.gp-featured-link::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.18);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='4.5' width='11' height='15' rx='1.6' ry='1.6'/%3E%3Cline x1='9' y1='9' x2='15' y2='9'/%3E%3Cline x1='9' y1='12' x2='15' y2='12'/%3E%3Cline x1='9' y1='15' x2='13' y2='15'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	transform: translate(-50%, -50%) scale(0.82);
	opacity: 0;
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	pointer-events: none;
	z-index: 2;
}

.gp-featured-item:hover .gp-featured-link,
.gp-featured-item:focus-within .gp-featured-link,
.gp-scroll-item:hover .gp-scroll-thumb img,
.gp-scroll-item:focus-within .gp-scroll-thumb img,
.gp-list-featured:hover .gp-list-featured-thumb img,
.gp-list-featured:focus-within .gp-list-featured-thumb img,
.gp-list-side-item:hover .gp-list-side-thumb img,
.gp-list-side-item:focus-within .gp-list-side-thumb img,
.gp-1c-item:hover .gp-1c-thumb img,
.gp-1c-item:focus-within .gp-1c-thumb img,
.gp-1c-item:hover .gp-1c-mini-thumb img,
.gp-1c-item:focus-within .gp-1c-mini-thumb img,
.gp-2c-featured:hover .gp-2c-thumb img,
.gp-2c-featured:focus-within .gp-2c-thumb img,
.gp-2c-small:hover .gp-2c-small-thumb img,
.gp-2c-small:focus-within .gp-2c-small-thumb img,
.gp-tab-featured:hover .gp-tab-featured-thumb img,
.gp-tab-featured:focus-within .gp-tab-featured-thumb img,
.gp-tab-list-item:hover .gp-tab-list-thumb img,
.gp-tab-list-item:focus-within .gp-tab-list-thumb img,
.gp-recent-item:hover .gp-recent-thumb img,
.gp-recent-item:focus-within .gp-recent-thumb img,
.gp-pic-grid li:hover > a img,
.gp-pic-grid li:focus-within > a img,
.gp-news-picture-inner li:hover > a img,
.gp-news-picture-inner li:focus-within > a img {
	transform: scale(1.06);
}

.gp-featured-item:hover .gp-featured-link::before,
.gp-featured-item:focus-within .gp-featured-link::before,
.gp-scroll-item:hover .gp-scroll-thumb::before,
.gp-scroll-item:focus-within .gp-scroll-thumb::before,
.gp-list-featured:hover .gp-list-featured-thumb::before,
.gp-list-featured:focus-within .gp-list-featured-thumb::before,
.gp-list-side-item:hover .gp-list-side-thumb::before,
.gp-list-side-item:focus-within .gp-list-side-thumb::before,
.gp-1c-item:hover .gp-1c-thumb::before,
.gp-1c-item:focus-within .gp-1c-thumb::before,
.gp-1c-item:hover .gp-1c-mini-thumb::before,
.gp-1c-item:focus-within .gp-1c-mini-thumb::before,
.gp-2c-featured:hover .gp-2c-thumb::before,
.gp-2c-featured:focus-within .gp-2c-thumb::before,
.gp-2c-small:hover .gp-2c-small-thumb::before,
.gp-2c-small:focus-within .gp-2c-small-thumb::before,
.gp-tab-featured:hover .gp-tab-featured-thumb::before,
.gp-tab-featured:focus-within .gp-tab-featured-thumb::before,
.gp-tab-list-item:hover .gp-tab-list-thumb::before,
.gp-tab-list-item:focus-within .gp-tab-list-thumb::before,
.gp-recent-item:hover .gp-recent-thumb::before,
.gp-recent-item:focus-within .gp-recent-thumb::before,
.gp-pic-grid li:hover > a::before,
.gp-pic-grid li:focus-within > a::before,
.gp-news-picture-inner li:hover > a::before,
.gp-news-picture-inner li:focus-within > a::before {
	opacity: 1;
}

.gp-featured-item:hover .gp-featured-link::after,
.gp-featured-item:focus-within .gp-featured-link::after,
.gp-scroll-item:hover .gp-scroll-thumb::after,
.gp-scroll-item:focus-within .gp-scroll-thumb::after,
.gp-list-featured:hover .gp-list-featured-thumb::after,
.gp-list-featured:focus-within .gp-list-featured-thumb::after,
.gp-list-side-item:hover .gp-list-side-thumb::after,
.gp-list-side-item:focus-within .gp-list-side-thumb::after,
.gp-1c-item:hover .gp-1c-thumb::after,
.gp-1c-item:focus-within .gp-1c-thumb::after,
.gp-1c-item:hover .gp-1c-mini-thumb::after,
.gp-1c-item:focus-within .gp-1c-mini-thumb::after,
.gp-2c-featured:hover .gp-2c-thumb::after,
.gp-2c-featured:focus-within .gp-2c-thumb::after,
.gp-2c-small:hover .gp-2c-small-thumb::after,
.gp-2c-small:focus-within .gp-2c-small-thumb::after,
.gp-tab-featured:hover .gp-tab-featured-thumb::after,
.gp-tab-featured:focus-within .gp-tab-featured-thumb::after,
.gp-tab-list-item:hover .gp-tab-list-thumb::after,
.gp-tab-list-item:focus-within .gp-tab-list-thumb::after,
.gp-recent-item:hover .gp-recent-thumb::after,
.gp-recent-item:focus-within .gp-recent-thumb::after,
.gp-pic-grid li:hover > a::after,
.gp-pic-grid li:focus-within > a::after,
.gp-news-picture-inner li:hover > a::after,
.gp-news-picture-inner li:focus-within > a::after {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* Main slider */
.gp-main-slider {
	position: relative;
	margin-bottom: 24px;
	overflow: hidden;
	background: #111;
}

.gp-slider-track {
	display: flex;
	transition: transform 0.4s ease;
}

.gp-slider-slide {
	flex: 0 0 100%;
	min-height: 320px;
}

.gp-slider-link {
	display: block;
	min-height: 320px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.gp-slider-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	color: #fff;
}

.gp-slider-title {
	display: block;
	font-size: 22px;
	font-weight: 700;
}

.gp-slider-prev,
.gp-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: 0;
	width: 40px;
	height: 50px;
	cursor: pointer;
	font-size: 24px;
	z-index: 2;
}

.gp-slider-prev { left: 0; }
.gp-slider-next { right: 0; }

.gp-slider-dots {
	text-align: center;
	padding: 8px;
	position: absolute;
	bottom: 0;
	width: 100%;
}

.gp-slider-dots button {
	width: 10px;
	height: 10px;
	min-width: 10px;
	min-height: 10px;
	padding: 0;
	display: inline-block;
	flex: 0 0 auto;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	border-radius: 50%;
	border: 0;
	background: #ccc;
	margin: 0 4px;
	cursor: pointer;
}

.gp-slider-dots button.is-active {
	background: var(--gp-accent);
}

/* Section boxes */
.gp-section {
	margin-bottom: 28px;
	background: #fff;
	border: 1px solid var(--gp-border);
}

.gp-cat-box-title {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	background: #f7f7f7;
	border-bottom: 3px solid var(--gp-accent);
}

.gp-cat-box-title h2 {
	margin: 0;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 700;
	flex: 0 0 auto;
}

.gp-cat-box-title h2 a {
	color: var(--gp-text);
	text-decoration: none;
}

.gp-stripe-line {
	flex: 1;
	height: 12px;
	margin-left: 12px;
	background: repeating-linear-gradient(
		-45deg,
		#e8e8e8,
		#e8e8e8 2px,
		#f5f5f5 2px,
		#f5f5f5 4px
	);
}

.gp-cat-box-content {
	padding: 14px;
}

/* List layout */
.gp-cat-list-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.gp-list-featured {
	flex: 1 1 55%;
	min-width: 280px;
}

.gp-list-side {
	flex: 1 1 35%;
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-list-side-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	position: relative;
	padding: 10px 0 24px;
	border-bottom: 1px solid var(--gp-border);
}

.gp-list-side-item .gp-list-side-thumb {
	flex: 0 0 110px;
	width: 110px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
}

.gp-list-side-item .gp-list-side-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-list-side-item .gp-post-title-sm {
	flex: 1 1 auto;
	min-width: 0;
}

.gp-list-side-item .gp-list-side-body {
	flex: 1 1 auto;
	min-width: 0;
}

.gp-list-side-item .gp-list-side-body .gp-post-title-sm {
	padding-right: 0;
	margin: 0;
}

.gp-list-side-item .gp-list-side-body .gp-post-meta {
	position: static;
	display: block;
	margin-top: 8px;
	text-align: right;
	white-space: normal;
}

.gp-list-featured-thumb,
.gp-list-side-thumb {
	display: block;
	overflow: hidden;
}

/* Keep magazine thumbs visually consistent across mixed source sizes */
.gp-cat-box .gp-2c-thumb,
.gp-cat-box .gp-2c-small-thumb,
.gp-cat-box .gp-tab-featured-thumb,
.gp-cat-box .gp-tab-list-thumb,
.gp-news-grid .gp-pic-grid li > a,
.gp-widget-body .gp-widget-list li > a {
	display: block;
	overflow: hidden;
	border-radius: 4px;
}

.gp-cat-box .gp-2c-thumb,
.gp-cat-box .gp-tab-featured-thumb {
	aspect-ratio: 16 / 9;
}

.gp-cat-box .gp-2c-small-thumb,
.gp-cat-box .gp-tab-list-thumb,
.gp-widget-body .gp-widget-list li > a {
	aspect-ratio: 4 / 3;
}

.gp-news-grid .gp-pic-grid li > a {
	aspect-ratio: 1 / 1;
}

.gp-list-featured-thumb img,
.gp-2c-thumb img,
.gp-thumb-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.gp-thumb-placeholder-img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 120px;
	object-fit: cover;
	background: #e8e8e8;
}

/* 2 column row */
.gp-cat-2c {
	float: left;
	width: calc(50% - 12px);
	margin-right: 24px;
	box-sizing: border-box;
}

.gp-cat-2c-last {
	margin-right: 0;
}

.gp-2c-row-end {
	clear: both;
	height: 0;
}

.gp-2c-small {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	position: relative;
	padding: 12px 0 22px;
	border-top: 1px solid var(--gp-border);
}

.gp-2c-small-thumb {
	flex: 0 0 92px;
	width: 92px;
}

.gp-2c-small .gp-post-title-sm {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 0;
	margin: 0;
}

.gp-2c-small .gp-post-meta {
	position: static;
	display: block;
	margin-top: 8px;
	white-space: normal;
}

/* 1c */
.gp-1c-first {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--gp-border);
}

.gp-1c-item:not(.gp-1c-first) {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	padding: 8px 0 22px;
	border-bottom: 1px solid var(--gp-border);
}

.gp-list-side-item .gp-post-meta,
.gp-2c-small .gp-post-meta,
.gp-1c-item:not(.gp-1c-first) .gp-post-meta {
	position: absolute;
	right: 0;
	bottom: 8px;
	margin: 0;
	white-space: nowrap;
}

.gp-list-side-item .gp-post-title-sm,
.gp-2c-small .gp-post-title-sm,
.gp-1c-item:not(.gp-1c-first) .gp-post-title-sm {
	padding-right: 120px;
}

/* Scroll */
.gp-scroll-track {
	display: flex;
	gap: 16px;
	overflow: hidden;
}

.gp-scroll-item {
	flex: 0 0 calc(33.333% - 11px);
	min-width: 200px;
}

.gp-scroll-nav {
	text-align: center;
	margin: 14px -14px -14px;
	padding: 12px 0 10px;
	background: #f3f3f3;
	border-top: 1px solid #e4e4e4;
	border-bottom: 4px solid #ef3f36;
}

.gp-scroll-nav button {
	width: 11px;
	height: 11px;
	min-width: 11px;
	min-height: 11px;
	padding: 0;
	display: inline-block;
	flex: 0 0 auto;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	border-radius: 50%;
	border: 0;
	background: #ccc;
	margin: 0 4px;
	cursor: pointer;
	vertical-align: middle;
}

.gp-scroll-nav button.is-active {
	background: var(--gp-accent);
}

/* News picture */
.gp-news-picture-inner ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4px;
}

.gp-news-picture .gp-pic-first {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.gp-pic-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.gp-pic-grid li,
.gp-news-picture-inner li {
	overflow: hidden;
}

.gp-pic-grid img,
.gp-news-picture-inner img {
	width: 100%;
	height: auto;
	display: block;
}

.gp-cat-box .gp-2c-thumb img,
.gp-cat-box .gp-2c-small-thumb img,
.gp-cat-box .gp-tab-featured-thumb img,
.gp-cat-box .gp-tab-list-thumb img,
.gp-news-grid .gp-pic-grid li > a img,
.gp-widget-body .gp-widget-list li > a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-pic-grid-preview {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translate(-50%, -8px);
	z-index: 3;
	width: calc(100% - 18px);
	max-width: calc(100% - 18px);
	padding: 8px 12px;
	box-sizing: border-box;
	background: rgba(31, 31, 31, 0.94);
	color: #fff;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.24s ease, transform 0.24s ease;
	pointer-events: none;
	white-space: normal;
	display: block;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.gp-pic-grid li:hover > a .gp-pic-grid-preview,
.gp-pic-grid li:focus-within > a .gp-pic-grid-preview {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Tabs */
.gp-tabs-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	background: #efefef;
	border-bottom: 1px solid var(--gp-border);
}

.gp-tab-btn {
	background: #efefef;
	color: #4a4a4a;
	border: 0;
	padding: 12px 18px;
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	line-height: 1.2;
	border-top: 3px solid transparent;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gp-tab-btn:hover,
.gp-tab-btn:focus-visible {
	color: #6a6a6a;
	background: #f3f3f3;
}

.gp-tab-btn.is-active {
	background: #fff;
	color: #1f1f1f;
	border-top-color: var(--gp-accent);
}

.gp-tab-panel {
	display: none;
	padding: 14px;
}

.gp-tab-panel.is-active {
	display: block;
}

.gp-tab-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.gp-tab-featured {
	flex: 1 1 50%;
}

.gp-tab-list {
	flex: 1 1 40%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-tab-list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--gp-border);
}

.gp-tab-list-item .gp-tab-list-thumb {
	flex: 0 0 92px;
	width: 92px;
}

.gp-tab-list-item .gp-post-title-sm {
	flex: 1 1 auto;
	min-width: 0;
}

/* Recent blog */
.gp-recent-item {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--gp-border);
}

.gp-recent-row {
	display: flex;
	gap: 16px;
	margin-top: 10px;
}

.gp-recent-thumb {
	flex: 0 0 200px;
}

/* Typography */
.gp-post-title,
.gp-post-title a {
	font-size: 18px;
	font-weight: 700;
	color: var(--gp-text);
	text-decoration: none;
	margin: 0 0 6px;
}

.gp-post-title-sm,
.gp-post-title-sm a {
	font-size: 14px;
	font-weight: 600;
	color: var(--gp-text);
	text-decoration: none;
}

.gp-post-meta {
	font-size: 12px;
	color: var(--gp-muted);
}

.gp-more-link {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 14px;
	background: var(--gp-accent);
	color: #fff !important;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
}

.gp-more-link:hover {
	background: var(--gp-accent-dark);
}

.gp-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

/* Sidebar widgets */
.gp-widget {
	background: #fff;
	border: 1px solid var(--gp-border);
	margin-bottom: 24px;
	position: relative;
	z-index: 6;
	overflow: hidden;
}

.gp-widget-title {
	padding: 10px 14px;
	background: #f7f7f7;
	border-bottom: 3px solid var(--gp-accent);
	font-size: 13px;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0;
}

.gp-widget-body {
	padding: 14px;
}

.gp-widget-list li {
	display: flex;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--gp-border);
	list-style: none;
}

.gp-widget-body .gp-widget-list li > a {
	flex: 0 0 84px;
	width: 84px;
}

.gp-widget-list {
	margin: 0;
	padding: 0;
}

.gp-social-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gp-social-row a {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	background: #555;
	color: #fff;
	font-size: 11px;
	text-decoration: none;
}

/* Footer */
.gp-site-footer {
	background: var(--gp-footer-bg);
	color: #ccc;
	margin-top: 40px;
	border-top: 4px solid var(--gp-accent);
}

.gp-footer-widgets {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 200px;
	column-gap: 40px;
	row-gap: 24px;
	align-items: start;
	max-width: 1050px;
	margin: 0 auto;
	padding: 30px 15px;
}

.gp-footer-col {
	min-width: 0;
}

@media (max-width: 900px) {
	.gp-footer-widgets {
		grid-template-columns: 1fr 1fr;
	}

	.gp-footer-col:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.gp-footer-widgets {
		grid-template-columns: 1fr;
		column-gap: 0;
	}
}

.gp-footer-col h3 {
	color: #fff;
	text-transform: uppercase;
	font-size: 14px;
	margin: 0 0 16px;
}

.gp-footer-col h3 a {
	color: inherit;
	text-decoration: none;
}

.gp-footer-col h3 a:hover {
	color: var(--gp-accent);
}

.gp-footer-tagline {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
}

.gp-footer-social {
	margin-top: 4px;
}

.gp-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gp-footer-logo {
	font-size: 32px;
	font-weight: 700;
}

.gp-footer-logo .gp-logo-accent {
	color: var(--gp-accent);
}

.gp-footer-post {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #3a3a3a;
	align-items: flex-start;
}

.gp-footer-post > a {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3a3a3a;
	overflow: hidden;
}

.gp-footer-post img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gp-footer-post a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
}

.gp-footer-post-date {
	display: block;
	font-size: 11px;
	color: #999;
	margin-top: 4px;
}

.gp-footer-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gp-footer-cat-list a {
	color: #ccc;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.8;
}

.gp-footer-cat-list a:hover {
	color: var(--gp-accent);
}

.gp-footer-bar {
	background: var(--gp-footer-bar);
	padding: 12px 15px;
	font-size: 12px;
}

.gp-footer-bar-inner {
	max-width: 1050px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.gp-pagination {
	padding: 14px;
	text-align: center;
}

.gp-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 2px;
	border: 1px solid var(--gp-border);
	text-decoration: none;
}

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

/* Timeline widget */
.gp-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
	border-left: 2px solid var(--gp-border);
}

.gp-timeline li {
	position: relative;
	padding: 0 0 14px 14px;
	margin: 0;
}

.gp-timeline li::before {
	content: "";
	position: absolute;
	left: -21px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--gp-accent);
	background: #fff;
}

.gp-timeline-date {
	display: block;
	font-size: 11px;
	color: var(--gp-muted);
}

.gp-weather-demo {
	text-align: center;
}

.gp-weather-city {
	font-weight: 700;
	letter-spacing: 1px;
}

.gp-weather-temp {
	font-size: 36px;
	font-weight: 700;
	color: var(--gp-accent);
	margin: 8px 0;
}

@media (max-width: 768px) {
	.gp-magazine-layout {
		flex-direction: column;
	}

	.gp-magazine-sidebar {
		width: 100%;
		flex: 1 1 100%;
	}

	.gp-cat-2c {
		float: none;
		width: 100%;
		margin-right: 0;
	}

	.gp-featured-grid-inner {
		grid-template-columns: 1fr !important;
		grid-template-areas: unset !important;
		grid-template-rows: auto !important;
	}

	.gp-featured-item {
		grid-area: auto !important;
		min-height: 180px;
	}

	.gp-featured-item .gp-featured-link {
		min-height: 180px;
	}

	.gp-cat-list-inner {
		flex-direction: column;
	}

	.gp-scroll-item {
		flex: 0 0 80%;
	}
}
