/* Custom overrides: better font, smaller typography scale */

:root {
	--primary-color: #038080;

	--font-site-title: 'Plus Jakarta Sans', sans-serif;
	--font-tagline: 'Plus Jakarta Sans', sans-serif;
	--font-head: 'Plus Jakarta Sans', sans-serif;
	--font-body: 'Plus Jakarta Sans', sans-serif;

	--font-size-xs: clamp(0.7rem, 0.15vw + 0.68rem, 0.78rem);
	--font-size-sm: clamp(0.78rem, 0.15vw + 0.75rem, 0.85rem);
	--font-size-base: clamp(0.9rem, 0.2vw + 0.85rem, 1rem);
	--font-size-md: clamp(1.05rem, 0.35vw + 0.98rem, 1.2rem);
	--font-size-lg: clamp(1.2rem, 0.6vw + 1.05rem, 1.5rem);
	--font-size-xl: clamp(1.4rem, 0.9vw + 1.15rem, 1.85rem);
	--font-size-xxl: clamp(1.7rem, 1.3vw + 1.35rem, 2.3rem);
	--font-size-xxxl: clamp(2rem, 1.8vw + 1.55rem, 2.9rem);
}

body,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
input, button, select, textarea {
	font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Post dates: light grey everywhere */
.post-date,
.post-date a,
.post-date time,
.post-date span {
	color: #9aa0a6 !important;
}

/* Remove author and comment icons from post meta everywhere */
.post-author,
.post-comment,
li.post-author,
li.post-comment {
	display: none !important;
}

/* Page width */
.theme-wrapper {
	max-width: 1320px !important;
}

.main-banner-section,
.below-banner-widget-section,
.above-footer-widget-section,
.main-widget-section,
.frontpage {
	margin-top: 18px !important;
	margin-bottom: 40px !important;
	padding-bottom: 20px !important;
}

.top-header {
	padding-block: 12px !important;
	background-color: #038080 !important;
}

.top-header .top-info,
.top-header .top-info * {
	color: #fff !important;
}

.site-title a {
	color: #fff !important;
}

.site-branding .site-identity .site-title {
	font-size: 2.4rem !important;
}

/* Post date: always last inside each post card */
.post-item-content {
	display: flex;
	flex-direction: column;
}

.post-item-content .entry-title {
	order: 1;
}

.post-item-content .post-exerpt {
	order: 2;
}

.post-item-content .entry-meta {
	order: 3;
}

.site-header {
	margin-bottom: 12px !important;
}

.banner-grid-wrapper {
	gap: 34px !important;
}

/* More space between post boxes everywhere else */
.grid-widget .adore-widget-body {
	gap: 38px !important;
}

.list-widget .post-list-widget-wrapper,
.list-widget.style-2 .post-list-widget-wrapper {
	gap: 32px !important;
}

.express-list-widget .express-list-widget-wrapper {
	gap: 34px !important;
}

.featured-widget .post-item {
	margin-bottom: 34px !important;
}

.carousel-wrapper .post-item-outer {
	padding-inline: 12px !important;
}

.post-item.post-grid,
.post-item.post-list {
	margin-bottom: 6px;
}

/* Shrink hero corner post images (not the center carousel slides) */
.main-banner-section .main-banner-section-wrapper .post-item.post-grid:not(.hero-center-carousel-item) .post-item-image,
.post-item.post-grid:not(.hero-center-carousel-item) .post-item-image .post-thumbnail img,
.post-item.post-grid:not(.hero-center-carousel-item) .post-item-image a img {
	aspect-ratio: 1 / 0.45 !important;
}

/* Hero center carousel */
.hero-center-carousel-item {
	padding: 0 !important;
	overflow: hidden;
	border-radius: 5px;
	height: 100%;
	min-height: 340px;
	display: flex;
}

.hero-center-carousel {
	height: 100%;
	width: 100%;
}

.hero-center-carousel .slick-list {
	width: 100% !important;
}

.hero-center-carousel .slick-track {
	width: 100% !important;
	display: flex;
}

.hero-center-carousel .slick-slide {
	width: 100% !important;
	flex-shrink: 0;
}

.hero-center-slide .post-exerpt {
	display: none !important;
}

.hero-center-carousel .slick-list,
.hero-center-carousel .slick-track,
.hero-center-carousel .slick-slide,
.hero-center-carousel .slick-slide > div {
	height: 100%;
}

.hero-center-slide {
	position: relative;
	height: 100%;
}

.hero-center-slide .post-item-image {
	aspect-ratio: auto !important;
	width: 100% !important;
	height: 100% !important;
	border-radius: 0;
}

.hero-center-slide .post-item-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
}

.hero-center-slide .post-item-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
}

