/*
Theme Name: Wonder Blog
Theme URI: https://blog.corretorawonder.com.br/
Author: Edmilson Rodrigues
Author URI: https://corretorawonder.com.br/
Description: Tema WordPress para o blog da Wonder Corretora, com layout editorial inspirado em portais de conteudo financeiro e identidade visual Wonder. Desenvolvido por Edmilson Rodrigues, desenvolvedor senior.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: wonder-blog
*/

:root {
  --wonder-blue: #36a2e7;
  --wonder-blue-dark: #2080c8;
  --wonder-navy: #1d2b3a;
  --wonder-ink: #102033;
  --wonder-muted: #6c7a89;
  --wonder-line: #dfe8ef;
  --wonder-soft: #eef7fd;
  --wonder-soft-2: #f6f9fc;
  --wonder-green: #25d366;
  --white: #fff;
  --shadow: 0 18px 54px rgba(29, 43, 58, .11);
  --shadow-sm: 0 10px 28px rgba(29, 43, 58, .08);
  --radius: 8px;
  --font: "Montserrat", Arial, sans-serif;
  --header-h: 77px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--wonder-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--wonder-ink);
  line-height: 1.12;
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.narrow {
  max-width: 860px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: var(--wonder-ink);
  color: #fff;
  height: auto;
  left: 16px;
  padding: 12px 16px;
  top: 16px;
  width: auto;
  z-index: 10000;
}

.site-main {
  min-height: 70vh;
  padding-top: var(--header-h);
}

.section {
  padding: 15px 0 !important;
}

.band-light {
  background: var(--wonder-soft-2);
}

.section-title {
  align-items: end;
  border-bottom: 1px solid var(--wonder-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  min-height: 48px;
  position: relative;
}

.section-title::after {
  background: var(--wonder-blue);
  bottom: -2px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 132px;
}

.section-title h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 800;
}

.eyebrow,
.post-category {
  color: var(--wonder-blue-dark);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-link {
  align-items: center;
  color: var(--wonder-blue-dark);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 800;
  gap: 8px;
}

.text-link i {
  font-size: .78rem;
  transition: transform .2s ease;
}

.text-link:hover i {
  transform: translateX(4px);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(16, 32, 51, .08);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow .2s ease, background .2s ease;
  z-index: 1000;
  padding-bottom:20px;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(16, 32, 51, .08);
}

.top-strip {
  background: #f3f6f8;
  color: var(--wonder-navy);
  font-size: .72rem;
  font-weight: 700;
}

.top-strip__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 28px;
}

.top-strip nav {
  display: flex;
  gap: 22px;
}

