/*
Theme Name: Investimentos Financeiros
Theme URI: https://investimentosfinanceiros.com.br
Author: Investimentos Financeiros
Author URI: https://investimentosfinanceiros.com.br
Description: Template moderno e responsivo para site de investimentos financeiros com foco em legibilidade e design atrativo
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: investimentosfinanceiros
Tags: blog, investimentos, responsive, blue, modern
*/

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de Cores - Tons de Azul */
  --primary-blue: #326169;
  --secondary-blue: #326169;
  --light-blue: #3b7781;
  --alt-black: #161616;
  --accent-blue: #5da9e9;
  --soft-blue: #d6e8f7;
  --bg-light: #f0f4f8;
  --white: #ffffff;
  --text-dark: #0d1b2a;
  --text-gray: #484e52;
  --light-gray: #969696;
  --border-color: #a0aec0;
  --shadow: rgba(19, 41, 61, 0.1);
  --shadow-hover: rgba(19, 41, 61, 0.2);
}

body {
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFIA
======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--light-blue);
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ========================================
   HEADER
======================================== */

.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.default-logo,
.custom-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-title a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title a:hover {
  color: var(--soft-blue);
}

.site-description {
  color: var(--soft-blue);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 400;
}

/* Menu de Navegação - Categorias */
.header-actions {
  display: none;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 25px;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  background: #161616;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px) translateX(3px);
}

.menu-toggle.active .hamburger-icon span {
  background: var(--white);
}

.categories-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  align-items: center;
}

.categories-menu .category-item {
  display: flex;
  align-items: end;
  justify-content: end;
}

.categories-menu .category-item a {
  color: #161616;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  text-transform: capitalize;
}

.categories-menu .category-item a:hover,
.categories-menu .category-item a:focus {
  color: var(--light-blue);
}

.search-icon-item {
  margin-left: 0.5rem;
}

.search-toggle {
  background: transparent;
  border: none;
  color: #161616;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.search-toggle:hover,
.search-toggle:focus {
  color: var(--light-blue);
  transform: scale(1.05);
}

.header-search[hidden] {
  display: none;
}

.header-search {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: transparent;
  padding: 0rem 0.5rem;
  width: min(360px, calc(100vw - 2.5rem));
  z-index: 1100;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-search.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search-fieldset {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  font-family: inherit;
  color: #161616;
}

.header-search-input::placeholder {
  color: rgba(22, 22, 22, 0.55);
}

.header-search-input:focus {
  outline: none;
}

.header-search-submit {
  background: var(--light-blue);
  border: none;
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search-submit:hover,
.header-search-submit:focus {
  transform: translateX(2px);
  background: var(--secondary-blue);
}

.search-close {
  display: none;
  background: transparent;
  border: none;
  color: #161616;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 5S8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  position: absolute;
  right: 0;
  top: 0;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
  background: linear-gradient(
    135deg,
    var(--secondary-blue) 0%,
    var(--light-blue) 100%
  );
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--soft-blue);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   FEATURED POST
======================================== */

.featured-post-section {
  margin-bottom: 3rem;
  background: var(--light-blue);
  border-radius: 0;
  overflow: hidden;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 400px;
  align-items: center;
}

.featured-post-thumbnail {
  height: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.featured-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.featured-post-content {
  padding: 6.125rem 1.5rem 6.125rem 0rem;
  color: var(--white);
}

.featured-label a {
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.featured-post-title {
  font-size: clamp(1.75rem, 3.5vw + 1rem, 3rem); /* ≈ de 28px a 48px */
  color: var(--white);
  font-weight: 700;
  line-height: 1.2; /* mantém proporção com o tamanho fluido */
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}
.featured-post-title a {
  color: var(--white);
  transition: opacity 0.3s ease;
}

.featured-post-title a:hover {
  opacity: 0.9;
}

.featured-post-excerpt {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--white);
}

.featured-read-more:hover {
  background: var(--soft-blue);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.featured-read-more svg,
.featured-read-more svg * {
  transition: all 0.3s ease;
}

.featured-read-more:hover svg {
  transform: translateX(5px);
}

.featured-read-more:hover svg * {
  fill: var(--primary-blue);
}

.section-title {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  font-weight: 700;
}

.footer-category-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.footer-category-item a {
  color: var(--soft-blue);
  font-weight: 300;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-category-item a:hover {
  color: var(--white);
}

.archive-page {
  padding: 3rem 0 4rem;
  flex: 1;
}

.archive-header {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.archive-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(50, 97, 105, 0.1);
  color: var(--secondary-blue);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.archive-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  color: var(--alt-black);
}

h1.archive-title {
  color: var(--alt-black);
}

.archive-title mark {
  background: transparent;
  color: var(--alt-black);
}

.archive-description {
  color: var(--text-gray);
  font-size: 1.05rem;
}

.archive-search-form {
  margin: 2rem auto 0;
  max-width: 520px;
}

.archive-search-fieldset {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  padding: 0.65rem 0.75rem 0.65rem 1.25rem;
  box-shadow: 0 15px 35px rgba(22, 22, 22, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-search-fieldset input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  font-family: inherit;
  color: #161616;
}

.archive-search-fieldset input[type="search"]:focus {
  outline: none;
}

.archive-search-fieldset input[type="search"]::placeholder {
  color: rgba(22, 22, 22, 0.45);
}

.archive-search-fieldset button {
  background: var(--light-blue);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.archive-search-fieldset button:hover,
.archive-search-fieldset button:focus {
  transform: translateX(2px);
  background: var(--secondary-blue);
}

.archive-empty {
  text-align: center;
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(22, 22, 22, 0.08);
  max-width: 620px;
  margin: 0 auto;
}

.archive-empty h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.archive-empty p {
  color: var(--text-gray);
  margin-bottom: 1.75rem;
}

.archive-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--secondary-blue);
}

.archive-back::after {
  content: "↗";
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.archive-back:hover::after {
  transform: translate(2px, -2px);
}

/* ========================================
   POSTS GRID
======================================== */

.posts-container {
  padding: 0 0 3rem;
  flex: 1;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.posts-grid.is-loading {
  position: relative;
  opacity: 0.45;
  pointer-events: none;
}

.posts-grid.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0)
  );
  animation: posts-grid-pulse 1.2s ease-in-out infinite;
}

.pagination.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

@keyframes posts-grid-pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.7;
  }
}

.post-card {
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-8px);
}

.post-thumbnail {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--soft-blue) 0%,
    var(--light-blue) 100%
  );
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.post-thumbnail::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-gray);
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-meta span::before {
  content: "•";
  color: var(--accent-blue);
  font-weight: bold;
}

