/* ========================================================
   BLOG & ADMIN DESIGN SYSTEM - CLÍNICA CONRADO ALMEIDA
   ======================================================== */

/* Variáveis e Paleta */
:root {
  --ink: #101a22;
  --ink-card: #17252f;
  --ink-elevated: #1e303c;
  --teal: #55c7bf;
  --teal-soft: #b9eeea;
  --teal-dim: rgba(85, 199, 191, 0.15);
  --white: #f7fbfb;
  --muted: #a7b9bc;
  --line: rgba(85, 199, 191, 0.35);
  --line-subtle: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 22px 60px rgba(85, 199, 191, 0.18);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

/* Base Layout */
.blog-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.blog-main {
  flex: 1;
  padding: 3rem 0 6rem;
}

.blog-container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.breadcrumb-nav a,
.breadcrumb-trail a {
  color: var(--teal-soft);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.breadcrumb-nav a:hover,
.breadcrumb-trail a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.5;
  flex-shrink: 0;
}

.breadcrumb-title-text {
  color: var(--white);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-soft) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(85, 199, 191, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.breadcrumb-back-link:hover {
  background: rgba(85, 199, 191, 0.16);
  border-color: var(--teal);
  color: var(--white) !important;
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(85, 199, 191, 0.25);
}

/* Header do Blog */
.blog-header {
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.blog-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  color: var(--teal-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.85rem;
  max-width: 100% !important;
  width: 100%;
}

.blog-subtitle {
  max-width: 100% !important;
  width: 100%;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  margin: 0;
}

/* Barra de Filtros e Busca */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .blog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--teal);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(85, 199, 191, 0.2);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-btn:hover {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal-dim);
}

.cat-btn.is-active {
  background: var(--teal);
  color: #0d1a20;
  border-color: var(--teal);
  font-weight: 700;
}

/* Post em Destaque */
.featured-article {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 3.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: stretch;
}

.featured-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  overflow: hidden;
  background: #111e26;
  display: flex;
}

.featured-img-wrap a {
  display: flex;
  width: 100%;
  height: 100%;
  flex: 1;
}

.featured-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  transition: transform 0.5s ease;
}

@media (min-width: 900px) {
  .featured-article {
    grid-template-columns: 1fr 1.25fr;
  }

  .featured-img-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }
}

.featured-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal);
}

.featured-article:hover .featured-img-wrap img {
  transform: scale(1.04);
}

.featured-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.post-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-dim);
  border: 1px solid rgba(85, 199, 191, 0.4);
  color: var(--teal-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--white);
  max-width: 100% !important;
  width: 100%;
}

.featured-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Grid de Artigos */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(85, 199, 191, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111e26;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.8rem;
  color: var(--white);
  transition: color 0.2s ease;
}

.article-card:hover .card-title {
  color: var(--teal-soft);
}

.card-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.85rem;
  color: var(--muted);
}

.card-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-author-avatar,
.featured-author-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 1.5px solid var(--teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ========================================================
   PÁGINA DO ARTIGO INDIVIDUAL (artigo.html)
   ======================================================== */
.article-header {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.article-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0.85rem 0 1.25rem;
}

.article-author-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--ink-elevated);
  border: 1px solid var(--line-subtle);
  margin-bottom: 2rem;
  text-align: left;
}

.article-author-card img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.article-author-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
}

.article-author-meta small {
  color: var(--teal-soft);
  font-size: 0.8rem;
}

.article-featured-img {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

/* Caixa TL;DR */
.tldr-box {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(85, 199, 191, 0.12), rgba(16, 26, 34, 0.9));
  border: 1px solid var(--teal);
  margin-bottom: 3rem;
}

.tldr-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-soft);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.tldr-box p {
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Corpo do Artigo */
.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #dbe7e8;
}

.article-body h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  color: var(--white);
  margin: 2.2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-subtle);
  line-height: 1.25;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.75rem 1.5rem;
  padding: 0;
}

.article-body li {
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}

.article-body strong {
  color: var(--white);
}

