.blog-shell {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(245, 241, 237, 0.52) 68%, #ffffff 100%);
}

.blog-hero {
  padding: clamp(3.5rem, 8vw, 5.25rem) 0 2.25rem;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 3rem;
  align-items: center;
}

.blog-hero h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.blog-hero p {
  max-width: 640px;
  font-size: 1.04rem;
}

.blog-search {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 154, 160, 0.18);
  border-radius: 0.9rem;
  box-shadow: 0 18px 45px rgba(26, 58, 82, 0.08);
}

.blog-search label {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.blog-search input {
  min-width: 0;
  border: 1px solid rgba(26, 58, 82, 0.14);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.86rem 1rem;
  outline: none;
  color: var(--navy);
}

.blog-search button {
  border: 0;
  border-radius: 999px;
  padding: 0.88rem 1.35rem;
  background: var(--navy);
  color: white;
  font-weight: 700;
  min-width: 118px;
}

.blog-categories-section {
  padding: 2rem 0 1rem;
}

/* ─── Category Tiles — ECG wave cards ─── */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

/* #1 — borda com luz sutil + elevação física em repouso */
.category-tile {
  position: relative;
  height: 200px;
  border-radius: 18px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  /* #2 — easing com peso real */
  transition: transform 0.45s cubic-bezier(.16,1,.3,1),
              box-shadow 0.45s cubic-bezier(.16,1,.3,1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 52px rgba(0, 0, 0, 0.32);
}

.category-tile.active {
  border-color: rgba(11, 154, 160, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(11, 154, 160, 0.35),
    0 20px 48px rgba(11, 154, 160, 0.2);
}

/* ── Onda SVG ── */
.ct-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 86px;
  pointer-events: none;
}

.ct-wave-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.6;
  transition: stroke 0.45s cubic-bezier(.16,1,.3,1);
}

.category-tile:hover .ct-wave-path {
  stroke: rgba(255, 255, 255, 0.2);
}

/* #4 — pulso orgânico: pausa entre batimentos */
/* #5 — glow mais contido em repouso */
.ct-wave-glow {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(11, 154, 160, 0.6));
  stroke-dasharray: 70 900;
  animation: ct-sweep 4.5s cubic-bezier(.45,0,.55,1) infinite;
}

.category-tile:hover .ct-wave-glow {
  animation-duration: 1.8s;
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(11, 154, 160, 0.85));
}

.category-tile.active .ct-wave-glow {
  stroke: #4fc4c9;
  filter: drop-shadow(0 0 5px rgba(79, 196, 201, 0.8));
}

/* #4 — keyframes com pausa no meio do ciclo (sístole/diástole) */
@keyframes ct-sweep {
  0%   { stroke-dashoffset: 70; }
  45%  { stroke-dashoffset: -460; }
  55%  { stroke-dashoffset: -460; }
  100% { stroke-dashoffset: -1000; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-wave-glow { animation: none; opacity: 0; }
}

/* ── Conteúdo ── */
.ct-body {
  position: absolute;
  left: 26px;
  top: 28px;
  right: 70px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* #3 — hierarquia tipográfica editorial */
.ct-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.85;
}

.category-tile.active .ct-tag {
  color: #4fc4c9;
}

.ct-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ── Seta — #6 microdetalhe de opacidade ── */
.ct-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  opacity: 0.7;
  transition: background 0.45s cubic-bezier(.16,1,.3,1),
              border-color 0.45s cubic-bezier(.16,1,.3,1),
              opacity 0.45s cubic-bezier(.16,1,.3,1),
              transform 0.45s cubic-bezier(.16,1,.3,1);
}

.ct-arrow svg {
  width: 14px;
  height: 14px;
}

.category-tile:hover .ct-arrow,
.category-tile.active .ct-arrow {
  background: var(--teal);
  border-color: var(--teal);
  opacity: 1;
  transform: scale(1.05);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #a32626;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-card {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 154, 160, 0.16);
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(26, 58, 82, 0.075);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(26, 58, 82, 0.14);
}

.post-card-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(230, 245, 246, 0.85), rgba(255, 255, 255, 0.95));
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.4rem;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 190px;
  border: 1.5px dashed rgba(11, 154, 160, 0.34);
  border-radius: 0.45rem;
  background:
    linear-gradient(90deg, rgba(26, 58, 82, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 58, 82, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.72);
  background-size: 22px 22px;
  color: rgba(26, 58, 82, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-placeholder span {
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 154, 160, 0.16);
}

.post-card-body {
  padding: 1.45rem;
}

.post-meta {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.post-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card h2,
.post-card h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.post-card h3 {
  font-size: 1.48rem;
  line-height: 1.18;
}

.post-card p {
  font-size: 0.96rem;
}

.post-card-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 800;
}

.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.featured-post .post-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.featured-post .post-card-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.blog-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 8.5rem;
}

.blog-widget {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 154, 160, 0.14);
  border-radius: 0.6rem;
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(26, 58, 82, 0.055);
}

.blog-widget h2,
.blog-widget h3 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid rgba(11, 154, 160, 0.22);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: white;
  color: var(--navy);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.chip.active,
.chip:hover {
  background: var(--navy);
  color: white;
}

.mini-posts {
  display: grid;
  gap: 0.9rem;
}

.mini-posts a {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(26, 58, 82, 0.09);
}

.mini-posts a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-posts strong {
  color: var(--navy);
  line-height: 1.35;
}

