/* ============================================
   ROYAL TOUGHENED GLASS — Blog System CSS
   ============================================ */

/* ---- Blog Listing Page ---- */

/* Hero Banner */
.blog-hero {
  min-height: 420px;
  background: linear-gradient(135deg, var(--royal-blue-dark) 0%, var(--royal-blue) 55%, #1e3a70 100%);
  display: flex;
  align-items: center;
  padding: 130px 6% 90px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C8E0' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero-image-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.blog-hero-content .section-label {
  margin-bottom: 14px;
}

.blog-hero-content h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  color: white;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.blog-hero-content h1 span {
  color: var(--cyan-accent);
}

.blog-hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 560px;
}

/* ---- Search + Filter Bar ---- */
.blog-controls {
  background: var(--off-white);
  padding: 32px 6%;
  border-bottom: 1px solid rgba(26, 50, 99, 0.08);
  position: sticky;
  top: 70px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.blog-controls-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Search */
.blog-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}

.blog-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--steel-grey);
  width: 18px;
  height: 18px;
}

#blog-search {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1.5px solid rgba(26, 50, 99, 0.15);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#blog-search:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* Category Filter Pills */
.blog-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1.5px solid rgba(26, 50, 99, 0.18);
  background: white;
  color: var(--text-muted);
  transition: all 0.2s ease;
  outline: none;
  letter-spacing: 0.2px;
}

.filter-pill:hover {
  border-color: var(--cyan-accent);
  color: var(--royal-blue);
}

.filter-pill.active {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
  box-shadow: 0 4px 16px rgba(26, 50, 99, 0.25);
}

/* ---- Blog Grid ---- */
.blog-section {
  padding: 80px 6%;
  background: white;
  min-height: 500px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 64px;
}

/* ---- Blog Card ---- */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 50, 99, 0.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, opacity 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(26, 50, 99, 0.06);
  position: relative;
  opacity: 1;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(26, 50, 99, 0.18);
}

.blog-card.hidden {
  display: none;
}

/* Card Image */
.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

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

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--royal-blue);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  z-index: 1;
}

.blog-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 31, 58, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blog-card:hover .blog-card-image-overlay {
  opacity: 1;
}

.blog-card-read-more {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--cyan-accent);
  color: var(--royal-blue);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 18px;
  font-weight: 700;
  z-index: 2;
}

.blog-card:hover .blog-card-read-more {
  opacity: 1;
  transform: scale(1);
}

/* Card Body */
.blog-card-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--steel-grey);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-date svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.blog-card-read-time {
  font-size: 12px;
  color: var(--steel-grey);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card-read-time svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.blog-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--royal-blue);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-card-desc {
  font-size: 14px;
  color: var(--steel-grey);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 50, 99, 0.07);
  margin-top: auto;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--steel-grey));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

.blog-card-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-accent);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

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

/* ---- No Results ---- */
.blog-no-results {
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.blog-no-results.visible {
  display: block;
}

.blog-no-results svg {
  width: 64px;
  height: 64px;
  color: var(--steel-grey);
  opacity: 0.4;
  margin: 0 auto 20px;
  display: block;
}

.blog-no-results h3 {
  font-size: 22px;
  color: var(--royal-blue);
  margin-bottom: 10px;
}

.blog-no-results p {
  color: var(--steel-grey);
  font-size: 15px;
}

/* ---- Pagination ---- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid rgba(26, 50, 99, 0.14);
  background: white;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
}

/* ---- Featured Post Banner ---- */
.featured-post-section {
  padding: 0 6% 0;
  background: white;
  margin-top: -2px;
}

.featured-post-banner {
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  box-shadow: 0 16px 60px rgba(26, 50, 99, 0.16);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: var(--royal-blue);
  margin-bottom: 64px;
}

.featured-post-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(26, 50, 99, 0.24);
}

.featured-post-image {
  position: relative;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.featured-post-banner:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-post-content {
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--cyan-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
}

.featured-post-content h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  color: white;
  font-weight: 800;
  line-height: 1.25;
}

.featured-post-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
}

.featured-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-accent);
  color: var(--royal-blue);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease;
}

.featured-read-btn:hover {
  background: #ffd27a;
  transform: translateX(3px);
}

/* =============================================
   BLOG DETAIL PAGE
   ============================================= */

/* ---- Blog Detail Hero ---- */
.blog-detail-hero {
  min-height: 520px;
  background: var(--royal-blue-dark);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.blog-detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.blog-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 45, 0.95) 30%, rgba(10, 20, 45, 0.4) 80%, transparent 100%);
}

.blog-detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6% 60px;
  max-width: 860px;
}

.blog-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  padding-top: 120px;
}

.blog-detail-breadcrumb a {
  color: var(--cyan-accent);
  transition: opacity 0.2s ease;
}

.blog-detail-breadcrumb a:hover {
  opacity: 0.8;
}

