/* =========================================================================
   TNC FlipBook 3D — Blog Grid Module
   Scoped styles (.tnc3d-blog-*).
   ========================================================================= */

.tnc3d-blog-container {
	--tnc3d-navy: #0B1B3A;
	--tnc3d-blue: #1D4FD0;
	--tnc3d-muted: #5A6B87;
	--tnc3d-line: #E3E9F4;
	--tnc3d-surface: #FFFFFF;
	--tnc3d-bg: #F8FAFC;

	box-sizing: border-box;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--tnc3d-navy);
	line-height: 1.5;
	text-align: left;
	background: #F3F4F7;
}

.tnc3d-blog-container *,
.tnc3d-blog-container *::before,
.tnc3d-blog-container *::after {
	box-sizing: inherit;
}

.tnc3d-blog-container a {
	color: inherit;
	text-decoration: none;
}

.tnc3d-blog-container img {
	max-width: 100%;
	height: auto;
	display: block;
}

.tnc3d-blog-wrap {
	max-width: 1342px;
	margin: 0 auto;
	padding: clamp(2.5rem, 1.8932rem + 2.589vw, 5rem) 16px;
}

/* ---- Filter Bar ---- */
.tnc3d-blog-filters-wrapper {
	border-bottom: 1px solid #E2E8F0;
	background: #FFF;
	padding: 18px 16px;
}

.tnc3d-blog-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	max-width: 1326px;
	margin: 0 auto;
}

.tnc3d-blog-tabs {
	display: flex;
	gap: 12px;
}

.tnc3d-blog-tab {
	background: #F1F5F9;
	border: none;
	padding: 8px 20px;
	border-radius: 6px;
	cursor: pointer;
	letter-spacing: 0.05em;

	color: #314158;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: -0.1px;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.tnc3d-blog-tab:hover {
	background: #E3E9F4;
	color: var(--tnc3d-navy);
}

.tnc3d-blog-tab.tnc3d-active {
	background: var(--tnc3d-blue);
	color: #fff;
}

.tnc3d-blog-sort {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tnc3d-blog-sort label {
	color: #8B9194;
	text-align: center;

	/* Paragraph/16/Medium */
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.16px;
}

.tnc3d-blog-select-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.tnc3d-blog-select {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 1px solid var(--tnc3d-line);
	border-radius: 6px;
	padding: 10px 36px 10px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--tnc3d-navy);
	cursor: pointer;
	outline: none;
}

.tnc3d-blog-select:focus {
	border-color: var(--tnc3d-blue);
}

.tnc3d-blog-chevron {
	position: absolute;
	right: 14px;
	pointer-events: none;
	color: var(--tnc3d-navy);
}

/* ---- Section Headers ---- */
.tnc3d-blog-section-header {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.tnc3d-blog-title {
	color: #0F2D35;
	font-family: "DM Sans";
	font-size: 18px;
	font-weight: 500;
	line-height: 160%;
	letter-spacing: -0.36px;
	text-transform: uppercase;
	margin: 0;
	padding-bottom: 0;
}

.tnc3d-blog-subtitle {
	color: #667175;

	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 2px 0 0;
}

/* ---- Featured Grid ---- */
.tnc3d-blog-featured-section {
	margin-bottom: clamp(2.5rem, 1.8932rem + 2.589vw, 5rem);
}

.tnc3d-blog-featured-grid {
	display: grid;
	grid-template-columns: 70% 1fr;
	gap: 30px;
}

/* ---- Cards Common ---- */
.tnc3d-blog-card {
	position: relative;
	background: var(--tnc3d-surface);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.tnc3d-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(11, 27, 58, 0.08);
}

.tnc3d-blog-card-link {
	position: absolute;
	inset: 0;
	z-index: 10;
}

.tnc3d-blog-card-image {
	background: var(--tnc3d-bg);
	width: 100%;
	position: relative;
	overflow: hidden;
}

.tnc3d-blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tnc3d-blog-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #DCE3EE;
}

.tnc3d-blog-card:hover .tnc3d-blog-card-image img {
	transform: scale(1.03);
}

.tnc3d-blog-card-content {
	padding: 24px 20px 30px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	background: #fff;
}

