/*
 * VillaVerse Goa — Single Blog Post CSS
 * Upload to: wp-content/themes/royella/single-post.css
 */

:root {
  --vvg-green    : #1A563D;
  --vvg-green-dk : #143F2E;
  --vvg-green-lt : #e8f0eb;
  --vvg-cream    : #F5F5DC;
  --vvg-cream-dk : #EDEBCC;
  --vvg-text     : #686868;
  --vvg-text-dk  : #2E2E2E;
  --vvg-fh       : 'Cormorant Garamond', Georgia, serif;
  --vvg-fb       : 'Lora', Georgia, serif;
  --vvg-r        : 6px;
  --vvg-sh       : 0 2px 16px rgba(26,86,61,.09);
}

.vvg-post-hero *, .vvg-post-page *,
.vvg-related *, .vvg-cta-strip * { box-sizing: border-box; }

/* ── HERO ─────────────────────────────────────────────────── */
.vvg-post-hero {
  background: linear-gradient(135deg, #0d3322 0%, var(--vvg-green) 60%, #0d3322 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.vvg-post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.vvg-post-hero .container { position: relative; z-index: 1; }

.vvg-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 5px 8px;
  font-family: var(--vvg-fb); font-size: .76rem;
  color: rgba(255,255,255,.55); margin-bottom: 18px;
}
.vvg-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.vvg-breadcrumb a:hover { color: #fff; }
.vvg-breadcrumb span { opacity: .4; }
.vvg-bc-cur { color: rgba(255,255,255,.5); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vvg-hero-cat {
  display: inline-block;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-family: var(--vvg-fb); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; margin-bottom: 16px;
}
.vvg-hero-title {
  font-family: var(--vvg-fh);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600; color: #fff; line-height: 1.22;
  margin: 0 0 22px; max-width: 780px;
}
.vvg-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 5px 14px;
  font-family: var(--vvg-fb); font-size: .8rem; color: rgba(255,255,255,.7);
}
.vvg-hero-meta span { display: flex; align-items: center; gap: 5px; }
.vvg-hero-meta svg { opacity: .7; flex-shrink: 0; }
.vvg-dot { opacity: .3; font-size: 1.3em; line-height: 1; }

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.vvg-post-page {
  background: var(--vvg-cream) !important;
  padding: 52px 0 64px;
}
body.single-post { background-color: var(--vvg-cream) !important; }

/* ── FEATURED IMAGE ───────────────────────────────────────── */
.vvg-feat-img {
  border-radius: var(--vvg-r); overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(26,86,61,.13);
}
.vvg-feat-img img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 2/1; object-fit: cover;
}

/* ── CONTENT TYPOGRAPHY ───────────────────────────────────── */
.vvg-content {
  font-family: var(--vvg-fb) !important;
  font-size: 1.1rem !important; line-height: 1.88 !important; color: var(--vvg-text) !important;
}
.vvg-content p { margin: 0 0 1.1em !important; font-size: 1.1rem !important; line-height: 1.88 !important; }

.vvg-content h2 {
  font-family: var(--vvg-fh);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem); font-weight: 600;
  color: var(--vvg-green); margin: 1.7em 0 .5em;
  line-height: 1.26;
}
.vvg-content h2:first-child { margin-top: 0; }

.vvg-content h3 {
  font-family: var(--vvg-fh);
  font-size: clamp(1.15rem, 1.9vw, 1.38rem); font-weight: 600;
  color: #101010; margin: 1.4em 0 .45em; line-height: 1.3;
}
.vvg-content h4 {
  font-family: var(--vvg-fh); font-size: 1.08rem; font-weight: 600;
  color: #1E1E1E; margin: 1.2em 0 .4em;
}
.vvg-content ul, .vvg-content ol { padding-left: 1.5em; margin: 0 0 1em; }
.vvg-content li { margin-bottom: .35em; padding-left: .2em; }
.vvg-content ul li::marker { color: var(--vvg-green); }

