/* ETG Global CSS */

:root {
	--etg-blue: #4a77bc;
	--etg-blue-hover: #3a5fa0;
	--etg-light: #e6e7ea;
	--etg-muted: #cdd0d5;
	--etg-radius: 15px;
	--etg-border: 2px solid var(--etg-blue);
}

/* Typography and spacing */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 1.5rem !important;
}

.entry-content h1 + p,
.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p,
.entry-content h5 + p,
.entry-content h6 + p {
	margin-top: 0.4rem !important;
}

.entry-content p {
	margin-top: 1rem !important;
	margin-bottom: 0.3rem !important;
}

.entry-content p + ul,
.entry-content p + .wp-block-list,
.entry-content h1 + ul,
.entry-content h2 + ul,
.entry-content h3 + ul,
.entry-content h4 + ul,
.entry-content h5 + ul,
.entry-content h6 + ul {
	margin-top: 0.6rem !important;
}

.entry-content ul,
.entry-content .wp-block-list {
	margin-bottom: 0.3rem !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.entry-content li {
	margin: 0 !important;
	padding: 0 !important;
}

.single-post .entry-content a {
	font-weight: 700;
}

.single-post .entry-content p:first-of-type {
	padding-top: 17px;
}

@media (max-width: 767px) {
	.single-post .entry-content h1,
	.single-post .entry-content h2,
	.single-post .entry-content h3,
	.single-post .entry-content h4,
	.single-post .entry-content h5,
	.single-post .entry-content h6 {
		text-align: center;
	}
}

/* Tables */

.entry-content table {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border: var(--etg-border) !important;
	border-radius: 10px;
	overflow: hidden;
}

.entry-content th,
.entry-content td {
	padding: 8px;
	text-align: center;
	vertical-align: middle;
	border-right: var(--etg-border) !important;
	border-bottom: var(--etg-border) !important;
}

.entry-content th:last-child,
.entry-content td:last-child {
	border-right: none !important;
}

.entry-content tr:last-child td {
	border-bottom: none !important;
}

.entry-content th {
	background-color: rgba(74, 119, 188, 0.3);
	font-weight: 700;
}

/* Old post-grid hover effect disabled */

 /*
.wp-block-post {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	will-change: transform;
}

.wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
*/

/* Forms */

:is(
	.wp-block-jetpack-contact-form input[type="email"],
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="url"],
	input[type="tel"],
	input[type="number"],
	textarea,
	select
) {
	box-sizing: border-box;
	padding: 12px 16px;
	background: transparent;
	border: 2px solid var(--etg-muted) !important;
	border-radius: var(--etg-radius) !important;
}

:is(input, textarea, select):focus {
	border-color: #fff !important;
	outline: none;
}

/* Forminator */

.forminator-ui :is(
	.forminator-label,
	.forminator-description,
	.forminator-radio-label
) {
	color: var(--etg-light) !important;
	font-family: "Nunito", sans-serif !important;
}

.forminator-ui .forminator-label {
	margin: 0 0 12px !important;
	font-size: 1.7rem !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
}

.forminator-ui :is(
	.forminator-description,
	.forminator-radio-label
) {
	font-size: 17px !important;
	line-height: 1.27 !important;
	letter-spacing: 0.03em !important;
}

.forminator-ui .forminator-description {
	margin: 6px 0 10px !important;
	font-weight: 400 !important;
}

.forminator-ui .forminator-radio-label {
	font-weight: 800 !important;
}

.forminator-ui .forminator-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.forminator-ui .forminator-button-submit {
	width: 100%;
	padding: 12px 20px !important;
	color: #fff !important;
	background: var(--etg-blue) !important;
	border: none !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	font-family: "Nunito", sans-serif !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
}

.forminator-ui .forminator-button-submit:hover {
	background: var(--etg-blue-hover) !important;
	transform: translateY(-1px);
}

.forminator-ui .forminator-button-submit:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.7);
	outline-offset: 3px;
}

/* Blog post images */

.single-post .entry-content .wp-block-image img,
.single-post .wp-block-post-content .wp-block-image img {
	display: block;
	border: 3px solid #e5e7ea !important;
	border-radius: var(--etg-radius) !important;
}

.single-post .entry-content .wp-block-image > a,
.single-post .wp-block-post-content .wp-block-image > a {
	display: block;
	overflow: hidden;
	border-radius: var(--etg-radius);
}

.single-post .entry-content .wp-block-cover,
.single-post .wp-block-post-content .wp-block-cover {
	overflow: hidden !important;
	border-radius: var(--etg-radius) !important;
}

/* Normal content media */

.wp-block-embed.is-provider-youtube,
body:not(.home) .entry-content .ct-media-container,
body:not(.home) .entry-content .ct-media-container img {
	border-radius: var(--etg-radius) !important;
	overflow: hidden;
}

