/* ============================================================
   PAGE & POST HEADER
   ============================================================ */
.page-header {
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  background: var(--brand-cream);
}
.page-header--has-img { color: #fff; }
.page-header__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.page-header__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,8,5,0.55), rgba(15,8,5,0.75));
}
.page-header .container { position: relative; z-index: 2; }
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--brand-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.page-header__title--light,
.page-header--has-img .page-header__title { color: #fff; }
.page-header__desc { color: var(--text-secondary); font-size: 1.05rem; margin-top: 12px; }
.page-header--has-img .page-header__desc { color: rgba(255,255,255,0.75); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--brand-gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); opacity: 0.6; }
.breadcrumb--light,
.breadcrumb--light a { color: rgba(255,255,255,0.7); }
.breadcrumb--light span { color: rgba(255,255,255,0.4); }
.breadcrumb--light a:hover { color: var(--brand-gold-light); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post__header { position: relative; }
.single-post__hero { height: 55vh; min-height: 360px; overflow: hidden; position: relative; }
.single-post__hero-img { width: 100%; height: 100%; object-fit: cover; }
.single-post__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(15,8,5,0.6) 100%);
}
.single-post__header-content {
  background: var(--brand-cream);
  padding: 32px 0 0;
}
.single-post__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.single-post__cat {
  display: inline-block;
  padding: 4px 14px;
  background: var(--brand-maroon);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.single-post__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--brand-dark);
  margin-bottom: 20px;
}
.single-post__info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(200,154,90,0.2);
  padding-top: 16px;
  margin-top: 4px;
}
.single-post__info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.single-post__info svg { width: 15px; height: 15px; }

/* Post Layout */
.single-post__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.single-post__content { min-width: 0; }

/* Prose / Entry Content */
.prose { line-height: 1.85; color: var(--text-primary); }
.prose h1,.prose h2,.prose h3,.prose h4 { font-family: var(--font-heading); color: var(--brand-dark); margin: 1.6em 0 0.6em; }
.prose h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.prose p { margin-bottom: 1.4em; font-size: clamp(0.95rem, 1.1vw, 1.08rem); }
.prose a { color: var(--brand-maroon); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-maroon-dark); }
.prose ul,.prose ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  border-left: 4px solid var(--brand-gold);
  padding: 16px 24px;
  margin: 1.8em 0;
  background: var(--ev-pale);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1em;
  color: var(--text-secondary);
}
.prose img { border-radius: var(--r-lg); margin: 1.8em 0; box-shadow: var(--shadow-md); }
.prose hr { border: none; border-top: 1px solid rgba(200,154,90,0.25); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.9rem; }
.prose th { background: var(--brand-maroon); color: #fff; padding: 12px 16px; text-align: left; }
.prose td { padding: 11px 16px; border-bottom: 1px solid var(--brand-gold-pale); }
.prose tr:nth-child(even) td { background: var(--ev-pale); }
.prose figure { margin: 2em 0; }
.prose figcaption { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; font-style: italic; }
.prose code { background: var(--ev-pale); padding: 2px 8px; border-radius: 4px; font-size: 0.875em; font-family: monospace; color: var(--brand-maroon); }
.prose pre { background: var(--brand-dark); color: #f0f0f0; padding: 24px; border-radius: var(--r-lg); overflow-x: auto; margin: 1.8em 0; }
.prose pre code { background: none; color: inherit; padding: 0; }

/* Tags + Share */
.single-post__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 40px 0 20px; }
.single-post__tag {
  display: inline-block; padding: 5px 14px;
  background: var(--ev-pale);
  border: 1px solid rgba(200,154,90,0.25);
  border-radius: var(--r-full);
  font-size: 0.78rem; color: var(--text-secondary);
  transition: var(--t-fast);
}
.single-post__tag:hover { background: var(--brand-gold-pale); color: var(--brand-maroon); }
.single-post__share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.share-btn {
  display: inline-block; padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 600;
  transition: var(--t-fast);
}
.share-btn--fb { background: #1877F2; color: #fff; }
.share-btn--fb:hover { background: #166fe5; }
.share-btn--wa { background: #25D366; color: #fff; }
.share-btn--wa:hover { background: #1da851; }

/* Author Box */
.author-box {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px;
  background: var(--ev-pale);
  border-radius: var(--r-xl);
  border: 1px solid rgba(200,154,90,0.2);
  margin: 40px 0;
}
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-family: var(--font-heading); font-size: 1.1rem; display: block; margin-bottom: 6px; color: var(--brand-dark); }
.author-box__bio { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* Post Nav */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 40px 0;
}
.post-nav__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(200,154,90,0.15);
  transition: var(--t-mid);
  color: var(--brand-dark);
}
.post-nav__item:hover { border-color: var(--brand-maroon); box-shadow: var(--shadow-md); }
.post-nav__item--next { text-align: right; }
.post-nav__item .t-label { color: var(--brand-gold); }
.post-nav__item span:last-child { font-weight: 500; font-size: 0.95rem; }

/* Comments */
.comments-wrap { margin-top: 48px; }
.comments-wrap .comments-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 28px; }
.comment-body { display: flex; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(200,154,90,0.15); }
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; }
.comment-author strong { font-weight: 600; font-size: 0.95rem; }
.comment-author time { font-size: 0.78rem; color: var(--text-muted); margin-left: 4px; }
.comment-text p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.comment-form label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 6px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--brand-gold-pale); border-radius: var(--r-md); font-family: var(--font-body); margin-bottom: 16px; background: var(--brand-cream); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand-maroon); }
.comment-form .submit { background: var(--brand-maroon); color: #fff; padding: 12px 28px; border: none; border-radius: var(--r-full); font-weight: 600; cursor: pointer; }

/* Sidebar */
.single-post__sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: #fff; border-radius: var(--r-xl); padding: 24px; margin-bottom: 24px; border: 1px solid rgba(200,154,90,0.12); box-shadow: var(--shadow-sm); }
.sidebar-widget__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--brand-gold-pale); }
.sidebar-recent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(200,154,90,0.12); }
.sidebar-recent:last-child { border-bottom: none; }
.sidebar-recent__img { width: 60px; height: 50px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.sidebar-recent__title { font-size: 0.875rem; font-weight: 500; color: var(--brand-dark); line-height: 1.4; }
.sidebar-recent__title:hover { color: var(--brand-maroon); }
.sidebar-recent__date { color: var(--brand-gold); margin-top: 4px; display: block; }
.sidebar-cta { background: var(--brand-maroon); border-radius: var(--r-xl); padding: 28px; color: #fff; }
.sidebar-cta h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 10px; }
.sidebar-cta p { font-size: 0.875rem; opacity: 0.8; line-height: 1.6; }

/* ============================================================
   PORTFOLIO SINGLE
   ============================================================ */
.portfolio-single__hero {
  height: 65vh; min-height: 400px;
  background-size: cover; background-position: center;
  position: relative;
}
.portfolio-single__hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 0 40px;
  background: linear-gradient(to top, rgba(15,8,5,0.85) 0%, transparent 100%);
}
.portfolio-single__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  color: #fff; line-height: 1.1;
  margin: 12px 0 8px;
}
.portfolio-single__cat { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.portfolio-single__layout { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: start; }
.portfolio-single__main { min-width: 0; }
.portfolio-single__featured-img img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-xl); }

