.blog-hero {
  height: 300px;
  background-image: url('../images/banner-alugantia-home.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 30, 98, 0.42),
    rgba(0, 30, 98, 0.18)
  );
}

.section-blog {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 156, 222, 0.07), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(255, 205, 0, 0.09), transparent 26%),
    #f7fafc;
  overflow: hidden;
}

.blog-content {
  padding: 80px 0 100px;
  display: flex;
  flex-direction: column;
}

.blog-header {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 820px;
}

.blog-header .H2 {
  margin: 14px 0;
}

.blog-header .H2::after {
  content: ".";
  color: var(--yellow-2);
}

.blog-header .body1 {
  color: var(--text);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 30, 98, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 30, 98, 0.06);
  transition: 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 30, 98, 0.1);
}

.blog-card-image {
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--gray);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-content {
  padding: 28px;
}

.blog-card-date {
  display: block;
  font-family: "Lufga", sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.blog-card-content .H5 {
  margin-bottom: 12px;
}

.blog-card-content .body2 {
  margin-bottom: 22px;
}

.blog-card-link {
  font-family: "Lufga", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--yellow-2);
  padding-bottom: 4px;
}

.blog-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.blog-footer .btn-1[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.section-footer {
  background: #062c78;
  color: #fff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.footer-cta {
  max-width: 720px;
}

.footer-cta h2 {
  margin: 16px 0;
}

.footer-cta p {
  max-width: 620px;
  margin-bottom: 36px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 70px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 70px;
}

.footer-brand img {
  height: 54px;
  margin-bottom: 28px;
}

.footer-grid h5 {
  color: var(--yellow);
  margin-bottom: 22px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 14px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.82);
  transition: 0.3s;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.footer-bottom a {
  margin-left: 24px;
  color: inherit;
}

@media screen and (max-width: 980px) {
  .blog-hero {
    height: 360px;
  }

  .blog-content {
    padding: 64px 0 80px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    height: 220px;
  }
}

@media screen and (orientation: portrait) {
  .footer-grid {
    display: block;
  }
}

/* ── Single post ── */

.section-single .single-content-wrap {
  padding: 64px 0 100px;
}

.single-layout {
  display: grid;
  grid-template-columns: 68% 30%;
  gap: 2%;
  align-items: start;
}

.single-article {
  min-width: 0;
}

.single-title {
  margin: 12px 0 20px;
}

.single-title::after {
  content: ".";
  color: var(--yellow-2);
}

.single-excerpt {
  margin-bottom: 32px;
  color: var(--text);
}

.single-featured-image {
  margin: 0 0 40px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 30, 98, 0.08);
}

.single-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.single-entry {
  color: var(--text);
}

.single-entry > *:first-child {
  margin-top: 0;
}

.single-entry > *:last-child {
  margin-bottom: 0;
}

.single-entry p,
.single-entry li {
  font-family: "Lufga", sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25em;
}

.single-entry h1 {
  font-family: "Lufga", sans-serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--C1);
  margin: 1.6em 0 0.75em;
}

.single-entry h2 {
  font-family: "Lufga", sans-serif;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  color: var(--C1);
  margin: 1.5em 0 0.7em;
}

.single-entry h3 {
  font-family: "Lufga", sans-serif;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: var(--C1);
  margin: 1.4em 0 0.65em;
}

.single-entry h4 {
  font-family: "Lufga", sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.3em 0 0.6em;
}

.single-entry h5,
.single-entry h6 {
  font-family: "Lufga", sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.2em 0 0.5em;
}

.single-entry a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--yellow-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.single-entry a:hover {
  color: var(--primary-2);
  border-bottom-color: var(--yellow);
}

.single-entry ul,
.single-entry ol {
  margin: 0 0 1.25em 1.4em;
  padding: 0;
}

.single-entry ul {
  list-style: disc;
}

.single-entry ol {
  list-style: decimal;
}

.single-entry li {
  margin-bottom: 0.5em;
}

.single-entry blockquote,
.single-entry .wp-block-quote {
  margin: 1.75em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--yellow-2);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 12px 40px rgba(0, 30, 98, 0.05);
}

.single-entry blockquote p,
.single-entry .wp-block-quote p {
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0;
}

.single-entry blockquote cite,
.single-entry .wp-block-quote cite {
  display: block;
  margin-top: 12px;
  font-family: "Lufga", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--primary-2);
  font-style: normal;
}

.single-entry .wp-block-pullquote {
  margin: 2em 0;
  padding: 32px;
  border-top: 3px solid var(--yellow-2);
  border-bottom: 3px solid var(--yellow-2);
  text-align: center;
}

.single-entry .wp-block-pullquote p {
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  color: var(--primary);
}

.single-entry img,
.single-entry .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-entry figure {
  margin: 1.75em 0;
}

.single-entry figcaption {
  margin-top: 10px;
  font-family: "Lufga", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  text-align: center;
}

.single-entry pre,
.single-entry code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.5;
}

.single-entry pre {
  margin: 1.5em 0;
  padding: 20px;
  background: rgba(0, 30, 98, 0.06);
  border-radius: 12px;
  overflow-x: auto;
}

.single-entry code {
  padding: 2px 6px;
  background: rgba(0, 30, 98, 0.06);
  border-radius: 4px;
}

.single-entry hr,
.single-entry .wp-block-separator {
  margin: 2.5em 0;
  border: none;
  border-top: 1px solid var(--gray-border);
}

.single-entry table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-family: "Lufga", sans-serif;
  font-size: 16px;
}

.single-entry th,
.single-entry td {
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  text-align: left;
}

.single-entry th {
  background: rgba(0, 30, 98, 0.06);
  font-weight: 700;
  color: var(--primary);
}

.single-entry .wp-block-embed,
.single-entry iframe {
  max-width: 100%;
}

.single-sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-block + .sidebar-block {
  margin-top: 48px;
}

.sidebar-title {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 30, 98, 0.1);
}

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cards .blog-card-image {
  height: 160px;
}

.sidebar-cards .blog-card-content {
  padding: 20px;
}

.sidebar-cards .blog-card-content .body2 {
  margin-bottom: 16px;
}

@media screen and (max-width: 980px) {
  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
    margin-top: 48px;
  }

  .section-single .single-content-wrap {
    padding: 48px 0 80px;
  }

  .single-entry h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .single-entry h2 {
    font-size: 22px;
    line-height: 30px;
  }
}

/* ── Archive / search ── */

.section-archive .archive-content-wrap {
  padding: 64px 0 100px;
}

.archive-header {
  margin-bottom: 40px;
}

.archive-title {
  margin: 0;
}

.archive-title::after {
  content: ".";
  color: var(--yellow-2);
}

.archive-main {
  min-width: 0;
}

.blog-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.archive-pagination {
  margin-top: 40px;
}

.archive-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: "Lufga", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(0, 30, 98, 0.12);
  background: rgba(255, 255, 255, 0.9);
  transition: 0.2s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--yellow-2);
  border-color: var(--yellow-2);
  color: var(--primary);
}

.archive-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 10px 4px;
}

@media screen and (max-width: 980px) {
  .blog-grid--2col {
    grid-template-columns: 1fr;
  }

  .section-archive .archive-content-wrap {
    padding: 48px 0 80px;
  }
}

/* ── Legal pages (privacidade, termos) ── */

.legal-page .legal-article {
  max-width: 860px;
  margin: 0 auto;
}

.legal-page .single-title {
  text-align: left;
}