.mini-posts span {
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.post-cta-box {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2f45 100%);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(26, 58, 82, 0.2);
}

.post-cta-box .eyebrow {
  color: var(--teal);
  opacity: 1;
}

.post-cta-box h2 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
}

.post-cta-box p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.post-cta-box .btn {
  display: inline-block;
  background: var(--teal);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition-base), transform var(--transition-base);
}

.post-cta-box .btn:hover {
  background: #0a8a8f;
  transform: translateY(-2px);
}

.post-units {
  margin-top: 2.5rem;
}

.post-units-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.post-units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.post-unit-card {
  background: linear-gradient(135deg, #0d2033 0%, #0f2d42 100%);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-unit-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.post-unit-header strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
}

.post-unit-header span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.post-unit-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  margin: 0;
}

.post-unit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.6rem 1.1rem;
  background: var(--teal);
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none !important;
  transition: background var(--transition-base);
  width: fit-content;
}

.post-unit-btn:hover {
  background: #0a8a8f;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .post-units-grid {
    grid-template-columns: 1fr;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.86rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 700;
}

.post-page {
  background: #ffffff;
}

.post-hero {
  padding: clamp(4rem, 10vw, 6rem) 0 2rem;
}

.post-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.post-header h1 {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.post-featured-image {
  margin: 2.5rem auto 0;
  max-width: 1040px;
  min-height: clamp(240px, 38vw, 460px);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--teal-soft);
  box-shadow: 0 28px 70px rgba(26, 58, 82, 0.16);
}

.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-featured-image .image-placeholder {
  min-height: clamp(240px, 38vw, 460px);
  border-radius: 0;
}

.post-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 3rem;
  align-items: start;
}

.post-content {
  font-size: 1.06rem;
}

.post-content h2,
.post-content h3 {
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.post-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.post-content h3 {
  font-size: 1.45rem;
  font-family: var(--font-body);
}

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

.post-content a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.share-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0;
}

.share-row a,
.share-row button {
  border: 1px solid rgba(11, 154, 160, 0.2);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: white;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-body {
  padding-top: 0;
  background: #f7f9fa;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-width: 0;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: white;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.admin-logo img {
  max-height: 42px;
}

.admin-menu {
  display: grid;
  gap: 0.45rem;
}

.admin-menu button {
  width: 100%;
  border: 0;
  border-radius: 0.6rem;
  padding: 0.8rem 0.9rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font-weight: 700;
}

.admin-menu button.active,
.admin-menu button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.admin-main {
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-card {
  background: white;
  border: 1px solid rgba(26, 58, 82, 0.08);
  border-radius: 0.65rem;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(26, 58, 82, 0.06);
  overflow-x: auto;
}

.admin-card h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-stat strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.admin-stat span {
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(26, 58, 82, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.draft {
  background: #f3f5f7;
  color: #5f6875;
}

.status-pill.scheduled {
  background: #fff4db;
  color: #805500;
}

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

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(26, 58, 82, 0.12);
}

.admin-btn.secondary {
  background: var(--teal-soft);
  color: var(--navy);
}

.admin-btn.danger {
  background: #a32626;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.88rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(26, 58, 82, 0.16);
  border-radius: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: white;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(11, 154, 160, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 154, 160, 0.08);
}

.rich-editor {
  min-height: 340px;
  border: 1px solid rgba(26, 58, 82, 0.16);
  border-radius: 0.55rem;
  padding: 1rem;
  background: white;
  overflow: auto;
}

.editor-toolbar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.editor-toolbar button {
  border: 1px solid rgba(26, 58, 82, 0.12);
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.seo-meter {
  display: grid;
  gap: 0.55rem;
}

.seo-check {
  padding: 0.65rem;
  border-radius: 0.55rem;
  background: #f3f5f7;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.seo-check.ok {
  background: #e8f6ef;
  color: #12693e;
}

.seo-check.warn {
  background: #fff4db;
  color: #805500;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(11, 154, 160, 0.22), transparent 34rem),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.login-card {
  width: min(100%, 430px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.7rem;
  padding: 2rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  margin-bottom: 1.2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(26, 58, 82, 0.08);
}

.login-brand img {
  width: min(100%, 245px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.login-card h1 {
  font-size: 2rem;
  margin-bottom: 0.65rem;
}

.login-copy {
  margin-bottom: 1.35rem;
}

.login-submit {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1rem;
  margin-top: 0.35rem;
}

.login-note {
  font-size: 0.78rem;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .blog-hero-grid,
  .post-content-layout,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .category-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-tile {
    height: 175px;
  }
}

@media (max-width: 480px) {
  .category-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .category-tile {
    height: 150px;
  }

  .ct-body {
    left: 18px;
    top: 20px;
    right: 56px;
  }

  .ct-arrow {
    top: 16px;
    right: 14px;
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .blog-grid,
  .featured-post,
  .related-grid,
  .admin-stats,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .admin-app {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .admin-main {
    padding: 1rem;
  }

  .admin-logo {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .admin-logo img {
    max-height: 64px;
  }

  .admin-menu {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .admin-menu button {
    min-height: 48px;
    padding: 0.7rem;
    text-align: center;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topbar h1 {
    font-size: 2rem !important;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .admin-btn,
  .admin-actions a.admin-btn {
    flex: 1 1 160px;
  }
}

@media (max-width: 640px) {
  .blog-search-row,
  .blog-search button {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .post-card-body,
  .blog-widget,
  .admin-card {
    padding: 1rem;
  }
}