/* Banner de Agendamento WhatsApp no Final do Artigo */
.article-cta-box {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #172a33 0%, #112028 100%);
  border: 1px solid var(--teal);
  text-align: center;
  margin: 4rem 0 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.article-cta-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.article-cta-box p {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  min-height: 46px;
  border-radius: 999px;
  background: #25d366;
  color: #0b1c12;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.35;
}

.btn-whatsapp-cta:hover {
  background: #20ba59;
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========================================================
   SLIDERS DO ARTIGO (MEIO E FINAL) & RODAPÉ WHATSAPP
   ======================================================== */

/* Slider Interativo do Artigo (Meio e Final) */
.article-slider-box {
  margin: 3.5rem 0;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #162630 0%, #101c24 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.article-slider-box.mid-article {
  border-color: rgba(85, 199, 191, 0.45);
}

.article-slider-box.end-article {
  margin: 3rem 0 2rem;
  border-color: var(--teal);
}

/* Caixa de Chamada da Equipe (Sem fotos, frase e botão WhatsApp) */
.article-team-cta-box {
  margin: 3.5rem 0 2.5rem;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #172833 0%, #101c24 100%);
  border: 1px solid var(--teal);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.article-team-cta-box .team-cta-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  color: var(--white);
  margin: 0.6rem 0 0.85rem;
  line-height: 1.2;
}

.article-team-cta-box .team-cta-phrase {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 auto;
}

.slider-header-info {
  margin-bottom: 1.5rem;
}

.slider-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.slider-header-title-box {
  text-align: left;
}

.slider-header-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin: 0 0 0.35rem;
  color: var(--white);
  line-height: 1.25;
}

.slider-header-info p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
  text-align: left;
  line-height: 1.55;
}

.slider-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 26, 34, 0.85);
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(85, 199, 191, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: var(--teal);
  color: #0d1a20;
  border-color: var(--teal);
  transform: scale(1.06);
}

.slider-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.slider-btn.toggle-play .icon-play {
  display: none;
}
.slider-btn.toggle-play .icon-pause {
  display: block;
}
.slider-btn.toggle-play.is-paused .icon-play {
  display: block;
}
.slider-btn.toggle-play.is-paused .icon-pause {
  display: none;
}

.slider-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d171d;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.slider-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.slider-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(11, 20, 26, 0.92) 0%, rgba(11, 20, 26, 0) 100%);
  color: var(--white);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(16, 26, 34, 0.82);
  border: 1px solid var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.slider-nav-btn:hover {
  background: var(--teal);
  color: #0d1a20;
  transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn.prev { left: 0.75rem; }
.slider-nav-btn.next { right: 0.75rem; }
.slider-nav-btn svg { width: 1.25rem; height: 1.25rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.is-active {
  width: 24px;
  background: var(--teal);
}

.slider-cta-wrap {
  text-align: center;
  margin-top: 1rem;
}

/* Seção de Contato Exclusiva do Artigo - Visual Elegante da Home */
.article-contact-section {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  margin: 4rem 0 2rem;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.article-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.article-contact-info .eyebrow {
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-contact-info .contact-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  margin: 0 0 0.85rem;
  text-wrap: balance;
  max-width: 100% !important;
}

.article-contact-info .contact-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.article-contact-section .contact-cta-action {
  margin-top: 0.25rem;
}

.article-contact-section .contact-box {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  width: 100%;
}

.article-contact-section .contact-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.article-contact-section .contact-item-link:hover {
  color: var(--teal-soft);
  border-color: rgba(85, 199, 191, 0.45);
  background: rgba(85, 199, 191, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.article-contact-section .contact-item-label {
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.article-contact-section .contact-item-value {
  color: var(--muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.article-contact-section .contact-item-link:hover .contact-item-value {
  color: var(--teal-soft);
}

@media (max-width: 860px) {
  .article-contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3.25rem 0 2rem;
    padding-top: 2.25rem;
  }
}

@media (max-width: 600px) {
  .article-contact-section .contact-item-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .article-contact-section .contact-item-value {
    text-align: left;
    word-break: break-all;
  }
}

/* Botão Fixo Flutuante de WhatsApp (Sempre Visível) */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: #25d366;
  color: #0a1a10;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseWhatsapp 2.8s infinite;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: #20ba59;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.55);
  color: #06110b;
}

.floating-whatsapp-btn svg {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 10px 30px rgba(37, 211, 102, 0.35);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 30px rgba(37, 211, 102, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 30px rgba(37, 211, 102, 0.35);
  }
}

@media (max-width: 600px) {
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.88rem;
  }

  .floating-whatsapp-btn .floating-label {
    display: inline;
  }
}

/* Artigos Relacionados */
.related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line-subtle);
}

.related-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

/* ========================================================
   PAINEL DE EDIÇÃO / ADMIN (admin-blog.html)
   ======================================================== */
.admin-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.login-box {
  max-width: 440px;
  margin: 4rem auto;
  text-align: center;
}

.login-box svg.lock-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-soft);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #101c23;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(85, 199, 191, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-admin.primary {
  background: var(--teal);
  color: #0b1a20;
}

.btn-admin.primary:hover {
  background: #73dcd5;
  transform: translateY(-2px);
}

.btn-admin.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.btn-admin.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-admin.danger {
  background: #dc3545;
  color: #fff;
}

.btn-admin.danger:hover {
  background: #bd2130;
}

/* Tabela de Posts do Admin */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line-subtle);
}

