/* ==========================================================================
   TINO SALIM - ARTICLE DETAIL & KNOWLEDGE HUB STYLING
   SEO-Optimized, Editorial Typography & Conversion Focused
   ========================================================================== */

.article-page-body {
  background-color: #F8FAFD;
  color: var(--text-primary);
  min-height: 100vh;
}

.article-main-wrapper {
  padding-top: 120px;
  padding-bottom: 80px;
}

/* --- Container Constraints --- */
.article-read-container {
  max-width: 860px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Breadcrumbs --- */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.article-breadcrumbs a:hover {
  color: var(--sec-coral);
}

.bc-sep {
  font-size: 0.72rem;
  opacity: 0.5;
}

.bc-current {
  color: var(--sec-navy);
  font-weight: 700;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Article Detail Header --- */
.article-detail-header {
  margin-bottom: 32px;
}

.article-category-badge-wrap {
  margin-bottom: 14px;
}

.article-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--sec-navy) 0%, #2A3E7D 100%);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(27, 42, 91, 0.2);
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--sec-navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-main-excerpt {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
  border-left: 4px solid var(--sec-coral);
  padding-left: 16px;
}

/* Author & Meta Bar */
.article-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(27, 42, 91, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.author-profile-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sec-coral);
}

.author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sec-navy);
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-meta-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-tag-item i {
  color: var(--sec-coral);
}

/* Social Share Strip */
.article-share-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
}

.share-label {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--sec-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-wa {
  background: #25D366;
  color: #FFFFFF;
}
.share-wa:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.share-li {
  background: #0077B5;
  color: #FFFFFF;
}
.share-li:hover {
  background: #005E93;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.35);
}

.share-fb {
  background: #1877F2;
  color: #FFFFFF;
}
.share-fb:hover {
  background: #1464CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.share-tw {
  background: #0F172A;
  color: #FFFFFF;
}
.share-tw:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

.share-copy {
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.share-copy:hover {
  border-color: var(--sec-sky);
  color: var(--sec-navy);
  transform: translateY(-2px);
}

/* --- Hero Featured Image --- */
.article-hero-media {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(27, 42, 91, 0.08);
  max-height: 480px;
  background: #0A1128;
}

.article-cover-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* --- Editorial Rich Content Typography --- */
.article-body-content {
  font-size: 1.1rem;
  line-height: 1.88;
  color: #2D3748;
  margin-bottom: 50px;
}

.article-body-content p {
  margin-bottom: 24px;
}

.article-body-content strong {
  font-weight: 800;
  color: var(--sec-navy);
}

.article-body-content h2,
.article-body-content h3,
.article-body-content h4 {
  font-family: var(--font-heading);
  color: var(--sec-navy);
  font-weight: 850;
  line-height: 1.35;
  margin-top: 42px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-body-content h2 {
  font-size: 1.65rem;
  border-bottom: 2px solid rgba(27, 42, 91, 0.08);
  padding-bottom: 8px;
}

.article-body-content h3 {
  font-size: 1.35rem;
}

.article-body-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(27, 42, 91, 0.04) 0%, rgba(75, 168, 212, 0.08) 100%);
  border-left: 4px solid var(--sec-coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--sec-navy);
  position: relative;
}

.article-body-content blockquote::before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 10px;
  color: rgba(232, 91, 74, 0.2);
  line-height: 1;
}

.article-body-content ul,
.article-body-content ol {
  margin-bottom: 26px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body-content li {
  line-height: 1.75;
}

.article-body-content li strong {
  color: var(--sec-navy);
}

.article-body-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

/* --- Inbound Training CTA Banner --- */
.article-lead-cta-card {
  background: linear-gradient(135deg, var(--sec-navy-dark) 0%, var(--sec-navy) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 168, 212, 0.3);
}

.article-lead-cta-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sec-coral-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--sec-coral);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-lead-cta-card h3 {
  font-size: 1.45rem;
  font-weight: 850;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-lead-cta-card p {
  color: var(--text-inverse-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-wa-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #FFFFFF;
  font-weight: 750;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-wa-direct:hover {
  background: #1EBE5B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Author Bio Card --- */
.article-author-bio-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(27, 42, 91, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}

.bio-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--sec-sky);
}

.bio-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sec-coral);
  letter-spacing: 0.5px;
}

.bio-card-details h4 {
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--sec-navy);
  margin: 4px 0 8px;
}

.bio-card-details p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.bio-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bio-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--sec-sky);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.bio-links a:hover {
  color: var(--sec-navy);
}

/* --- Related Articles --- */
.related-articles-section {
  padding-top: 20px;
  border-top: 1px solid rgba(27, 42, 91, 0.08);
}

.related-header {
  margin-bottom: 28px;
}

.related-header h2 {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--sec-navy);
  margin-top: 8px;
}

/* --- Archive View Styling --- */
.archive-header-banner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.archive-main-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--sec-navy);
  line-height: 1.2;
  margin: 16px 0 14px;
}

.archive-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
}

.archive-search-bar {
  max-width: 560px;
  margin: 0 auto 24px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(27, 42, 91, 0.12);
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input-wrap:focus-within {
  border-color: var(--sec-sky);
  box-shadow: 0 0 0 4px var(--sec-sky-glow);
}

.search-input-wrap i {
  color: var(--text-muted);
}

.search-input-wrap input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  width: 100%;
  color: var(--text-primary);
  background: transparent;
}

.archive-category-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Toast Notification --- */
.article-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--sec-navy);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 999999;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.article-toast i {
  color: var(--sec-green);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .article-main-wrapper {
    padding-top: 100px;
  }
  .article-main-title {
    font-size: 1.75rem;
  }
  .article-author-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
  .bio-links {
    justify-content: center;
  }
  .cta-actions {
    flex-direction: column;
  }
}
