/* ==========================================================================
   GenTe Blog Page & Post Detail Styles — Clean White Luxury Theme
   ========================================================================== */

/* Blog Hero */
.blog-hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  min-height: 83vh;
}

.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;
}

.featured-post:hover {
  border-color: var(--tan);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.featured-img-wrap {
  position: relative;
  min-height: 280px;
  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;
  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); }
  .featured-img-wrap { min-height: 220px; }
  .featured-content { 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);
}

/* ==========================================================================
   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);
}

.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; }

.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: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--fg); }

.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: var(--fg);
}

.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: var(--muted);
}

.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;
}

.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; }
}