/**
 * TITAUDOU Custom Listing Styles
 *
 * Styles for Product and News archive/single pages.
 * Matches the reference design: banner, category filter,
 * 3-column grid, card hover, pagination.
 *
 * @package Astra
 * @since 1.0.0
 */

/* ===================== Container ===================== */
.titaudou-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===================== Breadcrumbs ===================== */
.titaudou-breadcrumbs {
	font-size: 14px;
	margin-top: 10px;
}

.titaudou-breadcrumbs a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s ease;
}

.titaudou-breadcrumbs a:hover {
	color: #fff;
}

.titaudou-breadcrumbs .separator {
	margin: 0 8px;
	color: rgba(255, 255, 255, 0.5);
}

.titaudou-breadcrumbs .current {
	color: #fff;
}

/* ===================== Archive Banner ===================== */
/* Remove default theme top padding so the hero banner sticks to the header. */
.site-content:has(.titaudou-archive-banner),
.site-content:has(.titaudou-archive-banner) .ast-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.titaudou-archive {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
}

.titaudou-archive-banner {
	background-color: #0d2340;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0 !important;
}

.titaudou-archive-banner-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.titaudou-archive-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.2;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.titaudou-archive-banner .titaudou-breadcrumbs {
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ===================== Archive Content ===================== */
.titaudou-archive-content {
	padding: 50px 0 70px;
	background: #f7f7fa;
	min-height: 400px;
}

/* ===================== Category Filter ===================== */
.titaudou-category-filter {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5ea;
}

.titaudou-category-filter a {
	display: inline-block;
	padding: 8px 18px;
	margin: 5px 4px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e5ea;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.titaudou-category-filter a:hover {
	background: #1a3a6b;
	color: #fff;
	border-color: #1a3a6b;
}

.titaudou-category-filter a.current {
	background: #1a3a6b;
	color: #fff;
	border-color: #1a3a6b;
}

/* ===================== Grid Layout ===================== */
.titaudou-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 50px;
}

/* ===================== Card ===================== */
.titaudou-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.titaudou-card:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.titaudou-card-thumb {
	display: block;
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: #f0f0f5;
}

.titaudou-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.titaudou-card:hover .titaudou-card-thumb img {
	transform: scale(1.06);
}

.titaudou-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 14px;
	background: #f0f0f5;
}

.titaudou-card-details {
	padding: 20px 18px 24px;
	text-align: center;
}

.titaudou-card-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
}

.titaudou-card-title a {
	color: #1a3a6b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.titaudou-card-title a:hover {
	color: #0d2340;
}

.titaudou-card-excerpt {
	font-size: 14px;
	color: #777;
	margin: 0 0 10px;
	line-height: 1.5;
}

.titaudou-card-meta {
	font-size: 13px;
	color: #999;
}

.titaudou-card-date {
	color: #999;
}

/* ===================== Pagination ===================== */
.titaudou-pagination {
	text-align: center;
	margin-top: 40px;
}

.titaudou-pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	height: 42px;
	line-height: 42px;
	padding: 0 12px;
	margin: 0 3px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e5ea;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.titaudou-pagination .page-numbers:hover {
	background: #1a3a6b;
	color: #fff;
	border-color: #1a3a6b;
}

.titaudou-pagination .page-numbers.current {
	background: #1a3a6b;
	color: #fff;
	border-color: #1a3a6b;
}

.titaudou-pagination .page-numbers.dots {
	background: transparent;
	border: none;
	color: #999;
}

.titaudou-pagination .page-numbers.dots:hover {
	background: transparent;
	color: #999;
}

/* ===================== No Results ===================== */
.titaudou-no-results {
	text-align: center;
	padding: 80px 20px;
	color: #999;
	font-size: 16px;
}

/* ===================== Single Page Banner ===================== */
.titaudou-single-banner {
	background: linear-gradient(135deg, #0d2340 0%, #1a3a6b 100%);
	padding: 70px 0 50px;
	text-align: center;
	color: #fff;
}

.titaudou-single-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.titaudou-single-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #fff;
	line-height: 1.3;
}

