/* ═══════════════════════════════════════════════════════════
   VINHGROUP — Single Post Premium Styles
   Phù hợp thiết kế Navy/Gold + Playfair Display + Manrope
═══════════════════════════════════════════════════════════ */

/* ── WRAP & LAYOUT ───────────────────────────────────────── */
.vg-single-wrap { background: #F5EFE3; min-height: 100vh; }

.vg-post-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.vg-post-content-col { padding-right: 40px; }

/* ── POST HERO ───────────────────────────────────────────── */
.vg-post-hero {
  position: relative;
  background: #0D1B2A;
  padding: 80px 0 60px;
  overflow: hidden;
}
.vg-post-hero.has-thumb { padding: 120px 0 80px; }

.vg-post-hero__bg {
  position: absolute;
  inset: 0;
}
.vg-post-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.vg-post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #0D1B2A 0%, rgba(13,27,42,0.7) 50%, rgba(13,27,42,0.4) 100%);
}
.vg-post-hero__inner {
  position: relative; z-index: 2;
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
}

.vg-post-cat {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #C9A840;
  border: 1px solid rgba(201,168,64,0.4);
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 20px; text-decoration: none;
  transition: 0.3s ease;
}
.vg-post-cat:hover { background: rgba(201,168,64,0.15); }

.vg-post-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(1.875rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: #FAF7F2 !important;
  line-height: 1.15 !important;
  margin-bottom: 24px !important;
}