.post-meta span:first-child::before {
  content: "";
  display: none;
}

.post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.post-date {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--light-gray);
  margin-top: auto;
  padding-top: 0rem;
  text-transform: uppercase;
}

.post-title {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem); /* ≈ 20px → 28px */
  line-height: 1.5;
}

.post-title a {
  color: var(--alt-black);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title a:hover {
  color: var(--light-blue);
}

.post-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw + 0.25rem, 1rem); /* ≈ 14px → 16px */
  line-height: clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem); /* ≈ 20px → 24px */
}

.post-excerpt a {
  color: var(--text-gray);
  text-decoration: none;
}

.post-excerpt p {
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw + 0.25rem, 1rem); /* ≈ 14px → 16px */
  line-height: clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem); /* ≈ 20px → 24px */
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  background: var(--light-blue);
  color: var(--white);
  transform: translateX(5px);
}

.read-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* ========================================
   SINGLE POST
======================================== */

.single-post-container {
  padding: 3rem 0;
  flex: 1;
}

.single-post {
  margin: 0 auto;
}

.single-post-header {
  padding: 1.5rem 0rem;
  background: transparent;
}

.single-post-header .posted-author {
  display: none;
}

.single-post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary-blue);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.single-post-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--text-gray);
  font-size: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.single-post-meta span svg {
  flex-shrink: 0;
}

.single-post-meta a {
  color: var(--secondary-blue);
  font-weight: 600;
}

.single-post-meta a:hover {
  color: var(--light-blue);
}

.single-post-footer {
  padding: 2rem 3rem;
  background: var(--bg-light);
  border-top: 2px solid var(--border-color);
}

.post-tags {
  color: var(--text-gray);
  line-height: 1.8;
}

.post-tags a {
  display: inline-block;
  background: var(--soft-blue);
  color: var(--primary-blue);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.single-post-thumbnail {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
}

.single-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-content {
  padding: 2.4rem 0rem;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.single-post-content figure {
  width: 100%;
}
.single-post-content figure img {
  width: 100%;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-blue);
}

.single-post-content p {
  margin-bottom: 1.75rem;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px var(--shadow);
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.75rem;
  padding-left: 2rem;
}

.single-post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.single-post-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-gray);
}

