@charset "utf-8";
/* CSS Document - Dự án Du lịch ba miền (Tự động co dãn Laptop & Điện thoại) */

/*ĐỊNH DẠNG CHUNG*/
/* 1. Reset bề mặt toàn trang */

        body {
            background-color: #ffffff;
            margin: 0;
            padding: 0;
            font-family: "Times New Roman", serif;
            color: #333333;
        }

/* 2. Khung bọc nội dung bài viết (Tự co dãn linh hoạt) */
.container {
	max-width: 1100px;  /* Tối đa 1100px trên Laptop */
	margin: 0 auto;     /* Tự động căn giữa màn hình */
	padding: 0 20px;    /* Lề an toàn cho Điện thoại */
	width: 100%;
	box-sizing: border-box;
}

/* Định dạng thẻ văn bản */
p {
	font-size: 16px;
	color: #333333;
	line-height: 1.7;
	text-align: justify;
	margin-top: 0;
	margin-bottom: 15px;
}

/* Định dạng Tiêu đề */
h1, h2, h3 {
	color: #8B5E3C;
	font-family: "Times New Roman", Times, serif;
	font-weight: bold;
	margin-top: 25px;
	margin-bottom: 15px;
}

h1 { font-size: 30px; }
h2 { font-size: 22px; text-transform: uppercase; }
h3 { font-size: 19px; }

/* TẦNG 1: ĐỊNH DẠNG MẶC ĐỊNH CHO ĐIỆN THOẠI (< 768PX)*/
/* Header Cố định trên Điện thoại */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #F7F2E8;
	border-bottom: 2px solid #8B5E3C;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	width: 100%;
}

.header-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
}

.logo-img {
	height: 65px;
	width: auto;
	display: block;
}
.banner {
	width: 100%;
	margin-bottom: 25px;
}

 .banner-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
.chuyen-trang {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin: 40px 0;
	flex-wrap: wrap; /* Tự co xuống dòng gọn gàng trên di động */
}
.chuyen-trang.hai-ben {
	justify-content: space-between;
}

/* Kiểu 2: Đẩy 1 nút duy nhất về hẳn bên phải (Dành cho trang chủ) */
.chuyen-trang.chu-phai {
	justify-content: flex-end;
}
 footer {
            text-align: center;
            padding: 20px;
            background-color: #F7F2E8;
            color: #8B5E3C;
            margin-top: 30px;
            border-top: 2px solid #8B5E3C;
            font-weight: bold;
        }
.site-footer {
  background-color: #F7F2E8; /* Màu nền kem đồng bộ */
  border-top: 2px solid #8B5E3C; /* Đường viền nâu trên cùng */
  margin-top: 40px;
}
/* Định dạng chữ phần Thông tin liên hệ */
.contact-info p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 10px 0;
  text-align: center;
}

.contact-info strong {
  color: #8B5E3C;
}
.copyright p {
text-align:center;
  margin-top: 25px;
  padding-top: 7px;
  border-top: 1px dashed #c49a3a;
  font-weight: bold;
  font-size: 14px;
  color:  #8B5E3C;
}

/* Nút 3 gạch */
.hamburger {
	display: flex;
	width: 30px;
	height: 20px;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.hamburger span {
	width: 100%;
	height: 3px;
	background-color: #C49A3A;
	border-radius: 2px;
}

.desktop-nav {
	display: none; /* Mặc định ẩn menu ngang trên Điện thoại */
}
.btn-center {
	text-align: center;
	margin-top: 20px;
	margin-bottom: 20px;
}
.nut-xem-them {
	display: inline-block;
	background-color: #C49A3A;
	color: #3E2723 !important;
	font-family: "Times New Roman", Times, serif;
	font-size: 17px;
	font-weight: bold;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 25px;
	border: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nut-xem-them:hover {
	background-color: #8B5E3C;
	color: #ffffff !important;
}

/* Menu Trượt Side Drawer & Overlay */
.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 998;
}

.menu-overlay.open { opacity: 1; visibility: visible; }

.side-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 75%;
	max-width: 300px;
	height: 100vh;
	background-color: #ffffff;
	z-index: 9999;
	padding: 20px;
	box-sizing: border-box;
	transition: right 0.3s ease;
}

.side-drawer.open { right: 0; }

.close-btn {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #8B5E3C;
	color: #ffffff;
	border: none;
	font-size: 22px;
	width: 34px;
	height: 34px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.mobile-nav-links {
	margin-top: 60px;
	display: flex;
	flex-direction: column;
}

.mobile-nav-links a {
	color: #333333;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	padding: 14px 10px;
	border-bottom: 1px solid #eeeeee;
}
/* TẦNG 2: BỘ QUY TẮC DÀNH RIÊNG CHO LAPTOP (>= 768PX) */
@media screen and (min-width: 768px) {
	
/* Header Laptop: Ẩn nút 3 gạch, Hiện menu ngang */
	.hamburger {
		display: none;
	}

	.desktop-nav {
		display: flex !important;
		gap: 20px;
	}

	.desktop-nav a {
		color: #8B5E3C;
		text-decoration: none;
		font-weight: bold;
		font-size: 16px;
		padding: 5px 10px;
		transition: color 0.2s ease, border-bottom 0.2s ease;
	}

	.desktop-nav a:hover,
	.desktop-nav a.active {
		color: #508C5A;
		border-bottom: 2px solid #508C5A;
	}
}


/* PHẦN DÀNH CHO TRANG CHỦ */

.gioi-thieu-lang-nghe {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
}

.cot-chu { flex: 1; }
.cot-anh { width: 100%; }

.cot-anh img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}