/* ===================== Single Page Content ===================== */
.titaudou-single-content {
	padding: 50px 0 70px;
	background: #fff;
}

.titaudou-single-meta {
	text-align: center;
	margin-bottom: 30px;
	font-size: 14px;
	color: #999;
}

.titaudou-single-date {
	margin-right: 15px;
}

.titaudou-single-cat {
	background: #eef2f7;
	color: #1a3a6b;
	padding: 3px 12px;
	border-radius: 3px;
	font-size: 13px;
}

.titaudou-single-featured {
	text-align: center;
	margin-bottom: 40px;
}

.titaudou-single-featured img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.titaudou-single-body {
	max-width: 820px;
	margin: 0 auto;
	line-height: 1.8;
	font-size: 16px;
	color: #333;
}

.titaudou-single-body h2,
.titaudou-single-body h3,
.titaudou-single-body h4 {
	color: #1a3a6b;
	margin-top: 30px;
}

.titaudou-single-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 15px 0;
}

.titaudou-single-terms {
	max-width: 820px;
	margin: 40px auto 0;
	padding-top: 25px;
	border-top: 1px solid #eee;
	font-size: 14px;
	color: #777;
}

.titaudou-single-terms .label {
	font-weight: 600;
	margin-right: 8px;
}

.titaudou-single-terms a {
	color: #1a3a6b;
	text-decoration: none;
}

.titaudou-single-terms a:hover {
	text-decoration: underline;
}

.titaudou-single-nav {
	max-width: 820px;
	margin: 35px auto 0;
	padding-top: 25px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}

.titaudou-single-nav .prev a,
.titaudou-single-nav .next a {
	color: #1a3a6b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.titaudou-single-nav .prev a:hover,
.titaudou-single-nav .next a:hover {
	color: #0d2340;
}

.titaudou-single-nav .next {
	margin-left: auto;
	text-align: right;
}

/* ===================== Video Card Play Overlay ===================== */
.titaudou-video-thumb {
	position: relative;
}

.titaudou-play-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(13, 35, 64, 0.35);
	transition: background 0.3s ease;
}

.titaudou-video-card:hover .titaudou-play-overlay {
	background: rgba(13, 35, 64, 0.5);
}

.titaudou-play-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	position: relative;
	transition: transform 0.3s ease, background 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.titaudou-play-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #1a3a6b;
}

.titaudou-video-card:hover .titaudou-play-icon {
	transform: scale(1.1);
	background: #fff;
}

/* ===================== Video Single Player ===================== */
.titaudou-video-player-wrap {
	max-width: 960px;
	margin: 0 auto 40px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
}

.titaudou-video-player {
	display: block;
	width: 100%;
	max-height: 540px;
	background: #000;
}

.titaudou-video-single .titaudou-single-featured {
	max-width: 960px;
	margin: 0 auto 40px;
}

.titaudou-video-single .titaudou-single-featured img {
	width: 100%;
	border-radius: 8px;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
	.titaudou-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.titaudou-archive-title {
		font-size: 36px;
	}

	.titaudou-single-title {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	.titaudou-archive-banner {
		min-height: 300px;
	}

	.titaudou-archive-title {
		font-size: 30px;
	}

	.titaudou-archive-content {
		padding: 35px 0 50px;
	}

	.titaudou-category-filter {
		margin-bottom: 30px;
	}

	.titaudou-category-filter a {
		padding: 6px 14px;
		font-size: 13px;
	}

	.titaudou-single-banner {
		padding: 50px 0 35px;
	}

	.titaudou-single-title {
		font-size: 24px;
	}

	.titaudou-single-content {
		padding: 35px 0 50px;
	}

	.titaudou-single-body {
		font-size: 15px;
	}

	.titaudou-breadcrumbs {
		font-size: 13px;
	}

	.titaudou-breadcrumbs .separator {
		margin: 0 5px;
	}
}

@media (max-width: 600px) {
	.titaudou-grid {
		grid-template-columns: 1fr;
	}

	.titaudou-card-thumb {
		height: 220px;
	}

	.titaudou-pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		line-height: 38px;
		padding: 0 8px;
		font-size: 13px;
	}

	.titaudou-single-nav {
		flex-direction: column;
	}

	.titaudou-single-nav .next {
		margin-left: 0;
		text-align: left;
	}
}

