/*
Theme Name: Minh Tinh Tu Vi
Theme URI: https://minhtinh.com
Author: Minh Tinh Tu Vi
Author URI: https://minhtinh.com
Description: Theme chuan hoa dong bo giao dien Minh Tinh Tu Vi cho bai viet, chuyen muc va trang chu.
Version: 1.0.0
Text Domain: minhtinh-theme
*/

:root {
  --mt-red: #7A0E14;
  --mt-red-dark: #5A090E;
  --mt-forest: #0D3326;
  --mt-forest-deep: #072118;
  --mt-ochre: #C9982E;
  --mt-ochre-light: #E5B94C;
  --mt-gold: #C9982E;
  --mt-gold-light: #E5B94C;
  --mt-ivory: #F8F4EC;
  --mt-bg: #F8F4EC;
  --mt-card: #ffffff;
  --mt-ink: #261c14;
  --mt-muted: #214B3C;
  --mt-border: #DFD0B4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--mt-bg);
  color: var(--mt-ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

img {
  max-width: 100%;
  height: auto;
}

.mt-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP BAR */
.mt-topbar {
  background: linear-gradient(90deg, var(--mt-red-dark) 0%, var(--mt-forest) 100%);
  border-bottom: 1px solid var(--mt-ochre);
  color: #f9ebd2;
  font-size: 13px;
  text-align: center;
  padding: 8px 14px;
  letter-spacing: 0.3px;
}

.mt-topbar strong {
  color: var(--mt-ochre-light);
}

/* NAVBAR */
.mt-navbar {
  background: rgba(250, 245, 235, 0.96);
  border-bottom: 1px solid var(--mt-border);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.mt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.mt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mt-brand-logo {
  height: 36px;
  width: auto;
  max-width: 110px;
  max-height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.mt-brand-text {
  font-weight: 800;
  font-size: 18px;
  color: var(--mt-red);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: block;
  line-height: 1.2;
}

.mt-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mt-forest);
  letter-spacing: 0.8px;
}

.mt-nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
}

.mt-nav-menu a:hover,
.mt-nav-menu .current-menu-item > a {
  color: var(--mt-red);
}

.mt-nav-cta {
  background: linear-gradient(135deg, var(--mt-red) 0%, var(--mt-red-dark) 100%);
  color: var(--mt-ivory) !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--mt-gold);
  box-shadow: 0 3px 10px rgba(122, 14, 20, 0.2);
}

.mt-nav-cta:hover {
  opacity: 0.92;
  color: var(--mt-ivory) !important;
}

/* ARCHIVE / CATEGORY HEADER */
.mt-archive-hero {
  background: radial-gradient(circle at top center, #fffdf9 0%, #f3e8d2 100%);
  border-bottom: 1px solid var(--mt-border);
  padding: 40px 0 34px 0;
  text-align: center;
}

.mt-pill-forest {
  display: inline-block;
  background: var(--mt-forest);
  color: #faf5eb;
  border: 1px solid var(--mt-ochre);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mt-archive-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  color: var(--mt-red-dark);
  margin-bottom: 8px;
}

.mt-archive-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--mt-muted);
}

/* POST GRID */
.mt-main-area {
  padding: 42px 0 56px 0;
}

.mt-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 900px) {
  .mt-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mt-post-grid {
    grid-template-columns: 1fr;
  }
  .mt-nav-menu {
    display: none;
  }
}

.mt-post-card {
  background: var(--mt-card);
  border: 1px solid var(--mt-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(60, 38, 16, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mt-post-card:hover {
  transform: translateY(-3px);
  border-color: var(--mt-ochre);
  box-shadow: 0 12px 26px rgba(139, 0, 0, 0.1);
}

.mt-post-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #efe5d1;
  overflow: hidden;
  border-bottom: 1px solid var(--mt-border);
}

.mt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-post-body {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mt-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--mt-forest);
  font-weight: 700;
  margin-bottom: 8px;
}

.mt-post-card-title {
  font-size: 17.5px;
  line-height: 1.4;
  color: var(--mt-ink);
  font-weight: 700;
  margin-bottom: 10px;
}

.mt-post-card-title a:hover {
  color: var(--mt-red);
}

.mt-post-excerpt {
  font-size: 14px;
  line-height: 1.62;
  color: #3D3127; /* Đổi sang #0D3326 nếu muốn tông xanh rừng đậm */
  margin-bottom: 16px;
  flex: 1;
}

.mt-post-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mt-red);
}

.mt-post-readmore:hover {
  color: var(--mt-forest);
}

/* SINGLE POST */
.mt-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 920px) {
  .mt-single-layout {
    grid-template-columns: 1fr;
  }
}

