:root {
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================= */
/* Títulos */
/* ============================= */

.page-heading {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--black-soft);
  position: relative;
}

.page-heading::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--red-main);
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 3px;
}

/* ============================= */
/* Texto */
/* ============================= */

.page-paragraph {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 12px;
  text-align: justify;
}

.page-paragraph p {
  margin-bottom: 0;
}

.page-paragraph strong,
.page-paragraph b {
  color: var(--black-main);
  font-weight: 700;
}

.page-paragraph a {
  color: var(--red-main);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

.page-paragraph a:hover {
  color: var(--red-dark);
  border-bottom-color: var(--red-main);
  padding-bottom: 2px;
}

.page-paragraph ul,
.page-paragraph ol {
  margin-left: 20px;
  margin-bottom: 1.4em;
}

.page-paragraph li {
  margin-bottom: 0.6em;
  padding-left: 8px;
}

.page-paragraph h2 {
  font-size: 28px;
}

.page-paragraph h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--red-main);
  border-radius: 3px;
  display: block;
  margin-top: 5px;
}

.block-heading,
.block-paragraph,
.block-timeline,
.block-texto_imagem_grid {
  grid-column: 1 / -1;
}

hr {
  height: 2px;
  background-color: var(--gold-soft);
}

/* ============================= */
/* Documentos */
/* ============================= */

.document-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  height: 100%;
  padding: 20px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.page-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.block-paragraph {
  margin-bottom: -12px;
}

.document-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--red-main);
}

.document-icon {
  font-size: 32px;
  color: var(--red-main);
}

.download-btn {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 16px;
  background: var(--red-main);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.download-btn:hover {
  background: var(--red-dark);
}

@media (max-width: 992px) {
  .page-body {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-body {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* IMAGEM COM TEXTO */
/* ============================= */
.grid-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.grid-text a {
  color: var(--red-main);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

.grid-text a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}


.timeline {
  position: relative;
  padding: 40px 0;
  width: 100%;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red-main);
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  grid-template-areas: "label center card";
  align-items: start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(even) {
  grid-template-areas: "card center label";
}

.timeline-label-side {
  grid-area: label;
  text-align: right;
  padding-right: 32px;
  padding-top: 16px;
}

.timeline-item:nth-child(even) .timeline-label-side {
  text-align: left;
  padding-right: 0;
  padding-left: 32px;
}

.timeline-center {
  grid-area: center;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-main);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--red-main);
  flex-shrink: 0;
}

.timeline-card-side {
  grid-area: card;
  padding-left: 32px;
}

.timeline-item:nth-child(even) .timeline-card-side {
  display: flex;
  justify-content: end;
  padding-left: 0;
  padding-right: 32px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black-main);
  margin: 0 0 6px;
}

.timeline-date {
  display: block;
  font-size: 18px;
  color: var(--red-main);
  font-weight: 500;
}

.timeline-card {
  background: #fff;
  max-width: 390px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--red-main);
}

.timeline-image {
  display: flex;
  justify-content: center;
}

.timeline-image img {
  height: 355px;
  aspect-ratio: 5 / 4;
  object-fit: contain;
}

.timeline-content {
  padding: 18px 20px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 0;
  font-size: 20px;
  background: var(--white);
}

.timeline-content p {
  margin-bottom: 0;
}

.timeline-content strong {
  color: var(--black-main);
  font-weight: 700;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 24px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "center label"
      "center card";
    margin-bottom: 40px;
  }

  .timeline-label-side,
  .timeline-item:nth-child(even) .timeline-label-side {
    grid-area: label;
    text-align: left;
    padding: 0 0 10px 16px;
  }

  .timeline-center {
    grid-area: center;
    grid-row: 1 / 3;
    justify-content: center;
    padding-top: 12px;
  }

  .timeline-card-side,
  .timeline-item:nth-child(even) .timeline-card-side {
    grid-area: card;
    justify-content: start;
    padding: 0 0 0 16px;
  }
}
