/* ============================================================
   BLOG SECTION — Light Luxury Jewellery Theme
   BG: #FCF9F2 (Cream) | Dark Green: #1A4031 | Gold: #B58444
   ============================================================ */

/* ── Blog Theme Variables ──────────────────────────────────── */
:root {
  --blog-bg: #FCF9F2;
  --blog-bg-card: #FFFFFF;
  --blog-bg-elevated: #F1E6D8;
  --blog-gold: #B58444;
  --blog-gold-light: #C4A882;
  --blog-gold-dark: #8A8276;
  --blog-cream: #1A4031;
  --blog-cream-muted: #4A534F;
  --blog-cream-dim: #8A8276;
  --blog-border: rgba(26, 64, 49, 0.1);
  --blog-border-strong: rgba(26, 64, 49, 0.25);
  --blog-glow: rgba(181, 132, 68, 0.05);
  --blog-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --blog-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --blog-max-width: 1200px;
  --blog-post-width: 820px;
}

/* ── Base Styling for Blog Pages ───────────────────────────── */
body.blog-page {
  background: var(--blog-bg);
  color: var(--blog-cream);
}

/* Inherit standard header and footer from main site */
body.blog-page .site-header {
  border-bottom: 1px solid var(--blog-border);
}

body.blog-page .logo-image {
  filter: none; /* Keep standard logo */
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */

/* ── Hero Banner ───────────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: 180px 0 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #F1E6D8 0%, #FCF9F2 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181, 132, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-badge {
  display: inline-block;
  font-family: var(--blog-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--blog-gold);
  border: 1px solid var(--blog-gold-light);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 32px;
  background: rgba(181, 132, 68, 0.05);
}

.blog-hero h1 {
  font-family: var(--blog-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  color: var(--blog-cream);
  line-height: 1.1;
  margin-bottom: 20px;
}

.blog-hero h1 span {
  color: var(--blog-gold);
  font-style: italic;
}

.blog-hero-desc {
  font-family: var(--blog-sans);
  font-size: 15px;
  color: var(--blog-cream-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Gold divider line ─────────────────────────────────────── */
.blog-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blog-gold), transparent);
  margin: 48px auto;
}

/* ── Blog Grid ─────────────────────────────────────────────── */
.blog-listing {
  padding: 0 40px 120px;
  max-width: var(--blog-max-width);
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 36px;
}

/* ── Blog Card ─────────────────────────────────────────────── */
.blog-card {
  background: var(--blog-bg-card);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 24px rgba(26, 64, 49, 0.04);
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, transparent 50%, rgba(181, 132, 68, 0.02) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(26, 64, 49, 0.08), 0 0 0 1px rgba(181, 132, 68, 0.2);
  border-color: var(--blog-gold-light);
}

.blog-card:hover::after {
  opacity: 1;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-image .blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--blog-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  background: var(--blog-gold);
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 2;
}

.blog-card-body {
  padding: 28px 28px 32px;
}

