.article-page {
  padding: 0 0 56px;
  background: #ffffff;
}

.article-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
}

.article-frame {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

/* HERO */
.article-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  border-radius: 0;
  padding-top: 72px;
  padding-bottom: 68px;
  padding-left: max(28px, calc((100vw - 1750px) / 2));
  padding-right: max(28px, calc((100vw - 1750px) / 2));
  background: linear-gradient(135deg, #204a74 0%, #2f6a9f 54%, #4ea0d6 100%);
}

.article-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -90px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.article-hero::after {
  content: "";
  position: absolute;
  bottom: -170px;
  left: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.article-hero-left {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
}

.article-title {
  width: 100%;
  max-width: none;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
}

.article-title span {
  display: block;
  color: #dcedfb;
}

.article-tags {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* GRID PRINCIPAL COM SIDEBAR */
.article-main-grid {
  position: relative;
  width: min(calc(100% - 56px), 1700px);
  margin: 68px auto 0;
}

.article-body {
  width: min(100%, 1320px);
  margin-left: 300px;
  padding: 0;
  min-width: 0;
}

.article-sidebar {
  position: fixed;
  top: 118px;
  left: max(28px, calc((100vw - 1800px) / 2));
  width: 280px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

body.article-sidebar-visible .article-sidebar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.article-sidebar-hidden-for-closing .article-sidebar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
}

.article-sidebar-inner {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 22px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dbe5ee;
  box-shadow: 0 18px 40px rgba(18, 61, 105, 0.08);
}

.article-sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7b8ca0;
  margin-bottom: 18px;
}

.article-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-sidebar-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #365476;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.article-sidebar-link:hover {
  background: #f3f8fc;
  border-color: #d9e7f2;
  color: #123d69;
}

.article-sidebar-link.active {
  background: linear-gradient(135deg, #24507d 0%, #3d89c7 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(45, 107, 159, 0.24);
}

/* CORPO */
.article-section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.article-section-header span {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: #123d69;
  letter-spacing: -0.4px;
  white-space: nowrap;
  text-transform: uppercase;
}

.article-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 216, 228, 0.95) 0%, rgba(205, 216, 228, 0.12) 100%);
}

.article-summary {
  margin-bottom: 40px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #f8fbfe;
  border: 1px solid #e1eaf2;
}

.article-summary p {
  font-size: 16px;
  line-height: 1.95;
  color: #435467;
  margin: 0;
}

.article-block {
  margin-bottom: 44px;
  scroll-margin-top: 130px;
}

.article-block-title {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: #123d69;
  letter-spacing: -0.7px;
  margin: 0 0 18px;
}

.article-text p {
  font-size: 16px;
  line-height: 1.95;
  color: #435467;
  margin: 0 0 16px;
}

.article-text ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.article-text li {
  font-size: 15px;
  line-height: 1.95;
  color: #435467;
  margin-bottom: 10px;
}

.article-separator {
  width: 100%;
  height: 1px;
  margin: 42px 0;
  background: linear-gradient(90deg, rgba(205, 216, 228, 0.95) 0%, rgba(205, 216, 228, 0.16) 100%);
}

/* BLOCO ARQUIVOS DO PROJETO */
.article-project-block {
  padding: 22px 24px;
  border-radius: 20px;
  background: #f8fbfe;
  border: 1px solid #e1eaf2;
  margin-top: 24px;
}

.article-project-block h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2d6b9f;
  margin: 0 0 12px;
}

.article-project-link {
  color: #3a8ed0;
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
  text-decoration: none;
}

.article-project-link:hover {
  text-decoration: underline;
}

/* IMAGENS ESPECIAIS */
.article-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.article-image-grid.duas {
  grid-template-columns: repeat(2, 1fr);
}

.article-image-grid.tres {
  grid-template-columns: repeat(3, 1fr);
}

.article-image-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-image-visual {
  position: relative;
  width: 100%;
  min-height: 0;
  border-radius: 24px;
  padding: 18px 28px;
  background: #f7fafd;
  border: 1px solid #dfe8f1;
  box-shadow: 0 14px 34px rgba(18, 61, 105, 0.06);
}

.article-image-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.article-image-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
}

.article-image-caption {
  font-size: 15px;
  line-height: 1.85;
  color: #435467;
  margin: 0;
  padding-left: 6px;
}