.admin-table th {
  color: var(--teal-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-post-thumb {
  width: 3.5rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal de Edição */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-dialog {
  background: var(--ink-card);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-subtle);
}

.modal-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.close-btn:hover {
  color: var(--white);
}

/* Image Upload Preview */
.image-upload-zone {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  background: #0f1c24;
  transition: all 0.2s ease;
}

.image-preview-box {
  position: relative;
  width: 140px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #162630;
  flex-shrink: 0;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-box .preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 26, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.image-preview-box:hover .preview-overlay {
  opacity: 1;
}

.preview-scheduled-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef3c7;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

/* ========================================================
   RESPONSIVIDADE E OTIMIZAÇÃO MOBILE REFINADA (blog.css)
   ======================================================== */
@media (max-width: 768px) {
  .blog-main {
    padding: 1.25rem 0 4.5rem;
  }

  .blog-container {
    width: min(calc(100% - 1.5rem), 1180px);
  }

  .breadcrumb-nav {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
  }

  /* No mobile, oculta o rastro extenso e quebrado do breadcrumb e mantém o botão elegante de voltar */
  .breadcrumb-trail {
    display: none !important;
  }

  .breadcrumb-back-link {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(85, 199, 191, 0.32);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }

  .blog-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .blog-header-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .blog-title {
    font-size: clamp(1.65rem, 5.8vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }

  .blog-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .blog-toolbar {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .search-box {
    max-width: 100%;
  }

  .search-input {
    padding: 0.65rem 0.85rem 0.65rem 2.4rem;
    font-size: 0.9rem;
  }

  .category-pills {
    gap: 0.4rem;
  }

  .cat-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .featured-article {
    margin-bottom: 2.25rem;
    border-radius: var(--radius-md);
  }

  .featured-img-wrap {
    aspect-ratio: 16 / 10;
    min-height: 190px;
  }

  .featured-content {
    padding: 1.25rem 1rem;
  }

  .featured-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .featured-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .articles-grid {
    gap: 1.25rem;
  }

  .article-card {
    border-radius: var(--radius-md);
  }

  .card-body {
    padding: 1.15rem 1rem;
  }

  .card-title {
    font-size: 1.22rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .card-excerpt {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .card-footer {
    padding-top: 0.75rem;
    font-size: 0.8rem;
  }

  .card-author-avatar {
    width: 1.85rem;
    height: 1.85rem;
  }

  .article-header {
    margin-bottom: 1.75rem;
    text-align: left;
  }

  .article-header h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.15rem);
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
  }

  .article-author-card {
    padding: 0.45rem 0.85rem;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .article-author-card img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .article-author-meta strong {
    font-size: 0.88rem;
  }

  .article-author-meta small {
    font-size: 0.75rem;
  }

  .article-featured-img {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
  }

  .audio-share-bar {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .tldr-box {
    padding: 1.15rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
  }

  .tldr-box h3 {
    font-size: 0.95rem;
  }

  .tldr-box p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .article-body {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .article-body h2 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 1.8rem 0 0.75rem;
    padding-bottom: 0.35rem;
  }

  .article-body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
  }

  .article-body p {
    margin-bottom: 1.15rem;
  }

  .article-body ul,
  .article-body ol {
    margin-left: 1.15rem;
    margin-bottom: 1.25rem;
  }

  .article-body li {
    margin-bottom: 0.45rem;
  }

  .article-cta-box {
    padding: 1.5rem 1rem;
    margin: 2.5rem 0 2rem;
    border-radius: var(--radius-md);
  }

  .article-cta-box h3 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .article-cta-box p {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }

  .article-team-cta-box {
    padding: 1.5rem 1rem;
    margin: 2.5rem 0 2rem;
    border-radius: var(--radius-md);
  }

  .article-team-cta-box .team-cta-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0.4rem 0 0.5rem;
  }

  .article-team-cta-box .team-cta-phrase {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .slider-cta-wrap {
    margin-top: 1.15rem;
  }

  .article-contact-section {
    margin: 2.75rem 0 1.5rem;
    padding-top: 2rem;
    gap: 1.5rem;
  }

  .article-contact-info .contact-title {
    font-size: 1.65rem;
    line-height: 1.22;
  }

  .article-contact-info .contact-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  .floating-whatsapp-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.82rem;
    gap: 0.5rem;
  }

  .floating-whatsapp-btn svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .related-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .related-section h2 {
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
  }

  .admin-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .image-upload-zone {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
  }

  .image-preview-box {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 10;
  }

  .btn-whatsapp-cta {
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    white-space: normal !important;
    word-break: normal;
  }

  .btn-whatsapp-cta svg {
    width: 19px;
    height: 19px;
  }
}


