@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ---- Biến màu ---- */
:root {
  --red:        #c0392b;
  --red-dark:   #922b21;
  --red-light:  #e74c3c;
  --gold:       #d4ac0d;
  --gold-light: #f9e04b;
  --green:      #1e8449;
  --green-dark: #145a32;
  --cream:      #fdf6e3;
  --cream-dark: #f5e6c8;
  --text-dark:  #2c1810;
  --text-mid:   #5d4037;
  --white:      #ffffff;
  --shadow:     rgba(0,0,0,0.18);
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  background: var(--red-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 12px var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
}

.nav-brand .brand-icon { font-size: 28px; }

.nav-brand h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links li a {
  color: var(--cream);
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--gold);
  color: var(--red-dark);
  font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--red-dark);
  color: var(--cream-dark);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.site-footer .footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.site-footer .footer-sub { color: var(--cream-dark); opacity: 0.85; }

/* =============================================
   SECTION WRAPPER
   ============================================= */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: 2rem;
  color: var(--red);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 48px;
  font-size: 1rem;
}

/* =============================================
   HERO BANNER (Trang chủ)
   ============================================= */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(146,43,33,0.72) 0%, rgba(20,90,50,0.55) 100%),
    url('https://www.tierra.vn/wp-content/uploads/2025/01/hinh-nen-nam-moi-binh-ngo-2026-lam-mau-thiep-chuc-tet.jpg')
    center/cover no-repeat;
}

/* Hoa mai overlay */
.hero-bg::after {
  content: '🌸';
  position: absolute;
  font-size: 180px;
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 20px;
  animation: fadeUp 1s ease both;
}

.hero-content .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 40px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.btn-gold   { background: var(--gold); color: var(--red-dark); }
.btn-outline{ background: transparent; border: 2px solid var(--white); color: var(--white); margin-left: 12px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   INTRO SECTION (Trang chủ)
   ============================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro-text h3 {
  font-size: 1.7rem;
  color: var(--red);
  margin-bottom: 16px;
}

.intro-text p { color: var(--text-mid); margin-bottom: 14px; }

.intro-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
  position: relative;
}

.intro-img::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  z-index: -1;
}

.intro-img img { width: 100%; height: 340px; object-fit: cover; }

/* =============================================
   HIGHLIGHT CARDS (Mục nổi bật)
   ============================================= */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hl-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.hl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.hl-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.hl-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hl-card-body h4 {
  font-size: 1.15rem;
  color: var(--red);
  margin-bottom: 8px;
}

.hl-card-body p {
  color: var(--text-mid);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 16px;
}

.hl-card-body .btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  transition: background 0.2s;
}

.hl-card-body .btn-red:hover { background: var(--red-dark); }

/* =============================================
   GALLERY (Hình ảnh tiêu biểu)
   ============================================= */
