/* ==========================================================================
   Furnora Blog Page & Post Detail Styles — Navy & Gold Theme
   ========================================================================== */

/* Blog Hero */
.blog-hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  min-height: 83vh;
  isolation: isolate;
  padding: 8.5rem 0 5rem;
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Category Filter & Search Bar */
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .blog-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .blog-filters {
    flex: 1;
  }
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--tan);
  color: var(--fg);
}

.filter-btn.active {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
  box-shadow: var(--shadow-sm);
}

.blog-search {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .blog-search {
    max-width: 300px;
  }
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.blog-search input:focus {
  border-color: var(--tan);
  background: #FFFFFF;
}

.blog-search i, .blog-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   Hero Background — image / video toggle
   ========================================================================== */
.blog-hero .hero-bg-image { display: block; }
.blog-hero .hero-bg-video { display: none; }
.blog-hero .hero-bg--video .hero-bg-image { display: none; }
.blog-hero .hero-bg--video .hero-bg-video { display: block; }

/* ==========================================================================
   Featured / Latest Post
   ========================================================================== */
.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  margin-bottom: 3rem;
  height: 480px;
}

.featured-post:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.featured-img-wrap {
  position: relative;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-3);
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post:hover .featured-img-wrap img { transform: scale(1.06); }

.featured-content {
  padding: 2.25rem 2.5rem 2.25rem 0;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.featured-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 0.75rem;
  overflow-wrap: break-word;
}

.featured-excerpt {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 860px) {
  .featured-post { grid-template-columns: minmax(0, 1fr); height: auto; }
  .featured-img-wrap { height: 220px; }
  .featured-content { height: auto; overflow-y: visible; padding: 1.75rem; }
}

/* ==========================================================================
   Post Meta (shared by featured post + cards)
   ========================================================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-item i {
  width: 0.85rem;
  height: 0.85rem;
}

/* ==========================================================================
   Blog Post Cards Grid
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
}

.blog-card {
  text-decoration: none;
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-3);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-category {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-dark);
  background: #FFFFFF;
  padding: 0.3rem 0.7rem;
  border-radius: 4px !important;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.card-excerpt {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

img.author-avatar {
  object-fit: cover;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 4rem;
}

.page-num {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num:hover {
  border-color: var(--tan);
  color: var(--fg);
}

.page-num.active {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}

/* Phones: keep Prev · 1 · 2 · Next on a single row. The inline 1rem margins on
   Prev/Next are removed (needs !important) and the buttons made more compact. */