.tnc3d-blog-meta {
	color: #667175;
	font-family: "DM Sans";
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;

	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tnc3d-blog-cat {
	color: #000;
}

.tnc3d-blog-time {
	color: var(--tnc3d-muted);
}

.tnc3d-blog-dot {
	color: var(--tnc3d-muted);
}

.tnc3d-blog-card-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.tnc3d-blog-card-title a {
	position: relative;
	z-index: 11;
}

/* ---- Hero Card (Left) ---- */
.tnc3d-card-hero .tnc3d-blog-card-image {}

.tnc3d-card-hero .tnc3d-blog-card-title {
	color: #0F2D35;
	font-family: Inter;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.6px;
}

/* ---- Side Cards (Right) ---- */
.tnc3d-blog-featured-side {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.tnc3d-card-side {
	background: transparent;
	border-radius: 6px;
}

.tnc3d-card-side:hover {
	transform: none;
	box-shadow: none;
}

.tnc3d-card-side .tnc3d-blog-card-image {}

.tnc3d-card-side .tnc3d-blog-card-content {
	padding: 20px 20px 24px;
	background: #fff;
}

.tnc3d-card-side .tnc3d-blog-card-title {
	color: #0F2D35;
	font-family: Inter;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.36px;
}

/* ---- Latest Grid ---- */
.tnc3d-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.875rem, 1.4199rem + 1.9417vw, 3.75rem) 30px;
	transition: opacity 0.2s ease;
}

.tnc3d-card-grid {
	background: transparent;
	border-radius: 6px;
}

.tnc3d-card-grid:hover {
	transform: translateY(-4px);
	box-shadow: none;
}

.tnc3d-card-grid .tnc3d-blog-card-image {}

.tnc3d-card-grid .tnc3d-blog-card-title {
	font-size: 18px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: calc(1.5em * 2);
}

.tnc3d-blog-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--tnc3d-muted);
	font-size: 16px;
	background: var(--tnc3d-bg);
	border-radius: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.tnc3d-blog-featured-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.tnc3d-blog-featured-side {
		flex-direction: row;
		gap: 30px;
	}

	.tnc3d-card-side {
		flex-direction: column;
		flex: 1;
		gap: 0;
	}

	.tnc3d-card-side .tnc3d-blog-card-image {
		width: 100%;
	}

	.tnc3d-card-side .tnc3d-blog-card-content {
		padding: 16px 16px 20px;
	}
}

@media (max-width: 850px) {
	.tnc3d-blog-tabs-wrapper {
		overflow-x: scroll;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.tnc3d-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tnc3d-blog-featured-side {
		flex-direction: column;
	}

	.tnc3d-blog-filters {
		flex-direction: column;
		align-items: flex-start;
	}

	.tnc3d-blog-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: clamp(0rem, -0.7156rem + 3.0534vw, 0.75rem);
	}
}

@media (max-width: 480px) {
	.tnc3d-blog-grid {
		grid-template-columns: 1fr;
	}

	.tnc3d-card-hero .tnc3d-blog-card-title {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tnc3d-blog-card,
	.tnc3d-blog-card-image img,
	.tnc3d-blog-tab,
	.tnc3d-blog-grid {
		transition: none !important;
	}

	.tnc3d-blog-card:hover {
		transform: none;
	}
}

/* Pagination */
.tnc3d-blog-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
}

.tnc3d-blog-pagination a,
.tnc3d-blog-pagination span {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #fff;
	color: #0B1B3A;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid #EAECEF;
	transition: all 0.3s ease;
}

.tnc3d-blog-pagination a:hover {
	background: #f1f4f9;
	border-color: #d1daeb;
}

.tnc3d-blog-pagination .current {
	background: #3B5BDB;
	color: #fff;
	border-color: #3B5BDB;
}

.tnc3d-blog-pagination .dots {
	background: transparent;
	border: none;
	color: #6C7A9C;
}

/* Premium Entrance Animations */
.tnc3d-blog-animate-item {
	opacity: 0;
	transform: translateY(40px) scale(0.96);
	transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.tnc3d-blog-animate-item.tnc3d-in-view {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Filter Exit state */
.tnc3d-blog-animate-item.tnc3d-filter-exit {
	opacity: 0 !important;
	transform: translateY(-20px) scale(0.96) !important;
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
	transition-delay: 0s !important;
}

/* Skeleton Loader UI */
.tnc3d-skeleton-box {
	background: #e2e8f0;
	position: relative;
	overflow: hidden;
}

.tnc3d-skeleton-box::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
	animation: tnc3d-shimmer 1.5s infinite;
}

@keyframes tnc3d-shimmer {
	100% {
		transform: translateX(100%);
	}
}

/* =========================================================================
   Hero Header
   ========================================================================= */
.tnc3d-blog-hero-header {
	background-color: #051920;
	padding: 90px 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #ffffff;
}

.tnc3d-blog-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: rgba(255, 255, 255, 0.08);
	color: #A0B2C6;
	padding: 6px 16px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.tnc3d-blog-hero-badge svg {
	width: 14px;
	height: 14px;
}

.tnc3d-blog-hero-title {
	font-family: "Outfit", sans-serif;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px 0;
	color: #ffffff;
}

.tnc3d-blog-hero-subtitle {
	font-size: 16px;
	color: #A0B2C6;
	max-width: 600px;
	margin: 0 auto 32px auto;
	line-height: 1.6;
}

.tnc3d-blog-search-form {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	margin-top: 30px;
}

.tnc3d-blog-search-input-wrap {
	display: flex;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.20);
	border-radius: 100px;
	padding: 8px;
	padding-left: 16px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #486069;
}