.gallery-section { background: var(--cream-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(146,43,33,0.85));
  color: var(--white);
  padding: 24px 12px 12px;
  font-size: 0.85rem;
  font-style: italic;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* =============================================
   QUOTE SECTION
   ============================================= */
.quote-section {
  background: var(--green-dark);
  padding: 64px 20px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

/* =============================================
   SECTION BACKGROUNDS (thay inline style)
   ============================================= */
.section-white      { background: var(--white);      padding: 80px 0; }
.van-hoa-section    { background: var(--cream-dark);  padding: 80px 0; }

.quote-section blockquote {
  max-width: 720px;
  margin: 0 auto;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding: 0 40px;
}

.quote-section blockquote::before,
.quote-section blockquote::after {
  content: '"';
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.4em;
}

.quote-section cite {
  display: block;
  margin-top: 20px;
  color: var(--gold-light);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* =============================================
   DETAIL PAGE – Nội dung chi tiết
   ============================================= */

/* Divider between sections */
.section-divider {
  border: none;
  border-top: 2px dashed var(--gold);
  max-width: 200px;
  margin: 0 auto;
}

/* Giới thiệu quê hương */
.gioi-thieu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-box {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.info-box h4 {
  color: var(--red);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.info-box p { color: var(--text-mid); font-size: 0.93rem; }

/* Phong tục */
.phong-tuc-section { background: var(--cream-dark); }

.phong-tuc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start
}

.phong-tuc-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: 0 4px 18px var(--shadow);
}

.phong-tuc-card .ptc-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.phong-tuc-card h4 {
  color: var(--green-dark);
  font-size: 1.1rem;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
}

.phong-tuc-card ul {
  list-style: none;
  padding: 0;
}

.phong-tuc-card ul li {
  position: relative;
  padding-left: 18px;
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 7px;
}

.phong-tuc-card ul li .private{
  height: 350px;
}

.phong-tuc-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 4px;
}

/* Ẩm thực */
.am-thuc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.food-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.25s;
}

.food-card:hover { transform: translateY(-4px); }

.food-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.food-card-body {
  padding: 16px;
}

.food-card-body h4 {
  color: var(--red);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.food-card-body p {
  color: var(--text-mid);
  font-size: 0.88rem;
}

/* Văn hóa */
.van-hoa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.vh-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 3px 14px var(--shadow);
}

.vh-item .private{
  height: 450px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center bottom;
  margin-top: 10px;
  border-radius: 8px;
}

.vh-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.vh-text h4 {
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.vh-text p { color: var(--text-mid); font-size: 0.9rem; }

.vh-img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-top: 12px;
  display: block;
}

/* Ẩn thẻ img khi src rỗng – tự hiện khi bạn điền src */
img[src=""] { display: none; }

/* Ký ức */
.ky-uc-section { background: var(--cream-dark); }

.ky-uc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ky-uc-item {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px var(--shadow);
  border-top: 4px solid var(--red);
  position: relative;
}

.ky-uc-item .ku-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.ky-uc-item h4 {
  color: var(--red-dark);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.ky-uc-item p {
  color: var(--text-mid);
  font-size: 0.92rem;
  font-style: italic;
}

/* Liên hệ */
.lien-he-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 6px 24px var(--shadow);
}

.contact-form h4 {
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); }

.map-box {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

.author-info {
  background: var(--red-dark);
  color: var(--cream);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 24px;
}

.author-info h5 {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}

.author-info p { font-size: 0.88rem; opacity: 0.9; }

/* Page Hero (detail pages) */
.page-hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '🧧';
  position: absolute;
  font-size: 200px;
  opacity: 0.05;
  top: -20px;
  right: -30px;
}

.page-hero h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 14px;
  color: var(--gold-light);
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* =============================================
   GIỚI THIỆU – right column
   ============================================= */
.gioi-thieu-right { display: flex; flex-direction: column; gap: 0; }

.gt-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
  margin-bottom: 20px;
}

.gt-table-box {
  background: var(--cream-dark);
  border-radius: 12px;
  padding: 24px;
}

.gt-table-title {
  color: var(--green-dark);
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
  font-size: 1rem;
}

.gt-table {
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-collapse: collapse;
}

.gt-table tr { border-bottom: 1px solid var(--cream); }
.gt-table tr:last-child { border-bottom: none; }
.gt-table td { padding: 8px 0; }

.gt-td-label {
  font-weight: 600;
  color: var(--text-dark);
  width: 45%;
}

/* =============================================
   PHONG TỤC – ảnh trong list item
   ============================================= */
/* Tất cả ảnh bên trong phong-tuc-card đều đồng bộ */
.phong-tuc-card ul li img {
  width: 100%;
  aspect-ratio: 4/3;
  height: 270px;
  object-fit: cover;
  object-position: center ;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}

.ptc-img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}

.ptc-video {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
  max-height: 160px;
}

/* Nét riêng box */
.net-rieng-box {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 32px;
  border-left: 5px solid var(--gold);
  box-shadow: 0 3px 14px var(--shadow);
}

.net-rieng-box h4 {
  color: var(--red);
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.net-rieng-box p { color: var(--text-mid); }

/* =============================================
   KÝ ỨC – quote cuối section
   ============================================= */
.ky-uc-quote {
  text-align: center;
  margin-top: 40px;
}

.ky-uc-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--red-dark);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.ky-uc-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* =============================================
   MAP CAPTION
   ============================================= */
.map-caption {
  background: var(--cream-dark);
  padding: 16px 24px;
  border-radius: 0 0 14px 14px;
  margin-top: -6px;
  font-size: 0.9rem;
  color: var(--text-mid);
  text-align: center;
}

.map-caption strong { color: var(--red); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .highlight-grid,
  .phong-tuc-tabs,
  .am-thuc-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid,
  .gioi-thieu-grid,
  .lien-he-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .highlight-grid,
  .phong-tuc-tabs,
  .am-thuc-grid,
  .van-hoa-grid,
  .ky-uc-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
}