.hero-center-slide .entry-title a,
.hero-center-slide .post-exerpt p,
.hero-center-slide .entry-meta li,
.hero-center-slide .entry-meta a {
	color: #fff !important;
}

.hero-center-carousel .slick-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,0.45);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.hero-center-carousel .slick-arrow:hover {
	background: rgba(0,0,0,0.75);
}

.hero-center-carousel .chevron {
	width: 9px;
	height: 9px;
	border-style: solid;
	border-width: 2px 2px 0 0;
	border-color: #fff;
	display: inline-block;
}

.hero-center-carousel .chevron-right {
	transform: rotate(45deg) translate(-1px, -1px);
}

.hero-center-carousel .chevron-left {
	transform: rotate(-135deg) translate(-1px, -1px);
}

.hero-center-carousel .slick-prev {
	left: 14px;
}

.hero-center-carousel .slick-next {
	right: 14px;
}

.hero-center-carousel .slick-dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 5;
}

.hero-center-carousel .slick-dots li button {
	font-size: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.5);
	padding: 0;
	cursor: pointer;
}

.hero-center-carousel .slick-dots li.slick-active button {
	background: #fff;
}

/* Breaking News ticker */
.breaking-news-section-wrapper {
	border: none !important;
	background: #fff;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	padding: 24px 26px !important;
}

.breaking-news-label-wrap {
	position: relative;
	padding-left: 16px;
}

.breaking-news-label-wrap:before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 12px;
	width: 4px;
	border-radius: 4px;
	background: var(--primary-color);
}

.breaking-news-label {
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-weight: 700 !important;
}

.breaking-news-label:before {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--primary-color);
	flex-shrink: 0;
	animation: breaking-pulse 1.6s ease-in-out infinite;
}

@keyframes breaking-pulse {
	0% { box-shadow: 0 0 0 0 rgba(3, 128, 128, 0.5); }
	70% { box-shadow: 0 0 0 6px rgba(3, 128, 128, 0); }
	100% { box-shadow: 0 0 0 0 rgba(3, 128, 128, 0); }
}

.breaking-news-arrows .adore-arrow {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.breaking-news-wrapper li:has(.post-item) {
	position: relative;
}

.breaking-news-wrapper li:has(.post-item):before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: var(--color-tab-border, #e5e5e5);
}

.breaking-news-wrapper li:first-child:before {
	display: none;
}

.breaking-news-section-wrapper .post-item.post-list .post-item-image {
	width: 64px !important;
	height: 64px !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.breaking-news-section-wrapper .post-item-content .entry-title {
	font-size: var(--font-size-sm);
	font-weight: 600;
	line-height: 1.35;
}

.breaking-news-section-wrapper .post-item-content .entry-title a:hover {
	color: var(--primary-color);
}

/* Latest Posts / Trending Posts tabs: title only, more image-to-text spacing */
.posts-tabs-widget .post-item .post-exerpt {
	display: none !important;
}

.posts-tabs-widget .post-item.post-list:has(img) .post-item-content {
	padding-inline-start: 22px !important;
}

/* Mobile fixes: smaller menu icon, taller hero carousel, less dead space below it */
@media (max-width: 767px) {

	.header-nav-search {
		padding-bottom: 14px !important;
	}

	.menu-toggle {
		display: inline-block !important;
		width: 26px !important;
		height: 26px !important;
		margin: 0 8px 0 0 !important;
	}

	.menu-toggle span {
		height: 2px !important;
	}

	.menu-toggle span:nth-child(1) {
		top: calc(50% - 10px) !important;
	}

	.menu-toggle span:nth-child(3) {
		bottom: calc(50% - 10px) !important;
	}

	.main-navigation.toggled .menu-toggle span:nth-child(1) {
		top: 12px !important;
	}

	.navigation-search,
	.navigation-search .navigation-search-wrap .navigation-search-icon {
		width: 26px !important;
		height: 26px !important;
	}

	.navigation-search .navigation-search-wrap .navigation-search-icon {
		font-size: 15px !important;
	}

	.banner-grid-wrapper {
		gap: 14px !important;
	}

	.hero-center-carousel-item {
		height: 55vh !important;
		min-height: 340px !important;
		max-height: 480px !important;
	}

	.main-banner-section {
		margin-bottom: 14px !important;
		padding-bottom: 0 !important;
	}

	.post-item.post-grid,
	.post-item.post-list {
		margin-bottom: 0 !important;
	}

	.breaking-news-section-wrapper .post-item.post-list .post-item-image {
		width: 92px !important;
		height: 92px !important;
	}

	.breaking-news-section-wrapper .post-item-content .entry-title {
		font-size: var(--font-size-base) !important;
	}
}
