/*
Theme Name: cupdien
*/
body {
  line-height: 1.6;
	margin: 0;
}

* {
	box-sizing: border-box;
}

/* Headings */
h1,
h2,
h3 {
  line-height: 1.2;
}

h4,
h5,
h6 {
  line-height: 1.3;
}

/* UI text */
button,
.nav,
.menu a,
label {
  line-height: 1.3;
}

/* Small text / caption */
small,
.caption,
.meta,
.note {
  line-height: 1.8;
}

/* Form input */
input,
textarea,
select {
  line-height: 1.4;
}

/* Table */
td,
th {
  line-height: 1.5;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.cd-container {
	max-width: 1200px;
	padding: 30px;
	margin: 0 auto;
}

@media (max-width: 768px) {
  .cd-container {
    padding: 15px;
  }
}

@media (max-width: 480px) { 
  .cd-container {
    padding: 10px; 
  }
}

/* Two-column layout for main content and sidebar */
body {
	display: flex;
	flex-direction: column;
}

.site-content {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 0;
	width: 100%;
}

.main-content-area {
	min-width: 0;
}

.sidebar-area {
	position: sticky;
	top: 30px;
	align-self: start;
}

@media (max-width: 992px) {
	.site-content {
		grid-template-columns: 1fr;
	}
	
	.sidebar-area {
		position: static;
	}
}
/* Shared styles for category/archive pages (moved from category.php) */
.category-page {
	padding: 20px 0;
}

.category-header {
	text-align: center;
	margin-bottom: 40px;
	padding: 30px 0;
	background: linear-gradient(135deg, #f6b23e 0%, #e15729e0 100%);
	color: white;
	border-radius: 10px;
}

.category-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-description {
	font-size: 1.1rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}

.posts-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 40px;
}

.post-item {
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid #e5e5e5;
	flex: 1 1 calc(33.333% - 17px);
	min-width: 300px;
	max-width: 400px;
}

/* Thumbnail inside post card */
.post-thumb-link {
	display: block;
	width: 100%;
	overflow: hidden;
}

.post-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	display: block;
}

.post-thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f3f5;
	color: #868e96;
}

@media (max-width: 768px) {
	.post-thumb {
		aspect-ratio: 4 / 3;
	}
}

.post-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-type-dien-luc {
	border-left: 4px solid #f39c12;
}

.post-type-post {
	border-left: 4px solid #f6b23e;
}

.post-content {
	padding: 20px;
}

.post-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.post-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.3s ease;
}

.post-title a:hover {
	color: #f6b23e;
}

.post-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 0.9rem;
	color: #7f8c8d;
}

.post-meta i {
	margin-right: 5px;
}

.post-type-label {
	font-weight: 500;
}

.post-type-dien-luc .post-type-label {
	color: #f39c12;
}

.post-type-post .post-type-label {
	color: #f6b23e;
}

.post-excerpt {
	color: #5a6c7d;
	line-height: 1.6;
	margin-bottom: 15px;
}

.post-categories {
	margin-bottom: 15px;
}

.category-tag {
	display: inline-block;
	background: #ecf0f1;
	color: #2c3e50;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.8rem;
	text-decoration: none;
	margin-right: 5px;
	margin-bottom: 5px;
	transition: all 0.3s ease;
}

.category-tag:hover {
	background: #f6b23e;
	color: white;
}

.post-footer {
	border-top: 1px solid #ecf0f1;
	padding-top: 15px;
}

.read-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #f6b23e;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.read-more-btn:hover {
	color: #2980b9;
	transform: translateX(3px);
}

.category-pagination {
	text-align: center;
	margin: 40px 0;
}

.category-pagination .page-numbers {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 5px;
}

.category-pagination .page-numbers li {
	display: inline-block;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
	display: block;
	padding: 10px 15px;
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 5px;
	color: #f6b23e;
	text-decoration: none;
	transition: all 0.3s ease;
}

.category-pagination .page-numbers a:hover,
.category-pagination .page-numbers .current {
	background: #f6b23e;
	color: white;
	border-color: #f6b23e;
}

.no-posts {
	text-align: center;
	padding: 80px 20px;
}

.no-posts-content {
	max-width: 400px;
	margin: 0 auto;
}

.no-posts-content i {
	color: #bdc3c7;
	margin-bottom: 20px;
}

.no-posts-content h3 {
	color: #2c3e50;
	margin-bottom: 15px;
}

.no-posts-content p {
	color: #7f8c8d;
	margin-bottom: 25px;
	line-height: 1.6;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btn-primary {
	background: #f6b23e;
	color: white;
}

.btn-primary:hover {
	background: #2980b9;
	transform: translateY(-2px);
}

.child-categories {
	margin-top: 50px;
	padding-top: 40px;
	border-top: 2px solid #ecf0f1;
}

.child-categories h3 {
	text-align: center;
	margin-bottom: 30px;
	color: #2c3e50;
	font-size: 1.8rem;
}

.child-categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.child-category-item {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	overflow: hidden;
	transition: all 0.3s ease;
}

.child-category-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.child-category-link {
	display: block;
	padding: 20px;
	color: inherit;
	text-decoration: none;
}

.child-category-link h4 {
	color: #2c3e50;
	margin: 0 0 10px 0;
	font-size: 1.2rem;
}

.child-category-link p {
	color: #7f8c8d;
	margin: 0 0 10px 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.post-count {
	color: #f6b23e;
	font-size: 0.85rem;
	font-weight: 500;
}

@media (max-width: 768px) {
	.category-title {
		font-size: 2rem;
	}
    
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
    
	.post-meta {
		flex-direction: column;
		gap: 8px;
	}
    
	.child-categories-grid {
		grid-template-columns: 1fr;
	}
}