@media (max-width: 480px) {
  .pagination {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .pagination .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.7rem 0.9rem;
    font-size: 0.72rem;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .pagination .btn i {
    width: 1rem;
    height: 1rem;
  }

  .page-num {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* ==========================================================================
   Newsletter Signup
   ========================================================================== */
.newsletter-card {
  padding: 3rem;
  border-radius: 6px !important;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-card .muted {
  margin-top: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg);
  font-size: 0.9rem;
}

.newsletter-form input:focus {
  border-color: var(--tan);
  background: #FFFFFF;
}

@media (max-width: 480px) {
  .newsletter-card { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   Post Detail (Inner Blog) Page
   ========================================================================== */

/* Post Hero */
.post-hero {
  position: relative;
  padding: 4rem 0 0;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.post-hero .hero-bg-image { display: block; }
.post-hero .hero-bg-video { display: none; }
.post-hero .hero-bg--video .hero-bg-image { display: none; }
.post-hero .hero-bg--video .hero-bg-video { display: block; }

/* The post hero's background image is a clear showcase image, not a faded
   text backdrop like other site heroes — override the global 0.35 opacity
   fade (from style.css .hero-bg-media / .hero-bg img) so it renders at
   full clarity. */
.post-hero .hero-bg-media,
.post-hero .hero-bg img {
  opacity: 1;
}

/* Since the background image is now shown at full opacity, add a white
   veil over it so the breadcrumb/title/meta text staying on top remains
   legible against busy photos. Sits above the image (z-index 0) but below
   the post-banner (z-index 2). */
.post-hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
}

.post-header-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #16181D;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #16181D;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: #16181D; }

/* "Back To Blog" is a button, not a plain breadcrumb link — give it a
   solid dark fill (instead of just an outline) so it stays legible
   against the busy hero photo behind it, with white text/icon on top. */
.breadcrumb a.btn-outline {
  background: rgba(22, 24, 29, 0.85);
  border-color: rgba(22, 24, 29, 0.85);
  color: #FFFFFF;
}

.breadcrumb a.btn-outline i {
  color: #FFFFFF;
}

.breadcrumb a.btn-outline:hover,
.breadcrumb a.btn-outline:hover i {
  background: #16181D;
  border-color: #16181D;
  color: #FFFFFF;
}

.breadcrumb i {
  width: 0.9rem;
  height: 0.9rem;
}

.post-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #16181D;
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #16181D;
}

.post-hero-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-hero-meta i {
  width: 0.9rem;
  height: 0.9rem;
}

.post-banner {
  margin-top: 3rem;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-height: 480px;
  /* .hero-bg is absolutely positioned inside .post-hero, so it paints above
     normal-flow content like this banner in default stacking order. Lift
     the banner into its own stacked layer so it renders clearly on top
     instead of being ghosted by the faded hero backdrop. */
  position: relative;
  z-index: 2;
}

.post-banner img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Layout */
.article-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: start;
  padding-top: 3.5rem;
}

@media (max-width: 960px) {
  .article-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Article Content */
.article-content {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--fg);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--fg);
}

.article-content h2:first-child { margin-top: 0; }

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.article-content p.lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.6;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-content li {
  line-height: 1.7;
}

.article-content img {
  width: 100%;
  border-radius: var(--radius) !important;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--tan);
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--fg);
  font-style: italic;
}

/* Article Footer: Tags & Share */
.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.post-tag {
  padding: 0.4rem 1rem;
  border-radius: 6px !important;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-tag:hover {
  border-color: var(--tan);
  color: var(--fg);
  background: var(--tan-light);
}

.social-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.sidebar-widget {
  padding: 1.75rem;
  border-radius: var(--radius) !important;
}

.sidebar-widget .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.author-bio-widget {
  text-align: center;
}

.author-bio-widget img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.author-bio-widget h4 {
  font-size: 1.05rem;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.author-bio-widget p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Related Posts */
.related-posts {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-posts-header {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .post-hero { padding-top: 3rem; }
  .post-banner { margin-top: 2rem; }
  .article-wrapper { padding-top: 2.5rem; gap: 2.5rem; }
  .post-footer { flex-direction: column; align-items: flex-start; }
}
/* ==========================================================================
   Furnora — Deep Navy × Champagne Gold glossy theme (Blog & Blog Detail)
   Scoped to body.home-lux; uses the --hx-* tokens defined in style.css.
   ========================================================================== */
body.home-lux .blog-hero .hero-veil,
body.home-lux .post-hero .hero-bg::after {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(12, 34, 80, 0.20) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201, 150, 46, 0.26) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.92) 100%);
}
body.home-lux .blog-hero .hero-veil {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(12, 34, 80, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(201, 150, 46, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201, 150, 46, 0.28) 0%, transparent 70%),
    radial-gradient(circle at center, rgba(255,255,255,.85) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,.35) 100%),
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.75) 60%, rgba(255,255,255,.98) 100%);
}