.single-post-content a {
  color: var(--secondary-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.single-post-content a:hover {
  color: var(--light-blue);
}

/* Post Navigation */
.post-navigation {
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links {
  width: 100%;
  display: flex;
  gap: 2.4rem;
  margin-top: 40px;
}

.nav-previous,
.nav-next {
  flex: 1;
  min-width: 200px;
}

.nav-previous a,
.nav-next a {
  display: flex;
  align-items: safe;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  color: var(--alt-black);
  font-weight: 600;
  flex-direction: row;
  flex-wrap: wrap;
  max-height: 150px;
  overflow: hidden;
  height: 150px;
}

.nav-previous .nav-title,
.nav-next .nav-title {
  font-size: 0.75rem;
  flex-basis: 100%;
}

.nav-previous a:hover,
.nav-next a:hover {
  transform: translateX(-5px);
}

.nav-next a:hover {
  transform: translateX(5px);
}

.nav-previous a::before {
  content: "←";
}

.nav-next a {
  justify-content: flex-end;
}

.nav-next a .nav-subtitle::after {
  content: " →";
}

/* ========================================
   PAGINAÇÃO
======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.25rem 0.25rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--black);
  font-weight: 400;
  transition: all 0.3s ease;
  min-width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination a:hover {
  background: var(--alt-black);
  color: var(--white);
  border-color: var(--alt-black);
  transform: translateY(0px);
  font-weight: 500;
}

.pagination .current {
  background: var(--alt-black);
  color: var(--white);
  border-color: var(--alt-black);
  font-weight: 500;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: var(--white);
  line-height: 1.85;
  font-size: 1rem;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.footer-bottom p {
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* ========================================
   UTILITÁRIOS
======================================== */

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.no-posts h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.no-posts p {
  color: var(--text-gray);
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .post-faq h3[itemprop="name"] {
    font-size: 1.125rem !important;
  }

  .single-post-container {
    padding: 1.5rem 1rem;
  }
  .single-post-container .container,
  .single-post-container .single-post-header,
  .single-post-container .single-post-content {
    padding: 0;
  }

  .single-post-container .single-post-content {
    padding-top: 2.4rem;
  }

  /*clamop 2rem, 2vw + 0.5rem, 1.25rem*/
  .featured-post-title {
    font-size: clamp(2rem, 2vw + 0.5rem, 2rem);
  }

  .featured-post-excerpt {
    font-size: clamp(0.875rem, 1vw + 0.25rem, 1rem);
    line-height: clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem);
  }

  .featured-read-more {
    font-size: clamp(0.875rem, 1vw + 0.25rem, 1rem);
    padding: 0.5rem 1rem;
  }

  .featured-post-thumbnail {
    margin-top: 2.5rem;
  }

  .featured-post-section .container {
    padding: 0;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 3;
  }

  .search-toggle-mobile {
    background: transparent;
    border: none;
    color: #161616;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-icon-item {
    display: none;
  }

  .header-content {
    flex-wrap: nowrap;
    display: flex;
    flex-direction: row;
  }

  .header-actions {
    order: 1;
  }

  .header-content .growmobile {
    flex-grow: 1;
  }

  .menu-toggle {
    display: block;
    order: 1;
  }

  .main-navigation {
    position: relative;
    order: 2;
  }

  .categories-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    gap: 0;
    margin-top: 1rem;
    background: var(--primary-blue);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
  }

  .categories-menu.active {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    min-height: 100vh;
    height: 100%;
    overflow-y: auto;
    width: 100vw;
    margin: 0 auto;
    border-radius: 0px;
    background: var(--white);
    padding-top: 6rem;
  }

  .categories-menu .category-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .categories-menu .category-item:last-of-type {
    border-bottom: none;
  }

  .categories-menu .category-item a {
    display: block;
    padding: 1rem;
    width: 100%;
  }

  .search-icon-item {
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-thumbnail {
    order: -1;
  }

  .featured-post-thumbnail img {
    min-height: 250px;
  }

  .featured-post-content {
    padding: 2rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-post-header,
  .single-post-content {
    padding: 2rem 1.5rem;
  }

  .post-navigation {
    padding: 1.5rem;
    flex-direction: column;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 15px;
  }

  .single-post-header,
  .single-post-content {
    padding: 1.5rem 1rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    font-size: 0.9rem;
  }
}

/* ========================================
   TABELAS
======================================== */

.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
}

.single-post-content table thead {
  background: linear-gradient(
    135deg,
    var(--secondary-blue) 0%,
    var(--light-blue) 100%
  );
  color: var(--white);
}

.single-post-content table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid var(--primary-blue);
}

.single-post-content table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.single-post-content table tbody tr {
  transition: background-color 0.3s ease;
}

.single-post-content table tbody tr:hover {
  background-color: var(--bg-light);
}

.single-post-content table tbody tr:last-child td {
  border-bottom: none;
}

.single-post-content table tbody tr:nth-child(even) {
  background-color: rgba(214, 232, 247, 0.3);
}

/* Tabelas responsivas */
@media (max-width: 768px) {
  .single-post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .single-post-content table th,
  .single-post-content table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   ACESSIBILIDADE
======================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: var(--bg-light);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: var(--primary-blue);
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ========================================
   ANIMAÇÕES
======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card,
.single-post {
  animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .post-navigation,
  .pagination,
  .read-more {
    display: none;
  }

  .single-post {
    box-shadow: none;
  }
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: end;
}

/*Estilos de Tabela*/
.single-post-content table {
  border-collapse: collapse;
  width: 100%;
}

.single-post-content table td,
.single-post-content table th {
  padding: 8px;
}

.single-post-content table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.single-post-content table th {
  background-color: var(--primary-blue);
  color: white;
}

.single-post-content table td {
  border-bottom: 1px solid #ddd;
}

.single-post-content table tbody tr:last-child td {
  margin-bottom: 0;
}

#outros-destaques h2.section-title {
  margin-top: 3rem;
  color: var(--alt-black);
  margin-bottom: 3rem;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem); /* ≈ de 24px a 40px */
  line-height: clamp(2rem, 4vw + 0.5rem, 3rem); /* ≈ de 32px a 48px */
  word-wrap: break-word;
}