.article-image-caption-highlight {
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef6fd 0%, #f8fbfe 100%);
  border: 1px solid #d7e6f3;
  color: #284a68;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
  padding-left: 18px;
}

.article-image-card.article-image-card-hero .article-image-frame {
  min-height: auto;
  padding: 0;
}

.article-image-card.article-image-card-hero img:not(.article-image-custom-size) {
  width: 100%;
  max-width: 100%;
  box-shadow: none;
}

/* GALERIA */
.article-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  outline: none;
}

.article-gallery-main {
  position: relative;
  width: 100%;
  min-height: 0;
  border-radius: 24px;
  padding: 18px 64px 22px;
  background: #f7fafd;
  border: 1px solid #dfe8f1;
  box-shadow: 0 14px 34px rgba(18, 61, 105, 0.06);
}

.article-gallery-counter {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18, 61, 105, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 8px 18px rgba(18, 61, 105, 0.18);
}

.article-gallery-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.article-image-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #ffffff;
}

.article-gallery-main img {
  --borda-espessura: 0px;
  --borda-cor: #000000;
  --contorno-espessura: 1px;
  --contorno-cor: #000000;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  display: block;
  border: var(--borda-espessura) solid var(--borda-cor);
  box-shadow: 0 0 0 var(--contorno-espessura) var(--contorno-cor);
  padding: 0;
  background: #ffffff;
  border-radius: 0;
}

.article-image-custom-size {
  display: block;
  width: auto !important;
  max-width: 100%;
  border: 0 solid #000000;
  box-shadow: 0 0 0 1px #000000 !important;
  padding: 0;
  background: #ffffff;
  border-radius: 0;
  object-fit: contain;
}

.article-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 61, 105, 0.88);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.article-gallery-arrow:hover {
  background: #2d6b9f;
}

.article-gallery-arrow-prev {
  left: 16px;
}

.article-gallery-arrow-next {
  right: 16px;
}

.article-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.article-gallery-thumb {
  width: 132px;
  height: 92px;
  padding: 6px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #eef4f9;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-gallery-thumb:hover {
  transform: translateY(-3px);
}

.article-gallery-thumb.active {
  border-color: #3a8ed0;
  box-shadow: 0 0 0 4px rgba(58, 142, 208, 0.14);
}

.article-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #dfe8f1;
  box-shadow: none;
  padding: 0;
  background: #ffffff;
  border-radius: 0;
}

.article-gallery-caption {
  font-size: 15px;
  line-height: 1.85;
  color: #435467;
  margin: 18px 0 0;
  padding-left: 0;
}

/* CONCLUSÃO */
.article-conclusion {
  margin-top: 8px;
  padding: 24px 24px;
  border-radius: 20px;
  background: #f8fbfe;
  border: 1px solid #e1eaf2;
}

.article-conclusion h2 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: #123d69;
  margin: 0 0 12px;
}

.article-conclusion p {
  font-size: 16px;
  line-height: 1.95;
  color: #435467;
  margin: 0;
}

@media (max-width: 1400px) {
  .article-main-grid {
    width: min(calc(100% - 40px), 1180px);
  }

  .article-sidebar {
    display: none;
  }

  .article-body {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 1180px) {
  .article-hero {
    padding-top: 56px;
    padding-bottom: 54px;
  }

  .article-image-grid.duas,
  .article-image-grid.tres {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .article-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-title {
    font-size: 40px;
    line-height: 1.04;
  }

  .article-main-grid {
    width: min(calc(100% - 32px), 1180px);
    margin-top: 30px;
  }

  .article-section-header span {
    font-size: 22px;
    white-space: normal;
  }

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

  .article-image-visual,
  .article-gallery-main {
    padding: 14px 16px;
  }

  .article-image-frame,
  .article-gallery-frame {
    min-height: 260px;
  }

  .article-gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .article-gallery-arrow-prev {
    left: 8px;
  }

  .article-gallery-arrow-next {
    right: 8px;
  }

  .article-image-caption-highlight {
    padding: 12px 14px;
    font-size: 14px;
  }

  .article-gallery-counter {
    top: 12px;
    right: 12px;
    min-width: 60px;
    height: 28px;
    font-size: 11px;
    padding: 0 10px;
  }
}
