/* ==========================================================================
   WEB PARTNER SOLUTIONS - BLOG & ARTICLE STYLESHEET (blog.css)
   Dedicated styles for blog.php & blog-detail.php
   Reference Design: 3-Column Modern Insights Grid with Hero Search & Overlay Badges
   ========================================================================== */

/* ==========================================================================
   1. HERO SECTION & CONTROLS (Brand Dark Cyber Theme Matching Portfolio Page)
   ========================================================================== */
.portfolio-hero-section,
.blog-ref-hero,
.blog-detail-ref-hero {
  position: relative;
  padding: 155px 0 90px;
  background-color: #060b18;
  background-image: 
    radial-gradient(circle at 85% 18%, rgba(0, 194, 203, 0.28) 0%, rgba(0, 229, 219, 0.08) 35%, transparent 65%),
    radial-gradient(circle at 10% 85%, rgba(14, 165, 233, 0.16) 0%, transparent 55%),
    linear-gradient(rgba(0, 194, 203, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 203, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  border-bottom: 1px solid rgba(0, 194, 203, 0.15);
  overflow: hidden;
}

body.dark-theme .portfolio-hero-section,
body.dark-theme .blog-ref-hero,
body.dark-theme .blog-detail-ref-hero {
  background-color: #050914;
  background-image: 
    radial-gradient(circle at 85% 18%, rgba(0, 194, 203, 0.32) 0%, rgba(0, 229, 219, 0.1) 35%, transparent 65%),
    radial-gradient(circle at 10% 85%, rgba(14, 165, 233, 0.2) 0%, transparent 55%),
    linear-gradient(rgba(0, 194, 203, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 203, 0.06) 1px, transparent 1px);
}

.portfolio-hero-content,
.blog-ref-hero .page-hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-badge-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* Breadcrumb Navigation */
.portfolio-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 20px;
}

.portfolio-hero-breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.portfolio-hero-breadcrumb a:hover {
  color: #00e5db;
}

.portfolio-hero-breadcrumb .breadcrumb-separator {
  color: #64748b;
  font-size: 0.78rem;
}

.portfolio-hero-breadcrumb .breadcrumb-current {
  color: #cbd5e1;
}

/* Glowing Top Pill Badge */
.portfolio-hero-badge,
.blog-ref-badge,
.blog-detail-breadcrumb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 50px;
  background: rgba(0, 194, 203, 0.1);
  border: 1px solid rgba(0, 194, 203, 0.35);
  color: #00e5db;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

/* Hero Title (H1) */
.portfolio-hero-title,
.blog-ref-hero .hero-title {
  font-family: var(--font-heading), "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.22;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.portfolio-hero-title .text-gradient,
.blog-ref-hero .hero-title .text-gradient {
  background: linear-gradient(135deg, #00c2cb 0%, #00e5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-hero-title.blog-detail-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.28;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Subtitle Description */
.portfolio-hero-desc,
.blog-ref-hero-subtitle {
  font-family: var(--font-body), "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.08rem;
  color: #cbd5e1 !important;
  line-height: 1.75;
  margin: 0 auto 30px;
  max-width: 820px;
}

.portfolio-hero-desc.blog-detail-summary {
  font-size: 1.05rem;
  max-width: 860px;
  margin-bottom: 22px;
  color: #cbd5e1 !important;
}

/* Blog Detail Meta Pill Bar */
.blog-detail-meta-pill-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 24px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(0, 194, 203, 0.25);
  backdrop-filter: blur(8px);
  margin: 0 auto 28px;
}

.blog-detail-meta-pill-bar .meta-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

.blog-detail-meta-pill-bar .meta-pill-item i {
  color: #00e5db;
  font-size: 0.92rem;
}

.blog-detail-meta-pill-bar .meta-separator {
  color: #475569;
  font-size: 0.9rem;
}

/* Hero Action Buttons */
.portfolio-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.portfolio-hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00c2cb 0%, #00d2d3 100%);
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 8px 22px -3px rgba(0, 194, 203, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.portfolio-hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, #00d2d3 0%, #00c2cb 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -3px rgba(0, 194, 203, 0.6);
}

/* --- Hero Search Bar (Dark Cyber Theme Matching Portfolio Page) --- */
.blog-hero-search-wrapper {
  max-width: 620px;
  margin: 0 auto 34px auto;
  position: relative;
}

.blog-hero-search-bar {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 6px 7px 6px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 194, 203, 0.12);
  border: 1px solid rgba(0, 194, 203, 0.35);
  transition: all 0.25s ease;
}

.blog-hero-search-bar:focus-within {
  border-color: #00e5db;
  box-shadow: 0 12px 36px rgba(0, 194, 203, 0.35), 0 0 24px rgba(0, 229, 219, 0.22);
  background: rgba(15, 23, 42, 0.95);
}

.blog-hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.96rem;
  color: #ffffff;
  font-family: var(--font-body);
  padding: 8px 8px 8px 0;
}

.blog-hero-search-input::placeholder {
  color: #94a3b8;
}

.blog-hero-search-btn {
  background: linear-gradient(135deg, #00c2cb 0%, #00d2d3 100%);
  color: #ffffff !important;
  border: none;
  outline: none;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 194, 203, 0.4);
  font-family: var(--font-heading);
}

.blog-hero-search-btn:hover {
  background: linear-gradient(135deg, #00d2d3 0%, #00c2cb 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 194, 203, 0.6);
}

/* Trust Bar Below Actions */
.portfolio-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.portfolio-trust-bar .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
}

.portfolio-trust-bar .trust-item i {
  color: #00e5db;
  font-size: 0.95rem;
}

/* --- Category Filter Pills --- */
.blog-category-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.category-btn.active {
  background: #ffffff;
  color: #0c1322;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

/* ==========================================================================
   2. BLOG ARTICLES GRID (3 Columns Modern Cards)
   ========================================================================== */
.blog-grid-section {
  padding: 60px 0 90px 0;
  background: var(--bg-primary);
}

.blog-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

/* --- Blog Card Base --- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

body.dark-theme .blog-card {
  background: #0c1527;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

body.dark-theme .blog-card:hover {
  border-color: rgba(0, 194, 203, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* --- Card Thumbnail with Tag Overlay --- */
.blog-card-thumb {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  background: #0c1322;
}

.blog-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

/* Category Badge Floating on Image Bottom Right */
.blog-category-tag {
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: linear-gradient(135deg, #c43826 0%, #db4f2e 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
  font-family: var(--font-heading);
}

.cat-tag-ai {
  background: linear-gradient(135deg, #c43826 0%, #e05333 100%);
}

.cat-tag-cloud {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.cat-tag-crm {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.cat-tag-web {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.cat-tag-strategy {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

/* --- Card Content --- */
.blog-card-inner {
  padding: 22px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-author-line i {
  color: #94a3b8;
  font-size: 0.86rem;
}

body.dark-theme .blog-author-line {
  color: #94a3b8;
}

.blog-card-headline {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
  margin-bottom: 20px;
  flex-grow: 1;
  font-family: var(--font-heading);
}

.blog-card-headline a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-card-headline a:hover {
  color: #c43826;
}

body.dark-theme .blog-card-headline {
  color: #f8fafc;
}

body.dark-theme .blog-card-headline a:hover {
  color: #00e5db;
}

/* --- Card Footer CTA Link --- */
.blog-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
}

body.dark-theme .blog-card-action {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.blog-read-cta {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  min-height: 44px;
  font-family: var(--font-heading);
}

.blog-read-cta i {
  font-size: 0.82rem;
  transition: transform 0.22s ease;
}

.blog-read-cta:hover {
  color: #c43826;
  gap: 12px;
}

.blog-read-cta:hover i {
  transform: translateX(4px);
}

body.dark-theme .blog-read-cta {
  color: #e2e8f0;
}

body.dark-theme .blog-read-cta:hover {
  color: #00e5db;
}

/* ==========================================================================
   3. BOTTOM RESULTS COUNTER BAR (Matches Reference Mockup)
   ========================================================================== */
.blog-results-counter-bar {
  width: 100%;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 0.92rem;
  color: #64748b;
  text-align: left;
}

.blog-results-counter-bar strong {
  color: #0f172a;
  font-weight: 700;
}

body.dark-theme .blog-results-counter-bar {
  background: #0c1527;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.dark-theme .blog-results-counter-bar strong {
  color: #ffffff;
}

/* ==========================================================================
   4. BLOG DETAIL PAGE (Matches Reference Mockup)
   ========================================================================== */
/* Section 4 Blog Detail Hero is unified with .portfolio-hero-section above */
.blog-detail-hero-section {
  padding: 155px 0 80px;
}

/* --- Blog Detail Section & 2-Column Grid --- */
.blog-detail-section {
  padding: 60px 0 90px 0;
  background: var(--bg-primary);
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* --- Left Column: Main Article --- */
.blog-detail-main {
  min-width: 0;
}

.blog-detail-featured-banner {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #0c1322;
}

.blog-detail-featured-banner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.blog-detail-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

body.dark-theme .blog-detail-body {
  color: #cbd5e1;
}

.blog-detail-body p {
  margin-bottom: 24px;
}

.blog-detail-body h2,
.blog-detail-body h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 38px 0 16px 0;
  font-family: var(--font-heading);
}

body.dark-theme .blog-detail-body h2,
body.dark-theme .blog-detail-body h3 {
  color: #f8fafc;
}

.blog-detail-body ul,
.blog-detail-body ol {
  margin: 18px 0 24px 24px;
}

.blog-detail-body li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-detail-body blockquote {
  background: #f8fafc;
  border-left: 4px solid #c43826;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 1.8;
}

body.dark-theme .blog-detail-body blockquote {
  background: #0c1527;
  color: #e2e8f0;
  border-left-color: #00c2cb;
}

/* In-Content Tags Section (Matches Reference Image) */
.blog-detail-tags-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

body.dark-theme .blog-detail-tags-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tags-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

body.dark-theme .tags-section-title {
  color: #f8fafc;
}

.blog-tags-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tag-pill {
  background: linear-gradient(135deg, #c43826 0%, #db4f2e 100%);
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(196, 56, 38, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-heading);
}

.blog-tag-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 56, 38, 0.45);
}

/* --- Right Column: Sidebar --- */
.blog-detail-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.dark-theme .sidebar-box {
  background: #0c1527;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

body.dark-theme .sidebar-box-title {
  color: #f8fafc;
}

/* Categories List */
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-category-item a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.sidebar-category-item a:hover {
  color: #c43826;
}

.sidebar-category-item.active a {
  color: #c43826;
  font-weight: 800;
}

body.dark-theme .sidebar-category-item a {
  color: #94a3b8;
}

body.dark-theme .sidebar-category-item a:hover,
body.dark-theme .sidebar-category-item.active a {
  color: #00e5db;
}

/* Tags Cloud in Sidebar */
.sidebar-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-tag-pill:hover {
  border-color: #c43826;
  color: #c43826;
  background: #ffffff;
}

body.dark-theme .sidebar-tag-pill {
  background: #132244;
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

body.dark-theme .sidebar-tag-pill:hover {
  border-color: #00e5db;
  color: #00e5db;
  background: #0c1527;
}

/* --- Related Posts Section (Matches Reference Image) --- */
.blog-detail-related-section {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid #e2e8f0;
}

body.dark-theme .blog-detail-related-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.related-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

body.dark-theme .related-section-title {
  color: #f8fafc;
}

/* Legacy single article reader fallback (Preserved for compatibility) */
.article-detail-card {
  padding: 60px 56px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
}

.article-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.article-body-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-top: 20px;
}

.article-body-content p {
  margin-bottom: 28px;
  color: var(--text-primary);
  font-size: 1.125rem;
  line-height: 1.85;
}

.article-body-content h2,
.article-body-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 44px 0 20px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  border-left: 4px solid var(--color-accent);
  padding-left: 18px;
}

.article-body-content h4 {
  font-size: 1.35rem;
  margin: 30px 0 16px;
  color: var(--color-primary);
}

.article-body-content strong {
  color: var(--color-accent);
  font-weight: 700;
}

body.light-theme .article-body-content strong {
  color: var(--color-primary);
}

.article-body-content ul,
.article-body-content ol {
  margin: 24px 0 32px 24px;
}

.article-body-content li {
  margin-bottom: 14px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body-content blockquote {
  background: rgba(var(--color-primary-rgb), 0.08);
  border-left: 4px solid var(--color-primary);
  padding: 24px 30px;
  border-radius: 0 12px 12px 0;
  margin: 36px 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Article Author Box */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: rgba(var(--color-primary-rgb), 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  margin: 44px 0 36px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #050b18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Article Footer Social Share */
.article-footer-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.share-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blog-detail-sidebar {
    position: static;
  }
  .blog-ref-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .portfolio-hero-section,
  .blog-ref-hero,
  .blog-detail-hero-section {
    padding: 125px 0 60px;
  }
  .portfolio-hero-title,
  .portfolio-hero-title.blog-detail-title {
    font-size: 2.1rem;
  }
  .portfolio-hero-desc {
    font-size: 0.98rem;
  }
  .portfolio-trust-bar {
    gap: 16px;
  }
  .blog-hero-search-bar {
    padding: 5px 6px 5px 18px;
  }
  .blog-hero-search-btn {
    padding: 9px 20px;
    font-size: 0.88rem;
  }
  .article-detail-card {
    padding: 40px 28px;
  }
  .article-footer-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .blog-ref-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .blog-ref-hero-title {
    font-size: 1.95rem;
  }
  .blog-ref-card {
    border-radius: 14px;
  }
  .blog-ref-card-body {
    padding: 20px 16px;
  }
  .article-detail-card {
    padding: 24px 16px;
  }
  .article-body-content {
    font-size: 1.02rem;
  }
  .article-body-content h2,
  .article-body-content h3 {
    font-size: 1.35rem;
  }
  .article-author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
}
