/* ============================================
   ARTICLE DETAIL PAGE - MODERN DESIGN
   Bootstrap + Custom CSS
============================================ */

:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BREADCRUMB SECTION
============================================ */
.breadcrumb-section {
  background: var(--bg-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-custom .breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb-custom .breadcrumb-item a:hover {
  opacity: 0.7;
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* ============================================
   ARTICLE HEADER
============================================ */
.article-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.article-title {
  color: var(--text-dark);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 15px 0;
  word-wrap: break-word;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-item {
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-color);
}

.meta-item i {
  font-size: 14px;
  color: var(--primary-color);
}

/* ============================================
   ARTICLE THUMBNAIL
============================================ */
.article-thumbnail {
  margin-bottom: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ============================================
   MAIN CONTENT CONTAINER
============================================ */
.article-container {
  margin-top: 30px;
  margin-bottom: 80px;
}

/* ============================================
   ARTICLE CONTENT CARD
============================================ */
.article-content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: 25px;
}

.article-summary {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 25px;
  display: flex;
  gap: 12px;
}

.summary-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.summary-text h6 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.summary-text p {
  color: var(--text-dark);
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
}

/* ============================================
   ARTICLE BODY TYPOGRAPHY
============================================ */
.article-body {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 12px;
  line-height: 1.3;
  word-wrap: break-word;
}

.article-body h2 {
  font-size: 24px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 20px;
}

.article-body h4 {
  font-size: 18px;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--text-muted);
  word-wrap: break-word;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
  display: block;
}

.article-body ul,
.article-body ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--bg-light);
  padding: 18px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-dark);
}

.article-body a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: opacity 0.3s;
  word-wrap: break-word;
}

.article-body a:hover {
  opacity: 0.8;
}

/* Tables responsive */
.article-body table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.article-body table th,
.article-body table td {
  padding: 10px;
  border: 1px solid var(--border-color);
}

.article-body table th {
  background: var(--bg-light);
  font-weight: 600;
}

/* Videos responsive */
.article-body iframe,
.article-body video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