.blog-card-meta {
  font-family: var(--blog-sans);
  font-size: 11px;
  color: var(--blog-cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-meta span::before {
  content: '·';
  margin-right: 12px;
  color: var(--blog-gold);
}

.blog-card-meta span:first-child::before {
  display: none;
}

.blog-card-title {
  font-family: var(--blog-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--blog-cream);
  line-height: 1.3;
  margin-bottom: 14px;
  transition: color 0.3s;
}

.blog-card:hover .blog-card-title {
  color: var(--blog-gold);
}

.blog-card-excerpt {
  font-family: var(--blog-sans);
  font-size: 13px;
  color: var(--blog-cream-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-family: var(--blog-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blog-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.3s;
}

.blog-card:hover .blog-card-link {
  gap: 14px;
}

.blog-card-link svg {
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-link svg {
  transform: translateX(4px);
}

/* ============================================================
   INDIVIDUAL BLOG POST PAGE
   ============================================================ */

.blog-post-page {
  padding-bottom: 100px;
}

/* ── Post Hero ─────────────────────────────────────────────── */
.blog-post-hero {
  padding: 160px 40px 60px;
  max-width: var(--blog-post-width);
  margin: 0 auto;
  text-align: center;
}

.blog-post-category {
  display: inline-block;
  font-family: var(--blog-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blog-gold);
  border: 1px solid var(--blog-gold-light);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  background: rgba(181, 132, 68, 0.05);
}

.blog-post-hero h1 {
  font-family: var(--blog-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  color: var(--blog-cream);
  line-height: 1.2;
  margin-bottom: 24px;
}

.blog-post-hero-meta {
  font-family: var(--blog-sans);
  font-size: 12px;
  color: var(--blog-cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-post-hero-meta span {
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Post Main Image ───────────────────────────────────────────── */
.blog-post-main-image {
  margin: 0 0 var(--space-8) 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-post-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blog-gold);
  display: inline-block;
}

/* ── Post Content ──────────────────────────────────────────── */
.blog-post-content {
  max-width: var(--blog-post-width);
  margin: 0 auto;
  padding: 0 40px;
}

.blog-post-content h2 {
  font-family: var(--blog-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 500;
  color: var(--blog-cream); /* Deep elegant teal/green */
  margin: 56px 0 20px;
  line-height: 1.25;
  position: relative;
  padding-bottom: 16px;
}

.blog-post-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blog-gold), transparent);
}

.blog-post-content h3 {
  font-family: var(--blog-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--blog-cream);
  margin: 36px 0 14px;
}

.blog-post-content p {
  font-family: var(--blog-sans);
  font-size: 15px;
  color: var(--blog-cream-muted);
  line-height: 1.85;
  margin-bottom: 22px;
}

.blog-post-content strong {
  color: var(--blog-cream);
  font-weight: 600;
}

.blog-post-content em {
  color: var(--blog-gold);
  font-style: italic;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 24px;
  margin-bottom: 22px;
}

.blog-post-content li {
  font-family: var(--blog-sans);
  font-size: 15px;
  color: var(--blog-cream-muted);
  line-height: 1.85;
  margin-bottom: 10px;
  position: relative;
}

.blog-post-content ul li {
  list-style: none;
  padding-left: 20px;
}

.blog-post-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--blog-gold);
  font-size: 8px;
  top: 7px;
}

.blog-post-content ol {
  counter-reset: blog-counter;
  list-style: none;
}

.blog-post-content ol li {
  counter-increment: blog-counter;
  padding-left: 32px;
}

.blog-post-content ol li::before {
  content: counter(blog-counter);
  position: absolute;
  left: 0;
  font-family: var(--blog-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--blog-gold);
  top: 0;
}

/* ── Pull Quote ────────────────────────────────────────────── */
.blog-pull-quote {
  margin: 48px 0;
  padding: 40px 48px;
  border-left: 3px solid var(--blog-gold);
  background: linear-gradient(135deg, rgba(181, 132, 68, 0.05) 0%, rgba(181, 132, 68, 0.01) 100%);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.blog-pull-quote::before {
  content: '"';
  font-family: var(--blog-serif);
  font-size: 80px;
  color: var(--blog-gold);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.blog-pull-quote p {
  font-family: var(--blog-serif) !important;
  font-size: 22px !important;
  font-style: italic;
  color: var(--blog-gold) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

.blog-pull-quote cite {
  display: block;
  font-family: var(--blog-sans);
  font-size: 12px;
  color: var(--blog-cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 16px;
  font-style: normal;
}

/* ── Warning / Tip Callout ─────────────────────────────────── */
.blog-callout {
  margin: 40px 0;
  padding: 28px 32px;
  border-radius: 12px;
  border: 1px solid;
}

.blog-callout--warning {
  background: rgba(200, 80, 40, 0.04);
  border-color: rgba(200, 80, 40, 0.2);
}

.blog-callout--tip {
  background: rgba(181, 132, 68, 0.04);
  border-color: var(--blog-border-strong);
}

.blog-callout-title {
  font-family: var(--blog-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-callout--warning .blog-callout-title {
  color: #C85028;
}

.blog-callout--tip .blog-callout-title {
  color: var(--blog-gold);
}

.blog-callout p {
  margin-bottom: 8px !important;
}

.blog-callout p:last-child {
  margin-bottom: 0 !important;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.blog-cta {
  margin: 64px 0 0;
  padding: 56px 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--blog-bg-elevated) 0%, #FCF9F2 100%);
  border: 1px solid var(--blog-border-strong);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(181, 132, 68, 0.06), transparent 70%);
  pointer-events: none;
}

.blog-cta h3 {
  font-family: var(--blog-serif);
  font-size: 32px;
  color: var(--blog-cream);
  margin-bottom: 16px;
}

.blog-cta p {
  font-family: var(--blog-sans);
  font-size: 14px;
  color: var(--blog-cream-muted) !important;
  max-width: 480px;
  margin: 0 auto 28px !important;
  line-height: 1.7;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--blog-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--blog-cream), #2A5A46);
  padding: 16px 40px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26, 64, 49, 0.15);
}

.blog-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 64, 49, 0.25);
  background: linear-gradient(135deg, #2A5A46, var(--blog-cream));
}

/* ── Quiz Section ──────────────────────────────────────────── */
.blog-quiz {
  margin: 48px 0;
  padding: 36px 40px;
  background: var(--blog-bg-elevated);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
}

.blog-quiz h3 {
  font-family: var(--blog-serif);
  font-size: 26px;
  color: var(--blog-cream);
  margin-bottom: 24px;
  text-align: center;
}

.blog-quiz-item {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--blog-border);
  border-radius: 10px;
}

.blog-quiz-item strong {
  display: block;
  font-family: var(--blog-sans);
  font-size: 14px;
  color: var(--blog-cream);
  margin-bottom: 6px;
}

.blog-quiz-item span {
  font-family: var(--blog-sans);
  font-size: 13px;
  color: var(--blog-cream-muted);
}

/* ── Back to Blog Link ─────────────────────────────────────── */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--blog-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blog-cream-dim);
  padding: 160px 40px 0;
  max-width: var(--blog-post-width);
  margin: 0 auto;
  display: flex;
  transition: color 0.3s;
}

.blog-back:hover {
  color: var(--blog-gold);
}

.blog-back svg {
  transition: transform 0.3s;
}

.blog-back:hover svg {
  transform: translateX(-4px);
}

/* ── Scroll Reveal Animations ──────────────────────────────── */
.blog-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 140px 20px 60px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 4px;
  }

  .blog-listing {
    padding: 0 20px 80px;
  }

  .blog-post-hero {
    padding: 130px 20px 40px;
  }

  .blog-post-content {
    padding: 0 20px;
  }

  .blog-pull-quote {
    padding: 28px 24px;
    margin: 36px 0;
  }

  .blog-pull-quote p {
    font-size: 18px !important;
  }

  .blog-cta {
    padding: 40px 24px;
    margin: 48px 0 0;
  }

  .blog-back {
    padding: 130px 20px 0;
  }

  .blog-card-image {
    height: 180px;
  }

  .blog-quiz {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-card-title {
    font-size: 20px;
  }

  .blog-post-hero h1 {
    font-size: 28px;
  }

  .blog-post-content h2 {
    font-size: 24px;
  }
}