.blog-detail-breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.blog-detail-breadcrumb .bc-current {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-detail-category-badge {
  display: inline-block;
  background: var(--royal-blue);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.blog-detail-hero-content h1 {
  font-size: clamp(26px, 3.5vw, 48px);
  color: white;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
}

.blog-detail-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
}

.blog-detail-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-detail-meta-bar svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

/* ---- Article Layout ---- */
.blog-article-wrap {
  padding: 80px 6%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- Article Content ---- */
.blog-article-content {
  min-width: 0;
}

.blog-article-content article {
  font-size: 17px;
  line-height: 1.85;
  color: #2c3e5a;
  font-family: 'Inter', sans-serif;
}

.blog-article-content article h2 {
  font-size: clamp(20px, 2vw, 27px);
  color: var(--royal-blue);
  font-weight: 700;
  line-height: 1.3;
  margin: 48px 0 18px;
  padding-top: 8px;
  border-top: 2px solid var(--cyan-accent);
  display: inline-block;
  padding-right: 4px;
}

.blog-article-content article h3 {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--royal-blue);
  font-weight: 600;
  line-height: 1.35;
  margin: 36px 0 14px;
}

.blog-article-content article p {
  margin-bottom: 22px;
}

.blog-article-content article ul,
.blog-article-content article ol {
  list-style: none;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-article-content article ul li {
  padding-left: 24px;
  position: relative;
  color: #3a4f6e;
}

.blog-article-content article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-accent);
}

.blog-article-content article ol {
  counter-reset: ol-counter;
}

.blog-article-content article ol li {
  padding-left: 32px;
  position: relative;
  counter-increment: ol-counter;
  color: #3a4f6e;
}

.blog-article-content article ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-accent);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.blog-article-content article blockquote {
  background: linear-gradient(135deg, rgba(26, 50, 99, 0.04), rgba(245, 166, 35, 0.04));
  border-left: 4px solid var(--cyan-accent);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  color: var(--royal-blue);
  font-style: italic;
  font-size: 17px;
  line-height: 1.8;
}

.blog-article-content article strong {
  color: var(--royal-blue);
  font-weight: 700;
}

.blog-article-content article .article-img-wrap {
  margin: 36px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26, 50, 99, 0.14);
}

.blog-article-content article .article-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.blog-article-content article .article-img-wrap:hover img {
  transform: scale(1.02);
}

.blog-article-content article .article-img-caption {
  text-align: center;
  font-size: 13px;
  color: var(--steel-grey);
  margin-top: 10px;
  font-style: italic;
}

/* Key Takeaway Box */
.blog-article-content article .key-takeaway {
  background: linear-gradient(135deg, var(--royal-blue) 0%, #2548A0 100%);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 36px 0;
  color: white;
}

.blog-article-content article .key-takeaway h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-accent);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.blog-article-content article .key-takeaway p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Share Section */
.blog-share {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(26, 50, 99, 0.1);
}

.blog-share h4 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.blog-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn-whatsapp {
  background: #25D366;
  color: white;
}

.share-btn-linkedin {
  background: #0077B5;
  color: white;
}

.share-btn-copy {
  background: var(--off-white);
  color: var(--royal-blue);
  border: 1.5px solid rgba(26, 50, 99, 0.14);
}

/* ---- Sidebar ---- */
.blog-sidebar {
  position: sticky;
  top: 160px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(26, 50, 99, 0.08);
  border: 1px solid rgba(26, 50, 99, 0.06);
}

.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--royal-blue);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(245, 166, 35, 0.35);
  font-family: 'Poppins', sans-serif;
}

/* TOC */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-item {
  display: block;
  font-size: 13px;
  color: var(--steel-grey);
  padding: 7px 10px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.toc-item:hover,
.toc-item.active {
  background: rgba(26, 50, 99, 0.05);
  color: var(--royal-blue);
  border-left-color: var(--cyan-accent);
  padding-left: 14px;
}

/* Related Posts */
.related-post-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(26, 50, 99, 0.07);
  cursor: pointer;
  text-decoration: none;
}

.related-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.related-post-item:hover .related-post-title {
  color: var(--steel-grey);
}

.related-post-thumb {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumb img {
  transform: scale(1.05);
}

.related-post-info {
  flex: 1;
  min-width: 0;
}

.related-post-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--royal-blue);
  line-height: 1.4;
  transition: color 0.2s ease;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-date {
  font-size: 11px;
  color: var(--steel-grey);
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* CTA Card */
.sidebar-cta-card {
  background: linear-gradient(135deg, var(--royal-blue-dark), var(--royal-blue));
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.08);
}

.sidebar-cta-card h3 {
  font-size: 17px;
  color: white;
  margin-bottom: 10px;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-cta-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
}

.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-accent);
  color: var(--royal-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.sidebar-cta-btn:hover {
  background: #ffd27a;
  transform: translateY(-2px);
}

/* ---- Related Posts Section ---- */
.related-posts-section {
  background: var(--off-white);
  padding: 80px 6%;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* ---- Back to Blog Button ---- */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel-grey);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-bottom: 40px;
  text-decoration: none;
}

.back-to-blog:hover {
  color: var(--royal-blue);
  gap: 4px;
}

.back-to-blog svg {
  width: 18px;
  height: 18px;
}

/* =======================================
   RESPONSIVE
   ======================================= */

@media (max-width: 1100px) {
  .blog-article-wrap {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .featured-post-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .featured-post-image {
    height: 260px;
  }

  .featured-post-content {
    padding: 36px 32px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 120px 5% 60px;
    min-height: 360px;
  }

  .blog-hero-content h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .blog-controls-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-wrap {
    max-width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-wrap {
    padding: 48px 5%;
    gap: 40px;
  }

  .blog-detail-hero-content h1 {
    font-size: clamp(22px, 6vw, 34px);
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-post-banner {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .blog-card-body {
    padding: 20px 20px 22px;
  }

  .blog-controls {
    top: 60px;
  }

  .blog-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}