/* Title block hero image */

body:not(.home) #main > .hero-section[data-type="type-2"],
body:not(.home) #main > .hero-section[data-type="type-2"] > figure,
body:not(.home) #main > .hero-section[data-type="type-2"] > figure .ct-media-container,
body:not(.home) #main > .hero-section[data-type="type-2"] > figure img {
	border-radius: 0 0 var(--etg-radius) var(--etg-radius) !important;
	overflow: hidden !important;
}

/* Archive spacing */

.post-type-archive-videos .entries,
.post-type-archive-deal .entries {
	margin-top: 30px;
}

/* Accessibility helper */

.etg-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Utility classes */

.rounded-block {
	border-radius: 12px;
	overflow: hidden;
}

html {
	background-color: #081a36 !important;
}

body {
	color: #e5e7ea !important;
	background-color: #081a36 !important;
}

/* Blocksy Card Reveal Effect
Cards overlap while easing in
*/

body.home .entries[data-archive="default"] .entry-card {
	transition-duration: 0.5s !important;
	transition-timing-function: ease-in !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(1) {
	transition-delay: 0s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(2) {
	transition-delay: 0.1s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(3) {
	transition-delay: 0.2s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(4) {
	transition-delay: 0.3s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(5) {
	transition-delay: 0.4s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(6) {
	transition-delay: 0.5s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(7) {
	transition-delay: 0.6s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(8) {
	transition-delay: 0.7s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(9) {
	transition-delay: 0.8s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(10) {
	transition-delay: 0.9s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(11) {
	transition-delay: 1s !important;
}

body.home .entries[data-archive="default"] .entry-card:nth-child(12) {
	transition-delay: 1.1s !important;
}

/* Generic pagination for other posts */

body:not(.postid-40519) .page-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 50px 0;
	padding: 20px;
}

body:not(.postid-40519) .page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	background: #081a36;
	color: #ffffff !important;
	border: 2px solid #4a77bc;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: 0.2s ease;
}

body:not(.postid-40519) .page-links .post-page-numbers.current {
	background: #4a77bc;
	border-color: #4a77bc;
}

body:not(.postid-40519) .page-links a.post-page-numbers:hover {
	background: #4a77bc;
	border-color: #ffffff;
	transform: translateY(-2px);
}

/* Custom pagination for post 40519 */

body.postid-40519 .page-links {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	margin: 50px 0 !important;
	padding: 20px !important;
}

body.postid-40519 .page-links .post-pages-label {
	display: none !important;
}

body.postid-40519 .page-links .post-page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 150px !important;
	height: 46px !important;
	padding: 0 15px !important;
	background: #081a36 !important;
	color: transparent !important;
	border: 2px solid #4a77bc !important;
	border-radius: 10px !important;
	font-size: 0 !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

body.postid-40519 .page-links .post-page-numbers::after {
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
}

/* Page 1 */

body.postid-40519 .page-links .post-page-numbers[href*="iphone-18-pro-max-progressive-review/"]:not([href*="/2/"]):not([href*="/3/"])::after,
body.postid-40519:not(.single-paged-2):not(.single-paged-3) .page-links .post-page-numbers.current::after {
	content: "And So It Begins" !important;
}

/* Page 2 */

body.postid-40519 .page-links .post-page-numbers[href*="/2/"]::after,
body.postid-40519.single-paged-2 .page-links .post-page-numbers.current::after {
	content: "Unboxing / First Impressions" !important;
}

/* Page 3 */

body.postid-40519 .page-links .post-page-numbers[href*="/3/"]::after,
body.postid-40519.single-paged-3 .page-links .post-page-numbers.current::after {
	content: "Day 1" !important;
}

/* Current page */

body.postid-40519 .page-links .post-page-numbers.current {
	background: #4a77bc !important;
	border-color: #4a77bc !important;
}

/* Hover */

body.postid-40519 .page-links a.post-page-numbers:hover {
	background: #4a77bc !important;
	border-color: #ffffff !important;
	transform: translateY(-2px);
}

/* Mobile */

@media (max-width: 767px) {
	body.postid-40519 .page-links .post-page-numbers {
		width: 120px !important;
		height: 44px !important;
	}

	body.postid-40519 .page-links .post-page-numbers::after {
		font-size: 14px !important;
	}
}

/* Keep custom pagination text visible */

body.postid-40519 .page-links {
	flex-wrap: wrap !important;
}

body.postid-40519 .page-links .post-page-numbers {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 150px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	white-space: nowrap !important;
	overflow: visible !important;
}

@media (max-width: 767px) {
	body.postid-40519 .page-links .post-page-numbers {
		min-width: 120px !important;
		white-space: normal !important;
		text-align: center !important;
	}
}