.vg-post-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center;
}
.vg-post-meta__author,
.vg-post-meta__date,
.vg-post-meta__read {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.vg-post-meta svg { flex-shrink: 0; }
/* Author link in hero */
.vg-post-meta__author-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.vg-post-meta__author-link:hover {
  color: #C9A840;
  text-decoration: underline;
}
/* Author link in post card */
.vg-post-card__author {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #6B5E4E; font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
  position: relative; z-index: 1; /* nổi trên card overlay */
}
.vg-post-card__author:hover { color: #C9A840; }
.vg-post-card__author img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 2px solid #EDE8DC;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.vg-post-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: #6B5E4E;
  margin: 0 0 28px;
  padding: 14px 0;
  border-bottom: 1px solid #EDE8DC;
}
.vg-post-breadcrumb a {
  color: #6B5E4E; text-decoration: none;
  transition: color 0.3s;
}
.vg-post-breadcrumb a:hover { color: #C9A840; }
.vg-post-breadcrumb span:last-child { color: #0D1B2A; font-weight: 600; }

/* ── ARTICLE BODY ─────────────────────────────────────────── */
.vg-post-article {
  background: #fff;
  border-radius: 16px;
  padding: 48px 52px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.vg-post-body { font-family: 'Manrope', sans-serif; }
.vg-post-body p {
  font-size: 17px; line-height: 1.9; color: #3D2B1F;
  margin-bottom: 1.5em;
}
.vg-post-body h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.75rem !important; font-weight: 700;
  color: #0D1B2A; margin: 2em 0 0.75em;
  padding-bottom: 12px;
  border-bottom: 2px solid #F5EFE3;
}
.vg-post-body h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.375rem !important; font-weight: 700;
  color: #0D1B2A; margin: 1.75em 0 0.6em;
}
.vg-post-body h4 {
  font-size: 1.125rem; font-weight: 700;
  color: #0D1B2A; margin: 1.5em 0 0.5em;
}
.vg-post-body strong { color: #0D1B2A; font-weight: 700; }
.vg-post-body em { color: #6B5E4E; font-style: italic; }
.vg-post-body a {
  color: #C9A840; text-decoration: underline;
  text-decoration-color: rgba(201,168,64,0.4);
  transition: 0.3s;
}
.vg-post-body a:hover { color: #B89030; }

.vg-post-body img {
  max-width: 100%; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 24px 0;
}
.vg-post-body figure { margin: 32px 0; }
.vg-post-body figcaption {
  font-size: 13px; color: #8B7D6B; text-align: center;
  margin-top: 8px;
}

/* Blockquote */
.vg-post-body blockquote {
  border-left: 4px solid #C9A840;
  background: #FAF7F2;
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; font-style: italic;
  color: #4A4844;
}
.vg-post-body blockquote p { font-size: inherit; }

/* Code */
.vg-post-body pre {
  background: #0D1B2A; color: #EDE8DC;
  padding: 24px; border-radius: 8px;
  overflow-x: auto; font-size: 14px; margin: 24px 0;
}
.vg-post-body code {
  background: #F5EFE3; color: #8B1A2B;
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.875em;
}
.vg-post-body pre code { background: none; color: inherit; padding: 0; }

/* Lists */
.vg-post-body ul, .vg-post-body ol {
  padding-left: 1.5em; margin-bottom: 1.5em;
}
.vg-post-body li { margin-bottom: 0.5em; font-size: 17px; line-height: 1.85; color: #3D2B1F; }
.vg-post-body ul li::marker { color: #C9A840; }

/* Table */
.vg-post-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px;
}
.vg-post-body th {
  background: #0D1B2A; color: #FAF7F2;
  padding: 12px 16px; text-align: left; font-weight: 600;
  font-size: 13px; letter-spacing: 0.05em;
}
.vg-post-body td { padding: 10px 16px; border-bottom: 1px solid #EDE8DC; }
.vg-post-body tr:hover td { background: #FAF7F2; }

/* ── TAGS ─────────────────────────────────────────────────── */
.vg-post-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.vg-post-tags__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6B5E4E;
}
.vg-post-tag {
  font-size: 12px; font-weight: 600;
  color: #0D1B2A; text-decoration: none;
  background: #EDE8DC; padding: 4px 12px;
  border-radius: 20px; transition: 0.3s;
}
.vg-post-tag:hover { background: #C9A840; color: #fff; }

/* ── SHARE ───────────────────────────────────────────────── */
.vg-post-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 24px 0;
  border-top: 1px solid #EDE8DC;
  border-bottom: 1px solid #EDE8DC;
  margin-bottom: 40px;
}
.vg-post-share__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6B5E4E;
}
.vg-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: 6px; text-decoration: none; cursor: pointer;
  border: none; transition: 0.3s ease;
}
.vg-share-btn--fb { background: #1877F2; color: #fff; }
.vg-share-btn--fb:hover { background: #1464D2; transform: translateY(-2px); }
.vg-share-btn--tw { background: #1DA1F2; color: #fff; }
.vg-share-btn--tw:hover { background: #0D8ED8; transform: translateY(-2px); }
.vg-share-btn--li { background: #0A66C2; color: #fff; }
.vg-share-btn--li:hover { background: #0855A0; transform: translateY(-2px); }
.vg-share-btn--copy { background: #F5EFE3; color: #0D1B2A; font-family: 'Manrope', sans-serif; }
.vg-share-btn--copy:hover { background: #C9A840; color: #fff; transform: translateY(-2px); }

/* ── AUTHOR BOX ──────────────────────────────────────────── */
.vg-author-box {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid #EDE8DC;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}
.vg-author-box__avatar img {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #C9A840;
}
.vg-author-box__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; font-weight: 700; color: #0D1B2A;
  margin-bottom: 8px;
}
.vg-author-box__bio {
  font-size: 14px; color: #6B5E4E; line-height: 1.7;
  margin-bottom: 12px;
}
.vg-author-box__link {
  font-size: 13px; font-weight: 600; color: #C9A840;
  text-decoration: none; transition: 0.3s;
}
.vg-author-box__link:hover { color: #B89030; }

/* ── POST NAV ────────────────────────────────────────────── */
.vg-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 48px;
}
.vg-post-nav__item {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border-radius: 10px; padding: 20px 24px;
  text-decoration: none; border: 1px solid #EDE8DC;
  transition: 0.35s ease;
}
.vg-post-nav__item:hover { border-color: #C9A840; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(201,168,64,0.15); }
.vg-post-nav__item--next { text-align: right; }
.vg-post-nav__dir {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #C9A840;
}
.vg-post-nav__title {
  font-size: 14px; font-weight: 600; color: #0D1B2A;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── RELATED POSTS ───────────────────────────────────────── */
.vg-related { margin-bottom: 48px; }
.vg-related__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.5rem !important; font-weight: 700 !important;
  color: #0D1B2A !important; margin-bottom: 24px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #EDE8DC;
}
.vg-related__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.vg-related-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  text-decoration: none; border: 1px solid #EDE8DC;
  transition: 0.35s ease; display: block;
}
.vg-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: #C9A840;
}
.vg-related-card__img { height: 140px; overflow: hidden; }
.vg-related-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.vg-related-card:hover .vg-related-card__img img { transform: scale(1.06); }
.vg-related-card__body { padding: 16px; }
.vg-related-card__cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #C9A840; display: block; margin-bottom: 6px;
}
.vg-related-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9375rem; font-weight: 700; color: #0D1B2A;
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vg-related-card__date { font-size: 12px; color: #8B7D6B; }

/* ── COMMENTS ────────────────────────────────────────────── */
.vg-post-comments { background: #fff; border-radius: 12px; padding: 40px 48px; }
.vg-post-comments h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.5rem !important; font-weight: 700 !important;
  color: #0D1B2A !important; margin-bottom: 32px !important;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment { padding: 24px 0; border-bottom: 1px solid #EDE8DC; }
.comment-author .avatar { border-radius: 50%; width: 48px; height: 48px; border: 2px solid #C9A840; }
.comment-meta { margin-bottom: 10px; }
.comment .fn { font-weight: 700; color: #0D1B2A; font-size: 15px; }
.comment-metadata a { font-size: 12px; color: #8B7D6B; text-decoration: none; }
.comment-content p { font-size: 15px; color: #3D2B1F; line-height: 1.75; }

/* Comment form */
.comment-form label { font-size: 13px; font-weight: 600; color: #0D1B2A; display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #EDE8DC;
  border-radius: 8px; font-family: 'Manrope', sans-serif;
  font-size: 14px; color: #0D1B2A;
  transition: border-color 0.3s;
  background: #FAF7F2;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: #C9A840; outline: none; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  background: #0D1B2A; color: #fff;
  padding: 12px 28px; border: none; border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: 0.3s;
}
.comment-form .submit:hover { background: #C9A840; transform: translateY(-2px); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.vg-post-sidebar-col { padding-top: 0; }
.vg-sidebar { position: sticky; top: 100px; }

.vg-sidebar-widget {
  background: #fff; border-radius: 12px;
  padding: 28px 24px; margin-bottom: 24px;
  border: 1px solid #EDE8DC;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.vg-sidebar-widget__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.0625rem !important; font-weight: 700 !important;
  color: #0D1B2A !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid #F5EFE3;
  display: flex; align-items: center; gap: 10px;
}
.vg-sidebar-widget__title::before {
  content: '';
  width: 4px; height: 18px; background: #C9A840;
  border-radius: 2px; flex-shrink: 0;
}

/* Search — standalone form */
.vg-sidebar-search-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  background: #0D1B2A !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  border: 1px solid rgba(201,168,64,0.30) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18) !important;
  padding: 0 !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}
.vg-sidebar-search-form:focus-within {
  border-color: rgba(201,168,64,0.65) !important;
  box-shadow: 0 0 0 3px rgba(201,168,64,0.12), 0 4px 18px rgba(0,0,0,0.18) !important;
}
.vg-sidebar-search-form__icon {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-left: 16px;
  pointer-events: none;
}
.vg-sidebar-search-form input[type="search"] {
  flex: 1 1 auto !important;
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  padding: 14px 12px !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  letter-spacing: 0.02em !important;
}
.vg-sidebar-search-form input[type="search"]::placeholder {
  color: rgba(255,255,255,0.30) !important;
}
/* Ẩn nút X mặc định của browser trong search input */
.vg-sidebar-search-form input[type="search"]::-webkit-search-cancel-button,
.vg-sidebar-search-form input[type="search"]::-webkit-search-decoration { display: none; }

.vg-sidebar-search-form button[type="submit"] {
  flex-shrink: 0 !important;
  background: #C9A840 !important;
  color: #fff !important;
  border: none !important;
  margin: 5px 5px 5px 0 !important;
  padding: 10px 18px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  border-radius: 40px !important;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s !important;
  white-space: nowrap !important;
}
.vg-sidebar-search-form button[type="submit"]:hover {
  background: #DDB84E !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(201,168,64,0.35) !important;
}



/* Recent posts */
.vg-sidebar-post {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #F5EFE3;
  text-decoration: none; transition: 0.3s;
}
.vg-sidebar-post:last-child { border-bottom: none; }
.vg-sidebar-post:hover .vg-sidebar-post__title { color: #C9A840; }
.vg-sidebar-post__img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
}
.vg-sidebar-post__img img { width: 100%; height: 100%; object-fit: cover; }
.vg-sidebar-post__info { flex: 1; }
.vg-sidebar-post__title {
  font-size: 13px; font-weight: 600; color: #0D1B2A;
  line-height: 1.45; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.3s;
}
.vg-sidebar-post__date { font-size: 11px; color: #8B7D6B; }

/* Categories */
.vg-sidebar-cats { list-style: none; padding: 0; margin: 0; }
.vg-sidebar-cats li { border-bottom: 1px solid #F5EFE3; }
.vg-sidebar-cats li:last-child { border-bottom: none; }
.vg-sidebar-cat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; text-decoration: none; transition: 0.3s;
}
.vg-sidebar-cat:hover .vg-sidebar-cat__name { color: #C9A840; }
.vg-sidebar-cat__name { font-size: 14px; color: #3D2B1F; font-weight: 500; }
.vg-sidebar-cat__count {
  font-size: 11px; font-weight: 700; background: #F5EFE3;
  color: #6B5E4E; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Tags */
.vg-sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-sidebar-tag {
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: 20px; background: #F5EFE3; color: #3D2B1F;
  text-decoration: none; transition: 0.3s;
}
.vg-sidebar-tag:hover { background: #C9A840; color: #fff; }

/* CTA Widget */
.vg-sidebar-cta {
  background: #0D1B2A !important; border-color: #0D1B2A !important;
  text-align: center;
}
.vg-sidebar-cta__icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.vg-sidebar-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; font-weight: 700; color: #FAF7F2;
  margin-bottom: 10px;
}
.vg-sidebar-cta__desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; }
.vg-sidebar-cta__btn {
  display: inline-block; background: #C9A840; color: #fff;
  font-size: 13px; font-weight: 700; padding: 10px 24px;
  border-radius: 6px; text-decoration: none; transition: 0.3s;
}
.vg-sidebar-cta__btn:hover { background: #B89030; transform: translateY(-2px); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .vg-post-content-col { padding-right: 0; }
  .vg-sidebar { position: static; }
  .vg-post-article { padding: 32px 28px; }
  .vg-related__grid { grid-template-columns: 1fr 1fr; }
  .vg-post-comments { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .vg-post-layout { padding: 24px 16px 60px; }
  .vg-post-article { padding: 24px 20px; }
  .vg-post-body p { font-size: 16px; }
  .vg-author-box { flex-direction: column; gap: 16px; }
  .vg-post-nav { grid-template-columns: 1fr; }
  .vg-related__grid { grid-template-columns: 1fr; }
  .vg-post-share { flex-direction: column; align-items: flex-start; }
}


