/* Article Detail Page Styling */

/* Article Hero Section */
.article-hero {
  padding: 3rem 0 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

.breadcrumb-link {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #2e2f90;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 500;
}

/* Article Header */
.article-header {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.article-tag.primary {
  background: #00559e;
  color: white;
  /* box-shadow: 0 2px 8px rgba(46, 47, 144, 0.3); */
}

.article-tag.secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.article-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  font-size: 0.875rem;
}

.article-date svg {
  opacity: 0.7;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

/* Article Author */
.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #2e2f90;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.875rem;
  color: #000;
}

/* Article Content Section */
.article-content-section {
  padding: 4rem 0;
  background: white;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Main Article Content */
.article-main {
  min-width: 0;
}

.article-featured-image {
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  color: #000;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
}

/* Article Body */
.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.lead-paragraph {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1e293b;
  margin-bottom: 2rem;
}

.lead-paragraph strong {
  color: #2e2f90;
  font-weight: 600;
}

/* Article Quote */
.article-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-left: 4px solid #2e2f90;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.quote-icon {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  color: #2e2f90;
  opacity: 0.3;
}

.article-quote p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #1e293b;
  font-style: italic;
  margin-bottom: 1rem;
}

.article-quote cite {
  display: block;
  font-size: 0.875rem;
  color: #000;
  font-style: normal;
  font-weight: 600;
}

/* Article Highlight */
.article-highlight {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(139deg, rgba(0, 85, 158, 1) 22%, rgba(1, 125, 195, 1) 71%, rgba(2, 174, 240, 1) 100%, rgba(0, 212, 255, 1) 100%, rgba(4, 119, 219, 1) 98%);
  border-radius: 8px;
  color: white;
  box-shadow: 0 4px 20px rgba(46, 47, 144, 0.3);
}

.article-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.article-highlight p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.95);
}

/* Article Summary */
.article-summary {
  margin: 2.5rem 0;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.article-summary h4 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-summary p {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0;
}

/* Article Footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

.article-share h4 {
  font-size: 1.125rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.share-btn.facebook:hover {
  background: #0c63d4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.share-btn.twitter {
  background: #000000;
  color: white;
}

.share-btn.twitter:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.share-btn.whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

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

.share-btn.linkedin:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* Sidebar */
.article-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 120px;
}

.sidebar-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

/* Author Card */
.author-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2e2f90;
}

.author-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.author-card-info p {
  font-size: 0.75rem;
  color: #000;
  margin: 0;
}

.author-card-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1rem;
}

.author-card-link {
  display: inline-flex;
  align-items: center;
  color: #2e2f90;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-card-link:hover {
  color: #1d4ed8;
  transform: translateX(4px);
}

/* Related Articles */
.related-article-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

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

.related-article-item:first-child {
  padding-top: 0;
}

.related-article-item:hover {
  transform: translateX(4px);
}

.related-article-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-article-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.related-article-item:hover h4 {
  color: #2e2f90;
}

.related-article-date {
  font-size: 0.75rem;
  color: #000;
}

/* Quick Share */
.quick-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.quick-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f8fafc;
  color: #000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.quick-share-btn:hover {
  background: #2e2f90;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 47, 144, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar-sticky {
    position: static;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .lead-paragraph {
    font-size: 1.125rem;
  }

  .article-quote p {
    font-size: 1.125rem;
  }
}

@media screen and (max-width: 767px) {
  .article-hero {
    padding: 2rem 0 1.5rem;
  }

  .article-title {
    font-size: 1.75rem;
  }

  .article-meta-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-author {
    padding: 1rem;
  }

  .author-avatar {
    width: 50px;
    height: 50px;
  }

  .article-content-section {
    padding: 2rem 0;
  }

  .article-quote {
    padding: 1.5rem 1.5rem 1.5rem 4rem;
  }

  .quote-icon {
    left: 1rem;
    width: 30px;
    height: 30px;
  }

  .article-highlight {
    padding: 1.5rem;
  }

  .article-highlight h3 {
    font-size: 1.25rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 479px) {
  .article-title {
    font-size: 1.5rem;
  }

  .article-tag {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
  }

  .article-body {
    font-size: 0.9375rem;
  }

  .lead-paragraph {
    font-size: 1rem;
  }

  .article-quote {
    padding: 1rem 1rem 1rem 3rem;
  }

  .article-quote p {
    font-size: 1rem;
  }

  .sidebar-card {
    padding: 1rem;
  }

  .related-article-item img {
    width: 60px;
    height: 60px;
  }
}

/* Print Styles */
@media print {
  .article-sidebar,
  .article-footer,
  .article-breadcrumb {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
}
