/* ============================================================
   RESOURCE BLOG DETAILS — Figma node 1701:10227 (Blogs - Details)
   ============================================================ */

.rb-details .rb-hero {
  position: relative;
  min-height: 360px;
  background: url('../images/hero-bg.png') center center / cover no-repeat;
  overflow: visible;
}

.rb-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 74, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.rb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 85px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rb-hero-title {
  max-width: 948px;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 52.9px;
  color: #ffffff;
}

.rb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.rb-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(255, 255, 255, 0.7);
}

.rb-hero-meta-item i {
  font-size: 12px;
}

.rb-breadcrumb-shell {
  margin-top: -50px;
  position: relative;
  z-index: 3;
}

.rb-breadcrumb-shell .cg-breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rb-breadcrumb-shell .cg-breadcrumb {
  position: relative;
  margin: 0 auto;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #9CA3AF;
  width: min(1086px, calc(100% - 32px));
  height: 50px;
  border-radius: 16px 16px 0 0;
}

.rb-breadcrumb-shell .cg-breadcrumb::before,
.rb-breadcrumb-shell .cg-breadcrumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.rb-breadcrumb-shell .cg-breadcrumb::before {
  left: -16px;
  background: radial-gradient(circle at 0 0, transparent 16px, #ffffff 16.5px);
}

.rb-breadcrumb-shell .cg-breadcrumb::after {
  right: -16px;
  background: radial-gradient(circle at 100% 0, transparent 16px, #ffffff 16.5px);
}

.rb-breadcrumb-shell .cg-breadcrumb a {
  color: #374151;
  text-decoration: none;
}

.rb-breadcrumb-shell .cg-breadcrumb-current {
  font-weight: 500;
  color: #f47920;
}

.rb-body-section {
  padding: 48px 24px 96px;
  background: #ffffff;
}

.rb-layout {
  max-width: 1570px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 837px) 424px;
  gap: 48px;
  justify-content: center;
  align-items: start;
}

.rb-article {
  min-width: 0;
}

.rb-article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px;
}

.rb-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rb-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f47920;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rb-author-name {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: #111827;
}

.rb-author-role {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}

.rb-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rb-share-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.rb-share-btn:hover {
  color: #f16522;
  border-color: #f16522;
}

.rb-figure {
  margin: 0 0 28px;
}

.rb-figure-img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 2px;
}

.rb-figure-caption {
  margin-top: 12px;
  font-family: Inter, sans-serif;
  font-style: italic;
  font-size: 13px;
  line-height: 19.5px;
  color: #9ca3af;
}

.rb-media-embed {
  position: relative;
  margin: 0 0 28px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 2px;
  overflow: hidden;
}

.rb-media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rb-media-embed.rb-pdf-embed {
  aspect-ratio: auto;
  height: 720px;
  background: #f3f4f6;
}

.rb-content {
  color: #4b5563;
  font-family: Inter, 'DM Sans', sans-serif;
}

.rb-content > *:first-child {
  margin-top: 0;
}

.rb-content p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 29.6px;
  color: #4b5563;
}

.rb-content p:first-of-type {
  font-weight: 500;
  font-size: 17px;
  line-height: 31.45px;
  color: #374151;
}

.rb-content h2,
.rb-content h3 {
  margin: 40px 0 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 39px;
  color: #111827;
}

.rb-content ul,
.rb-content ol {
  margin: 0 0 24px;
  padding: 0 0 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-content li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 27.125px;
  color: #374151;
}

.rb-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f47920;
}

.rb-content blockquote {
  margin: 40px 0 24px;
  padding: 24px 32px 24px 36px;
  background: #fff8f3;
  border-left: 4px solid #f47920;
  border-radius: 0 2px 2px 0;
}

.rb-content blockquote p {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  color: #1c2b4a;
}

.rb-content blockquote footer,
.rb-content blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: Inter, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 20.25px;
  color: #6b7280;
}

.rb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.rb-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #4b5563;
  background: #ffffff;
}

.rb-sidebar {
  min-width: 0;
}

.rb-related {
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  background: #ffffff;
}

.rb-related-head {
  background: #1c2b4a;
  padding: 16px 24px;
}

.rb-related-head h2 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffff;
}

.rb-related-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
}

.rb-related-item:last-child {
  border-bottom: 0;
}

.rb-related-item:hover .rb-related-title {
  color: #f16522;
}

.rb-related-thumb {
  width: 80px;
  height: 64px;
  border-radius: 2px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.rb-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rb-related-title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 18.2px;
  color: #111827;
}

.rb-related-date {
  margin: 4px 0 0;
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  line-height: 17.25px;
  color: #9ca3af;
}

.rb-related-empty {
  margin: 0;
  padding: 20px;
  font-size: 13px;
  color: #9ca3af;
}

@media (max-width: 1199px) {
  .rb-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
}

@media (max-width: 991px) {
  .rb-layout {
    grid-template-columns: 1fr;
  }

  .rb-sidebar {
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .rb-hero-title {
    font-size: 28px;
    line-height: 34px;
  }

  .rb-hero-inner {
    padding: 56px 16px 68px;
  }

  .rb-article-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rb-breadcrumb-shell {
    margin-top: 0;
  }
}