.top-strip a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-main {
  align-items: center;
  display: flex;
  gap: 24px;
  height: auto;
  min-height: 77px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img,
.custom-logo {
  height: 77px;
  max-height: 77px;
  width: auto;
}

.primary-nav {
  flex: 1;
}

.menu {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  list-style: none;
}

.menu a {
  border-radius: 8px;
  color: var(--wonder-navy);
  display: inline-flex;
  font-size: .86rem;
  font-weight: 800;
  padding: 10px 12px;
}

.menu a:hover,
.menu .current-menu-item > a {
  background: rgba(54, 162, 231, .08);
  color: var(--wonder-blue-dark);
}

.header-cta,
.footer-button,
.newsletter-form button,
.newsletter-cta,
.search-submit {
  align-items: center;
  background: var(--wonder-blue);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.header-cta:hover,
.footer-button:hover,
.newsletter-form button:hover,
.newsletter-cta:hover,
.search-submit:hover {
  background: var(--wonder-blue-dark);
  box-shadow: 0 10px 28px rgba(54, 162, 231, .24);
  transform: translateY(-1px);
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 0;
  position: relative;
  width: 42px;
}

.menu-toggle span {
  background: var(--wonder-navy);
  border-radius: 99px;
  display: block;
  height: 2px;
  left: 8px;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
  width: 26px;
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero-blog {
  background: #edf4ef;
  padding: 62px 0 70px;
}

.hero-carousel {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 330px;
}

.hero-carousel__slides {
  min-width: 0;
  position: relative;
}

.hero-slide {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, 1fr);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(10px);
  transition: opacity .36s ease, transform .36s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateY(0);
}

.hero-slide__copy h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 14px 0 18px;
  max-width: 620px;
}

.hero-slide__copy h1 a:hover {
  color: var(--wonder-blue-dark);
}

.hero-slide__copy p {
  color: var(--wonder-muted);
  font-size: 1.04rem;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-slide__button {
  align-items: center;
  border: 1.5px solid var(--wonder-blue-dark);
  border-radius: 8px;
  color: var(--wonder-blue-dark);
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  min-width: 150px;
  padding: 0 22px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.hero-slide__button:hover {
  background: var(--wonder-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.hero-slide__media {
  display: block;
  min-width: 0;
}

.hero-slide__media img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: none;
  object-fit: cover;
  width: 100%;
}

.hero-carousel__rail {
  align-self: center;
  display: grid;
}

.hero-rail-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(16, 32, 51, .16);
  border-left: 4px solid transparent;
  color: rgba(16, 32, 51, .42);
  cursor: pointer;
  display: grid;
  font-family: var(--font);
  gap: 8px;
  padding: 17px 0 17px 18px;
  text-align: left;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.hero-rail-item:last-child {
  border-bottom: 0;
}

.hero-rail-item span {
  color: currentColor;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-rail-item strong {
  color: currentColor;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.45;
}

.hero-rail-item.is-active,
.hero-rail-item:hover {
  border-left-color: var(--wonder-blue);
  color: var(--wonder-ink);
}

.hero-rail-item.is-active span,
.hero-rail-item:hover span {
  color: var(--wonder-blue-dark);
}

.hero-empty h1 {
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  margin-top: 14px;
  max-width: 760px;
}

.hero-search,
.search-form {
  align-items: stretch;
  display: flex;
  gap: 10px;
  margin-top: 28px;
  max-width: 520px;
}

.hero-search input,
.search-field,
.newsletter-form input {
  background: #fff;
  border: 1px solid var(--wonder-line);
  border-radius: 8px;
  color: var(--wonder-ink);
  flex: 1;
  font-family: var(--font);
  font-size: .92rem;
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
}

.hero-search button {
  align-items: center;
  background: var(--wonder-navy);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  width: 48px;
}

.hero-card,
.post-card,
.topic-block,
.widget,
.empty-state {
  background: #fff;
  border: 1px solid rgba(16, 32, 51, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hero-card__image {
  display: block;
}

.post-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.hero-card__body,
.post-card__body {
  padding: 24px;
}

.hero-card h2,
.post-card h2 {
  font-size: clamp(1.22rem, 2vw, 1.75rem);
  font-weight: 800;
  margin: 10px 0 10px;
}

.hero-card h2 a:hover,
.post-card h2 a:hover {
  color: var(--wonder-blue-dark);
}

.hero-card p,
.post-card p {
  color: var(--wonder-muted);
  font-size: .95rem;
}

.post-meta {
  align-items: center;
  color: var(--wonder-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .76rem;
  font-weight: 800;
  gap: 12px;
  text-transform: uppercase;
}

.post-meta span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.post-meta i {
  color: var(--wonder-blue-dark);
}

/* Home content */
.home-grid,
.content-grid {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.latest-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
}

.post-card--featured {
  grid-row: span 4;
}

.post-card--compact {
  box-shadow: none;
  display: grid;
  gap: 16px;
  grid-template-columns: 124px minmax(0, 1fr);
}

.post-card--compact .post-card__media {
  min-height: 100%;
}

.post-card--compact .post-image {
  aspect-ratio: 1 / 1;
  height: 100%;
}

.post-card--compact .post-card__body {
  padding: 16px 16px 16px 0;
}

.post-card--compact h2 {
  font-size: .98rem;
  margin-bottom: 12px;
}

.post-card--compact .post-meta {
  gap: 8px;
}

.post-card--compact .text-link {
  font-size: .78rem;
}

.card-grid,
.post-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Sidebar */
.sidebar-column {
  display: grid;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.widget {
  padding: 24px;
}

.sidebar-column .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-title {
  border-bottom: 1px solid var(--wonder-line);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 14px;
  position: relative;
}

.widget-title::after {
  background: var(--wonder-blue);
  bottom: -2px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 88px;
}

.sidebar-column .widget-search-card .search-form {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 0;
  max-width: none;
}

.sidebar-column .widget-search-card label {
  display: flex;
  flex: 1;
}

.sidebar-column .widget-search-card .search-field {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
}

.sidebar-column .widget-search-card .search-submit {
  box-sizing: border-box;
  flex: 0 0 auto;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  width: auto;
}

.sidebar-column .widget-search-card .search-submit span {
  display: none;
}

.sidebar-column .widget_recent_entries ul li,
.sidebar-column .widget_recent_comments ul li,
.sidebar-column .widget_archive ul li,
.sidebar-column .widget_categories ul li {
  border-bottom: 1px solid var(--wonder-line);
  padding: 14px 0;
}

.sidebar-column .widget_recent_entries ul li:first-child,
.sidebar-column .widget_recent_comments ul li:first-child,
.sidebar-column .widget_archive ul li:first-child,
.sidebar-column .widget_categories ul li:first-child {
  padding-top: 0;
}

.sidebar-column .widget_recent_entries ul li:last-child,
.sidebar-column .widget_recent_comments ul li:last-child,
.sidebar-column .widget_archive ul li:last-child,
.sidebar-column .widget_categories ul li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-column .widget_recent_entries a,
.sidebar-column .widget_recent_comments a,
.sidebar-column .widget_archive a,
.sidebar-column .widget_categories a {
  color: var(--wonder-ink);
  font-weight: 700;
  line-height: 1.45;
}

.sidebar-column .widget_recent_entries a:hover,
.sidebar-column .widget_recent_comments a:hover,
.sidebar-column .widget_archive a:hover,
.sidebar-column .widget_categories a:hover {
  color: var(--wonder-blue-dark);
}

.sidebar-column .widget_recent_entries .post-date,
.sidebar-column .widget_recent_comments li,
.sidebar-column .widget_archive li,
.sidebar-column .widget_categories li {
  color: var(--wonder-muted);
  font-size: .88rem;
  line-height: 1.6;
}

.sidebar-column .widget_recent_entries .post-date {
  display: block;
  margin-top: 6px;
}

.rank-list {
  counter-reset: rank;
  display: grid;
  gap: 0;
  list-style: none;
}

.rank-list li {
  border-bottom: 1px solid var(--wonder-line);
  counter-increment: rank;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
}

.rank-list li::before {
  color: transparent;
  content: counter(rank);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  -webkit-text-stroke: 1.3px var(--wonder-blue);
}

.rank-list li:first-child {
  padding-top: 0;
}

.rank-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-list a {
  display: grid;
  gap: 4px;
}

.rank-list span {
  color: var(--wonder-blue-dark);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rank-list strong {
  font-size: .88rem;
  line-height: 1.35;
}

.rank-list a:hover strong {
  color: var(--wonder-blue-dark);
}

.cta-widget {
  background: var(--wonder-blue);
  color: #fff;
}

.cta-widget span {
  color: rgba(255, 255, 255, .76);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-widget h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 10px 0 20px;
}

.cta-widget a {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--wonder-blue-dark);
  display: inline-flex;
  font-size: .86rem;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

/* Topic blocks */
.category-sections {
  background: #fff;
}

.topic-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-block {
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.topic-block__head {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 18px;
}

.topic-block__head img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 112px;
}

.topic-block h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.topic-list {
  list-style: none;
  padding: 0 20px;
}

.topic-list li {
  border-top: 1px solid var(--wonder-line);
}

.topic-list a {
  display: grid;
  gap: 6px;
  padding: 15px 0;
}

.topic-list strong {
  font-size: .92rem;
  line-height: 1.35;
}

.topic-list span {
  color: var(--wonder-muted);
  font-size: .75rem;
  font-weight: 700;
}

.topic-block > .text-link {
  margin: auto 20px 20px;
}

/* Newsletter */
.newsletter-section {
  background: #fff;
  padding: 18px 0 78px;
}

.newsletter-box {
  align-items: center;
  background: var(--wonder-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  padding: 42px;
}

.newsletter-box h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  margin: 8px 0 10px;
}

.newsletter-box p {
  color: var(--wonder-muted);
}

.newsletter-form form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  background: #fff;
  border: 1px solid rgba(16, 32, 51, .12);
  border-radius: 8px;
  color: var(--wonder-ink);
  flex: 1 1 auto;
  font-family: var(--font);
  font-size: .95rem;
  min-height: 46px;
  padding: 0 16px;
}

.newsletter-input:focus {
  border-color: var(--wonder-blue);
  box-shadow: 0 0 0 3px rgba(54, 162, 231, .12);
  outline: none;
}

.newsletter-cta {
  min-width: 210px;
}

.newsletter-form small {
  color: var(--wonder-muted);
  display: block;
  font-size: .75rem;
  margin-top: 10px;
}

.newsletter-message.is-success {
  color: #1d7f49;
}

.newsletter-message.is-info {
  color: var(--wonder-blue-dark);
}

.newsletter-message.is-error {
  color: #b42318;
}

/* FAQ */
.faq-section {
  background: #fff;
  padding: 8px 0 70px;
}

.faq-heading {
  border-bottom: 1px solid rgba(16, 32, 51, .14);
  margin-bottom: 28px;
  padding-bottom: 20px;
  position: relative;
}

.faq-heading::after {
  background: var(--wonder-blue);
  bottom: -1px;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  width: 178px;
}

.faq-heading h2 {
  color: #111;
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  font-weight: 800;
  margin: 0;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 30px;
}

.faq-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #111;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 18px;
  transition: background .2s ease, color .2s ease;
}

.faq-tab.is-active {
  background: var(--wonder-blue);
  color: #fff;
}

.faq-panels {
  position: relative;
}

.faq-panel {
  display: none;
}

.faq-panel.is-active {
  display: block;
}

.faq-list {
  display: grid;
  gap: 24px;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, .74);
  border-radius: 0;
  overflow: hidden;
}

.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--wonder-ink);
  cursor: pointer;
  display: flex;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 18px;
  text-align: left;
  width: 100%;
}

.faq-question i {
  color: #111;
  flex: 0 0 auto;
  font-size: 1.2rem;
  transition: transform .2s ease;
}

.faq-item.is-open .faq-question i {
  transform: rotate(90deg);
}

.faq-answer {
  border-top: 1px solid rgba(17, 17, 17, .12);
  color: #344050;
  padding: 0 18px 20px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Internal pages */
.page-hero,
.single-hero {
  background: linear-gradient(180deg, #eef6f1 0%, #fff 100%);
  padding: 44px 0 38px;
}

.page-hero--compact {
  padding: 54px 0;
}

.page-hero h1,
.single-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  margin-top: 12px;
  max-width: 760px;
}

.page-hero p,
.single-hero p,
.archive-description {
  color: var(--wonder-muted);
  font-size: 1.05rem;
  margin-top: 16px;
  max-width: 760px;
}

.single-hero__grid {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .74fr);
}

.single-hero__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}

.article-grid {
  padding-bottom: 72px;
  padding-top: 38px;
}

.article-content {
  color: #273849;
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-body-card {
  background: #fff;
  border: 1px solid rgba(16, 32, 51, .08);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 36px;
}

.article-body-card > * {
  max-width: 760px;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--wonder-ink);
  font-weight: 800;
  margin: 2.2rem 0 1rem;
}

.article-content h2 {
  font-size: 1.85rem;
}

.article-content h3 {
  font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35rem;
}

.article-content a {
  color: var(--wonder-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  border-left: 4px solid var(--wonder-blue);
  color: var(--wonder-navy);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0;
  padding: 8px 0 8px 22px;
}

.article-content img,
.article-content figure {
  border-radius: var(--radius);
}

.article-cta {
  background: linear-gradient(135deg, #f4fbff 0%, #eef6f1 100%);
  border: 1px solid rgba(54, 162, 231, .18);
  border-radius: 18px;
  margin-top: 34px;
  padding: 26px;
}

.article-cta h2 {
  font-size: 1.55rem;
  margin: 8px 0 10px;
}

.article-cta p {
  color: var(--wonder-muted);
  margin-bottom: 18px;
}

.article-cta .button {
  gap: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.tag-list a {
  background: var(--wonder-soft);
  border-radius: 8px;
  color: var(--wonder-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.article-nav {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.article-nav__item {
  background: #fff;
  border: 1px solid rgba(16, 32, 51, .08);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 22px 24px;
}

.article-nav__item span {
  color: var(--wonder-blue-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-nav__item strong {
  color: var(--wonder-ink);
  font-size: 1rem;
  line-height: 1.45;
}

.article-nav__item--next {
  text-align: right;
}

.related-section {
  background: var(--wonder-soft-2);
}

/* Forms and pagination */
.navigation.pagination {
  margin-top: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  align-items: center;
  border: 1px solid var(--wonder-line);
  border-radius: 8px;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--wonder-blue);
  border-color: var(--wonder-blue);
  color: #fff;
}

.search-form label {
  display: flex;
  flex: 1;
}

.search-submit span {
  display: inline;
}

.empty-state {
  padding: 38px;
}

.empty-state h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.empty-state p {
  color: var(--wonder-muted);
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: #07131f;
  color: rgba(255, 255, 255, .74);
}

.footer-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 56px;
  padding-top: 54px;
}

.footer-brand img {
  filter: drop-shadow(0 8px 24px rgba(54, 162, 231, .18));
  margin-bottom: 20px;
  max-width: 220px;
}

.footer-brand p {
  color: rgba(255, 255, 255, .58);
  font-size: .92rem;
  max-width: 330px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.footer-social a:hover {
  background: var(--wonder-blue);
  border-color: var(--wonder-blue);
}

.site-footer h2 {
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--wonder-blue);
}

.footer-links a {
  line-height: 1.5;
}

.footer-button {
  margin-top: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, .42);
  font-size: .78rem;
  margin: 0;
}

.floating-whatsapp {
  align-items: center;
  background: var(--wonder-green);
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, .34);
  color: #fff;
  display: inline-flex;
  font-size: 1.35rem;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 58px;
  z-index: 900;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
}

/* WordPress defaults */
.alignleft {
  float: left;
  margin: .4rem 1.4rem 1rem 0;
}

.alignright {
  float: right;
  margin: .4rem 0 1rem 1.4rem;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: var(--wonder-muted);
  font-size: .82rem;
  margin-top: 8px;
}

.bypostauthor {
  display: block;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-carousel,
  .hero-slide,
  .single-hero__grid,
  .home-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    gap: 28px;
  }

  .hero-carousel__rail {
    align-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-rail-item {
    border-bottom: 0;
    border-left: 0;
    border-top: 4px solid transparent;
    padding: 16px 12px 0;
  }

  .hero-rail-item.is-active,
  .hero-rail-item:hover {
    border-left-color: transparent;
    border-top-color: var(--wonder-blue);
  }

  .sidebar-column {
    position: static;
  }

  .topic-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__item--next {
    text-align: left;
  }
}

@media (max-width: 880px) {
  :root {
    --header-h: 77px;
  }

  .top-strip {
    display: none;
  }

  .header-main {
    height: auto;
    min-height: 77px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    background: #fff;
    border-top: 1px solid var(--wonder-line);
    box-shadow: var(--shadow);
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: var(--header-h);
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 28px 28px;
  }

  .menu a {
    justify-content: space-between;
    padding: 14px 0;
  }

  .latest-layout {
    grid-template-columns: 1fr;
  }

  .post-card--featured {
    grid-row: auto;
  }

  .newsletter-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 20px;
  }

  .section {
    padding: 15px 0 !important;
  }

  .hero-blog,
  .page-hero,
  .single-hero {
    padding: 48px 0;
  }

  .hero-slide {
    gap: 24px;
  }

  .hero-slide__copy h1 {
    font-size: 28px;
  }

  .hero-carousel__rail {
    grid-template-columns: 1fr;
  }

  .hero-rail-item {
    border-bottom: 1px solid rgba(16, 32, 51, .16);
    border-left: 4px solid transparent;
    border-top: 0;
    padding: 14px 0 14px 16px;
  }

  .hero-rail-item.is-active,
  .hero-rail-item:hover {
    border-left-color: var(--wonder-blue);
    border-top-color: transparent;
  }

  .hero-search,
  .search-form,
  .newsletter-form form {
    flex-direction: column;
  }

  .hero-search button,
  .search-submit,
  .newsletter-form button {
    min-height: 46px;
    width: 100%;
  }

  .topic-grid,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-card--compact {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .post-card--compact .post-card__body {
    padding: 14px 14px 14px 0;
  }

  .post-meta {
    font-size: .68rem;
  }

  .topic-block__head {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .topic-block__head img {
    width: 92px;
  }

  .newsletter-box {
    padding: 26px 20px;
  }

  .single-hero {
    padding: 28px 0 22px;
  }

  .article-body-card {
    border-radius: 18px;
    padding: 22px 18px;
  }

  .article-cta {
    padding: 22px 18px;
  }

  .article-cta h2 {
    font-size: 1.3rem;
  }

  .faq-tabs {
    gap: 12px;
  }

  .faq-tab {
    font-size: .94rem;
    padding: 12px 14px;
  }

  .faq-question {
    font-size: .95rem;
    padding: 18px 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .floating-whatsapp {
    bottom: 16px;
    height: 52px;
    right: 16px;
    width: 52px;
  }
}
