/* ============================
   BLOG - Hide theme page header
   ============================ */

body.blog .breadcumb-wrapper,
body.category .breadcumb-wrapper,
body.single-post .breadcumb-wrapper {
  display: none !important;
}

/* ============================
   BLOG - Single Post Content
   ============================ */

/* Article body text inherits rm-text-block styles */
.ab-blog-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 56px 0 24px;
  line-height: 1.3;
}

.ab-blog-content h2:first-child {
  margin-top: 0;
}

.ab-blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 40px 0 16px;
  line-height: 1.35;
}

.ab-blog-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 32px 0 12px;
}

.ab-blog-content p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 24px;
}

.ab-blog-content p:last-child {
  margin-bottom: 0;
}

.ab-blog-content a {
  color: #c9a87c;
  text-decoration: none;
  transition: color 0.2s;
}

.ab-blog-content a:hover {
  color: #b89568;
}

.ab-blog-content strong {
  color: #1a1a1a;
  font-weight: 600;
}

.ab-blog-content ul,
.ab-blog-content ol {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #444;
  line-height: 1.8;
  margin: 0 0 24px 24px;
  padding: 0;
}

.ab-blog-content li {
  margin-bottom: 8px;
}

.ab-blog-content blockquote {
  border-left: 3px solid #c9a87c;
  margin: 32px 0;
  padding: 16px 0 16px 24px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: #555;
  line-height: 1.6;
}

.ab-blog-content blockquote p {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.ab-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.ab-blog-content .wp-caption {
  max-width: 100%;
  margin: 32px 0;
}

.ab-blog-content .wp-caption img {
  margin: 0;
}

.ab-blog-content .wp-caption-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-top: 12px;
}

/* Salon info box (existing posts have this) */
.ab-blog-content .salon-info {
  background: rgba(201,168,124,0.08);
  border: 1px solid rgba(201,168,124,0.2);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.ab-blog-content .salon-info strong {
  color: #1a1a1a;
}

/* CTA buttons in posts */
.ab-blog-content .cta-button,
.ab-blog-content a[class*="cta"] {
  display: inline-block;
  background: #c9a87c;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  margin: 8px 0;
}

.ab-blog-content .cta-button:hover,
.ab-blog-content a[class*="cta"]:hover {
  background: #b89568;
}

/* ============================
   BLOG - Archive Grid
   ============================ */

.ab-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Pagination */
.page-numbers {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #999;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.page-numbers:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.04);
}

.page-numbers.current {
  color: #fff;
  background: #c9a87c;
}

/* ============================
   BLOG - Desktop TOC override
   ============================ */

body.single-post nav#rm-toc.rm-toc,
body.single-post nav#rm-toc,
body.single-post #rm-toc {
  top: 120px !important;
  max-height: calc(100vh - 160px) !important;
  overflow-y: auto !important;
  padding-right: 8px;
}

/* Thin scrollbar for TOC */
body.single-post #rm-toc::-webkit-scrollbar {
  width: 3px;
}

body.single-post #rm-toc::-webkit-scrollbar-track {
  background: transparent;
}

body.single-post #rm-toc::-webkit-scrollbar-thumb {
  background: rgba(201,168,124,0.3);
  border-radius: 3px;
}

/* ============================
   BLOG - Mobile
   ============================ */

@media (max-width: 1200px) {
  /* Hide desktop TOC on blog posts too */
  body.single-post nav#rm-toc {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ab-blog-hero h1 {
    font-size: 30px !important;
  }

  .ab-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

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

  .ab-blog-content h3 {
    font-size: 20px;
  }

  .ab-blog-content p,
  .ab-blog-content ul,
  .ab-blog-content ol {
    font-size: 16px;
  }

  .rm-booking-columns {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .rm-related-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hide share icons on mobile */
  body.single-post .opt1-seg:nth-child(3) {
    display: none !important;
  }

  /* Mobile TOC visible */
  body.single-post #rm-toc-mobile {
    display: block !important;
  }
}

@media (min-width: 1201px) {
  /* Hide mobile TOC on desktop */
  body.single-post #rm-toc-mobile {
    display: none !important;
  }
}