/* ===================== Section Intro (Honors / Production Base) ===================== */
.titaudou-section-intro {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 50px;
}

.titaudou-section-intro-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a3a6b;
	margin: 0 0 16px;
	line-height: 1.3;
}

.titaudou-section-intro-text {
	font-size: 16px;
	color: #555;
	line-height: 1.8;
}

.titaudou-section-intro-text p {
	margin: 0 0 12px;
}

.titaudou-section-intro-text p:last-child {
	margin-bottom: 0;
}

/* ===================== Honors Grid ===================== */
.titaudou-honors-grid {
	grid-template-columns: repeat(3, 1fr);
}

.titaudou-honor-card {
	text-align: center;
}

.titaudou-honor-thumb {
	height: 220px;
}

.titaudou-honor-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===================== Production Base Sections ===================== */
.titaudou-pb-sections {
	margin-top: 20px;
}

.titaudou-pb-section {
	display: flex;
	align-items: center;
	gap: 50px;
	margin-bottom: 60px;
}

.titaudou-pb-section:last-child {
	margin-bottom: 0;
}

.titaudou-pb-section-image {
	flex: 0 0 50%;
	max-width: 50%;
}

.titaudou-pb-section-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.titaudou-pb-section-text {
	flex: 1;
}

.titaudou-pb-section-title {
	font-size: 26px;
	font-weight: 700;
	color: #1a3a6b;
	margin: 0 0 16px;
	line-height: 1.3;
}

.titaudou-pb-section-content {
	font-size: 16px;
	color: #555;
	line-height: 1.8;
}

.titaudou-pb-section-content p {
	margin: 0 0 12px;
}

.titaudou-pb-section-content p:last-child {
	margin-bottom: 0;
}

/* Reverse layout for alternating sections */
.titaudou-pb-section-reverse {
	flex-direction: row-reverse;
}

/* Responsive for PB sections */
@media (max-width: 768px) {
	.titaudou-pb-section {
		flex-direction: column !important;
		gap: 25px;
		margin-bottom: 45px;
	}

	.titaudou-pb-section-image {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.titaudou-section-intro-title {
		font-size: 26px;
	}

	.titaudou-pb-section-title {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.titaudou-honors-grid {
		grid-template-columns: 1fr;
	}

	.titaudou-honor-thumb {
		height: 200px;
	}
}

/* ===================== Product Carousel ===================== */
.titaudou-product-carousel {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto 40px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
	background: #f5f5f7;
}

.titaudou-carousel-track {
	display: flex;
	width: 100%;
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.35, 1);
}

.titaudou-carousel-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f7;
	overflow: hidden;
}

.titaudou-product-carousel .titaudou-carousel-slide img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	display: block !important;
}

.titaudou-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	z-index: 5;
	font-size: 24px !important;
	font-weight: bold !important;
	line-height: 1 !important;
	color: #1a3a6b !important;
	font-family: Arial, sans-serif !important;
	padding: 0 !important;
}

.titaudou-carousel-arrow:hover {
	background: #1a3a6b;
	box-shadow: 0 4px 16px rgba(26, 58, 107, 0.35);
	color: #fff !important;
}

.titaudou-carousel-prev {
	left: 16px;
}

.titaudou-carousel-next {
	right: 16px;
}

.titaudou-carousel-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}

.titaudou-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
	padding: 0;
}

.titaudou-carousel-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Carousel responsive */
@media (max-width: 768px) {
	.titaudou-carousel-slide {
		height: 340px;
	}

	.titaudou-carousel-arrow {
		width: 40px;
		height: 40px;
	}

	.titaudou-carousel-arrow svg {
		width: 18px;
		height: 18px;
	}

	.titaudou-carousel-prev {
		left: 8px;
	}

	.titaudou-carousel-next {
		right: 8px;
	}
}

@media (max-width: 480px) {
	.titaudou-carousel-slide {
		height: 260px;
	}

	.titaudou-product-carousel {
		border-radius: 8px;
	}
}