.pagination {
  margin-top: 6rem;
}

.pagination .container {
  padding: 0px;
  display: flex;
  gap: 0.5rem;
}

.logoMobile svg * {
  fill: var(--white);
}

.logoMobile {
  margin-bottom: 2rem;
}

/* ========================================
   FAQ Accordion
======================================== */

.post-faq div[itemprop="mainEntity"] {
  border-bottom: 1px solid var(--border-color);
}

.post-faq div[itemprop="mainEntity"]:last-child {
  border-bottom: none;
}

.post-faq h3[itemprop="name"] {
  cursor: pointer;
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-blue);
  transition: color 0.3s ease;
  font-size: 1.25rem;
}
.post-faq h3[itemprop="name"]:hover {
  color: var(--light-blue);
}

.post-faq h3[itemprop="name"]::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.post-faq div[itemprop="mainEntity"].active h3[itemprop="name"]::after {
  transform: rotate(45deg);
}

.post-faq div[itemprop="acceptedAnswer"] {
  overflow: hidden;
  transition: max-height 0.5s ease, padding-bottom 0.5s ease;
  max-height: 0;
  padding-bottom: 0;
}

.post-faq div[itemprop="mainEntity"].active div[itemprop="acceptedAnswer"] {
  max-height: 1000px; /* Adjust as needed */
  padding-bottom: 1.5rem;
}

.post-faq div[itemprop="acceptedAnswer"][hidden] {
  display: none;
}

.comment-respond {
  display: none;
}

.single-post-content h1 {
  font-size: clamp(1.75rem, 3.5vw + 1rem, 3rem);
  color: var(--alt-black);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
}

.single-post-content ul {
  list-style-type: disc;
}

.single-post-content ol {
  list-style-type: decimal;
}

.single-post-content p,
.single-post-content li,
.single-post-content td,
.single-post-content th {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1rem);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.single-post-content p strong {
  font-weight: 700;
}

.single-post-content h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.75rem);
  color: var(--alt-black);
  font-weight: 700;
}

/* 1.5 rem */
.single-post-content h3 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.5rem);
  color: var(--alt-black);
  font-weight: 700;
}

/* 1.25 rem */
.single-post-content h4 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.25rem);
  color: var(--alt-black);
  font-weight: 700;
}
/* 1 rem */
.single-post-content h5 {
  font-size: clamp(1rem, 2vw + 0.5rem, 1rem);
  color: var(--alt-black);
  font-weight: 700;
}

.menu-toggle.active {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 99;
}

.menu-toggle.active .hamburger-icon span {
  background: var(--alt-black);
}
