/*
Theme Name: Hello Easy Medicina
Theme URI: https://easymedicina.com/
Description: Child theme do Hello Elementor para templates editoriais do Easy Medicina.
Author: Hermes Agent
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-easy
*/

:root {
  --em-blue: #0866ff;
  --em-blue-2: #0ea5ff;
  --em-navy: #071a3d;
  --em-ink: #101828;
  --em-muted: #5b667a;
  --em-soft: #eef6ff;
  --em-soft-2: #f7fbff;
  --em-card: #ffffff;
  --em-border: rgba(8, 102, 255, 0.13);
  --em-shadow: 0 22px 60px rgba(7, 26, 61, 0.10);
  --em-shadow-soft: 0 16px 42px rgba(7, 26, 61, 0.07);
  --em-radius: 30px;
}

body {
  background: #f5f9ff;
  color: var(--em-ink);
}

.em-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.em-blog-archive {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(8, 102, 255, .15), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(14, 165, 255, .12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #f5f9ff 100%);
  padding: clamp(54px, 7vw, 92px) 0 clamp(58px, 8vw, 104px);
}

.em-blog-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.em-kicker,
.em-post-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--em-border);
  background: rgba(255,255,255,.78);
  color: var(--em-blue);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.em-archive-title {
  max-width: 820px;
  margin: 18px 0 16px;
  color: var(--em-navy);
  font-family: Inter, "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.45rem, 5.8vw, 5rem);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 950;
}

.em-archive-lead {
  max-width: 760px;
  margin: 0;
  color: var(--em-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.em-blog-panel {
  align-self: stretch;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--em-radius);
  border: 1px solid var(--em-border);
  background: rgba(255,255,255,.72);
  box-shadow: var(--em-shadow-soft);
  backdrop-filter: blur(14px);
}

.em-blog-panel h2 {
  margin: 0 0 12px;
  color: var(--em-navy);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 950;
}

.em-blog-panel p {
  margin: 0 0 18px;
  color: var(--em-muted);
  line-height: 1.65;
}

.em-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.em-topic-pills a,
.em-topic-pills span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 102, 255, .08);
  color: var(--em-blue);
  font-weight: 850;
  font-size: .86rem;
  text-decoration: none !important;
}

.em-hero-post {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--em-border);
  border-radius: 36px;
  background: var(--em-card);
  box-shadow: var(--em-shadow);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.em-hero-image-wrap,
.em-card-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8,102,255,.10), rgba(14,165,255,.16));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.em-hero-image-wrap { min-height: 420px; }

.em-hero-image,
.em-card-image {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease, filter .24s ease;
}

.em-hero-post:hover .em-hero-image,
.em-archive-card:hover .em-card-image {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.em-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.em-post-meta-row,
.em-hero-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.em-post-meta {
  color: var(--em-muted);
  font-size: .92rem;
  font-weight: 750;
}

.em-hero-title {
  margin: 0 0 16px;
  color: var(--em-navy);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 950;
}

.em-hero-title a,
.em-card-title a {
  color: inherit;
  text-decoration: none !important;
}

.em-hero-excerpt {
  margin: 0 0 26px;
  color: var(--em-muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.em-hero-cta,
.em-card-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--em-blue), var(--em-blue-2));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(8,102,255,.20);
}

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

.em-archive-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(8, 102, 255, .11);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--em-shadow-soft);
}

.em-card-image-wrap {
  aspect-ratio: 16/10;
}

.em-card-placeholder,
.em-hero-placeholder {
  display: grid;
  place-items: center;
  min-height: inherit;
  padding: 24px;
  color: rgba(8,102,255,.34);
  font-weight: 950;
  font-size: 3rem;
  letter-spacing: -.08em;
}

.em-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.em-card-body .em-post-category {
  margin-bottom: 14px;
  font-size: .72rem;
  padding: 7px 11px;
}

.em-card-title {
  margin: 0 0 12px;
  color: var(--em-navy);
  font-size: clamp(1.25rem, 2vw, 1.68rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 950;
}

.em-card-excerpt {
  margin: 0 0 18px;
  color: var(--em-muted);
  line-height: 1.62;
  font-size: .98rem;
}

.em-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(8,102,255,.09);
}

.em-card-readmore {
  min-height: 38px;
  padding: 9px 13px;
  box-shadow: none;
  font-size: .88rem;
}

.em-archive-empty {
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  color: var(--em-muted);
}

.em-archive-pagination {
  margin-top: 38px;
  text-align: center;
}

.em-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(8,102,255,.12);
  color: var(--em-navy);
  font-weight: 850;
  text-decoration: none !important;
}

.em-archive-pagination .current,
.em-archive-pagination a:hover {
  background: var(--em-blue);
  color: #fff;
}

@media (max-width: 980px) {
  .em-blog-top,
  .em-hero-post,
  .em-archive-grid {
    grid-template-columns: 1fr;
  }

  .em-hero-image-wrap { min-height: 320px; aspect-ratio: 16/9; }
}

@media (max-width: 640px) {
  .em-shell { width: min(100% - 28px, 1120px); }
  .em-blog-archive { padding-top: 42px; }
  .em-archive-title { font-size: clamp(2.25rem, 13vw, 3.4rem); }
  .em-hero-post { border-radius: 26px; }
  .em-hero-content { padding: 26px; }
  .em-archive-card { border-radius: 24px; }
  .em-card-footer { align-items: flex-start; flex-direction: column; }
}
