/* Article detail — magazine hero + sticky sidebar */
.article-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 2.75rem;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 10, 40, 0.35) 0%, rgba(0, 10, 40, 0.25) 40%, rgba(0, 10, 40, 0.85) 100%);
}

.article-hero-breadcrumb {
  margin-bottom: 1.25rem;
}

.article-hero-breadcrumb .breadcrumb-item,
.article-hero-breadcrumb .breadcrumb-item a,
.article-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-decoration: none;
}

.article-hero-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
  text-decoration: underline;
}

.article-hero-content {
  max-width: 820px;
}

.article-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.article-hero-tag {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #001973;
  background: #ffc107;
  border-radius: 50px;
  text-decoration: none;
}

.article-hero-tag:hover {
  color: #001973;
  background: #ffcd38;
}

.article-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Body */
.article-body-section {
  padding: 2.75rem 0 3rem;
  background: #fff;
}

.article-main {
  max-width: 760px;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #495057;
  padding-left: 1rem;
  border-left: 4px solid #ffc107;
  margin-bottom: 1.75rem;
}

.article-main .content-body {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #2d3436;
}

.article-main .content-body h2,
.article-main .content-body h3,
.article-main .content-body h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #001973;
  scroll-margin-top: 140px;
}

.article-main .content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.25rem 0;
}

.article-main .content-body .ql-align-center {
  text-align: center;
}

.article-main .content-body .ql-align-right {
  text-align: right;
}

.article-main .content-body .ql-align-justify {
  text-align: justify;
}

.article-gallery {
  margin-top: 2.25rem;
}

.article-gallery-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #001973;
  margin-bottom: 1rem;
}

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

.article-tag {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #001973;
  background: rgba(0, 25, 115, 0.07);
  border-radius: 50px;
  text-decoration: none;
}

.article-tag:hover {
  color: #001973;
  background: rgba(0, 25, 115, 0.14);
}

.article-share {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.article-share-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: #f8f9fb;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
}

.article-share-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 25, 115, 0.08);
  color: #001973;
  font-size: 1.25rem;
}

.article-share-card-body {
  flex: 1;
  min-width: 0;
}

.article-share-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #001973;
  margin: 0 0 0.35rem;
}

.article-share-help {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.article-share-copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.article-share-url {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: #495057;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
}

.article-share-url:focus {
  outline: 2px solid rgba(0, 25, 115, 0.25);
  border-color: #001973;
}

.article-share-url.is-copied-flash {
  border-color: #198754;
  background: #f0fff4;
}

.btn-article-copy {
  flex-shrink: 0;
  border: none;
  background: #001973;
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-article-copy:hover {
  background: #0d47a1;
  color: #fff;
}

.btn-article-copy.is-copied {
  background: #198754;
}

@media (max-width: 576px) {
  .article-share-card {
    flex-direction: column;
    align-items: stretch;
  }

  .article-share-card-icon {
    width: 40px;
    height: 40px;
  }

  .btn-article-copy {
    width: 100%;
  }
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sidebar-card--accent {
  background: linear-gradient(135deg, #001973, #0d47a1);
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-card--accent .sidebar-title {
  color: #fff;
}

.sidebar-card--accent .sidebar-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}

.sidebar-card--accent .sidebar-card-cta {
  color: #001973;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.65rem 1rem;
  white-space: normal;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #001973;
  margin-bottom: 0.85rem;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.article-toc-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.article-toc-list li.is-sub {
  padding-left: 1rem;
  font-size: 0.85rem;
}

.article-toc-list a {
  color: #495057;
  text-decoration: none;
}

.article-toc-list a:hover {
  color: #001973;
  text-decoration: underline;
}

.sidebar-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #f8f9fa;
  color: #212529;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar-contact:hover {
  background: #e8f8ee;
  color: #212529;
}

.sidebar-contact img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-contact span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sidebar-contact small {
  color: #6c757d;
  font-size: 0.78rem;
}

.sidebar-contact .bi-whatsapp {
  color: #25d366;
  font-size: 1.25rem;
}

/* Related */
.article-related {
  padding: 3rem 0 2.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.article-related .section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #001973;
}

.article-related .card {
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-related .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}

/* Reading progress */
.article-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 25, 115, 0.08);
  z-index: 998;
}

.article-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #ffc107;
  transition: width 0.1s linear;
}

@media (max-width: 991.98px) {
  .article-sidebar {
    position: static;
  }

  .article-main {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .article-hero {
    min-height: 52vh;
    padding: 6rem 0 2rem;
  }

  .article-hero-breadcrumb .breadcrumb-item.active {
    display: none;
  }

  .article-hero-meta {
    font-size: 0.8rem;
    gap: 0.3rem 0.9rem;
  }

  .article-lead {
    font-size: 1.02rem;
  }
}