.mt-article-box {
  background: var(--mt-card);
  border: 1px solid var(--mt-border);
  border-top: 4px solid var(--mt-red);
  border-radius: 14px;
  padding: 32px 34px;
  box-shadow: 0 8px 26px rgba(60, 38, 16, 0.06);
}

@media (max-width: 640px) {
  .mt-article-box {
    padding: 22px 18px;
  }
}

.mt-breadcrumb {
  font-size: 13px;
  color: #665341;
  margin-bottom: 14px;
}

.mt-breadcrumb a {
  color: #1f4e3d;
  font-weight: 600;
}

.mt-article-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 31px;
  line-height: 1.32;
  color: #630000;
  margin-bottom: 12px;
}

.mt-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #665341;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--mt-border);
}

.mt-article-featured {
  margin-bottom: 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mt-border);
}

.mt-entry-content {
  font-size: 16px;
  line-height: 1.82;
  color: #261c14;
}

.mt-entry-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.mt-entry-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: var(--mt-red);
  border-left: 4px solid var(--mt-ochre);
  padding-left: 12px;
  margin: 28px 0 12px 0;
}

.mt-entry-content h3,
.elementor-widget-text-editor h3 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--mt-forest);
  background: linear-gradient(90deg, rgba(201, 152, 46, 0.14) 0%, rgba(248, 244, 236, 0) 100%);
  border-left: 3px solid var(--mt-red);
  padding: 6px 12px;
  border-radius: 0 6px 6px 0;
  margin: 26px 0 12px 0;
}
.mt-entry-content strong {
  color: #0D3326;
}

.mt-entry-content ul,
.mt-entry-content ol {
  margin: 0 0 18px 22px;
}

.mt-entry-content li {
  margin-bottom: 8px;
}

.mt-entry-content blockquote {
  background: var(--mt-bg);
  border-left: 4px solid var(--mt-ochre);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  color: #3d2c1e;
  font-style: italic;
}

.mt-entry-content a {
  color: var(--mt-red);
  text-decoration: underline;
}

/* SIDEBAR CTA */
.mt-sidebar-card {
  background: var(--mt-card);
  border: 1px solid var(--mt-border);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(60, 38, 16, 0.05);
}

.mt-sidebar-card--highlight {
  background: linear-gradient(180deg, #fffdf9 0%, #f5ebd8 100%);
  border: 1.5px solid var(--mt-ochre);
}

.mt-sidebar-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--mt-red);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mt-border);
}

.mt-sidebar-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #9b111e 0%, #750000 100%);
  color: #ffffff !important;
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
}

.mt-sidebar-btn--forest {
  background: var(--mt-forest);
  border: 1px solid var(--mt-ochre);
}

.mt-related-list {
  list-style: none;
}

.mt-related-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--mt-border);
  font-size: 14px;
  font-weight: 600;
}

.mt-related-list li:last-child {
  border-bottom: none;
}

.mt-related-list a:hover {
  color: var(--mt-red);
}

/* PAGINATION */
.mt-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mt-pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--mt-border);
  background: var(--mt-card);
  font-weight: 700;
  font-size: 14px;
}

.mt-pagination .page-numbers.current {
  background: var(--mt-red);
  color: #ffffff;
  border-color: var(--mt-red);
}

/* FULL-WIDTH PAGE */
.mt-page-full {
  width: 100%;
}

/* FOOTER */
.mt-footer {
  background: linear-gradient(135deg, var(--mt-forest-deep) 0%, var(--mt-forest) 52%, var(--mt-red-dark) 100%);
  color: var(--mt-ivory);
  padding: 44px 0 26px 0;
  font-size: 14px;
  margin: 0 12px 16px 12px;
  border-radius: 18px;
  border: 1.5px solid var(--mt-gold);
  box-shadow: 0 12px 28px rgba(7, 33, 24, 0.18);
  overflow: hidden;
}

.mt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(229, 185, 76, 0.28);
}

@media (max-width: 760px) {
  .mt-footer {
    margin: 0 10px 14px 10px;
    padding: 34px 0 22px 0;
  }
  .mt-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.mt-footer h4 {
  color: var(--mt-gold-light);
  font-size: 15.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mt-footer p {
  color: var(--mt-ivory);
}

.mt-footer ul {
  list-style: none;
}

.mt-footer ul li {
  margin-bottom: 8px;
}

.mt-footer ul li a {
  color: var(--mt-ivory);
}

.mt-footer ul li a:hover {
  color: var(--mt-gold-light);
  text-decoration: underline;
}

.mt-footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(248, 244, 236, 0.85);
}
