/* ==========================================================================
   Blakletterpress — Clean Developer Monospace Theme (Đồng bộ với hệ thống Index)
   Assignment 03 - Bai tap 4 | Ha Tuan Dung - 20235299
   ========================================================================== */

/* 1. Global Reset & Box Model */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	background-color: #f8fafc;
	color: #1e293b;
	font-size: 15px;
	line-height: 1.6;
}

body {
	font-family: 'CaskaydiaCove Nerd Font Mono', 'Cascadia Code', Consolas, Monaco, 'Courier New', monospace;
	background-color: #f8fafc;
	color: #1e293b;
	padding: 30px 20px;
	max-width: 1000px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Base Links */
a {
	color: #2563eb;
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	text-decoration: underline;
	color: #1d4ed8;
}

img {
	max-width: 100%;
	display: block;
}

/* ==========================================================================
   2. Header & Navigation (Đồng bộ header của index.html)
   ========================================================================== */
.site-header {
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 16px;
	margin-bottom: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.site-name {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.site-name:hover {
	text-decoration: none;
	color: #1e40af;
}

.tagline {
	font-size: 14px;
	color: #475569;
	margin-right: auto;
	padding-left: 8px;
	border-left: 2px solid #cbd5e1;
	line-height: 1.4;
}

.main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 0;
	margin: 0;
}

.main-nav li a {
	font-size: 14px;
	font-weight: 600;
	color: #2563eb;
	padding: 4px 8px;
	border-radius: 4px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	transition: all 0.15s ease;
}

.main-nav li a:hover {
	background: #dbeafe;
	color: #1d4ed8;
	text-decoration: none;
}

/* ==========================================================================
   3. Layout Grid (Bố cục 2 cột responsive)
   ========================================================================== */
.layout {
	display: grid;
	grid-template-columns: 1fr 310px;
	gap: 24px;
	align-items: start;
	flex: 1;
}

main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

/* Container Style đồng bộ .tree-container và .box-container */
main > article,
main > section,
.sidebar {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 24px 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Tiêu đề mục */
article#gioi-thieu h1,
section#gia-tri h2,
section#doi-ngu h2,
section#lien-he h2,
.sidebar h2 {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #cbd5e1;
	display: flex;
	align-items: center;
	gap: 8px;
}

article#gioi-thieu h1 {
	font-size: 20px;
}

/* ==========================================================================
   4. Article: Giới thiệu Blakletterpress
   ========================================================================== */
article#gioi-thieu figure {
	margin: 16px 0 20px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	background: #f8fafc;
}

article#gioi-thieu figure img {
	width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: cover;
}

article#gioi-thieu figcaption {
	padding: 8px 14px;
	font-size: 13px;
	color: #64748b;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

article#gioi-thieu p {
	font-size: 14px;
	line-height: 1.7;
	color: #334155;
	margin-bottom: 12px;
}

article#gioi-thieu p:last-child {
	margin-bottom: 0;
}

article#gioi-thieu strong {
	color: #1e40af;
	background: #eff6ff;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #dbeafe;
	font-weight: 700;
}

/* ==========================================================================
   5. Section: Giá trị cốt lõi
   ========================================================================== */
.value-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 0;
	margin: 0;
}

.value-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.2s ease;
}

.value-card:hover {
	background: #ffffff;
	border-color: #94a3b8;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.value-card h3 {
	font-size: 15px;
	font-weight: 700;
	color: #1e40af;
	margin: 0;
}

.value-card p {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   6. Section: Đội ngũ
   ========================================================================== */
.team-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 0;
	margin: 0;
}

.member {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 18px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.member:hover {
	background: #ffffff;
	border-color: #94a3b8;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.member img {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #cbd5e1;
	margin-bottom: 4px;
}

.member h3 {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.member p {
	font-size: 12px;
	color: #475569;
	margin: 0;
	line-height: 1.4;
}

/* ==========================================================================
   7. Section: Liên hệ
   ========================================================================== */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.contact-form p {
	margin: 0;
}

.contact-form p br {
	display: none;
}

.contact-form label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 9px 12px;
	font-family: inherit;
	font-size: 14px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	color: #1e293b;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form textarea {
	min-height: 90px;
	resize: vertical;
	line-height: 1.5;
}

.contact-form button[type="submit"] {
	font-family: inherit;
	background-color: #2563eb;
	color: #ffffff;
	border: 1px solid #1d4ed8;
	border-radius: 6px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	align-self: flex-start;
	transition: all 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-form button[type="submit"]:hover {
	background-color: #1d4ed8;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   8. Sidebar: Bài viết gần đây
   ========================================================================== */
.sidebar .recent {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.sidebar .recent li {
	margin: 10px 0;
	position: relative;
	padding-left: 16px;
	font-size: 13px;
	line-height: 1.5;
}

.sidebar .recent li::before {
	content: "▪";
	position: absolute;
	left: 0;
	top: 0;
	color: #94a3b8;
}

.sidebar .recent li a {
	color: #2563eb;
	text-decoration: none;
}

.sidebar .recent li a:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.sidebar > p {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	padding-top: 14px;
	border-top: 1px dashed #cbd5e1;
}

/* ==========================================================================
   9. Footer: Đồng bộ phong cách hệ thống
   ========================================================================== */
.site-footer {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 24px 28px 18px;
	margin-top: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.footer-cols {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 0 0 18px;
	margin: 0;
	border-bottom: 1px dashed #cbd5e1;
}

.footer-cols li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-cols h3 {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.footer-cols p {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	margin: 0;
}

.copyright {
	margin-top: 16px;
	text-align: center;
	font-size: 13px;
	color: #94a3b8;
}

.copyright small {
	font-size: inherit;
}

/* ==========================================================================
   10. Responsive Media Queries (Màn hình PC, Tablet, Mobile)
   ========================================================================== */

/* Tablet (Màn hình <= 900px) */
@media (max-width: 900px) {
	.layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

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

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

	.footer-cols {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
}

/* Mobile (Màn hình <= 600px) */
@media (max-width: 600px) {
	body {
		padding: 16px 12px;
	}

	.site-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.tagline {
		padding-left: 0;
		border-left: none;
	}

	.main-nav ul {
		width: 100%;
		justify-content: flex-start;
	}

	main > article,
	main > section,
	.sidebar,
	.site-footer {
		padding: 18px 16px;
	}

	.value-list {
		grid-template-columns: 1fr;
	}

	.team-list {
		grid-template-columns: 1fr;
	}

	.footer-cols {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.contact-form button[type="submit"] {
		width: 100%;
	}
}