/* Danh sách 3 Thẻ Làng Nghề (Xếp 1 cột trên Điện thoại) */
.card-section {
	margin-bottom: 35px;
}

.card-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 20px 0;
	align-items: center;
}

.card {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.card-content {
	padding: 16px;
}

.card-content h3 {
	margin-top: 0;
	color: #8B5E3C;
}

.card-content p {
	font-size: 14px;
	color: #666666;
	margin: 0;
}
.story-box {
	background-color: #F7F2E8;
	padding: 20px 22px;
	border-radius: 8px;
	border-left: 4px solid #8B5E3C;
	margin-top: 15px;
}
.video {
  display: block;
  margin: 20px auto;
  width: 65%;        
  max-width: 700px;  
  border-radius: 8px;

}
@media screen and (min-width: 768px) {
	.gioi-thieu-lang-nghe {
		flex-direction: row;
		align-items: center;
		gap: 40px;
	}
	
	.cot-anh {
		flex: 0 0 350px; /* Khóa độ rộng ảnh 350px trên laptop */
	}

	/* 3. Khối 3 Thẻ Làng Nghề Laptop: Chuyển thành CSS Grid 3 cột song song */
	.card-container {
		display: grid;
		grid-template-columns: repeat(3, 1fr); /* 3 cột bằng nhau 100% */
		gap: 20px;
	}

	.card {
		width: 100%;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}	
}


/* PHẦN DÀNH CHO TRANG EXPLORE*/

   .banner-noidung {
            position: relative; /* Mốc định vị cho chữ nổi */
            width: 100%;
            height: 260px;
            background-color: #333333;
            overflow: hidden;
        }

        .banner-noidung-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.7;
            display: block;
        }

        .banner-noidung-text {
            position: absolute; /* Đưa chữ nổi lên trên ảnh */
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Căn chính giữa tuyệt đối */
            text-align: center;
            color: #ffffff;
            width: 90%;
            max-width: 800px;
            z-index: 2;
        }

        .banner-noidung-text h1 {
            font-size: 32px;
            margin: 0 0 10px 0;
            text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
            letter-spacing: 1px;
			color: #ffffff;
        }
        .banner-noidung-text p {
            font-size: 18px;
            margin: 0;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
            font-style: italic;
		    color: #ffffff;
			text-align:center;
        }

 /* Khung chứa chính & Tiêu đề phân nhóm Miền */
        .container {
            max-width: 1100px;
            margin: 30px auto;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .region-section {
            margin-bottom: 50px;
        }

        .region-heading {
            color: #8B5E3C;
            font-size: 26px;
            padding-bottom: 8px;
            border-bottom: 3px solid #C49A3A;
            margin-bottom: 25px;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

 /* Sửa lỗi Bố cục 2 cột (Flexbox Layout Fix) */
        .village-list {
            display: flex;
            flex-direction: column;
        }

        .village-row {
            display: flex;             /* Ép 2 cột nằm ngang */
            flex-direction: row;       /* Đảm bảo hướng xếp nằm ngang */
            align-items: center;
            padding: 25px 0;
            border-bottom: 1px solid #E0E0E0;
            gap: 30px;                 /* Khoảng cách giữa cột ảnh và cột chữ */
            width: 100%;
            box-sizing: border-box;
        }

        .col-image {
            flex: 0 0 280px;          /* Cố định chiều rộng cột ảnh 280px */
            width: 280px;
        }

        .col-image img {
            width: 100%;
            height: 200px;
            object-fit: cover;         /* Vừa khít khung ảnh, không bị méo */
            border-radius: 4px;
            border: 1px solid #C49A3A;
            display: block;
        }

        .col-content {
            flex: 1;                   /* Cột nội dung tự mở rộng chiếm phần còn lại */
        }

        .village-title {
            margin: 0 0 6px 0;
            color: #8B5E3C;
            font-size: 22px;
        }

        .village-location {
            display: block;
            font-weight: bold;
            color: #508C5A;
            font-size: 15px;
            margin-bottom: 10px;
            font-style: italic;
        }

        .village-desc {
            line-height: 1.7;
            color: #2c2c2c;
            font-size: 16px;
            margin: 0;
            text-align: justify;
        }

 /* Tương thích di động (Chuyển thành 1 cột trên điện thoại < 768px) */
        @media (max-width: 768px) {
            .banner-noidung {
                height: 180px;
            }

            .banner-noidung-text h1 {
                font-size: 22px;
            }

            .banner-noidung-text p {
                font-size: 14px;
            }

            .village-row {
                flex-direction: column; /* Chuyển sang 1 cột trên màn hình nhỏ */
            }

            .col-image {
                width: 100%;
                flex: none;
            }

            .col-image img {
                height: 200px;
            }
        }
		
/* PHẦN DÀNH CHO TRANG ABOUT US*/
.column li {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 12px;
  position: relative;
}
.form-box {
    background-color: #F7F2E8; /* Màu nền kem */
    padding: 20px 25px;        /* Khoảng cách chữ và viền nền */
    border-radius: 8px;        /* Bo góc nhẹ */
    max-width: 450px;          /* Chiều rộng khung */
    margin: 30px auto;         /* Căn giữa màn hình */
    border: 1px solid #ddd;    /* Viền khung nhẹ */
}

/* Cho các ô nhập liệu vừa vặn trong khung */
.form-box input, 
.form-box textarea {
    width: 100%;
    box-sizing: border-box;
}

		.member-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

.member-table th, 
.member-table td {
  border: 1px solid #dcc8b5;
  padding: 8px 10px;
  text-align: center;
  font-size: 14px;
}

.member-table th {
  background-color: #8B5E3C;
  color: white;
}