/* Gallery */
.portfolio-gallery { margin-top: 48px; }
.portfolio-gallery__title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 24px; }
.portfolio-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-gallery__item { display: block; border-radius: var(--r-md); overflow: hidden; }
.portfolio-gallery__img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.5s var(--ease); display: block; }
.portfolio-gallery__item:hover .portfolio-gallery__img { transform: scale(1.06); }

/* Meta Card */
.portfolio-meta-card { background: #fff; border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-md); border: 1px solid rgba(200,154,90,0.15); position: sticky; top: 100px; }
.portfolio-meta-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--brand-gold-pale); }
.portfolio-meta-list { display: flex; flex-direction: column; gap: 14px; }
.portfolio-meta-item { display: flex; flex-direction: column; gap: 4px; }
.portfolio-meta-item__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand-gold); }
.portfolio-meta-item__value { font-size: 0.95rem; font-weight: 500; color: var(--brand-dark); }

/* Archive pagination */
.archive-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--r-md);
  background: var(--ev-pale);
  color: var(--brand-dark);
  font-size: 0.875rem; font-weight: 500;
  border: 1.5px solid transparent;
  transition: var(--t-fast);
}
.archive-pagination .page-numbers:hover { border-color: var(--brand-maroon); color: var(--brand-maroon); }
.archive-pagination .page-numbers.current { background: var(--brand-maroon); color: #fff; border-color: var(--brand-maroon); }

/* Search Form */
.search-form { display: flex; gap: 0; }
.search-form .search-field { flex: 1; padding: 13px 18px; border: 1.5px solid var(--brand-gold-pale); border-right: none; border-radius: var(--r-full) 0 0 var(--r-full); font-family: var(--font-body); font-size: 0.95rem; background: var(--brand-cream); }
.search-form .search-field:focus { outline: none; border-color: var(--brand-maroon); }
.search-form .search-submit { padding: 13px 24px; background: var(--brand-maroon); color: #fff; border: none; border-radius: 0 var(--r-full) var(--r-full) 0; font-weight: 600; cursor: pointer; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content__layout { max-width: 860px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .single-post__layout { grid-template-columns: 1fr; }
  .single-post__sidebar { position: static; }
  .portfolio-single__layout { grid-template-columns: 1fr; }
  .portfolio-meta-card { position: static; }
  .portfolio-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .portfolio-gallery__grid { grid-template-columns: 1fr; }
  .single-post__info { gap: 12px; }
}
