.tt-wrapper {
	margin: 0 auto;
	box-sizing: border-box;
}

.tt-wrapper *, .tt-wrapper *::before, .tt-wrapper *::after {
	box-sizing: border-box;
}

/* KHUNG TÌM KIẾM CHUẨN THEO ẢNH */
.tt-search-bar {
	position: relative;
	max-width: 620px;
	margin: 0 auto 40px;
	display: flex;
	align-items: center;
	background: #f0f5ff;
	border: 1.5px solid var(--color-electric);
	border-radius: 35px;
	padding: 5px 18px;
	transition: all 0.3s ease;
}

.tt-search-bar:focus-within {
	box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.2);
}

.tt-search-bar .search-icon {
	color: #64748b;
	font-size: 15px;
	margin-right: 12px;
}

.tt-search-bar input {
	flex: 1;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none;
	margin-bottom: 0;
	font-size: 14.5px;
	color: var(--deep-cool-gray);
}

.tt-search-bar input::placeholder {
	color: #64748b;
}

.tt-search-bar .clear-icon {
	background: none;
	border: none;
	margin-bottom: 0;
	margin-right: 0;
	color: #94a3b8;
	font-size: 15px;
	cursor: pointer;
	padding: 0 4px;
	display: flex;
	align-items: center;
}

.tt-search-bar .clear-icon:hover {
	color: var(--deep-cool-gray);
}

/* PHẦN TOP: 1 BÀI TO + 3 BÀI NHỎ (CÂN BẰNG CHIỀU CAO 2 BÊN) */
.tt-top-section {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 25px;
	margin-bottom: 35px;
	align-items: stretch;
}

/* 1. Bài Featured lớn bên trái */
.tt-main-featured {
	background: var(--color-white);
	border: 1px solid #edf2f7;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tt-featured-img {
	height: 400px;
	overflow: hidden;
	flex-shrink: 0;
}

.tt-featured-img a {
	display: block;
	height: 100%;
}

.tt-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.tt-main-featured:hover .tt-featured-img img {
	transform: scale(1.03);
}

.tt-featured-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tt-meta, .tt-card-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #64748b;
	font-size: 13px;
	margin-bottom: 12px;
}

.tt-meta i, .tt-card-meta i, .tt-date i {
	margin-right: 5px;
	color: #94a3b8;
}

.tt-featured-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px 0;
}

.tt-featured-title a, .tt-side-title a, .tt-card-title a {
	color: var(--color-main);
	text-decoration: none;
	transition: color 0.2s;
}

.tt-featured-title a:hover, .tt-side-title a:hover, .tt-card-title a:hover {
	color: var(--color-electric);
}

.tt-excerpt {
	color: #64748b;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.tt-btn-dark {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: var(--color-main);
	color: var(--color-white) !important;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	margin-top: auto;
	align-self: flex-start;
	transition: background 0.2s;
}

.tt-btn-dark:hover {
	background: #1a202c;
}

/* 2. Cột 3 bài nhỏ bên phải */
.tt-side-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
}

.tt-side-item {
	flex: 1;
	display: flex;
	gap: 16px;
	background: var(--color-white);
	border: 1px solid #edf2f7;
	border-radius: 16px;
	padding: 14px;
	align-items: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tt-side-thumb {
	width: 170px;
	height: 100%;
	min-height: 90px;
	flex-shrink: 0;
}

.tt-side-thumb a {
	display: block;
	height: 100%;
}

.tt-side-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.tt-side-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tt-date {
	font-size: 12px;
	color: #64748b;
}

.tt-side-title {
	font-size: 15px;
	font-weight: 700;
	margin: 6px 0 8px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tt-link-more {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-electric);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tt-link-more:hover {
	text-decoration: underline;
}

/* LƯỚI 3 CỘT BÊN DƯỚI */
.tt-bottom-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	margin-bottom: 40px;
}

.tt-grid-card {
	background: var(--color-white);
	border: 1px solid #edf2f7;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	display: flex;
	flex-direction: column;
}

.tt-card-thumb img {
	width: 100%;
	height: 195px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.tt-grid-card:hover .tt-card-thumb img {
	transform: scale(1.03);
}

.tt-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.tt-card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px 0;
}

.tt-card-meta {
	margin-top: auto;
	margin-bottom: 14px;
}

/* PHÂN TRANG */
.tt-pagination {
	text-align: center;
	margin-top: 30px;
}

.tt-pagination ul {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 6px;
}

.tt-pagination li a, .tt-pagination li span {
	display: block;
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	color: var(--deep-cool-gray);
	text-decoration: none;
	font-size: 14px;
}

.tt-pagination li span.current {
	background: var(--color-electric);
	color: var(--color-white);
	border-color: var(--color-electric);
}

.tt-post-item {
	transition: opacity 0.25s ease;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.tt-top-section {
		grid-template-columns: 1fr;
	}

	.tt-side-thumb {
		height: 100px;
	}

	.tt-bottom-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tt-search-bar {
		padding: 0 18px;
		margin: 0 auto 20px;
	}

	.tt-bottom-grid {
		grid-template-columns: 1fr;
	}

	.tt-side-item {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.tt-featured-img {
		height: 250px;
	}

	.tt-side-thumb {
		width: 100%;
		height: 160px;
	}

	.tt-side-thumb img {
		width: 100%;
		height: 100%;
	}
}