/* ==========================================================================
   G4 GEMS - THE GEMSTONE JOURNAL (BLOG LISTING) STYLESHEET
   Stylesheet: css/blog.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO & BREADCRUMBS
   -------------------------------------------------------------------------- */
.blog-listing-hero {
  background: linear-gradient(180deg, #f7f4ee 0%, var(--bg-main) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 110px 0 45px;
  position: relative;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #937341;
  background: rgba(197, 168, 128, 0.16);
  border: 1px solid rgba(197, 168, 128, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.blog-listing-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}

.blog-listing-subtitle {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto 28px;
}

/* --------------------------------------------------------------------------
   2. SEARCH & CATEGORY PILLS BAR
   -------------------------------------------------------------------------- */
.blog-controls-section {
  padding: 24px 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid #ede4d7;
  position: sticky;
  top: 72px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.blog-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #dfd4c5;
  border-radius: 50px;
  padding: 6px 14px 6px 18px;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 380px;
}

.blog-search-box:focus-within {
  border-color: #c5a880;
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.2);
}

.blog-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #111827;
  outline: none;
}

.blog-search-input::placeholder {
  color: #9ca3af;
}

.blog-search-clear {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 15px;
  cursor: pointer;
  display: none;
  padding: 0 4px;
}

.blog-search-clear:hover {
  color: #4b5563;
}

.blog-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pill-btn {
  background: #fbf9f5;
  border: 1px solid #e8dfd5;
  color: #4b5563;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.blog-pill-btn:hover {
  background: #f4eee3;
  color: #111827;
  border-color: #c5a880;
}

.blog-pill-btn.active {
  background: #18181b;
  color: #c5a880;
  border-color: #18181b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   3. FEATURED SPOTLIGHT ARTICLE CARD
   -------------------------------------------------------------------------- */
.blog-featured-section {
  padding: 50px 0 25px;
  background-color: var(--bg-main);
}

.blog-spotlight-card {
  background: #ffffff;
  border: 1px solid #e8dfd5;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.blog-spotlight-card:hover {
  border-color: #c5a880;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.blog-spotlight-img-wrap {
  position: relative;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.blog-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-spotlight-card:hover .blog-spotlight-img {
  transform: scale(1.04);
}

.blog-spotlight-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(8px);
  color: #c5a880;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.blog-spotlight-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.blog-meta-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #937341;
  margin-bottom: 10px;
  display: inline-block;
}

.blog-spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 16px;
}

.blog-spotlight-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-spotlight-title a:hover {
  color: #937341;
}

.blog-spotlight-excerpt {
  font-size: 15.5px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 24px;
}

.blog-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.blog-author-avatar-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #c5a880;
}

.blog-author-name-sm {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.blog-author-sub-sm {
  font-size: 12px;
  color: #6b7280;
}

.btn-read-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #18181b;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  width: fit-content;
}

.btn-read-spotlight:hover {
  background: #c5a880;
  color: #18181b;
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. ARTICLE GRID
   -------------------------------------------------------------------------- */
.blog-grid-section {
  padding: 40px 0 80px;
  background-color: var(--bg-main);
}

.blog-grid-card {
  background: #ffffff;
  border: 1px solid #e8dfd5;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.blog-grid-card:hover {
  border-color: #c5a880;
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}

.blog-grid-thumb-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #faf7f2;
}

.blog-grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-grid-card:hover .blog-grid-thumb {
  transform: scale(1.06);
}

.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #8b6e3f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.blog-grid-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-grid-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-grid-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 12px;
}

.blog-grid-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-grid-title a:hover {
  color: #937341;
}

.blog-grid-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f3ece4;
}

.blog-read-link {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-read-link:hover {
  color: #937341;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. NEWSLETTER SECTION
   -------------------------------------------------------------------------- */
.blog-newsletter-section {
  background: #18181b;
  color: #ffffff;
  padding: 70px 0;
  position: relative;
  border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.newsletter-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-badge {
  color: #c5a880;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  margin-bottom: 14px;
  color: #ffffff;
}

.newsletter-desc {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 28px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 22px;
  color: #ffffff;
  font-size: 14.5px;
  width: 100%;
  outline: none;
  transition: all 0.25s ease;
}

.newsletter-input:focus {
  border-color: #c5a880;
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  background: #c5a880;
  color: #18181b;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  background: #d8bc94;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .blog-controls-section {
    top: 60px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
  }
}