.tnc3d-blog-search-input-wrap:focus-within {
	background-color: rgba(255, 255, 255, 0.20);
	box-shadow: 0 0 0 2px rgba(59, 91, 219, 0.4);
}

.tnc3d-blog-search-icon {
	color: #6C7E93;
	flex-shrink: 0;
}

.tnc3d-blog-search-input {
	flex-grow: 1;
	background: transparent !important;
	border: none !important;
	color: #ffffff !important;
	font-size: 14px !important;
	padding: 12px 12px !important;
	outline: none !important;
}

.tnc3d-blog-search-input::placeholder {
	color: #FFF;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.16px;
	opacity: 0.4;
}

.tnc3d-blog-search-btn {
	background-color: #1D4FD0;
	color: #ffffff;
	border: none;
	padding: 6px 24px;
	border-radius: 100px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.tnc3d-blog-search-btn:hover {
	background-color: #2b45b5;
}

.tnc3d-blog-search-btn-icon {
	display: none;
}

@media (max-width: 768px) {
	.tnc3d-blog-hero-header {
		padding: 60px 16px;
	}

	.tnc3d-blog-hero-title {
		font-size: 32px;
	}
}

@media (max-width: 375px) {
	.tnc3d-blog-search-icon {
		display: none;
	}

	.tnc3d-blog-search-btn-text {
		display: none;
	}

	.tnc3d-blog-search-btn-icon {
		display: block;
	}

	.tnc3d-blog-search-btn {
		padding: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.tnc3d-blog-search-input-wrap {
		padding-left: 8px;
	}
}

/* =========================================================================
   Single Header Shortcode
   ========================================================================= */
.tnc3d-bsh-container {
	max-width: 1166px;
	margin: 0 auto;
	padding-inline: 16px;
	padding-top: clamp(3rem, 1.7561rem + 5.3074vw, 8.125rem);
	padding-bottom: 28px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #0B1B3A;
}

.tnc3d-bsh-breadcrumb-wrapper {
	background: #fff;
}

.tnc3d-bsh-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #5A6B87;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 24px 16px;
	max-width: 1166px;
	margin: 0 auto;
}

.tnc3d-bsh-breadcrumb a {
	color: #314158;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	text-transform: capitalize;
	transition: color 0.2s;
}

.tnc3d-bsh-breadcrumb a:hover {
	color: #1D4FD0;
}

.tnc3d-bsh-sep {
	color: #314158;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.tnc3d-bsh-current {
	color: #9096A0;
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.5;
	text-transform: capitalize;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 400px;
}

.tnc3d-bsh-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #5A6B87;
	margin-bottom: 12px;
}

.tnc3d-bsh-time {
	color: #667175;
	font-family: "DM Sans";
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-transform: uppercase;
}

.tnc3d-bsh-cat {
	color: #1D4FD0;
	background: rgba(29, 79, 208, 0.08);
	padding: 2px 8px;
	border-radius: 4px;
}

.tnc3d-bsh-title {
	margin: 0 0 clamp(1.5rem, 0.6505rem + 3.6246vw, 5rem) 0;

	color: #0F2D35;
	font-family: 'Inter';
	font-size: clamp(1.5rem, 1.318rem + 0.7767vw, 2.25rem);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -0.36px;
	text-transform: uppercase;
}

.tnc3d-bsh-author-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.tnc3d-bsh-author-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tnc3d-bsh-avatar {
	width: 48px;
	height: 48px;
}

.tnc3d-bsh-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.tnc3d-bsh-author-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tnc3d-bsh-author-name {
	color: #314158;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-transform: capitalize;
}

.tnc3d-bsh-date {
	color: #667175;
	font-family: "DM Sans";
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.tnc3d-bsh-share {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tnc3d-bsh-share-label {
	color: #000;
	font-family: "DM Sans";
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	margin-right: 10px;
}

.tnc3d-bsh-share a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #E3E9F4;
	color: #5A6B87;
	transition: all 0.2s ease;
}

.tnc3d-bsh-share a:hover {
	background: #F8FAFC;
	color: #1D4FD0;
	border-color: #1D4FD0;
}

.tnc3d-bsh-share svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 768px) {
	.tnc3d-bsh-breadcrumb {}

	.tnc3d-bsh-current {
		max-width: 100%;
	}
}

/* Toast Notification */
.tnc3d-toast {
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	background-color: #1D4FD0;
	color: #ffffff;
	padding: 12px 24px;
	border-radius: 50px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 999999;
	box-shadow: 0 8px 24px rgba(29, 79, 208, 0.35);
	display: flex;
	align-items: center;
	gap: 8px;
}

.tnc3d-toast.tnc3d-toast-show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	visibility: visible;
}