.vvg-content blockquote {
  margin: 1.8em 0; padding: 20px 24px 20px 32px;
  border-left: 4px solid var(--vvg-green);
  background: var(--vvg-green-lt);
  border-radius: 0 var(--vvg-r) var(--vvg-r) 0;
  font-style: italic; font-size: 1.06rem; color: var(--vvg-green-dk);
  position: relative;
}
.vvg-content blockquote::before {
  content: '\201C'; position: absolute; top: -6px; left: 12px;
  font-size: 2.8rem; line-height: 1; color: var(--vvg-green);
  opacity: .35; font-family: Georgia, serif;
}
.vvg-content blockquote p { margin: 0; }
.vvg-content a { color: var(--vvg-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.vvg-content a:hover { color: var(--vvg-green-dk); }
.vvg-content img { max-width: 100%; height: auto; border-radius: var(--vvg-r); margin: .5em 0 1.4em; box-shadow: var(--vvg-sh); }
.vvg-content hr { border: none; border-top: 1px solid var(--vvg-cream-dk); margin: 2.2em 0; }
.vvg-content strong { color: var(--vvg-text-dk); font-weight: 600; }

/* ── TABLE OF CONTENTS ────────────────────────────────────── */
.vvg-toc {
  background: #fff; border: 1px solid #d4e4d9;
  border-left: 4px solid var(--vvg-green);
  border-radius: var(--vvg-r); padding: 18px 22px;
  margin: 0 0 32px; box-shadow: var(--vvg-sh);
}
.vvg-toc__header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vvg-toc__icon { color: var(--vvg-green); flex-shrink: 0; }
.vvg-toc__label { font-family: var(--vvg-fh); font-size: 1rem; font-weight: 600; color: var(--vvg-green); flex: 1; }
.vvg-toc__toggle {
  background: none; border: 1px solid #c4d9cb; border-radius: 4px;
  width: 26px; height: 26px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: var(--vvg-green);
  transition: background .2s; padding: 0;
}
.vvg-toc__toggle:hover { background: var(--vvg-green-lt); }
.vvg-toc__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.vvg-toc__item { margin: 0; }
.vvg-toc__link {
  font-family: var(--vvg-fb); font-size: .88rem; color: var(--vvg-text);
  text-decoration: none; display: block; padding: 3px 0;
  transition: color .2s; line-height: 1.4;
}
.vvg-toc__link:hover { color: var(--vvg-green); }

/* ── TABLE SCROLL WRAPPER ─────────────────────────────────── */
.vvg-table-scroll {
  overflow-x: auto; margin: 1.4em 0; border-radius: var(--vvg-r);
  box-shadow: var(--vvg-sh); -webkit-overflow-scrolling: touch;
}
.vvg-table-scroll table { border-collapse: collapse; min-width: 440px; width: 100%; font-family: var(--vvg-fb); font-size: .88rem; }
.vvg-table-scroll thead { background: var(--vvg-green); color: #fff; }
.vvg-table-scroll th { padding: 11px 15px; text-align: left; font-weight: 600; white-space: nowrap; }
.vvg-table-scroll td { padding: 10px 15px; border-bottom: 1px solid var(--vvg-cream-dk); color: var(--vvg-text); }
.vvg-table-scroll tr:last-child td { border-bottom: none; }
.vvg-table-scroll tr:nth-child(even) td { background: #fafaf3; }

/* ── SHARE BUTTONS ────────────────────────────────────────── */
.vvg-share { margin-top: 44px !important; padding-top: 24px !important; border-top: 1px solid var(--vvg-cream-dk) !important; }
.vvg-share__label { display: block !important; font-family: var(--vvg-fh) !important; font-size: .96rem !important; font-weight: 600 !important; color: var(--vvg-text-dk) !important; margin-bottom: 12px !important; }
.vvg-share__btns { display: flex !important; flex-wrap: wrap !important; gap: 9px !important; }
.vvg-share__btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 38px !important; height: 38px !important; padding: 0 !important;
  border-radius: 6px !important; text-decoration: none !important;
  cursor: pointer !important; transition: opacity .2s, transform .15s !important;
  line-height: 1 !important; flex-shrink: 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.15) !important;
}
.vvg-share__btn:hover { opacity: .82 !important; transform: translateY(-2px) !important; text-decoration: none !important; }
.vvg-share__btn--fb  { background: #1877F2 !important; color: #fff !important; border: 1px solid #1877F2 !important; }
.vvg-share__btn--x   { background: #000 !important; color: #fff !important; border: 1px solid #000 !important; }
.vvg-share__btn--li  { background: #0A66C2 !important; color: #fff !important; border: 1px solid #0A66C2 !important; }
.vvg-share__btn--wa  { background: #25D366 !important; color: #fff !important; border: 1px solid #25D366 !important; }
.vvg-share__btn--copy { background: #fff !important; color: var(--vvg-green) !important; border: 1px solid #c4d9cb !important; }
.vvg-share__btn--copy:hover { background: var(--vvg-green-lt) !important; color: var(--vvg-green) !important; }
.vvg-share__btn svg { flex-shrink: 0 !important; }

/* ── TAGS ─────────────────────────────────────────────────── */
.vvg-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--vvg-cream-dk); }
.vvg-tags-lbl { font-family: var(--vvg-fb); font-size: .8rem; color: var(--vvg-text); font-weight: 500; }
.vvg-tag { padding: 4px 11px; background: #fff; border: 1px solid #c4d9cb; border-radius: 50px; font-family: var(--vvg-fb); font-size: .76rem; color: var(--vvg-green); text-decoration: none; transition: background .2s, color .2s; }
.vvg-tag:hover { background: var(--vvg-green); color: #fff; }

/* ── BACK BUTTON ──────────────────────────────────────────── */
.vvg-back-row { margin: 28px 0 0; }
.vvg-back-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--vvg-fb); font-size: .88rem; color: var(--vvg-green); text-decoration: none; border: 1px solid var(--vvg-green); padding: 9px 18px; border-radius: 4px; transition: background .2s, color .2s; }
.vvg-back-btn:hover { background: var(--vvg-green); color: #fff; }

/* Content max-width for readability on full-width layout */
.vvg-post-page .container .vvg-feat-img,
.vvg-post-page .container .vvg-content,
.vvg-post-page .container .vvg-post-tags,
.vvg-post-page .container .vvg-back-row {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RELATED POSTS ────────────────────────────────────────── */
.vvg-related { background: var(--vvg-cream-dk); padding: 64px 0; }
.vvg-eyebrow { font-family: var(--vvg-fb); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--vvg-green); font-weight: 600; margin-bottom: 8px; }
.vvg-eyebrow--light { color: rgba(255,255,255,.6); }
.vvg-related-heading { font-family: var(--vvg-fh); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: var(--vvg-green); margin: 0 0 36px; line-height: 1.2; }
.vvg-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.vvg-rcard { background: #fff; border-radius: var(--vvg-r); overflow: hidden; box-shadow: var(--vvg-sh); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.vvg-rcard:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(26,86,61,.14); }
.vvg-rcard__img { display: block; height: 190px; overflow: hidden; flex-shrink: 0; }
.vvg-rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.vvg-rcard:hover .vvg-rcard__img img { transform: scale(1.06); }
.vvg-rcard__fallback { width: 100%; height: 100%; background: var(--vvg-green); display: flex; align-items: center; justify-content: center; }
.vvg-rcard__fallback span { font-family: var(--vvg-fh); font-size: 3rem; color: rgba(255,255,255,.28); font-weight: 700; }
.vvg-rcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.vvg-rcard__cat { font-family: var(--vvg-fb); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vvg-green); font-weight: 600; margin-bottom: 6px; display: inline-block; }
.vvg-rcard__title { font-family: var(--vvg-fh); font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.vvg-rcard__title a { color: var(--vvg-text-dk); text-decoration: none; }
.vvg-rcard__title a:hover { color: var(--vvg-green); }
.vvg-rcard__excerpt { font-family: var(--vvg-fb); font-size: .85rem; line-height: 1.6; color: var(--vvg-text); margin: 0 0 14px; flex: 1; }
.vvg-rcard__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--vvg-cream-dk); margin-top: auto; }
.vvg-rcard__date { font-family: var(--vvg-fb); font-size: .72rem; color: #aaa; }
.vvg-rcard__link { font-family: var(--vvg-fb); font-size: .8rem; font-weight: 600; color: var(--vvg-green); text-decoration: none; }
.vvg-rcard__link:hover { opacity: .75; }


/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .vvg-post-page { padding: 40px 0 52px; }
  .vvg-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .vvg-post-hero { padding: 52px 0 44px; }
  .vvg-hero-title { font-size: 1.65rem; }
  .vvg-hero-meta { font-size: .75rem; }
  .vvg-bc-cur { max-width: 160px; }
  .vvg-feat-img img { aspect-ratio: 4/3; }
  .vvg-content { font-size: 1rem !important; }
  .vvg-content p { font-size: 1rem !important; }
  .vvg-share__btn { width: 36px !important; height: 36px !important; }
  .vvg-related { padding: 44px 0; }
  .vvg-related-grid { grid-template-columns: 1fr; }
}