/* Section tints */
body.home-lux section.section { background: linear-gradient(180deg, #F3F6FB 0%, #FFFFFF 45%, #FBF4E1 100%); }

/* Filters & pagination */
body.home-lux .filter-btn,
body.home-lux .page-num {
  border-color: rgba(201, 150, 46, 0.40);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 8px -2px rgba(5, 15, 42, 0.18);
}
body.home-lux .filter-btn:hover,
body.home-lux .page-num:hover { border-color: #C9962E; color: #0C2250; }
body.home-lux .filter-btn.active,
body.home-lux .page-num.active {
  background: var(--hx-g-btn);
  border-color: rgba(226, 192, 107, 0.65);
  color: #FFFFFF;
  box-shadow: var(--hx-sh-btn);
}

/* Cards */
body.home-lux .featured-post,
body.home-lux .newsletter-card,
body.home-lux .sidebar-widget {
  border-color: transparent;
  background: var(--hx-surface) padding-box, var(--hx-bd) border-box;
  box-shadow: var(--hx-sh-card);
}
body.home-lux .featured-post:hover { --hx-bd: var(--hx-bd-strong); box-shadow: var(--hx-sh-card-hover); }
body.home-lux .featured-img-wrap,
body.home-lux .card-img-wrap { background: linear-gradient(135deg, #E6EBF6 0%, #FBF3E4 100%); }
body.home-lux .card-footer { border-top-color: rgba(201, 150, 46, 0.35); }

/* Gradient headings (keep left-aligned inside cards/articles) */
body.home-lux .featured-title { margin-inline: 0; }
body.home-lux .card-title,
body.home-lux .sidebar-widget .widget-title,
body.home-lux .author-bio-widget h4,
body.home-lux .related-posts-header {
  width: fit-content;
  max-width: 100%;
  color: #091B40;
  background-image: linear-gradient(100deg, #091B40 0%, #0C2250 60%, #1D3F85 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.home-lux .related-posts-header { margin-inline: auto; }
body.home-lux .article-content h2 {
  margin-inline: 0;
  width: fit-content;
  filter: none;
}
body.home-lux .post-hero-title {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  color: #091B40;
  background-image: var(--hx-g-head);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Category badges, tags, meta icons */
body.home-lux .card-category {
  background: linear-gradient(135deg, #E6EBF6 0%, #FBF3E4 100%);
  color: #0C2250;
  border: 1px solid rgba(201, 150, 46, 0.45);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 6px rgba(5, 15, 42, .18);
}
body.home-lux .post-tag {
  background: linear-gradient(135deg, #F0F3FA 0%, #FBF3E4 100%);
  border-color: rgba(201, 150, 46, 0.40);
  color: #0C2250;
}
body.home-lux .post-tag:hover { border-color: #C9962E; background: linear-gradient(135deg, #E6EBF6 0%, #F8F1DF 100%); }
body.home-lux .meta-item i,
body.home-lux .post-hero-meta i,
body.home-lux .featured-readmore i { stroke: url(#hxStroke); }
body.home-lux .featured-readmore { color: #0C2250 !important; }
body.home-lux .author-avatar { box-shadow: 0 0 0 2px rgba(201, 150, 46, 0.55), 0 2px 6px rgba(5, 15, 42, .25); }
body.home-lux .author-bio-widget img { box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.55), 0 6px 14px -4px rgba(5, 15, 42, .3); }

/* Article body */
body.home-lux .article-content blockquote {
  border-left: 3px solid #C9962E;
  background: linear-gradient(135deg, #F0F3FA 0%, #FBF3E4 100%);
  color: #091B40;
  box-shadow: inset 0 1px 0 #FFFFFF;
}
body.home-lux .article-content li::marker { color: #C9962E; }
body.home-lux .post-footer,
body.home-lux .related-posts { border-top-color: rgba(201, 150, 46, 0.40); }

/* "Back To Blog" button over the hero photo */
body.home-lux .breadcrumb a.btn-outline {
  background: var(--hx-g-btn) padding-box, var(--hx-g-btn) border-box;
  border-color: rgba(226, 192, 107, 0.65);
  color: #FFFFFF;
  box-shadow: var(--hx-sh-btn);
}
body.home-lux .breadcrumb a.btn-outline i { stroke: #E2C06B; color: #FFFFFF; }
body.home-lux .breadcrumb a.btn-outline:hover { filter: brightness(1.12); background: var(--hx-g-btn) padding-box, var(--hx-g-btn) border-box; }

/* Share buttons & newsletter inputs */
body.home-lux .social-share .icon-btn { border-color: rgba(201, 150, 46, 0.40); }
body.home-lux .social-share .icon-btn:hover { border-color: #C9962E; color: #0C2250; }
body.home-lux .newsletter-form input:focus { border-color: #C9962E; }