/* ============================================
   ARTICLE FOOTER & SOCIAL SHARE
============================================ */
.article-footer {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.share-wrapper h6 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-share {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.linkedin {
  background: #0a66c2;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar-sticky {
  position: sticky;
  top: 20px;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title i {
  color: var(--primary-color);
  font-size: 18px;
}

/* ============================================
   RELATED ARTICLES
============================================ */
.related-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-light);
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.related-thumbnail {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.thumbnail-placeholder {
  font-size: 28px;
  color: #94a3b8;
}

.related-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.related-info h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}

.related-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   QUICK LINKS
============================================ */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.quick-link-item:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(5px);
}

.quick-link-item i {
  font-size: 16px;
}

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

/* ===== Tablet (768px - 991px) ===== */
@media (max-width: 991.98px) {
  .article-content-card {
    padding: 25px 20px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .article-body h4 {
    font-size: 17px;
  }

  .sidebar-sticky {
    position: static;
    margin-top: 20px;
  }

  .article-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .article-thumbnail {
    height: 350px;
  }
}

/* ===== Mobile Landscape / Small Tablet (576px - 767px) ===== */
@media (max-width: 767.98px) {
  .breadcrumb-section {
    padding: 12px 0;
  }

  .breadcrumb-custom {
    font-size: 13px;
  }

  .article-container {
    margin-top: 20px;
    margin-bottom: 50px;
  }

  .article-content-card {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .article-title {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .article-header {
    margin-bottom: 18px;
    padding-bottom: 15px;
  }

  .article-meta {
    gap: 10px;
  }

  .meta-item {
    padding: 6px 10px;
    font-size: 12px;
  }

  .meta-item i {
    font-size: 13px;
  }

  .article-thumbnail {
    margin-bottom: 20px;
    height: 280px;
    border-radius: 10px;
  }

  .article-summary {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .summary-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .summary-text h6 {
    font-size: 12px;
  }

  .summary-text p {
    font-size: 13px;
    line-height: 1.6;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.75;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .article-body h3 {
    font-size: 18px;
    margin-top: 18px;
  }

  .article-body h4 {
    font-size: 16px;
    margin-top: 16px;
  }

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

  .article-body img {
    margin: 15px 0;
    border-radius: 8px;
  }

  .article-body blockquote {
    padding: 15px;
    margin: 18px 0;
    font-size: 14px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 20px;
    margin-bottom: 15px;
  }

  .article-body li {
    margin-bottom: 6px;
  }

  .article-footer {
    margin-top: 25px;
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .share-wrapper h6 {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .social-share {
    gap: 7px;
  }

  .share-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .sidebar-section {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 10px;
  }

  .sidebar-title {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 9px;
  }

  .sidebar-title i {
    font-size: 17px;
  }

  .related-articles {
    gap: 10px;
  }

  .related-card {
    padding: 9px;
  }

  .related-thumbnail {
    width: 70px;
    height: 70px;
  }

  .related-info h6 {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .related-date {
    font-size: 11px;
  }

  .quick-link-item {
    padding: 9px 11px;
    font-size: 13px;
  }

  .quick-link-item i {
    font-size: 15px;
  }
}

/* ===== Mobile Portrait (< 576px) ===== */
@media (max-width: 575.98px) {
  .breadcrumb-section {
    padding: 10px 0;
  }

  .breadcrumb-custom {
    font-size: 12px;
    flex-wrap: wrap;
  }

  .breadcrumb-custom .breadcrumb-item.active {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .article-container {
    margin-top: 15px;
    margin-bottom: 40px;
  }

  .article-content-card {
    padding: 18px 14px;
    border-radius: 10px;
  }

  .article-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .article-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .article-meta {
    gap: 8px;
  }

  .meta-item {
    padding: 5px 9px;
    font-size: 11px;
  }

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

  .article-thumbnail {
    margin-bottom: 18px;
    height: 220px;
    border-radius: 8px;
  }

  .article-summary {
    padding: 12px;
    margin-bottom: 18px;
    gap: 10px;
    border-radius: 8px;
  }

  .summary-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .summary-text h6 {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .summary-text p {
    font-size: 12px;
    line-height: 1.6;
  }

  .article-body {
    font-size: 13px;
    line-height: 1.7;
  }

  .article-body h2 {
    font-size: 18px;
    margin-top: 18px;
    margin-bottom: 9px;
    padding-bottom: 6px;
  }

  .article-body h3 {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  .article-body h4 {
    font-size: 15px;
    margin-top: 14px;
    margin-bottom: 8px;
  }

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

  .article-body img {
    margin: 14px 0;
    border-radius: 6px;
  }

  .article-body blockquote {
    padding: 12px;
    margin: 16px 0;
    font-size: 13px;
    border-radius: 6px;
  }

  .article-body ul,
  .article-body ol {
    padding-left: 18px;
    margin-bottom: 14px;
  }

  .article-body li {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .article-body table {
    font-size: 12px;
  }

  .article-body table th,
  .article-body table td {
    padding: 8px;
  }

  .article-footer {
    margin-top: 20px;
    padding-top: 18px;
    gap: 12px;
  }

  .share-wrapper h6 {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .social-share {
    gap: 6px;
  }

  .share-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .article-footer .btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .sidebar-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .sidebar-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    gap: 6px;
  }

  .sidebar-title i {
    font-size: 16px;
  }

  .related-articles {
    gap: 9px;
  }

  .related-card {
    padding: 8px;
    gap: 10px;
    border-radius: 8px;
  }

  .related-thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 6px;
  }

  .thumbnail-placeholder {
    font-size: 24px;
  }

  .related-info h6 {
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1.35;
  }

  .related-date {
    font-size: 10px;
    gap: 3px;
  }

  .quick-links {
    gap: 7px;
  }

  .quick-link-item {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }

  .quick-link-item i {
    font-size: 14px;
  }
}

/* ===== Extra Small Mobile (< 375px) ===== */
@media (max-width: 374.98px) {
  .article-title {
    font-size: 18px;
  }

  .article-body {
    font-size: 12px;
  }

  .article-body h2 {
    font-size: 16px;
  }

  .article-body h3 {
    font-size: 15px;
  }

  .article-body h4 {
    font-size: 14px;
  }

  .meta-item {
    padding: 4px 8px;
    font-size: 10px;
  }

  .article-thumbnail {
    height: 180px;
  }

  .related-thumbnail {
    width: 55px;
    height: 55px;
  }

  .related-info h6 {
    font-size: 11px;
  }
}
