/* TBI - Blog Detail Page Specific Styles */

/* Article Hero Image */
.detail-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.detail-hero-img-wrapper img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Typographic Reading Flow */
.post-content p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #3f444a;
  margin-bottom: 25px;
}

.post-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-brand);
  margin-top: 45px;
  margin-bottom: 20px;
}

.post-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-brand);
  margin-top: 35px;
  margin-bottom: 15px;
}

.post-content ul, 
.post-content ol {
  padding-left: 25px;
  margin-bottom: 30px;
}

.post-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3f444a;
  margin-bottom: 12px;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  background-color: var(--accent-light);
  padding: 25px 35px;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dark-brand);
  margin: 35px 0;
  line-height: 1.7;
}

.post-content blockquote p {
  margin-bottom: 0;
  color: var(--dark-brand);
}

/* Social Share Block */
.share-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.3s, background-color 0.3s;
}

.share-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.share-btn.wa { background-color: #25d366; }
.share-btn.fb { background-color: #3b5998; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.copy { background-color: #6c757d; }

/* Author Bio Card */
.author-bio-card {
  background-color: #f8f9fa;
  border-radius: 16px;
  padding: 35px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 5px solid var(--primary-brand);
}

@media (min-width: 576px) {
  .author-bio-card {
    flex-direction: row;
    align-items: center;
  }
}

.author-bio-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-text h5 {
  font-weight: 700;
  color: var(--dark-brand);
  margin-bottom: 8px;
}

.author-bio-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
}

.nav-post-link {
  width: 50%;
  padding: 20px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  text-decoration: none;
  color: var(--dark-brand);
  transition: all 0.3s;
}

.nav-post-link:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.nav-post-link.prev-nav { text-align: left; }
.nav-post-link.next-nav { text-align: right; }

.nav-label {
  font-size: 0.75rem;
  color: #999;
  text-uppercase: true;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.4;
  transition: color 0.3s;
}

.nav-post-link:hover .nav-title {
  color: var(--accent);
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  color: var(--dark-brand);
  border-bottom: 2px solid #f1f3f5;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Search Box Widget */
.sidebar-search-box {
  position: relative;
}

.sidebar-search-box input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border-radius: 50px;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  background-color: #f8f9fa;
  color: var(--dark-brand);
  transition: all 0.3s;
}

.sidebar-search-box input:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.sidebar-search-box button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #777;
  font-size: 1rem;
}

.sidebar-search-box input:focus + button {
  color: var(--accent);
}

/* Sidebar CTA Promotion Banner */
.sidebar-cta-banner {
  background-image: linear-gradient(135deg, var(--primary-brand) 0%, #003366 100%);
  color: #fff;
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-cta-banner h5 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Related Posts Widget */
.related-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

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

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

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

.related-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.related-post-title a {
  color: var(--dark-brand);
  text-decoration: none;
  transition: color 0.3s;
}

.related-post-title a:hover {
  color: var(--accent);
}

.related-post-date {
  font-size: 0.75rem;
  color: #999;
}

/* Categories List Widget */
.sidebar-categories-list {
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar-categories-list li {
  list-style: none;
  margin-bottom: 12px;
}

.sidebar-categories-list li:last-child {
  margin-bottom: 0;
}

.sidebar-categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  padding: 5px 0;
}

.sidebar-categories-list a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.sidebar-categories-list .cat-count {
  background-color: #f1f3f5;
  color: #777;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  transition: all 0.3s;
}

.sidebar-categories-list a:hover .cat-count {
  background-color: var(--accent-light);
  color: var(--accent);
}
